FairRoot/PandaRoot
|
#include <PndFixStepParticleGun.h>
Public Member Functions | |
PndFixStepParticleGun () | |
PndFixStepParticleGun (Int_t pdgid, Int_t mult=1) | |
virtual | ~PndFixStepParticleGun () |
void | SetPDGType (Int_t pdg) |
void | SetMultiplicity (Int_t mult) |
void | SetPRange (Double32_t pmin=0, Double32_t pmax=10, Double32_t pstep=1) |
void | SetPtRange (Double32_t ptmin=0, Double32_t ptmax=10, Double32_t ptstep=1) |
void | SetPhiRange (Double32_t phimin=0, Double32_t phimax=360, Double32_t phistep=1) |
void | SetEtaRange (Double32_t etamin=-5, Double32_t etamax=7, Double32_t etastep=1) |
void | SetYRange (Double32_t ymin=-5, Double32_t ymax=7, Double32_t ystep=1) |
void | SetThetaRange (Double32_t thetamin=0, Double32_t thetamax=90, Double32_t thetastep=1) |
void | SetCosThetaRange (Double32_t costhetamin=-1, Double32_t costhetamax=1, Double32_t costhetastep=0.1) |
void | SetXYZ (Double32_t x=0, Double32_t y=0, Double32_t z=0) |
void | SetBoxXYZ (Double32_t x1=0, Double32_t y1=0, Double32_t x2=0, Double32_t y2=0, Double32_t z=0) |
void | SetDebug (Bool_t debug=0) |
int | GetNEvents () |
Bool_t | Init () |
virtual Bool_t | ReadEvent (FairPrimaryGenerator *primGen) |
Private Member Functions | |
void | CalcActValues (PndRangeValues *val1, PndRangeValues *val2, PndRangeValues *val3) |
bool | IsEndOfRanges (PndRangeValues *val1, PndRangeValues *val2, PndRangeValues *val3) |
ClassDef (PndFixStepParticleGun, 1) | |
Private Attributes | |
Int_t | fPDGType |
Int_t | fMult |
Int_t | fEvent |
Double32_t | fPDGMass |
PndRangeValues | fPt |
PndRangeValues | fPhi |
PndRangeValues | fEta |
PndRangeValues | fRapidity |
PndRangeValues | fP |
PndRangeValues | fTheta |
PndRangeValues | fCosTheta |
Double32_t | fX |
Double32_t | fY |
Double32_t | fZ |
Double32_t | fX1 |
Double32_t | fY1 |
Double32_t | fX2 |
Double32_t | fY2 |
Bool_t | fEtaRangeIsSet |
Bool_t | fYRangeIsSet |
Bool_t | fThetaRangeIsSet |
Bool_t | fCosThetaIsSet |
Bool_t | fPtRangeIsSet |
Bool_t | fPRangeIsSet |
Bool_t | fPointVtxIsSet |
Bool_t | fBoxVtxIsSet |
Bool_t | fDebug |
Bool_t | fDoit |
Bool_t | fFirstRun |
Definition at line 47 of file PndFixStepParticleGun.h.
PndFixStepParticleGun::PndFixStepParticleGun | ( | ) |
Default constructor.
Definition at line 17 of file PndFixStepParticleGun.cxx.
References fEta, fP, fPhi, fPt, fRapidity, fTheta, PndRangeValues::SetStart(), PndRangeValues::SetStep(), and PndRangeValues::SetStop().
PndFixStepParticleGun::PndFixStepParticleGun | ( | Int_t | pdgid, |
Int_t | mult = 1 |
||
) |
Constructor with PDG-ID, multiplicity
pdgid | Particle type (PDG encoding) |
mult | Multiplicity (default is 1) |
Definition at line 34 of file PndFixStepParticleGun.cxx.
References fEta, fP, fPhi, fPt, fRapidity, fTheta, SetPhiRange(), PndRangeValues::SetStart(), PndRangeValues::SetStep(), and PndRangeValues::SetStop().
|
inlinevirtual |
|
private |
Definition at line 167 of file PndFixStepParticleGun.cxx.
References PndRangeValues::fActualValue, fDoit, fEvent, fFirstRun, PndRangeValues::fStart, PndRangeValues::fStep, and PndRangeValues::fStop.
Referenced by ReadEvent().
|
private |
int PndFixStepParticleGun::GetNEvents | ( | ) |
Definition at line 209 of file PndFixStepParticleGun.cxx.
References fCosTheta, fEta, fP, fPhi, fPt, fRapidity, fTheta, and PndRangeValues::GetNSteps().
Referenced by sim_radlength_complete().
Bool_t PndFixStepParticleGun::Init | ( | ) |
Initializer
Definition at line 53 of file PndFixStepParticleGun.cxx.
References fBoxVtxIsSet, fEtaRangeIsSet, fPDGMass, fPDGType, fPhi, fPointVtxIsSet, fPRangeIsSet, fPtRangeIsSet, PndRangeValues::fStart, PndRangeValues::fStop, fThetaRangeIsSet, fYRangeIsSet, and particle.
|
private |
Definition at line 200 of file PndFixStepParticleGun.cxx.
References PndRangeValues::fActualValue, PndRangeValues::fStep, and PndRangeValues::fStop.
Referenced by ReadEvent().
|
virtual |
Creates an event with given type and multiplicity.
primGen | pointer to the PndPrimaryGenerator |
Definition at line 80 of file PndFixStepParticleGun.cxx.
References acos(), CalcActValues(), CAMath::Cos(), eta, PndRangeValues::fActualValue, fCosTheta, fCosThetaIsSet, fDebug, fEta, fEtaRangeIsSet, fP, fPDGMass, fPDGType, fPhi, fPRangeIsSet, fPt, fPtRangeIsSet, fRapidity, fTheta, fThetaRangeIsSet, fX, fY, fYRangeIsSet, fZ, IsEndOfRanges(), phi, printf(), pt(), pz, CAMath::Sin(), CAMath::Sqrt(), CAMath::Tan(), theta, and y.
|
inline |
Definition at line 92 of file PndFixStepParticleGun.h.
References fBoxVtxIsSet, fX1, fX2, fY1, fY2, fZ, and z.
|
inline |
Definition at line 86 of file PndFixStepParticleGun.h.
References fCosTheta, fCosThetaIsSet, fThetaRangeIsSet, PndRangeValues::SetStart(), PndRangeValues::SetStep(), and PndRangeValues::SetStop().
|
inline |
Definition at line 95 of file PndFixStepParticleGun.h.
References fDebug.
Referenced by sim_radlength_complete().
|
inline |
Definition at line 77 of file PndFixStepParticleGun.h.
References fEta, fEtaRangeIsSet, PndRangeValues::SetStart(), PndRangeValues::SetStep(), and PndRangeValues::SetStop().
|
inline |
Definition at line 66 of file PndFixStepParticleGun.h.
|
inline |
Modifiers
Definition at line 64 of file PndFixStepParticleGun.h.
References fPDGType.
Referenced by Mrun_sim1_PndFlatGen(), and sim_radlength_complete().
|
inline |
Definition at line 74 of file PndFixStepParticleGun.h.
References fPhi, PndRangeValues::SetStart(), PndRangeValues::SetStep(), and PndRangeValues::SetStop().
Referenced by Mrun_sim1_PndFlatGen(), PndFixStepParticleGun(), and sim_radlength_complete().
|
inline |
Definition at line 68 of file PndFixStepParticleGun.h.
References fP, fPRangeIsSet, PndRangeValues::SetStart(), PndRangeValues::SetStep(), and PndRangeValues::SetStop().
Referenced by Mrun_sim1_PndFlatGen(), and sim_radlength_complete().
|
inline |
Definition at line 71 of file PndFixStepParticleGun.h.
References fPt, fPtRangeIsSet, PndRangeValues::SetStart(), PndRangeValues::SetStep(), and PndRangeValues::SetStop().
|
inline |
Definition at line 83 of file PndFixStepParticleGun.h.
References fTheta, fThetaRangeIsSet, PndRangeValues::SetStart(), PndRangeValues::SetStep(), and PndRangeValues::SetStop().
Referenced by Mrun_sim1_PndFlatGen(), and sim_radlength_complete().
|
inline |
Definition at line 89 of file PndFixStepParticleGun.h.
References fPointVtxIsSet, fX, fY, fZ, x, y, and z.
|
inline |
Definition at line 80 of file PndFixStepParticleGun.h.
References fRapidity, fYRangeIsSet, PndRangeValues::SetStart(), PndRangeValues::SetStep(), and PndRangeValues::SetStop().
|
private |
Definition at line 137 of file PndFixStepParticleGun.h.
Referenced by Init(), and SetBoxXYZ().
|
private |
Definition at line 125 of file PndFixStepParticleGun.h.
Referenced by GetNEvents(), ReadEvent(), and SetCosThetaRange().
|
private |
Definition at line 132 of file PndFixStepParticleGun.h.
Referenced by ReadEvent(), and SetCosThetaRange().
|
private |
Definition at line 138 of file PndFixStepParticleGun.h.
Referenced by ReadEvent(), and SetDebug().
|
private |
Definition at line 139 of file PndFixStepParticleGun.h.
Referenced by CalcActValues().
|
private |
Definition at line 118 of file PndFixStepParticleGun.h.
Referenced by GetNEvents(), PndFixStepParticleGun(), ReadEvent(), and SetEtaRange().
|
private |
Definition at line 129 of file PndFixStepParticleGun.h.
Referenced by Init(), ReadEvent(), and SetEtaRange().
|
private |
Definition at line 110 of file PndFixStepParticleGun.h.
Referenced by CalcActValues().
|
private |
Definition at line 140 of file PndFixStepParticleGun.h.
Referenced by CalcActValues().
|
private |
Definition at line 109 of file PndFixStepParticleGun.h.
Referenced by SetMultiplicity().
|
private |
Definition at line 122 of file PndFixStepParticleGun.h.
Referenced by GetNEvents(), PndFixStepParticleGun(), ReadEvent(), and SetPRange().
|
private |
Definition at line 112 of file PndFixStepParticleGun.h.
Referenced by Init(), and ReadEvent().
|
private |
Definition at line 108 of file PndFixStepParticleGun.h.
Referenced by Init(), ReadEvent(), and SetPDGType().
|
private |
Definition at line 116 of file PndFixStepParticleGun.h.
Referenced by GetNEvents(), Init(), PndFixStepParticleGun(), ReadEvent(), and SetPhiRange().
|
private |
Definition at line 136 of file PndFixStepParticleGun.h.
|
private |
Definition at line 135 of file PndFixStepParticleGun.h.
Referenced by Init(), ReadEvent(), and SetPRange().
|
private |
Definition at line 114 of file PndFixStepParticleGun.h.
Referenced by GetNEvents(), PndFixStepParticleGun(), ReadEvent(), and SetPtRange().
|
private |
Definition at line 134 of file PndFixStepParticleGun.h.
Referenced by Init(), ReadEvent(), and SetPtRange().
|
private |
Definition at line 120 of file PndFixStepParticleGun.h.
Referenced by GetNEvents(), PndFixStepParticleGun(), ReadEvent(), and SetYRange().
|
private |
Definition at line 124 of file PndFixStepParticleGun.h.
Referenced by GetNEvents(), PndFixStepParticleGun(), ReadEvent(), and SetThetaRange().
|
private |
Definition at line 131 of file PndFixStepParticleGun.h.
Referenced by Init(), ReadEvent(), SetCosThetaRange(), and SetThetaRange().
|
private |
Definition at line 126 of file PndFixStepParticleGun.h.
Referenced by ReadEvent(), and SetXYZ().
|
private |
Definition at line 127 of file PndFixStepParticleGun.h.
Referenced by SetBoxXYZ().
|
private |
Definition at line 127 of file PndFixStepParticleGun.h.
Referenced by SetBoxXYZ().
|
private |
Definition at line 126 of file PndFixStepParticleGun.h.
Referenced by ReadEvent(), and SetXYZ().
|
private |
Definition at line 127 of file PndFixStepParticleGun.h.
Referenced by SetBoxXYZ().
|
private |
Definition at line 127 of file PndFixStepParticleGun.h.
Referenced by SetBoxXYZ().
|
private |
Definition at line 130 of file PndFixStepParticleGun.h.
Referenced by Init(), ReadEvent(), and SetYRange().
|
private |
Definition at line 126 of file PndFixStepParticleGun.h.
Referenced by ReadEvent(), SetBoxXYZ(), and SetXYZ().