PandaRoot
PndDskParticle Class Reference

#include <PndDskParticle.h>

Inheritance diagram for PndDskParticle:
PndMCPoint

Public Member Functions

 PndDskParticle ()
 
 PndDskParticle (Int_t trackID, Int_t detectorID, TVector3 position, TVector3 momentum, Double_t time, Int_t pdgCode, TString pdgName, Double_t energy, Int_t motherTrackID, Int_t motherPdgCode, TString motherPdgName, Double_t mass, Double_t angIn, Double_t thetaC, Int_t nPhot)
 
 PndDskParticle (const PndDskParticle &particle)
 
virtual ~PndDskParticle ()
 
virtual void Print (const Option_t *opt) const
 
void SetFinalValues (TVector3 exitPosition, TVector3 exitMomentum, Double_t exitTime, Double_t exitEnergy)
 
Int_t GetPdgCode () const
 
TString GetPdgName () const
 
Double_t GetEnergy () const
 
Int_t GetMotherTrackID () const
 
Int_t GetMotherPdgCode () const
 
TString GetMotherPdgName () const
 
Double_t GetExitTime () const
 
Double_t GetExitEnergy () const
 
Double_t GetMass () const
 
Double_t GetAngIn () const
 
Double_t GetThetaC () const
 
Int_t GetNPhot () const
 
void SetAngIn (Double_t ang)
 
void SetThetaC (Double_t theta)
 
void SetNPhot (Int_t nPhot)
 
- Public Member Functions inherited from PndMCPoint
 PndMCPoint ()
 
virtual ~PndMCPoint ()
 
 PndMCPoint (Int_t trackID, Int_t detID, TVector3 pos, TVector3 posOut, TVector3 mom, TVector3 momOut, Double_t tof, Double_t length, Double_t eLoss, UInt_t EventId=0)
 
Double_t GetXOut () const
 
Double_t GetYOut () const
 
Double_t GetZOut () const
 
Double_t GetPxOut () const
 
Double_t GetPyOut () const
 
Double_t GetPzOut () const
 
TVector3 GetPosition () const
 
TVector3 GetPositionOut () const
 
TVector3 GetMeanPosition () const
 
void PositionOut (TVector3 &pos) const
 
TVector3 GetMomentum () const
 
TVector3 GetMomentumOut () const
 
void MomentumOut (TVector3 &mom) const
 
void SetPositionOut (TVector3 pos)
 
void SetMomentumOut (TVector3 mom)
 

Protected Attributes

Int_t fPdgCode = -1
 PDG code of particle. More...
 
TString fPdgName
 PDG name according to fPdgCode. More...
 
Double_t fEnergy = 0.
 Energy [GeV]. More...
 
Double_t fMass = 0.
 
Int_t fMotherTrackID = -1
 Track ID of the first mother. More...
 
Int_t fMotherPdgCode = -1
 PDG code of the particle with fMotherTrackID. More...
 
TString fMotherPdgName
 PDG name according to fMotherPdgCode. More...
 
Double_t fExitTime = 0.
 Time when particle disappears [ns]. More...
 
Double_t fExitEnergy = 0.
 Energy when particle disappears [GeV]. More...
 
Double_t fThetaC = 0.
 
Double_t fAngIn = 0.
 
Int_t fNPhot = -1
 
- Protected Attributes inherited from PndMCPoint
Double32_t fXOut = 0.
 
Double32_t fYOut = 0.
 
Double32_t fZOut = 0.
 
Double32_t fPxOut = 0.
 
Double32_t fPyOut = 0.
 
Double32_t fPzOut = 0.
 

Additional Inherited Members

- Protected Member Functions inherited from PndMCPoint
 ClassDef (PndMCPoint, 1)
 

Detailed Description

Definition at line 11 of file PndDskParticle.h.

Constructor & Destructor Documentation

◆ PndDskParticle() [1/3]

PndDskParticle::PndDskParticle ( )

Default constructor

◆ PndDskParticle() [2/3]

