21 #ifndef Pnd_FLATPARTICLEGENERATOR_H 22 #define Pnd_FLATPARTICLEGENERATOR_H 28 class FairPrimaryGenerator;
44 void SetStop(Double32_t val) { fStop = val; };
45 void SetStep(Double32_t val) { fStep = val; };
51 return ((fStop - fStart) / fStep) + 1;
80 void SetPRange(Double32_t pmin = 0, Double32_t pmax = 10, Double32_t pstep = 1)
88 void SetPtRange(Double32_t ptmin = 0, Double32_t ptmax = 10, Double32_t ptstep = 1)
93 fPtRangeIsSet = kTRUE;
96 void SetPhiRange(Double32_t phimin = 0, Double32_t phimax = 360, Double32_t phistep = 1)
98 fPhi.SetStart(phimin);
100 fPhi.SetStep(phistep);
103 void SetEtaRange(Double32_t etamin = -5, Double32_t etamax = 7, Double32_t etastep = 1)
105 fEta.SetStart(etamin);
106 fEta.SetStop(etamax);
107 fEta.SetStep(etastep);
108 fEtaRangeIsSet = kTRUE;
111 void SetYRange(Double32_t ymin = -5, Double32_t ymax = 7, Double32_t ystep = 1)
113 fRapidity.SetStart(ymin);
114 fRapidity.SetStop(ymax);
115 fRapidity.SetStep(ystep);
116 fYRangeIsSet = kTRUE;
119 void SetThetaRange(Double32_t thetamin = 0, Double32_t thetamax = 90, Double32_t thetastep = 1)
121 fTheta.SetStart(thetamin);
122 fTheta.SetStop(thetamax);
123 fTheta.SetStep(thetastep);
124 fThetaRangeIsSet = kTRUE;
127 void SetCosThetaRange(Double32_t costhetamin = -1, Double32_t costhetamax = 1, Double32_t costhetastep = 0.1)
129 fCosTheta.SetStart(costhetamin);
130 fCosTheta.SetStop(costhetamax);
131 fCosTheta.SetStep(costhetastep);
132 fCosThetaIsSet = kTRUE;
133 fThetaRangeIsSet = kTRUE;
136 void SetXYZ(Double32_t x = 0, Double32_t y = 0, Double32_t z = 0)
141 fPointVtxIsSet = kTRUE;
144 void SetBoxXYZ(Double32_t x1 = 0, Double32_t y1 = 0, Double32_t x2 = 0, Double32_t y2 = 0, Double32_t z = 0)
151 fBoxVtxIsSet = kTRUE;
154 void SetDebug(Bool_t debug = 0) { fDebug = debug; }
164 virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen);
185 Double32_t fX, fY, fZ;
186 Double32_t fX1, fY1, fX2, fY2;
188 Bool_t fEtaRangeIsSet;
190 Bool_t fThetaRangeIsSet;
191 Bool_t fCosThetaIsSet;
193 Bool_t fPtRangeIsSet;
195 Bool_t fPointVtxIsSet;
void SetStep(Double32_t val)
void SetPhiRange(Double32_t phimin=0, Double32_t phimax=360, Double32_t phistep=1)
void SetThetaRange(Double32_t thetamin=0, Double32_t thetamax=90, Double32_t thetastep=1)
void SetPRange(Double32_t pmin=0, Double32_t pmax=10, Double32_t pstep=1)
virtual ~PndFixStepParticleGun()
void SetEtaRange(Double32_t etamin=-5, Double32_t etamax=7, Double32_t etastep=1)
void SetPtRange(Double32_t ptmin=0, Double32_t ptmax=10, Double32_t ptstep=1)
PndRangeValues(Double32_t start=0, Double32_t stop=0, Double32_t step=1)
virtual ~PndRangeValues()
void SetStop(Double32_t val)
void SetYRange(Double32_t ymin=-5, Double32_t ymax=7, Double32_t ystep=1)
void SetXYZ(Double32_t x=0, Double32_t y=0, Double32_t z=0)
ClassDef(PndRangeValues, 1)
void SetDebug(Bool_t debug=0)
void SetStart(Double32_t val)
virtual Double32_t GetStep()
void SetMultiplicity(Int_t mult)
void SetPDGType(Int_t pdg)
void SetCosThetaRange(Double32_t costhetamin=-1, Double32_t costhetamax=1, Double32_t costhetastep=0.1)
void SetBoxXYZ(Double32_t x1=0, Double32_t y1=0, Double32_t x2=0, Double32_t y2=0, Double32_t z=0)
void SetActualValue(Double32_t val)