34 #ifndef FAIR_BOXGENERATOR_H
35 #define FAIR_BOXGENERATOR_H
61 void SetPRange(Double32_t pmin = 0, Double32_t pmax = 10)
68 void SetPtRange(Double32_t ptmin = 0, Double32_t ptmax = 10)
72 fPtRangeIsSet = kTRUE;
79 fEkinRangeIsSet = kTRUE;
82 void SetPhiRange(Double32_t phimin = 0, Double32_t phimax = 360)
88 void SetEtaRange(Double32_t etamin = -5, Double32_t etamax = 7)
92 fEtaRangeIsSet = kTRUE;
95 void SetYRange(Double32_t ymin = -5, Double32_t ymax = 7)
104 fThetaMin = thetamin;
105 fThetaMax = thetamax;
106 fThetaRangeIsSet = kTRUE;
111 void SetXYZ(Double32_t x = 0, Double32_t y = 0, Double32_t z = 0);
113 void SetBoxXYZ(Double32_t x1 = 0, Double32_t y1 = 0, Double32_t x2 = 0, Double32_t y2 = 0, Double32_t z = 0);
137 Double32_t fPtMin, fPtMax;
138 Double32_t fPhiMin, fPhiMax;
139 Double32_t fEtaMin, fEtaMax;
140 Double32_t fYMin, fYMax;
141 Double32_t fPMin, fPMax;
142 Double32_t fThetaMin, fThetaMax;
143 Double32_t fEkinMin, fEkinMax;
145 Bool_t fEtaRangeIsSet;
147 Bool_t fThetaRangeIsSet;
148 Bool_t fCosThetaIsSet;
150 Bool_t fPtRangeIsSet;
152 Bool_t fEkinRangeIsSet;
void SetPtRange(Double32_t ptmin=0, Double32_t ptmax=10)
void SetEkinRange(Double32_t kmin=0, Double32_t kmax=10)
void SetYRange(Double32_t ymin=-5, Double32_t ymax=7)
void SetPRange(Double32_t pmin=0, Double32_t pmax=10)
void SetEtaRange(Double32_t etamin=-5, Double32_t etamax=7)
virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen)
void SetXYZ(Double32_t x=0, Double32_t y=0, Double32_t z=0)
virtual FairGenerator * CloneGenerator() const
virtual ~FairBoxGenerator()
void SetBoxXYZ(Double32_t x1=0, Double32_t y1=0, Double32_t x2=0, Double32_t y2=0, Double32_t z=0)
void SetThetaRange(Double32_t thetamin=0, Double32_t thetamax=90)
FairBoxGenerator & operator=(const FairBoxGenerator &)=default
void SetPhiRange(Double32_t phimin=0, Double32_t phimax=360)