FairRoot/PandaRoot
Public Member Functions | Protected Attributes | List of all members
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::PndDskParticle ( )

Default constructor

Definition at line 15 of file PndDskParticle.cxx.

16  : FairMCPoint(),
17  fPdgCode(-1),
18  fPdgName(TString()),
19  fEnergy(0.),
20  fMass(0.),
21  fMotherTrackID(-1),
22  fMotherPdgCode(-1),
24  fExitPosition(TVector3()),
25  fExitMomentum(TVector3()),
26  fExitTime(0.),
27  fExitEnergy(0.),
28  fThetaC(0.),
29  fAngIn(0.),
30  fNPhot(-1)
31 {
32 }
Double_t fThetaC
TString fPdgName
PDG name according to fPdgCode.
TVector3 fExitMomentum
Momentum when particle disappears [GeV].
TVector3 fExitPosition
Position when particle disappears [cm].
TString fMotherPdgName
PDG name according to fMotherPdgCode.
Int_t fMotherTrackID
Track ID of the first mother.
Double_t fExitEnergy
Energy when particle disappears [GeV].
Double_t fExitTime
Time when particle disappears [ns].
Double_t fEnergy
Energy [GeV].
Int_t fPdgCode
PDG code of particle.
Int_t fMotherPdgCode
PDG code of the particle with fMotherTrackID.
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

Definition at line 38 of file PndDskParticle.cxx.

42  : FairMCPoint(trackID, detectorID, position, momentum, time, 0., 0.),
43  fPdgCode(pdgCode),
44  fPdgName(pdgName),
45  fEnergy(energy),
46  fMass(mass),
47  fMotherTrackID(motherTrackID),
48  fMotherPdgCode(motherPdgCode),
49  fMotherPdgName(motherPdgName),
50  fExitPosition(TVector3()),
51  fExitMomentum(TVector3()),
52  fExitTime(0.),
53  fExitEnergy(0.),
54  fThetaC(thetaC),
55  fAngIn(angIn),
56  fNPhot(nPhot)
57 {
58 }
Double_t fThetaC
TString fPdgName
PDG name according to fPdgCode.
TVector3 fExitMomentum
Momentum when particle disappears [GeV].
TVector3 fExitPosition
Position when particle disappears [cm].
TString fMotherPdgName
PDG name according to fMotherPdgCode.
Int_t fMotherTrackID
Track ID of the first mother.
Double_t fExitEnergy
Energy when particle disappears [GeV].
Double_t fExitTime
Time when particle disappears [ns].
Double_t fEnergy
Energy [GeV].
Double_t thetaC
Definition: plot_dirc.C:16
Int_t fPdgCode
PDG code of particle.
Int_t fMotherPdgCode
PDG code of the particle with fMotherTrackID.
Double_t energy
Definition: plot_dirc.C:15
PndDskParticle::PndDskParticle ( const PndDskParticle particle)

Copy constructor

Definition at line 61 of file PndDskParticle.cxx.

61  :
62  FairMCPoint(particle.fTrackID, particle.fDetectorID, TVector3(particle.fX, particle.fY, particle.fZ), TVector3(particle.fPx, particle.fPy, particle.fPz), particle.fTime, particle.fLength, particle.fELoss, particle.fEventId),
63  fPdgCode(particle.fPdgCode),
64  fPdgName(particle.fPdgName),
65  fEnergy(particle.fEnergy),
66  fMass(particle.fMass),
70  fExitPosition(particle.fExitPosition),
71  fExitMomentum(particle.fExitMomentum),
72  fExitTime(particle.fExitTime),
73  fExitEnergy(particle.fExitEnergy),
74  fThetaC(particle.fThetaC),
75  fAngIn(particle.fAngIn),
76  fNPhot(particle.fNPhot)
77 {
78 }
Double_t fThetaC
TString fPdgName
PDG name according to fPdgCode.
TVector3 fExitMomentum
Momentum when particle disappears [GeV].
TVector3 fExitPosition
Position when particle disappears [cm].
TString fMotherPdgName
PDG name according to fMotherPdgCode.
Int_t fMotherTrackID
Track ID of the first mother.
Double_t fExitEnergy
Energy when particle disappears [GeV].
Double_t fExitTime
Time when particle disappears [ns].
Double_t fEnergy
Energy [GeV].
Int_t fPdgCode
PDG code of particle.
Int_t fMotherPdgCode
PDG code of the particle with fMotherTrackID.
PndDskParticle::~PndDskParticle ( )
virtual

Destructor

Definition at line 81 of file PndDskParticle.cxx.

82 {
83 }

Member Function Documentation

Double_t PndDskParticle::GetAngIn ( ) const
inline

Definition at line 72 of file PndDskParticle.h.

References fAngIn.

Referenced by PndDskFLGHitProducerIdeal::Exec().

72 { return fAngIn; };
Double_t PndDskParticle::GetEnergy ( ) const
inline

Definition at line 62 of file PndDskParticle.h.

References fEnergy.

62 { return fEnergy; }
Double_t fEnergy
Energy [GeV].
Double_t PndDskParticle::GetExitEnergy ( ) const
inline

Definition at line 69 of file PndDskParticle.h.

References fExitEnergy.

69 { return fExitEnergy; }
Double_t fExitEnergy
Energy when particle disappears [GeV].
TVector3 PndDskParticle::GetExitMomentum ( ) const
inline

Definition at line 67 of file PndDskParticle.h.

References fExitMomentum.

67 { return fExitMomentum; }
TVector3 fExitMomentum
Momentum when particle disappears [GeV].
TVector3 PndDskParticle::GetExitPosition ( ) const
inline

Definition at line 66 of file PndDskParticle.h.

References fExitPosition.

66 { return fExitPosition; }
TVector3 fExitPosition
Position when particle disappears [cm].
Double_t PndDskParticle::GetExitTime ( ) const
inline

Definition at line 68 of file PndDskParticle.h.

References fExitTime.

68 { return fExitTime; }
Double_t fExitTime
Time when particle disappears [ns].
Double_t PndDskParticle::GetMass ( ) const
inline

Definition at line 70 of file PndDskParticle.h.

References fMass.

Referenced by PndDskFLGHitProducerIdeal::Exec().

70 { return fMass;};
Int_t PndDskParticle::GetMotherPdgCode ( ) const
inline

Definition at line 64 of file PndDskParticle.h.

References fMotherPdgCode.

64 { return fMotherPdgCode; }
Int_t fMotherPdgCode
PDG code of the particle with fMotherTrackID.
TString PndDskParticle::GetMotherPdgName ( ) const
inline

Definition at line 65 of file PndDskParticle.h.

References fMotherPdgName.

65 { return fMotherPdgName; }
TString fMotherPdgName
PDG name according to fMotherPdgCode.
Int_t PndDskParticle::GetMotherTrackID ( ) const
inline

Definition at line 63 of file PndDskParticle.h.

References fMotherTrackID.

63 { return fMotherTrackID; }
Int_t fMotherTrackID
Track ID of the first mother.
Int_t PndDskParticle::GetNPhot ( ) const
inline

Definition at line 74 of file PndDskParticle.h.

References fNPhot.

Referenced by PndDskFLGHitProducerIdeal::Exec().

74 { return fNPhot; };
Int_t PndDskParticle::GetPdgCode ( ) const
inline

Accessors

Definition at line 60 of file PndDskParticle.h.

References fPdgCode.

60 { return fPdgCode; }
Int_t fPdgCode
PDG code of particle.
TString PndDskParticle::GetPdgName ( ) const
inline

Definition at line 61 of file PndDskParticle.h.

References fPdgName.

61 { return fPdgName; }
TString fPdgName
PDG name according to fPdgCode.
Double_t PndDskParticle::GetThetaC ( ) const
inline

Definition at line 73 of file PndDskParticle.h.

References fThetaC.

Referenced by PndDskFLGHitProducerIdeal::Exec(), and PndPidCorrelator::GetDskInfo().

73 { return fThetaC; };
Double_t fThetaC
void PndDskParticle::Print ( const Option_t *  opt) const
virtual

Virtual method Print

Screen output of Particle

Definition at line 90 of file PndDskParticle.cxx.

References fX, fY, and fZ.

90  {
91  (void)opt; // to remove "unused" warnings
92  cout << "-I- PndDskParticle: track" << fTrackID
93  << " created in detector " << fDetectorID << endl;
94  cout << " at Position (" << fX << ", " << fY << ", " << fZ
95  << ") cm" << endl;
96  cout << " with Momentum (" << fPx << ", " << fPy << ", " << fPz
97  << ") eV" << endl;
98  cout << " at Time " << fTime << " ns" << endl;
99 }
Double_t fX
Definition: PndCaloDraw.cxx:34
Double_t fZ
Definition: PndCaloDraw.cxx:34
Double_t fY
Definition: PndCaloDraw.cxx:34
void PndDskParticle::SetAngIn ( Double_t  ang)
inline

Modifiers

Definition at line 77 of file PndDskParticle.h.

References fAngIn.

77 { fAngIn= ang; };
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]

Definition at line 106 of file PndDskParticle.cxx.

References fExitEnergy, fExitMomentum, fExitPosition, and fExitTime.

Referenced by PndDsk::ProcessHitsParticle().

108 {
109  fExitPosition = exitPosition;
110  fExitMomentum = exitMomentum;
111  fExitTime = exitTime;
112  fExitEnergy = exitEnergy;
113 }
TVector3 fExitMomentum
Momentum when particle disappears [GeV].
TVector3 fExitPosition
Position when particle disappears [cm].
Double_t fExitEnergy
Energy when particle disappears [GeV].
Double_t fExitTime
Time when particle disappears [ns].
void PndDskParticle::SetNPhot ( Int_t  nPhot)
inline

Definition at line 79 of file PndDskParticle.h.

References fNPhot.

79 { fNPhot = nPhot; };
void PndDskParticle::SetThetaC ( Double_t  theta)
inline

Definition at line 78 of file PndDskParticle.h.

References fThetaC, and theta.

Member Data Documentation

Double_t PndDskParticle::fAngIn
protected

Definition at line 98 of file PndDskParticle.h.

Referenced by GetAngIn(), and SetAngIn().

Double_t PndDskParticle::fEnergy
protected

Energy [GeV].

Definition at line 85 of file PndDskParticle.h.

Referenced by GetEnergy().

Double_t PndDskParticle::fExitEnergy
protected

Energy when particle disappears [GeV].

Definition at line 95 of file PndDskParticle.h.

Referenced by GetExitEnergy(), and SetFinalValues().

TVector3 PndDskParticle::fExitMomentum
protected

Momentum when particle disappears [GeV].

Definition at line 93 of file PndDskParticle.h.

Referenced by GetExitMomentum(), and SetFinalValues().

TVector3 PndDskParticle::fExitPosition
protected

Position when particle disappears [cm].

Definition at line 92 of file PndDskParticle.h.

Referenced by GetExitPosition(), and SetFinalValues().

Double_t PndDskParticle::fExitTime
protected

Time when particle disappears [ns].

Definition at line 94 of file PndDskParticle.h.

Referenced by GetExitTime(), and SetFinalValues().

Double_t PndDskParticle::fMass
protected

Definition at line 86 of file PndDskParticle.h.

Referenced by GetMass().

Int_t PndDskParticle::fMotherPdgCode
protected

PDG code of the particle with fMotherTrackID.

Definition at line 89 of file PndDskParticle.h.

Referenced by GetMotherPdgCode().

TString PndDskParticle::fMotherPdgName
protected

PDG name according to fMotherPdgCode.

Definition at line 90 of file PndDskParticle.h.

Referenced by GetMotherPdgName().

Int_t PndDskParticle::fMotherTrackID
protected

Track ID of the first mother.

Definition at line 88 of file PndDskParticle.h.

Referenced by GetMotherTrackID().

Int_t PndDskParticle::fNPhot
protected

Definition at line 99 of file PndDskParticle.h.

Referenced by GetNPhot(), and SetNPhot().

Int_t PndDskParticle::fPdgCode
protected

PDG code of particle.

Definition at line 79 of file PndDskParticle.h.

Referenced by GetPdgCode().

TString PndDskParticle::fPdgName
protected

PDG name according to fPdgCode.

Definition at line 84 of file PndDskParticle.h.

Referenced by GetPdgName().

Double_t PndDskParticle::fThetaC
protected

Definition at line 97 of file PndDskParticle.h.

Referenced by GetThetaC(), and SetThetaC().


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