17 #ifndef PND_BOXGENERATOR_H 18 #define PND_BOXGENERATOR_H 23 class FairPrimaryGenerator;
44 void SetPRange(Double32_t pmin = 0, Double32_t pmax = 10)
51 void SetPtRange(Double32_t ptmin = 0, Double32_t ptmax = 10)
55 fPtRangeIsSet = kTRUE;
58 void SetPhiRange(Double32_t phimin = 0, Double32_t phimax = 360)
64 void SetEtaRange(Double32_t etamin = -5, Double32_t etamax = 7)
68 fEtaRangeIsSet = kTRUE;
71 void SetYRange(Double32_t ymin = -5, Double32_t ymax = 7)
82 fThetaRangeIsSet = kTRUE;
89 void SetXYZ(Double32_t x = 0, Double32_t y = 0, Double32_t z = 0)
94 fPointVtxIsSet = kTRUE;
97 void SetBoxXYZ(Double32_t x1 = 0, Double32_t y1 = 0, Double32_t x2 = 0, Double32_t y2 = 0, Double32_t z = 0)
104 fBoxVtxIsSet = kTRUE;
107 void SetDebug(Bool_t debug = 0) { fDebug = debug; }
115 virtual Bool_t
ReadEvent(FairPrimaryGenerator *primGen);
122 Double32_t fPtMin, fPtMax;
123 Double32_t fPhiMin, fPhiMax;
124 Double32_t fEtaMin, fEtaMax;
125 Double32_t fYMin, fYMax;
126 Double32_t fPMin, fPMax;
127 Double32_t fThetaMin, fThetaMax;
128 Double32_t fX, fY, fZ;
129 Double32_t fX1, fY1, fX2, fY2;
131 Bool_t fEtaRangeIsSet;
133 Bool_t fThetaRangeIsSet;
134 Bool_t fCosThetaIsSet;
135 Bool_t fInversePIsSet;
136 Bool_t fPtRangeIsSet;
138 Bool_t fPointVtxIsSet;
void SetPDGType(Int_t pdg)
void SetThetaRange(Double32_t thetamin=0, Double32_t thetamax=90)
void SetBoxXYZ(Double32_t x1=0, Double32_t y1=0, Double32_t x2=0, Double32_t y2=0, Double32_t z=0)
void SetYRange(Double32_t ymin=-5, Double32_t ymax=7)
void SetXYZ(Double32_t x=0, Double32_t y=0, Double32_t z=0)
virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen)
void SetEtaRange(Double32_t etamin=-5, Double32_t etamax=7)
void SetPtRange(Double32_t ptmin=0, Double32_t ptmax=10)
void SetMultiplicity(Int_t mult)
void SetDebug(Bool_t debug=0)
void SetPRange(Double32_t pmin=0, Double32_t pmax=10)
virtual ~PndBoxGenerator()
void SetPhiRange(Double32_t phimin=0, Double32_t phimax=360)