fastjet 2.4.3
Public Member Functions | Public Attributes

atlas::LorentzVector Class Reference

#include <LorentzVector.hh>

Inheritance diagram for 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

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

Definition at line 25 of file LorentzVector.hh.

: px(0), py(0), pz(0), E(0) {}
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) {}
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 atlas::LorentzVector::add ( LorentzVector  v) [inline]

Definition at line 43 of file LorentzVector.hh.

References E, px, py, and pz.

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

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

Definition at line 34 of file LorentzVector.hh.

References E.

Referenced by atlas::JetSplitMergeTool::execute(), and atlas::JetSorter_E::operator()().

{return E;}
double atlas::LorentzVector::Et ( ) const [inline]

Definition at line 32 of file LorentzVector.hh.

References E, p(), and pt().

Referenced by et().

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

Definition at line 33 of file LorentzVector.hh.

References Et().

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

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

Definition at line 35 of file LorentzVector.hh.

References p(), and pz.

Referenced by atlas::JetDistances::deltaEta(), atlas::JetSorter_Eta::operator()(), and atlas::JetConeFinderTool::reconstruct().

{return 0.5*log((p() + pz)/(p() - pz));}
bool 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 atlas::LorentzVector::mt ( ) const [inline]

Definition at line 30 of file LorentzVector.hh.

References E, and pz.

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

Definition at line 28 of file LorentzVector.hh.

References px, py, and pz.

Referenced by Et(), and eta().

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

Definition at line 36 of file LorentzVector.hh.

References M_PI, px, and py.

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

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

Definition at line 29 of file LorentzVector.hh.

References px, and py.

Referenced by Et(), and atlas::JetSorter_Pt::operator()().

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

Definition at line 50 of file LorentzVector.hh.

References E, px, py, and pz.

Referenced by atlas::Jet::removeConstituent().

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

Definition at line 31 of file LorentzVector.hh.

References E, and pz.

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

Member Data Documentation

Definition at line 23 of file LorentzVector.hh.

Referenced by add(), e(), Et(), isEqual(), mt(), subtract(), and y().

Definition at line 23 of file LorentzVector.hh.

Referenced by add(), isEqual(), p(), phi(), pt(), atlas::JetSplitMergeTool::split_merge(), and subtract().

Definition at line 23 of file LorentzVector.hh.

Referenced by add(), isEqual(), p(), phi(), pt(), atlas::JetSplitMergeTool::split_merge(), and subtract().

Definition at line 23 of file LorentzVector.hh.

Referenced by add(), eta(), isEqual(), mt(), p(), subtract(), and y().


The documentation for this class was generated from the following file: