1 #ifndef TGenAcceptance_h
2 #define TGenAcceptance_h
4 #include "TGenerator.h"
37 kThetaRange = BIT(14),
41 Bool_t CheckCuts(TLorentzVector *v)
const;
43 Bool_t CheckPtYPhi(Float_t p[3])
const;
44 Bool_t CheckPtYPhi(Float_t pt, Float_t y, Float_t phi)
const;
46 Bool_t CheckPXYZ(Float_t p[3])
const;
47 Bool_t CheckPXYZ(Float_t px, Float_t py, Float_t pz)
const;
54 TGenAcceptance(
const char *name,
const char *title =
"Generator with Acceptance");
59 Float_t GetPtCutLow()
const {
return fPtCutMin;}
60 Float_t GetPtCutHigh()
const {
return fPtCutMax;}
62 Float_t GetEtaCutLow()
const {
return fEtaCutMin;}
63 Float_t GetEtaCutHigh()
const {
return fEtaCutMax;}
65 Float_t GetYCutLow()
const {
return fYCutMin;}
66 Float_t GetYCutHigh()
const {
return fYCutMax;}
72 void SetPtRange(Float_t lowPt, Float_t highPt);
73 void SetEtaRange(Float_t lowEta, Float_t highEta);
74 void SetMomentumRange(Float_t lowP, Float_t highP);
75 void SetYRange(Float_t lowY, Float_t highY);
76 void SetThetaRange(Float_t lowTheta, Float_t highTheta);
77 void SetPhiRange(Float_t lowPhi, Float_t highPhi);