13 #ifndef FAIR_TRAJ_FILTER_H
14 #define FAIR_TRAJ_FILTER_H 1
17 #include <TGeoTrack.h>
92 Double_t fRapidityMin;
93 Double_t fRapidityMax;
103 Double_t fStepSizeMin;
108 TClonesArray* fTrackCollection;
110 TGeoTrack* fCurrentTrk;
113 TGeoTrack*
AddTrack(Int_t trackId, Int_t pdgCode);
118 void Init(TString brName =
"GeoTracks", TString folderName =
"MCGeoTrack");
142 Double_t vyMin = -2000.,
143 Double_t vzMin = -2000.,
144 Double_t vxMax = 2000.,
145 Double_t vyMax = 2000.,
146 Double_t vzMax = 2000.);
157 Double_t thetaMin = 0.,
158 Double_t phiMin = 0.,
159 Double_t pMax = 1e10,
160 Double_t thetaMax = TMath::Pi(),
161 Double_t phiMax = TMath::TwoPi());
172 Double_t pyMin = -1e10,
173 Double_t pzMin = -1e10,
174 Double_t pxMax = 1e10,
175 Double_t pyMax = 1e10,
176 Double_t pzMax = 1e10);
185 Double_t ptMax = 1e10,
186 Double_t rapidityMin = -1e10,
187 Double_t rapidityMax = 1e10);
194 void SetEnergyCut(Double_t etotMin = 0., Double_t etotMax = 1e10);
224 Double_t& vzMax)
const;
235 Double_t& phiMax)
const;
246 Double_t& pzMax)
const;
252 void GetPtRapidityCut(Double_t& ptMin, Double_t& ptMax, Double_t& rapidityMin, Double_t& rapidityMax)
const;
258 void GetEnergyCut(Double_t& etotMin, Double_t& etotMax)
const;
void SetStepSizeCut(Double_t stepSizeMin=0.)
void GetMomentumCutP(Double_t &pMin, Double_t &thetaMin, Double_t &phiMin, Double_t &pMax, Double_t &thetaMax, Double_t &phiMax) const
void SetMomentumCutP(Double_t pMin=0., Double_t thetaMin=0., Double_t phiMin=0., Double_t pMax=1e10, Double_t thetaMax=TMath::Pi(), Double_t phiMax=TMath::TwoPi())
Double_t GetStepSizeCut() const
Bool_t IsAccepted(const TParticle *p) const
void SetMomentumCutD(Double_t pxMin=-1e10, Double_t pyMin=-1e10, Double_t pzMin=-1e10, Double_t pxMax=1e10, Double_t pyMax=1e10, Double_t pzMax=1e10)
ClassDef(FairTrajFilter, 1)
virtual ~FairTrajFilter()
void GetMomentumCutD(Double_t &pxMin, Double_t &pyMin, Double_t &pzMin, Double_t &pxMax, Double_t &pyMax, Double_t &pzMax) const
Bool_t IsPrimariesStored() const
Bool_t IsSecondariesStored() const
TGeoTrack * GetCurrentTrk()
TGeoTrack * GetTrack(Int_t trackId)
TGeoTrack * CheckAddTrack(Int_t trackId, TParticle *p)
void SetStoreSecondaries(Bool_t storeSec=kTRUE)
static FairTrajFilter * Instance()
void SetStorePrimaries(Bool_t storePrim=kTRUE)
void GetEnergyCut(Double_t &etotMin, Double_t &etotMax) const
TGeoTrack * AddTrack(Int_t trackId, Int_t pdgCode)
void SetVertexCut(Double_t vxMin=-2000., Double_t vyMin=-2000., Double_t vzMin=-2000., Double_t vxMax=2000., Double_t vyMax=2000., Double_t vzMax=2000.)
void GetPtRapidityCut(Double_t &ptMin, Double_t &ptMax, Double_t &rapidityMin, Double_t &rapidityMax) const
void SetEnergyCut(Double_t etotMin=0., Double_t etotMax=1e10)
void GetVertexCut(Double_t &vxMin, Double_t &vyMin, Double_t &vzMin, Double_t &vxMax, Double_t &vyMax, Double_t &vzMax) const
void SetPtRapidityCut(Double_t ptMin=0., Double_t ptMax=1e10, Double_t rapidityMin=-1e10, Double_t rapidityMax=1e10)
void Init(TString brName="GeoTracks", TString folderName="MCGeoTrack")