FairRoot/PandaRoot
Public Member Functions | Protected Attributes | List of all members
RhoTotalMomentum Class Reference

#include <RhoTotalMomentum.h>

Inheritance diagram for RhoTotalMomentum:

Public Member Functions

 RhoTotalMomentum (RhoCandList &, const RhoEventInfo &)
 
virtual ~RhoTotalMomentum ()
 
double TotalEnergy () const
 
double TotalMomentum () const
 
TVector3 Total3Momentum () const
 
TLorentzVector Total4Momentum () const
 
double TotalEnergyCms () const
 
double TotalMomentumCms () const
 
TVector3 Total3MomentumCms () const
 
TLorentzVector Total4MomentumCms () const
 
double TotalMass () const
 
double MissingEnergy () const
 
double MissingMomentum () const
 
TVector3 Missing3Momentum () const
 
TLorentzVector Missing4Momentum () const
 
double MissingEnergyCms () const
 
double MissingMomentumCms () const
 
TVector3 Missing3MomentumCms () const
 
TLorentzVector Missing4MomentumCms () const
 
double MissingMass () const
 

Protected Attributes

TLorentzVector _total4Momentum
 
TLorentzVector _total4MomentumCms
 
TLorentzVector _missing4Momentum
 
TLorentzVector _missing4MomentumCms
 

Detailed Description

Definition at line 37 of file RhoTotalMomentum.h.

Constructor & Destructor Documentation

RhoTotalMomentum::RhoTotalMomentum ( RhoCandList list,
const RhoEventInfo evtinfo 
)

Definition at line 44 of file RhoTotalMomentum.cxx.

References RhoEventInfo::CmFrame(), RhoCandListIterator::Next(), and RhoCandidate::P4().

46 {
47 
48  TLorentzVector tot4mom = TLorentzVector ( 0,0,0,0 );
49  const RhoCandidate* trkptr;
50 
51  RhoCandListIterator iter ( list );
52 
53  // loop over all the RhoCandidates
54  while ( ( trkptr = iter.Next() ) ) {
55  // Calculate total 4-momentum. More-sophisticated algorithms can
56  // be substituted later.
57  tot4mom += trkptr->P4();
58  }
59 
60  _total4Momentum = tot4mom; // set data member
61  _total4MomentumCms = _total4Momentum; //intermediate step
62  TVector3 cms = evtinfo.CmFrame().BoostVector();
63  _total4MomentumCms.Boost ( - ( cms ) ); //do boost
64 
65  _missing4Momentum = evtinfo.CmFrame()-tot4mom; // set data member
66  _missing4MomentumCms = _missing4Momentum; //intermediate step
67  _missing4MomentumCms.Boost ( - ( cms ) ); //do boost
68 }
const TLorentzVector & CmFrame() const
Definition: RhoEventInfo.h:53
TLorentzVector _total4Momentum
TLorentzVector _missing4MomentumCms
TLorentzVector P4() const
Definition: RhoCandidate.h:195
TLorentzVector _total4MomentumCms
TLorentzVector _missing4Momentum
RhoTotalMomentum::~RhoTotalMomentum ( )
virtual

Definition at line 70 of file RhoTotalMomentum.cxx.

70 {}

Member Function Documentation

TVector3 RhoTotalMomentum::Missing3Momentum ( ) const
inline

Definition at line 68 of file RhoTotalMomentum.h.

References _missing4Momentum.

68 { return TVector3 ( _missing4Momentum.X(),_missing4Momentum.Y(),_missing4Momentum.Z() ); }
TLorentzVector _missing4Momentum
TVector3 RhoTotalMomentum::Missing3MomentumCms ( ) const
inline

Definition at line 73 of file RhoTotalMomentum.h.

References _missing4MomentumCms.

73 { return TVector3 ( _missing4MomentumCms.X(),_missing4MomentumCms.Y(),_missing4MomentumCms.Z() ); }
TLorentzVector _missing4MomentumCms
TLorentzVector RhoTotalMomentum::Missing4Momentum ( ) const
inline

Definition at line 69 of file RhoTotalMomentum.h.

References _missing4Momentum.

69 { return _missing4Momentum; }
TLorentzVector _missing4Momentum
TLorentzVector RhoTotalMomentum::Missing4MomentumCms ( ) const
inline

Definition at line 74 of file RhoTotalMomentum.h.

References _missing4MomentumCms.

74 { return _missing4MomentumCms; }
TLorentzVector _missing4MomentumCms
double RhoTotalMomentum::MissingEnergy ( ) const
inline

Definition at line 66 of file RhoTotalMomentum.h.

References _missing4Momentum.

66 { return _missing4Momentum.T(); }
TLorentzVector _missing4Momentum
double RhoTotalMomentum::MissingEnergyCms ( ) const
inline

Definition at line 71 of file RhoTotalMomentum.h.

References _missing4MomentumCms.

71 { return _missing4MomentumCms.T(); }
TLorentzVector _missing4MomentumCms
double RhoTotalMomentum::MissingMass ( ) const
inline

Definition at line 76 of file RhoTotalMomentum.h.

References _missing4Momentum.

76 { return _missing4Momentum.Mag(); }
TLorentzVector _missing4Momentum
double RhoTotalMomentum::MissingMomentum ( ) const
inline

Definition at line 67 of file RhoTotalMomentum.h.

References _missing4Momentum.

67 { return TVector3 ( _missing4Momentum.X(),_missing4Momentum.Y(),_missing4Momentum.Z() ).Mag(); }
TLorentzVector _missing4Momentum
double RhoTotalMomentum::MissingMomentumCms ( ) const
inline

Definition at line 72 of file RhoTotalMomentum.h.

References _missing4MomentumCms.

72 { return TVector3 ( _missing4MomentumCms.X(),_missing4MomentumCms.Y(),_missing4MomentumCms.Z() ).Mag(); }
TLorentzVector _missing4MomentumCms
TVector3 RhoTotalMomentum::Total3Momentum ( ) const
inline

Definition at line 56 of file RhoTotalMomentum.h.

References _total4Momentum.

56 { return TVector3 ( _total4Momentum.X(),_total4Momentum.Y(),_total4Momentum.Z() ); }
TLorentzVector _total4Momentum
TVector3 RhoTotalMomentum::Total3MomentumCms ( ) const
inline

Definition at line 61 of file RhoTotalMomentum.h.

References _total4MomentumCms.

61 { return TVector3 ( _total4MomentumCms.X(),_total4MomentumCms.Y(),_total4MomentumCms.Z() ); }
TLorentzVector _total4MomentumCms
TLorentzVector RhoTotalMomentum::Total4Momentum ( ) const
inline

Definition at line 57 of file RhoTotalMomentum.h.

References _total4Momentum.

57 { return _total4Momentum; }
TLorentzVector _total4Momentum
TLorentzVector RhoTotalMomentum::Total4MomentumCms ( ) const
inline

Definition at line 62 of file RhoTotalMomentum.h.

References _total4MomentumCms.

62 { return _total4MomentumCms; }
TLorentzVector _total4MomentumCms
double RhoTotalMomentum::TotalEnergy ( ) const
inline

Definition at line 54 of file RhoTotalMomentum.h.

References _total4Momentum.

54 { return _total4Momentum.T(); }
TLorentzVector _total4Momentum
double RhoTotalMomentum::TotalEnergyCms ( ) const
inline

Definition at line 59 of file RhoTotalMomentum.h.

References _total4MomentumCms.

59 { return _total4MomentumCms.T(); }
TLorentzVector _total4MomentumCms
double RhoTotalMomentum::TotalMass ( ) const
inline

Definition at line 64 of file RhoTotalMomentum.h.

References _total4Momentum.

64 { return _total4Momentum.Mag(); }
TLorentzVector _total4Momentum
double RhoTotalMomentum::TotalMomentum ( ) const
inline

Definition at line 55 of file RhoTotalMomentum.h.

References _total4Momentum.

55 { return TVector3 ( _total4Momentum.X(),_total4Momentum.Y(),_total4Momentum.Z() ).Mag(); }
TLorentzVector _total4Momentum
double RhoTotalMomentum::TotalMomentumCms ( ) const
inline

Definition at line 60 of file RhoTotalMomentum.h.

References _total4MomentumCms.

60 { return TVector3 ( _total4MomentumCms.X(),_total4MomentumCms.Y(),_total4MomentumCms.Z() ).Mag(); }
TLorentzVector _total4MomentumCms

Member Data Documentation

TLorentzVector RhoTotalMomentum::_missing4Momentum
protected
TLorentzVector RhoTotalMomentum::_missing4MomentumCms
protected
TLorentzVector RhoTotalMomentum::_total4Momentum
protected
TLorentzVector RhoTotalMomentum::_total4MomentumCms
protected

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