30 #ifndef PND_VOLGENERATOR_H 31 #define PND_VOLGENERATOR_H 33 #include "FairGenerator.h" 37 #include "TGeoMatrix.h" 40 class FairPrimaryGenerator;
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;
75 void SetPhiRange(Double32_t phimin = 0, Double32_t phimax = 360)
81 void SetEtaRange(Double32_t etamin = -5, Double32_t etamax = 7)
85 fEtaRangeIsSet = kTRUE;
88 void SetYRange(Double32_t ymin = -5, Double32_t ymax = 7)
99 fThetaRangeIsSet = kTRUE;
106 void SetXYZ(Double32_t x = 0, Double32_t y = 0, Double32_t z = 0)
111 fPointVtxIsSet = kTRUE;
114 void SetVolXYZ(Double32_t x1 = 0, Double32_t y1 = 0, Double32_t x2 = 0, Double32_t y2 = 0, Double32_t z = 0)
121 fVolVtxIsSet = kTRUE;
124 void SetDebug(Bool_t debug = 0) { fDebug = debug; }
146 virtual Bool_t
ReadEvent(FairPrimaryGenerator *primGen);
154 TGeoHMatrix *fCurrentTransMat;
157 Double32_t fPtMin, fPtMax;
158 Double32_t fPhiMin, fPhiMax;
159 Double32_t fEtaMin, fEtaMax;
160 Double32_t fYMin, fYMax;
161 Double32_t fPMin, fPMax;
162 Double32_t fThetaMin, fThetaMax;
163 Double32_t fX, fY, fZ;
164 Double32_t fX1, fY1, fX2, fY2;
166 Bool_t fEtaRangeIsSet;
168 Bool_t fThetaRangeIsSet;
169 Bool_t fCosThetaIsSet;
170 Bool_t fInversePIsSet;
171 Bool_t fPtRangeIsSet;
173 Bool_t fPointVtxIsSet;
virtual ~PndVolGenerator()
void SetVolTarg(Int_t quad=2, Int_t abs=5)
void SetPRange(Double32_t pmin=0, Double32_t pmax=10)
void SetVolXYZ(Double32_t x1=0, Double32_t y1=0, Double32_t x2=0, Double32_t y2=0, Double32_t z=0)
void SetPhiRange(Double32_t phimin=0, Double32_t phimax=360)
void SetEtaRange(Double32_t etamin=-5, Double32_t etamax=7)
void SetDebug(Bool_t debug=0)
void SetYRange(Double32_t ymin=-5, Double32_t ymax=7)
virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen)
void SetVolTgFc(Int_t quad=2, TF1 *func=nullptr)
void SetPtRange(Double32_t ptmin=0, Double32_t ptmax=10)
void SetMultiplicity(Int_t mult)
void SetThetaRange(Double32_t thetamin=0, Double32_t thetamax=90)
void SetXYZ(Double32_t x=0, Double32_t y=0, Double32_t z=0)
void SetPDGType(Int_t pdg)