PandaRoot
PndMCTrack Class Reference

#include <PndMCTrack.h>

Inheritance diagram for PndMCTrack:

Public Member Functions

 PndMCTrack ()
 
 PndMCTrack (const PndMCTrack &track)
 
 PndMCTrack (TParticle *particle)
 
virtual ~PndMCTrack ()
 
void Print (Int_t iTrack=0) const
 
Int_t GetPdgCode () const
 
Int_t GetMotherID () const
 
Int_t GetSecondMotherID () const
 
TVector3 GetStartVertex () const
 
Double_t GetStartTime () const
 
TVector3 GetMomentum () const
 
Double_t GetPt () const
 
Bool_t IsGeneratorCreated (void) const
 
Bool_t IsGeneratorDecayed (void) const
 
Bool_t IsGeneratorLast (void) const
 
void SetGeneratorCreated (void)
 
void SetGeneratorDecayed (void)
 
Int_t GetNPoints (DetectorId detId) const
 
void SetMotherID (Int_t id)
 
void SetSecondMotherID (Int_t id)
 
void SetNPoints (DetectorId iDet, Int_t np)
 
TLorentzVector Get4Momentum () const
 
UInt_t GetProcessID () const
 

Friends

std::ostream & operator<< (std::ostream &out, PndMCTrack &track)
 

Detailed Description

PndMCTrack.h

Author
V.Friese v.fri.nosp@m.ese@.nosp@m.gsi.d.nosp@m.e

Data class for storing Monte Carlo tracks processed by the PndStack. A MCTrack can be a primary track put into the simulation or a secondary one produced by the transport through decay or interaction.

Definition at line 33 of file PndMCTrack.h.

Constructor & Destructor Documentation

◆ PndMCTrack() [1/3]

PndMCTrack::PndMCTrack ( )

Default constructor

◆ PndMCTrack() [2/3]

PndMCTrack::PndMCTrack ( const PndMCTrack track)

Standard constructor Copy constructor

◆ PndMCTrack() [3/3]

PndMCTrack::PndMCTrack ( TParticle *  particle)

Constructor from TParticle

◆ ~PndMCTrack()

virtual PndMCTrack::~PndMCTrack ( )
virtual

Destructor

Member Function Documentation

◆ Get4Momentum()

TLorentzVector PndMCTrack::Get4Momentum ( ) const

Referenced by SetSecondMotherID().

◆ GetMomentum()

TVector3 PndMCTrack::GetMomentum ( ) const
inline

Definition at line 68 of file PndMCTrack.h.

68 { return TVector3(fPx, fPy, fPz); }

◆ GetMotherID()

Int_t PndMCTrack::GetMotherID ( ) const
inline

Definition at line 64 of file PndMCTrack.h.

64 { return fMotherID; }

◆ GetNPoints()

Int_t PndMCTrack::GetNPoints ( DetectorId  detId) const

Referenced by SetGeneratorDecayed().

◆ GetPdgCode()

Int_t PndMCTrack::GetPdgCode ( ) const
inline

Accessors

Definition at line 63 of file PndMCTrack.h.

63 { return fPdgCode; }

◆ GetProcessID()

UInt_t PndMCTrack::GetProcessID ( ) const
inline

Definition at line 98 of file PndMCTrack.h.

98 { return fProcess; }

◆ GetPt()

Double_t PndMCTrack::GetPt ( ) const
inline

Definition at line 69 of file PndMCTrack.h.

References CAMath::Sqrt().

69 { return TMath::Sqrt(fPx * fPx + fPy * fPy); }
static T Sqrt(const T &x)
Definition: PndCAMath.h:45

◆ GetSecondMotherID()

Int_t PndMCTrack::GetSecondMotherID ( ) const
inline

Definition at line 65 of file PndMCTrack.h.

65 { return fSecondMotherID; }

◆ GetStartTime()

Double_t PndMCTrack::GetStartTime ( ) const
inline

Definition at line 67 of file PndMCTrack.h.

67 { return fStartT; }

◆ GetStartVertex()

TVector3 PndMCTrack::GetStartVertex ( ) const
inline

Definition at line 66 of file PndMCTrack.h.

66 { return TVector3(fStartX, fStartY, fStartZ); }

◆ IsGeneratorCreated()

Bool_t PndMCTrack::IsGeneratorCreated ( void  ) const
inline

Definition at line 74 of file PndMCTrack.h.

74 { return (fGeneratorFlags & 0x1) != 0; }

◆ IsGeneratorDecayed()

Bool_t PndMCTrack::IsGeneratorDecayed ( void  ) const
inline

Definition at line 75 of file PndMCTrack.h.

75 { return (fGeneratorFlags & 0x2) != 0; }

◆ IsGeneratorLast()

Bool_t PndMCTrack::IsGeneratorLast ( void  ) const
inline

Definition at line 76 of file PndMCTrack.h.

76 { return (fGeneratorFlags & 0x1) != 0 && (fGeneratorFlags & 0x2) == 0; }

◆ Print()

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

Output to screen

◆ SetGeneratorCreated()

void PndMCTrack::SetGeneratorCreated ( void  )
inline

Definition at line 77 of file PndMCTrack.h.

77 { fGeneratorFlags |= 0x1; }

◆ SetGeneratorDecayed()

void PndMCTrack::SetGeneratorDecayed ( void  )
inline

Definition at line 78 of file PndMCTrack.h.

References GetNPoints().

78 { fGeneratorFlags |= 0x2; }

◆ SetMotherID()

void PndMCTrack::SetMotherID ( Int_t  id)
inline

Modifiers

Definition at line 83 of file PndMCTrack.h.

83 { fMotherID = id; }

◆ SetNPoints()

void PndMCTrack::SetNPoints ( DetectorId  iDet,
Int_t  np 
)

Add one detector point to the fPoint variable

Referenced by SetSecondMotherID().

◆ SetSecondMotherID()

void PndMCTrack::SetSecondMotherID ( Int_t  id)
inline

Definition at line 84 of file PndMCTrack.h.

References Get4Momentum(), and SetNPoints().

84 { fSecondMotherID = id; }

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
PndMCTrack track 
)
friend

Definition at line 56 of file PndMCTrack.h.

57  {
58  track.Print();
59  return out;
60  }
void Print(Int_t iTrack=0) const

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