PndDskParticle::PndDskParticle ( Int_t  trackID,
Int_t  detectorID,
TVector3  position,
TVector3  momentum,
Double_t  time,
Int_t  pdgCode,
TString  pdgName,
Double_t  energy,
Int_t  motherTrackID,
Int_t  motherPdgCode,
TString  motherPdgName,
Double_t  mass,
Double_t  angIn,
Double_t  thetaC,
Int_t  nPhot 
)

Standard constructor with arguments

Parameters
trackIDIndex of MCTrack
detectorIDDetector ID where the first hit is produced
positionPosition of Particle when created [cm]
momentumMomentum of Particle when created [eV]
timeTime since event start when created [ns]
pdgCodeParticles PDG code
pdgNameParticles PDG name according to pdgCode
energyEnergy of the Particle when created [GeV]
motherTrackIDTrack ID of particle that created the Particle
motherPdgCodePDG Code of particle that created the Particle
motherPdgNamePDG Name of particle that created the Particle

◆ PndDskParticle() [3/3]

PndDskParticle::PndDskParticle ( const PndDskParticle particle)

Copy constructor

◆ ~PndDskParticle()

virtual PndDskParticle::~PndDskParticle ( )
virtual

Destructor

Member Function Documentation

◆ GetAngIn()

Double_t PndDskParticle::GetAngIn ( ) const
inline

Definition at line 66 of file PndDskParticle.h.

References fAngIn.

66 { return fAngIn; };

◆ GetEnergy()

Double_t PndDskParticle::GetEnergy ( ) const
inline

Definition at line 58 of file PndDskParticle.h.

References fEnergy.

58 { return fEnergy; }
Double_t fEnergy
Energy [GeV].

◆ GetExitEnergy()

Double_t PndDskParticle::GetExitEnergy ( ) const
inline

Definition at line 63 of file PndDskParticle.h.

References fExitEnergy.

63 { return fExitEnergy; }
Double_t fExitEnergy
Energy when particle disappears [GeV].

◆ GetExitTime()

Double_t PndDskParticle::GetExitTime ( ) const
inline

Definition at line 62 of file PndDskParticle.h.

References fExitTime.

62 { return fExitTime; }
Double_t fExitTime
Time when particle disappears [ns].

◆ GetMass()

Double_t PndDskParticle::GetMass ( ) const
inline

Definition at line 64 of file PndDskParticle.h.

References fMass.

64 { return fMass; };

◆ GetMotherPdgCode()

Int_t PndDskParticle::GetMotherPdgCode ( ) const
inline

Definition at line 60 of file PndDskParticle.h.

References fMotherPdgCode.

60 { return fMotherPdgCode; }
Int_t fMotherPdgCode
PDG code of the particle with fMotherTrackID.

◆ GetMotherPdgName()

TString PndDskParticle::GetMotherPdgName ( ) const
inline

Definition at line 61 of file PndDskParticle.h.

References fMotherPdgName.

61 { return fMotherPdgName; }
TString fMotherPdgName
PDG name according to fMotherPdgCode.

◆ GetMotherTrackID()

Int_t PndDskParticle::GetMotherTrackID ( ) const
inline

Definition at line 59 of file PndDskParticle.h.

References fMotherTrackID.

59 { return fMotherTrackID; }
Int_t fMotherTrackID
Track ID of the first mother.

◆ GetNPhot()

Int_t PndDskParticle::GetNPhot ( ) const
inline

Definition at line 68 of file PndDskParticle.h.

References fNPhot.

68 { return fNPhot; };

◆ GetPdgCode()

Int_t PndDskParticle::GetPdgCode ( ) const
inline

Accessors

Definition at line 56 of file PndDskParticle.h.

References fPdgCode.

56 { return fPdgCode; }
Int_t fPdgCode
PDG code of particle.

◆ GetPdgName()

TString PndDskParticle::GetPdgName ( ) const
inline

Definition at line 57 of file PndDskParticle.h.

References fPdgName.

57 { return fPdgName; }
TString fPdgName
PDG name according to fPdgCode.

