PandaRoot
PndDskParticle Class Reference

#include <PndDskParticle.h>

Inheritance diagram for PndDskParticle:

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
 
TVector3 GetExitPosition () const
 
TVector3 GetExitMomentum () 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)
 

Protected Attributes

Int_t fPdgCode
 PDG code of particle. More...
 
TString fPdgName
 PDG name according to fPdgCode. More...
 
Double_t fEnergy
 Energy [GeV]. More...
 
Double_t fMass
 
Int_t fMotherTrackID
 Track ID of the first mother. More...
 
Int_t fMotherPdgCode
 PDG code of the particle with fMotherTrackID. More...
 
TString fMotherPdgName
 PDG name according to fMotherPdgCode. More...
 
TVector3 fExitPosition
 Position when particle disappears [cm]. More...
 
TVector3 fExitMomentum
 Momentum when particle disappears [GeV]. More...
 
Double_t fExitTime
 Time when particle disappears [ns]. More...
 
Double_t fExitEnergy
 Energy when particle disappears [GeV]. More...
 
Double_t fThetaC
 
Double_t fAngIn
 
Int_t fNPhot
 

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 68 of file PndDskParticle.h.

References fAngIn.

68 { 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 65 of file PndDskParticle.h.

References fExitEnergy.

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

◆ GetExitMomentum()

TVector3 PndDskParticle::GetExitMomentum ( ) const
inline

Definition at line 63 of file PndDskParticle.h.

References fExitMomentum.

63 { return fExitMomentum; }
TVector3 fExitMomentum
Momentum when particle disappears [GeV].

◆ GetExitPosition()

TVector3 PndDskParticle::GetExitPosition ( ) const
inline

Definition at line 62 of file PndDskParticle.h.

References fExitPosition.

62 { return fExitPosition; }
TVector3 fExitPosition
Position when particle disappears [cm].

◆ GetExitTime()

Double_t PndDskParticle::GetExitTime ( ) const
inline

Definition at line 64 of file PndDskParticle.h.

References fExitTime.

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

◆ GetMass()

Double_t PndDskParticle::GetMass ( ) const
inline

Definition at line 66 of file PndDskParticle.h.

References fMass.

66 { 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 70 of file PndDskParticle.h.

References fNPhot.

70 { 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 69 of file PndDskParticle.h.

References fThetaC.

69 { 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 73 of file PndDskParticle.h.

References fAngIn.

73 { 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 75 of file PndDskParticle.h.

References fNPhot, and fPdgCode.

75 { fNPhot = nPhot; };

◆ SetThetaC()

void PndDskParticle::SetThetaC ( Double_t  theta)
inline

Definition at line 74 of file PndDskParticle.h.

References fThetaC.

74 { fThetaC = theta; };
Double_t fThetaC

Member Data Documentation

◆ fAngIn

Double_t PndDskParticle::fAngIn
protected

Definition at line 93 of file PndDskParticle.h.

Referenced by GetAngIn(), and SetAngIn().

◆ fEnergy

Double_t PndDskParticle::fEnergy
protected

Energy [GeV].

Definition at line 80 of file PndDskParticle.h.

Referenced by GetEnergy().

◆ fExitEnergy

Double_t PndDskParticle::fExitEnergy
protected

Energy when particle disappears [GeV].

Definition at line 90 of file PndDskParticle.h.

Referenced by GetExitEnergy().

◆ fExitMomentum

TVector3 PndDskParticle::fExitMomentum
protected

Momentum when particle disappears [GeV].

Definition at line 88 of file PndDskParticle.h.

Referenced by GetExitMomentum().

◆ fExitPosition

TVector3 PndDskParticle::fExitPosition
protected

Position when particle disappears [cm].

Definition at line 87 of file PndDskParticle.h.

Referenced by GetExitPosition().

◆ fExitTime

Double_t PndDskParticle::fExitTime
protected

Time when particle disappears [ns].

Definition at line 89 of file PndDskParticle.h.

Referenced by GetExitTime().

◆ fMass

Double_t PndDskParticle::fMass
protected

Definition at line 81 of file PndDskParticle.h.

Referenced by GetMass().

◆ fMotherPdgCode

Int_t PndDskParticle::fMotherPdgCode
protected

PDG code of the particle with fMotherTrackID.

Definition at line 84 of file PndDskParticle.h.

Referenced by GetMotherPdgCode().

◆ fMotherPdgName

TString PndDskParticle::fMotherPdgName
protected

PDG name according to fMotherPdgCode.

Definition at line 85 of file PndDskParticle.h.

Referenced by GetMotherPdgName().

◆ fMotherTrackID

Int_t PndDskParticle::fMotherTrackID
protected

Track ID of the first mother.

Definition at line 83 of file PndDskParticle.h.

Referenced by GetMotherTrackID().

◆ fNPhot

Int_t PndDskParticle::fNPhot
protected

Definition at line 94 of file PndDskParticle.h.

Referenced by GetNPhot(), and SetNPhot().

◆ fPdgCode

Int_t PndDskParticle::fPdgCode
protected

PDG code of particle.

Definition at line 75 of file PndDskParticle.h.

Referenced by GetPdgCode(), and SetNPhot().

◆ fPdgName

TString PndDskParticle::fPdgName
protected

PDG name according to fPdgCode.

Definition at line 79 of file PndDskParticle.h.

Referenced by GetPdgName().

◆ fThetaC

Double_t PndDskParticle::fThetaC
protected

Definition at line 92 of file PndDskParticle.h.

Referenced by GetThetaC(), and SetThetaC().


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