fastjet::d0::inline_maths Namespace Reference

Functions

double sqr (double a)
double min (double a, double b)
double delta_phi (double phi1, double phi2)
double phi (double px, double py)
double y (double E, double pz)

Variables

const double PI = fabs(acos(-1.))
const double TWOPI = 2*PI

Function Documentation

double fastjet::d0::inline_maths::delta_phi ( double  phi1,
double  phi2 
) [inline]

Definition at line 31 of file inline_maths.h.

References min(), and PI.

Referenced by fastjet::d0::RD2(), and fastjet::d0::RDelta().

00031                                                   {
00032   return min( double(fabs(phi1-phi2)), double(2.*PI-fabs(phi1-phi2)) );
00033 }

double fastjet::d0::inline_maths::min ( double  a,
double  b 
) [inline]
double fastjet::d0::inline_maths::phi ( double  px,
double  py 
) [inline]
double fastjet::d0::inline_maths::sqr ( double  a  )  [inline]

Definition at line 19 of file inline_maths.h.

Referenced by fastjet::d0::HepEntity::pT().

00019                             {
00020   return a*a;
00021 }

double fastjet::d0::inline_maths::y ( double  E,
double  pz 
) [inline]

Definition at line 43 of file inline_maths.h.

Referenced by ClusterSequence::_really_dumb_cluster(), fastjet::Coord2D::distance2(), fastjet::d0::ILConeAlgorithm< Item >makeClusters(), fastjet::Point::operator*(), fastjet::Coord2D::operator*(), fastjet::Point::operator+(), fastjet::Coord2D::operator+(), fastjet::ClosestPair2D::Shuffle::operator+=(), fastjet::Point::operator-(), fastjet::Coord2D::operator-(), fastjet::Coord2D::operator/(), fastjet::d0::P2y(), and fastjet::d0::HepEntity::y().

00043                                      {
00044   errno=0;
00045   double y;
00046   //cout << "inline_maths: ";
00047   if (fabs(E-pz) == 0.) {
00048     //    cout << "Error in header mathe.h: division by 0 in function eta!" <<  " p=" << p << " pz=" << pz << endl;
00049     //  exit(721);
00050     errno=721;
00051     y = 99999.;
00052   }
00053   else {
00054     y = 0.5*log((E+pz)/(E-pz));
00055   }
00056   //cout << "y: E=" << E << " pz=" << pz << " y=" << y << endl;
00057   return y;
00058 }


Variable Documentation

const double fastjet::d0::inline_maths::PI = fabs(acos(-1.))

Generated on 26 Feb 2010 for fastjet by  doxygen 1.6.1