◆ GetThetaC()

Double_t PndDskParticle::GetThetaC ( ) const
inline

Definition at line 67 of file PndDskParticle.h.

References fThetaC.

67 { return fThetaC; };
Double_t fThetaC

◆ Print()

virtual void PndDskParticle::Print ( const Option_t *  opt) const
virtual

Virtual method Print

Screen output of Particle

◆ SetAngIn()

void PndDskParticle::SetAngIn ( Double_t  ang)
inline

Modifiers

Definition at line 71 of file PndDskParticle.h.

References fAngIn.

71 { fAngIn = ang; };

◆ SetFinalValues()

void PndDskParticle::SetFinalValues ( TVector3  exitPosition,
TVector3  exitMomentum,
Double_t  exitTime,
Double_t  exitEnergy 
)

Method SetFinalValues

Set the final values for a particle

Parameters
exitPositionPosition when particle disappears [cm]
exitMomentumMomentum when particle disappears [GeV]
exitTimeTime when particle disappears [ns]
exitEnergyEnergy when particle disappears [GeV]

◆ SetNPhot()

void PndDskParticle::SetNPhot ( Int_t  nPhot)
inline

Definition at line 73 of file PndDskParticle.h.

References fNPhot.

73 { fNPhot = nPhot; };

◆ SetThetaC()

void PndDskParticle::SetThetaC ( Double_t  theta)
inline

Definition at line 72 of file PndDskParticle.h.

References fThetaC.

72 { fThetaC = theta; };
Double_t fThetaC

Member Data Documentation

◆ fAngIn

Double_t PndDskParticle::fAngIn = 0.
protected

Definition at line 89 of file PndDskParticle.h.

Referenced by GetAngIn(), and SetAngIn().

◆ fEnergy

Double_t PndDskParticle::fEnergy = 0.
protected

Energy [GeV].

Definition at line 78 of file PndDskParticle.h.

Referenced by GetEnergy().

◆ fExitEnergy

Double_t PndDskParticle::fExitEnergy = 0.
protected

Energy when particle disappears [GeV].

Definition at line 86 of file PndDskParticle.h.

Referenced by GetExitEnergy().

◆ fExitTime

Double_t PndDskParticle::fExitTime = 0.
protected

Time when particle disappears [ns].

Definition at line 85 of file PndDskParticle.h.

Referenced by GetExitTime().

◆ fMass

Double_t PndDskParticle::fMass = 0.
protected

Definition at line 79 of file PndDskParticle.h.

Referenced by GetMass().

◆ fMotherPdgCode

Int_t PndDskParticle::fMotherPdgCode = -1
protected

PDG code of the particle with fMotherTrackID.

Definition at line 82 of file PndDskParticle.h.

Referenced by GetMotherPdgCode().

◆ fMotherPdgName

TString PndDskParticle::fMotherPdgName
protected

PDG name according to fMotherPdgCode.

Definition at line 83 of file PndDskParticle.h.

Referenced by GetMotherPdgName().

◆ fMotherTrackID

Int_t PndDskParticle::fMotherTrackID = -1
protected

Track ID of the first mother.

Definition at line 81 of file PndDskParticle.h.

Referenced by GetMotherTrackID().

◆ fNPhot

Int_t PndDskParticle::fNPhot = -1
protected

Definition at line 90 of file PndDskParticle.h.

Referenced by GetNPhot(), and SetNPhot().

◆ fPdgCode

Int_t PndDskParticle::fPdgCode = -1
protected

PDG code of particle.

Definition at line 76 of file PndDskParticle.h.

Referenced by GetPdgCode().

◆ fPdgName

TString PndDskParticle::fPdgName
protected

PDG name according to fPdgCode.

Definition at line 77 of file PndDskParticle.h.

Referenced by GetPdgName().

◆ fThetaC

Double_t PndDskParticle::fThetaC = 0.
protected

Definition at line 88 of file PndDskParticle.h.

Referenced by GetThetaC(), and SetThetaC().


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