fastjet 2.4.5
Public Member Functions | Public Attributes
fastjet::atlas::LorentzVector Class Reference

#include <LorentzVector.hh>

Inheritance diagram for fastjet::atlas::LorentzVector:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 LorentzVector ()
 LorentzVector (double p1, double p2, double p3, double p0)
 LorentzVector (const LorentzVector &p)
double p () const
double pt () const
double mt () const
double y () const
double Et () const
double et () const
double e () const
double eta () const
double phi () const
void add (LorentzVector v)
void subtract (LorentzVector v)
bool isEqual (LorentzVector v)

Public Attributes

double px
double py
double pz
double E

Detailed Description

Definition at line 19 of file LorentzVector.hh.


Constructor & Destructor Documentation

fastjet::atlas::LorentzVector::LorentzVector ( ) [inline]

Definition at line 25 of file LorentzVector.hh.

: px(0), py(0), pz(0), E(0) {}
fastjet::atlas::LorentzVector::LorentzVector ( double  p1,
double  p2,
double  p3,
double  p0 
) [inline]

Definition at line 26 of file LorentzVector.hh.

: px(p1), py(p2), pz(p3), E(p0) {}
fastjet::atlas::LorentzVector::LorentzVector ( const LorentzVector p) [inline]

Definition at line 27 of file LorentzVector.hh.

: px(p.px), py(p.py), pz(p.pz), E(p.E) {}

Member Function Documentation

void fastjet::atlas::LorentzVector::add ( LorentzVector  v) [inline]

Definition at line 43 of file LorentzVector.hh.

References E, px, py, and pz.

Referenced by fastjet::atlas::Jet::addConstituent(), fastjet::atlas::Jet::addJet(), and fastjet::atlas::Jet::Jet().

  {
    px += v.px;
    py += v.py;
    pz += v.pz;
    E  += v.E;
  }
double fastjet::atlas::LorentzVector::e ( ) const [inline]
double fastjet::atlas::LorentzVector::Et ( ) const [inline]

Definition at line 32 of file LorentzVector.hh.

{return E/p()*pt();}
double fastjet::atlas::LorentzVector::et ( ) const [inline]

Definition at line 33 of file LorentzVector.hh.

Referenced by fastjet::atlas::JetSorter_Et::operator()().

{return Et();}
double fastjet::atlas::LorentzVector::eta ( ) const [inline]
bool fastjet::atlas::LorentzVector::isEqual ( LorentzVector  v) [inline]

Definition at line 57 of file LorentzVector.hh.

References E, px, py, and pz.

  {
    return px == v.px && py == v.py && pz == v.pz && E == v.E;
  }
double fastjet::atlas::LorentzVector::mt ( ) const [inline]

Definition at line 30 of file LorentzVector.hh.

{return sqrt((E-pz)*(E+pz));}
double fastjet::atlas::LorentzVector::p ( ) const [inline]

Definition at line 28 of file LorentzVector.hh.

{return sqrt(px*px + py*py + pz*pz);}
double fastjet::atlas::LorentzVector::phi ( ) const [inline]

Definition at line 36 of file LorentzVector.hh.

References M_PI.

Referenced by fastjet::atlas::JetDistances::deltaPhi(), and fastjet::atlas::JetConeFinderTool::reconstruct().

  {
    double r = atan2(py,px);
    if(r < 0)
      r += 2*M_PI;
    return r;
  }
double fastjet::atlas::LorentzVector::pt ( ) const [inline]

Definition at line 29 of file LorentzVector.hh.

Referenced by fastjet::atlas::JetSorter_Pt::operator()().

{return sqrt(px*px + py*py);}
void fastjet::atlas::LorentzVector::subtract ( LorentzVector  v) [inline]

Definition at line 50 of file LorentzVector.hh.

References E, px, py, and pz.

  {
    px -= v.px;
    py -= v.py;
    pz -= v.pz;
    E  -= v.E;
  }
double fastjet::atlas::LorentzVector::y ( ) const [inline]

Definition at line 31 of file LorentzVector.hh.

{return 0.5*log((E + pz)/(E - pz));}

Member Data Documentation

Definition at line 23 of file LorentzVector.hh.

Referenced by add(), isEqual(), and subtract().

Definition at line 23 of file LorentzVector.hh.

Referenced by add(), isEqual(), and subtract().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines