er  dev
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ERMCTrack Class Reference
Inheritance diagram for ERMCTrack:
Inheritance graph
[legend]
Collaboration diagram for ERMCTrack:
Collaboration graph
[legend]

Public Member Functions

 ERMCTrack ()
 
 ERMCTrack (Int_t pdgCode, Int_t motherID, Double_t px, Double_t py, Double_t pz, Double_t x, Double_t y, Double_t z, Double_t t, Int_t nPoints)
 
 ERMCTrack (const ERMCTrack &track)
 
 ERMCTrack (TParticle *particle)
 
virtual ~ERMCTrack ()
 
void Print (Int_t iTrack=0) const
 
Int_t GetPdgCode () const
 
Int_t GetMotherId () const
 
Double_t GetPx () const
 
Double_t GetPy () const
 
Double_t GetPz () const
 
Double_t GetStartX () const
 
Double_t GetStartY () const
 
Double_t GetStartZ () const
 
Double_t GetStartT () const
 
Double_t GetMass () const
 
Double_t GetCharge () const
 
Double_t GetEnergy () const
 
Double_t GetPt () const
 
Double_t GetP () const
 
Double_t GetRapidity () const
 
void GetMomentum (TVector3 &momentum) const
 
void Get4Momentum (TLorentzVector &momentum) const
 
void GetStartVertex (TVector3 &vertex) const
 
TLorentzVector GetVector ()
 
Double_t GetTheta ()
 
Double_t GetPhi ()
 
Int_t GetNPoints (DetectorId detId) const
 
void SetMotherId (Int_t id)
 
void SetNPoints (Int_t iDet, Int_t np)
 

Private Member Functions

Double_t CalculateMass ()
 
Double_t CalculateEnergy ()
 
 ClassDef (ERMCTrack, 2)
 

Private Attributes

Int_t fID
 
Int_t fPdgCode
 
Int_t fMotherId
 
Double32_t fPx
 
Double32_t fPy
 
Double32_t fPz
 
Double32_t fStartX
 
Double32_t fStartY
 
Double32_t fStartZ
 
Double32_t fStartT
 
Int_t fNPoints
 
Double_t fMass
 
Double_t fEnergy
 
Double_t fTheta
 
Double_t fPhi
 
TLorentzVector fMomentum
 

Detailed Description

Definition at line 38 of file ERMCTrack.h.

Constructor & Destructor Documentation

ERMCTrack::ERMCTrack ( )

Default constructor

Definition at line 22 of file ERMCTrack.cxx.

ERMCTrack::ERMCTrack ( Int_t  pdgCode,
Int_t  motherID,
Double_t  px,
Double_t  py,
Double_t  pz,
Double_t  x,
Double_t  y,
Double_t  z,
Double_t  t,
Int_t  nPoints = 0 
)

Standard constructor

Definition at line 37 of file ERMCTrack.cxx.

ERMCTrack::ERMCTrack ( const ERMCTrack track)

Copy constructor

Definition at line 61 of file ERMCTrack.cxx.

ERMCTrack::ERMCTrack ( TParticle *  particle)

Constructor from TParticle

Definition at line 79 of file ERMCTrack.cxx.

ERMCTrack::~ERMCTrack ( )
virtual

Destructor

Definition at line 101 of file ERMCTrack.cxx.

Member Function Documentation

Int_t ERMCTrack::GetNPoints ( DetectorId  detId) const

Accessors to the number of MCPoints in the detectors

Definition at line 129 of file ERMCTrack.cxx.

Int_t ERMCTrack::GetPdgCode ( ) const
inline

Accessors

Definition at line 64 of file ERMCTrack.h.

void ERMCTrack::Print ( Int_t  iTrack = 0) const

Output to screen

Definition at line 103 of file ERMCTrack.cxx.

void ERMCTrack::SetMotherId ( Int_t  id)
inline

Modifiers

Definition at line 92 of file ERMCTrack.h.

Member Data Documentation

Int_t ERMCTrack::fMotherId
private

Index of mother track. -1 for primary particles.

Definition at line 105 of file ERMCTrack.h.

Int_t ERMCTrack::fPdgCode
private

PDG particle code

Definition at line 102 of file ERMCTrack.h.

Double32_t ERMCTrack::fPx
private

Momentum components at start vertex [GeV]

Definition at line 108 of file ERMCTrack.h.

Double32_t ERMCTrack::fStartX
private

Coordinates of start vertex [cm, ns]

Definition at line 111 of file ERMCTrack.h.


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