EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <EicRoot/blob/master/base/FairTrajFilter.h>
Public Member Functions | |
FairTrajFilter () | |
virtual | ~FairTrajFilter () |
ClassDef (FairTrajFilter, 1) | |
TGeoTrack * | AddTrack (Int_t trackId, Int_t pdgCode) |
TGeoTrack * | AddTrack (TParticle *p) |
TGeoTrack * | GetCurrentTrk () |
void | Init (TString brName="GeoTracks", TString folderName="MCGeoTrack") |
void | Reset () |
Bool_t | IsAccepted (const TParticle *p) const |
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 | 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()) |
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) |
void | SetPtRapidityCut (Double_t ptMin=0., Double_t ptMax=1e10, Double_t rapidityMin=-1e10, Double_t rapidityMax=1e10) |
void | SetEnergyCut (Double_t etotMin=0., Double_t etotMax=1e10) |
void | SetStorePrimaries (Bool_t storePrim=kTRUE) |
void | SetStoreSecondaries (Bool_t storeSec=kTRUE) |
void | SetStepSizeCut (Double_t stepSizeMin=0.) |
void | GetVertexCut (Double_t &vxMin, Double_t &vyMin, Double_t &vzMin, Double_t &vxMax, Double_t &vyMax, Double_t &vzMax) const |
void | GetMomentumCutP (Double_t &pMin, Double_t &thetaMin, Double_t &phiMin, Double_t &pMax, Double_t &thetaMax, Double_t &phiMax) const |
void | GetMomentumCutD (Double_t &pxMin, Double_t &pyMin, Double_t &pzMin, Double_t &pxMax, Double_t &pyMax, Double_t &pzMax) const |
void | GetPtRapidityCut (Double_t &ptMin, Double_t &ptMax, Double_t &rapidityMin, Double_t &rapidityMax) const |
void | GetEnergyCut (Double_t &etotMin, Double_t &etotMax) const |
Bool_t | IsPrimariesStored () const |
Bool_t | IsSecondariesStored () const |
Double_t | GetStepSizeCut () const |
TGeoTrack * | GetTrack (Int_t trackId) |
Static Public Member Functions | |
static FairTrajFilter * | Instance () |
Private Member Functions | |
FairTrajFilter (const FairTrajFilter &) | |
FairTrajFilter & | operator= (const FairTrajFilter &) |
Private Attributes | |
Double_t | fVxMin |
Double_t | fVxMax |
Double_t | fVyMin |
Double_t | fVyMax |
Double_t | fVzMin |
Double_t | fVzMax |
Double_t | fPMin |
Double_t | fPMax |
Double_t | fThetaMin |
Double_t | fThetaMax |
Double_t | fPhiMin |
Double_t | fPhiMax |
Double_t | fPxMin |
Double_t | fPxMax |
Double_t | fPyMin |
Double_t | fPyMax |
Double_t | fPzMin |
Double_t | fPzMax |
Double_t | fPtMin |
Double_t | fPtMax |
Double_t | fRapidityMin |
Double_t | fRapidityMax |
Int_t | fKinCutType |
Double_t | fEtotMin |
Double_t | fEtotMax |
Bool_t | fStorePrim |
Bool_t | fStoreSec |
Double_t | fStepSizeMin |
TClonesArray * | fTrackCollection |
TGeoTrack * | fCurrentTrk |
Static Private Attributes | |
static FairTrajFilter * | fgInstance |
The filter for storing of the trajectories. This singleton class controls storing of trajectories in the gGeoManager list during the simulation. It is created, if FairRun::SetStoreTraj(kTRUE) was called in the run macro before the initialisation. The cuts should be applied after initialisation and before run via FairTrajFilter::Instance()->Set...Cut(...) methods. Three modes of momentum cut (phase space, polar and decart reference systems), are self-excluded. The last that was set, is applied in the simulation. All other cuts are combined together.
Definition at line 37 of file FairTrajFilter.h.
View newest version in sPHENIX GitHub at line 37 of file FairTrajFilter.h
FairTrajFilter::FairTrajFilter | ( | ) |
Default constructor. Creates the singleton object of FairTrajFilter class. The pointer to this object can be reached via FairTrajFilter::Instance().
Definition at line 30 of file FairTrajFilter.cxx.
View newest version in sPHENIX GitHub at line 30 of file FairTrajFilter.cxx
References fgInstance.
|
virtual |
Destructor.
Definition at line 72 of file FairTrajFilter.cxx.
View newest version in sPHENIX GitHub at line 72 of file FairTrajFilter.cxx
References fgInstance.
|
private |
TGeoTrack * FairTrajFilter::AddTrack | ( | Int_t | trackId, |
Int_t | pdgCode | ||
) |
Definition at line 296 of file FairTrajFilter.cxx.
View newest version in sPHENIX GitHub at line 296 of file FairTrajFilter.cxx
References fCurrentTrk, and fTrackCollection.
Referenced by FairMCApplication::PreTrack().
TGeoTrack * FairTrajFilter::AddTrack | ( | TParticle * | p | ) |
Definition at line 306 of file FairTrajFilter.cxx.
View newest version in sPHENIX GitHub at line 306 of file FairTrajFilter.cxx
References fCurrentTrk, and fTrackCollection.
FairTrajFilter::ClassDef | ( | FairTrajFilter | , |
1 | |||
) |
Class definition.
|
inline |
Definition at line 112 of file FairTrajFilter.h.
View newest version in sPHENIX GitHub at line 112 of file FairTrajFilter.h
References fCurrentTrk.
Referenced by FairMCStack::Exec(), and FairMCApplication::Stepping().
void FairTrajFilter::GetEnergyCut | ( | Double_t & | etotMin, |
Double_t & | etotMax | ||
) | const |
This is the getter for the total energy cut.
References | to the variables where return values should be stored. |
Definition at line 289 of file FairTrajFilter.cxx.
View newest version in sPHENIX GitHub at line 289 of file FairTrajFilter.cxx
void FairTrajFilter::GetMomentumCutD | ( | Double_t & | pxMin, |
Double_t & | pyMin, | ||
Double_t & | pzMin, | ||
Double_t & | pxMax, | ||
Double_t & | pyMax, | ||
Double_t & | pzMax | ||
) | const |
This is the getter for the momentum cut (decart reference system).
References | to the variables where return values should be stored. |
Definition at line 267 of file FairTrajFilter.cxx.
View newest version in sPHENIX GitHub at line 267 of file FairTrajFilter.cxx
References fPxMax, fPxMin, fPyMax, fPyMin, fPzMax, and fPzMin.
void FairTrajFilter::GetMomentumCutP | ( | Double_t & | pMin, |
Double_t & | thetaMin, | ||
Double_t & | phiMin, | ||
Double_t & | pMax, | ||
Double_t & | thetaMax, | ||
Double_t & | phiMax | ||
) | const |
This is the getter for the momentum cut (polar reference system).
References | to the variables where return values should be stored. |
Definition at line 255 of file FairTrajFilter.cxx.
View newest version in sPHENIX GitHub at line 255 of file FairTrajFilter.cxx
References fPhiMax, fPhiMin, fPMax, fPMin, fThetaMax, and fThetaMin.
void FairTrajFilter::GetPtRapidityCut | ( | Double_t & | ptMin, |
Double_t & | ptMax, | ||
Double_t & | rapidityMin, | ||
Double_t & | rapidityMax | ||
) | const |
This is the getter for the space phase cut.
References | to the variables where return values should be stored. |
Definition at line 279 of file FairTrajFilter.cxx.
View newest version in sPHENIX GitHub at line 279 of file FairTrajFilter.cxx
References fPtMax, fPtMin, fRapidityMax, and fRapidityMin.
|
inline |
This is the getter for the step size cut.
Definition at line 249 of file FairTrajFilter.h.
View newest version in sPHENIX GitHub at line 249 of file FairTrajFilter.h
References fStepSizeMin.
Referenced by FairMCApplication::Stepping().
TGeoTrack * FairTrajFilter::GetTrack | ( | Int_t | trackId | ) |
Definition at line 321 of file FairTrajFilter.cxx.
View newest version in sPHENIX GitHub at line 321 of file FairTrajFilter.cxx
References fTrackCollection.
void FairTrajFilter::GetVertexCut | ( | Double_t & | vxMin, |
Double_t & | vyMin, | ||
Double_t & | vzMin, | ||
Double_t & | vxMax, | ||
Double_t & | vyMax, | ||
Double_t & | vzMax | ||
) | const |
This is the getter for the vertex cut.
References | to the variables where return values should be stored. |
Definition at line 243 of file FairTrajFilter.cxx.
View newest version in sPHENIX GitHub at line 243 of file FairTrajFilter.cxx
References fVxMax, fVxMin, fVyMax, fVyMin, fVzMax, and fVzMin.
void FairTrajFilter::Init | ( | TString | brName = "GeoTracks" , |
TString | folderName = "MCGeoTrack" |
||
) |
Definition at line 77 of file FairTrajFilter.cxx.
View newest version in sPHENIX GitHub at line 77 of file FairTrajFilter.cxx
References fTrackCollection, FairRootManager::Instance(), and FairRootManager::Register().
Referenced by FairRunAna::Init(), and FairMCApplication::InitGeometry().
|
static |
This function is used to access the methods of the class.
Referenced by FairRunAna::Init(), FairMCStack::Init(), FairMCApplication::InitGeometry(), FairMCApplication::InitMC(), FairRunAna::Run(), EicRunAna::RunCoreProcessNextEvent(), EicRunSim::RunCoreStart(), FairRunAna::RunMixed(), and FairRunAna::RunTSBuffers().
Bool_t FairTrajFilter::IsAccepted | ( | const TParticle * | p | ) | const |
This function applies all availible cuts on different variables.
p | - pointer to the TParticle object. |
Definition at line 89 of file FairTrajFilter.cxx.
View newest version in sPHENIX GitHub at line 89 of file FairTrajFilter.cxx
References fEtotMax, fEtotMin, fKinCutType, fPhiMax, fPhiMin, fPMax, fPMin, fPtMax, fPtMin, fPxMax, fPxMin, fPyMax, fPyMin, fPzMax, fPzMin, fRapidityMax, fRapidityMin, fStorePrim, fStoreSec, fThetaMax, fThetaMin, fVxMax, fVxMin, fVyMax, fVyMin, fVzMax, and fVzMin.
Referenced by FairMCApplication::PreTrack().
|
inline |
This is the getter for flag of storing of primaries.
Definition at line 236 of file FairTrajFilter.h.
View newest version in sPHENIX GitHub at line 236 of file FairTrajFilter.h
References fStorePrim.
|
inline |
This is the getter for flag of storing of secondaries.
Definition at line 242 of file FairTrajFilter.h.
View newest version in sPHENIX GitHub at line 242 of file FairTrajFilter.h
References fStoreSec.
|
private |
void FairTrajFilter::Reset | ( | ) |
Definition at line 84 of file FairTrajFilter.cxx.
View newest version in sPHENIX GitHub at line 84 of file FairTrajFilter.cxx
References fTrackCollection.
Referenced by FairMCApplication::FinishEvent(), FairRunAna::Run(), EicRunAna::RunCoreProcessNextEvent(), FairRunAna::RunMixed(), and FairRunAna::RunTSBuffers().
void FairTrajFilter::SetEnergyCut | ( | Double_t | etotMin = 0. , |
Double_t | etotMax = 1e10 |
||
) |
This function enables the cut on total energy.
Total | energy range. Only particles with total energy value inside this range will be stored. Deafult values - whole energy range. |
Definition at line 220 of file FairTrajFilter.cxx.
View newest version in sPHENIX GitHub at line 220 of file FairTrajFilter.cxx
void FairTrajFilter::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 |
||
) |
This function enables the momentum cut (decart reference system). Three modes of momentum cut (phase space, polar and decart reference systems), are self-excluded. The last that was set, is applied in the simulation.
The | region in momentum space (decart reference system). Only particles inside this region will be stored. Default values - whole momentum range. |
Definition at line 185 of file FairTrajFilter.cxx.
View newest version in sPHENIX GitHub at line 185 of file FairTrajFilter.cxx
References fKinCutType, fPxMax, fPxMin, fPyMax, fPyMin, fPzMax, and fPzMin.
void FairTrajFilter::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() |
||
) |
This function enables the momentum cut (polar reference system). Three modes of momentum cut (phase space, polar and decart reference systems), are self-excluded. The last that was set, is applied in the simulation.
The | region in momentum space (polar reference system). Only particles inside this region will be stored. Default values - whole momentum range. |
Definition at line 165 of file FairTrajFilter.cxx.
View newest version in sPHENIX GitHub at line 165 of file FairTrajFilter.cxx
References fKinCutType, fPhiMax, fPhiMin, fPMax, fPMin, fThetaMax, fThetaMin, and Acts::Test::phiMin.
void FairTrajFilter::SetPtRapidityCut | ( | Double_t | ptMin = 0. , |
Double_t | ptMax = 1e10 , |
||
Double_t | rapidityMin = -1e10 , |
||
Double_t | rapidityMax = 1e10 |
||
) |
This function enables the cut in phase space (pt-rapidity).
The | region in phase space (pt-rapidity). Only particles inside this region will be stored. Default values - whole pt-rapidity range. |
Definition at line 203 of file FairTrajFilter.cxx.
View newest version in sPHENIX GitHub at line 203 of file FairTrajFilter.cxx
References fKinCutType, fPtMax, fPtMin, fRapidityMax, and fRapidityMin.
void FairTrajFilter::SetStepSizeCut | ( | Double_t | stepSizeMin = 0. | ) |
This function controls the process of adding the points to the trajectory.
stepSizeMin | - minimum value of step size, wich will be added to the trajectory. |
Definition at line 232 of file FairTrajFilter.cxx.
View newest version in sPHENIX GitHub at line 232 of file FairTrajFilter.cxx
References fStepSizeMin.
|
inline |
This function controls the storing of primaries.
storePrim | - boolean flag to control the storing of primaries. |
Definition at line 183 of file FairTrajFilter.h.
View newest version in sPHENIX GitHub at line 183 of file FairTrajFilter.h
References fStorePrim.
Referenced by EicRunSim::RunCoreStart().
|
inline |
This function controls the storing of secondaries.
storeSec | - boolean flag to control the storing of secondaries. |
Definition at line 189 of file FairTrajFilter.h.
View newest version in sPHENIX GitHub at line 189 of file FairTrajFilter.h
References fStoreSec.
Referenced by EicRunSim::RunCoreStart().
void FairTrajFilter::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. |
||
) |
This function enables the vertex cut. Three modes of momentum cut (phase space, polar and decart reference systems), are self-excluded. The last that was set, is applied in the simulation.
Box | in coordinate space. Only trajectories, created inside this box will be stored. Default values - the cave dimensions. |
Definition at line 145 of file FairTrajFilter.cxx.
View newest version in sPHENIX GitHub at line 145 of file FairTrajFilter.cxx
References fVxMax, fVxMin, fVyMax, fVyMin, fVzMax, and fVzMin.
|
private |
Definition at line 107 of file FairTrajFilter.h.
View newest version in sPHENIX GitHub at line 107 of file FairTrajFilter.h
Referenced by AddTrack(), and GetCurrentTrk().
|
private |
Definition at line 95 of file FairTrajFilter.h.
View newest version in sPHENIX GitHub at line 95 of file FairTrajFilter.h
Referenced by GetEnergyCut(), IsAccepted(), and SetEnergyCut().
|
private |
Definition at line 94 of file FairTrajFilter.h.
View newest version in sPHENIX GitHub at line 94 of file FairTrajFilter.h
Referenced by GetEnergyCut(), IsAccepted(), and SetEnergyCut().
|
staticprivate |
Definition at line 64 of file FairTrajFilter.h.
View newest version in sPHENIX GitHub at line 64 of file FairTrajFilter.h
Referenced by FairTrajFilter(), and ~FairTrajFilter().
|
private |
Definition at line 92 of file FairTrajFilter.h.
View newest version in sPHENIX GitHub at line 92 of file FairTrajFilter.h
Referenced by IsAccepted(), SetMomentumCutD(), SetMomentumCutP(), and SetPtRapidityCut().
|
private |
Definition at line 78 of file FairTrajFilter.h.
View newest version in sPHENIX GitHub at line 78 of file FairTrajFilter.h
Referenced by GetMomentumCutP(), IsAccepted(), and SetMomentumCutP().
|
private |
Definition at line 77 of file FairTrajFilter.h.
View newest version in sPHENIX GitHub at line 77 of file FairTrajFilter.h
Referenced by GetMomentumCutP(), IsAccepted(), and SetMomentumCutP().
|
private |
Definition at line 74 of file FairTrajFilter.h.
View newest version in sPHENIX GitHub at line 74 of file FairTrajFilter.h
Referenced by GetMomentumCutP(), IsAccepted(), and SetMomentumCutP().
|
private |
Definition at line 73 of file FairTrajFilter.h.
View newest version in sPHENIX GitHub at line 73 of file FairTrajFilter.h
Referenced by GetMomentumCutP(), IsAccepted(), and SetMomentumCutP().
|
private |
Definition at line 88 of file FairTrajFilter.h.
View newest version in sPHENIX GitHub at line 88 of file FairTrajFilter.h
Referenced by GetPtRapidityCut(), IsAccepted(), and SetPtRapidityCut().
|
private |
Definition at line 87 of file FairTrajFilter.h.
View newest version in sPHENIX GitHub at line 87 of file FairTrajFilter.h
Referenced by GetPtRapidityCut(), IsAccepted(), and SetPtRapidityCut().
|
private |
Definition at line 81 of file FairTrajFilter.h.
View newest version in sPHENIX GitHub at line 81 of file FairTrajFilter.h
Referenced by GetMomentumCutD(), IsAccepted(), and SetMomentumCutD().
|
private |
Definition at line 80 of file FairTrajFilter.h.
View newest version in sPHENIX GitHub at line 80 of file FairTrajFilter.h
Referenced by GetMomentumCutD(), IsAccepted(), and SetMomentumCutD().
|
private |
Definition at line 83 of file FairTrajFilter.h.
View newest version in sPHENIX GitHub at line 83 of file FairTrajFilter.h
Referenced by GetMomentumCutD(), IsAccepted(), and SetMomentumCutD().
|
private |
Definition at line 82 of file FairTrajFilter.h.
View newest version in sPHENIX GitHub at line 82 of file FairTrajFilter.h
Referenced by GetMomentumCutD(), IsAccepted(), and SetMomentumCutD().
|
private |
Definition at line 85 of file FairTrajFilter.h.
View newest version in sPHENIX GitHub at line 85 of file FairTrajFilter.h
Referenced by GetMomentumCutD(), IsAccepted(), and SetMomentumCutD().
|
private |
Definition at line 84 of file FairTrajFilter.h.
View newest version in sPHENIX GitHub at line 84 of file FairTrajFilter.h
Referenced by GetMomentumCutD(), IsAccepted(), and SetMomentumCutD().
|
private |
Definition at line 90 of file FairTrajFilter.h.
View newest version in sPHENIX GitHub at line 90 of file FairTrajFilter.h
Referenced by GetPtRapidityCut(), IsAccepted(), and SetPtRapidityCut().
|
private |
Definition at line 89 of file FairTrajFilter.h.
View newest version in sPHENIX GitHub at line 89 of file FairTrajFilter.h
Referenced by GetPtRapidityCut(), IsAccepted(), and SetPtRapidityCut().
|
private |
Definition at line 100 of file FairTrajFilter.h.
View newest version in sPHENIX GitHub at line 100 of file FairTrajFilter.h
Referenced by GetStepSizeCut(), and SetStepSizeCut().
|
private |
Definition at line 97 of file FairTrajFilter.h.
View newest version in sPHENIX GitHub at line 97 of file FairTrajFilter.h
Referenced by IsAccepted(), IsPrimariesStored(), and SetStorePrimaries().
|
private |
Definition at line 98 of file FairTrajFilter.h.
View newest version in sPHENIX GitHub at line 98 of file FairTrajFilter.h
Referenced by IsAccepted(), IsSecondariesStored(), and SetStoreSecondaries().
|
private |
Definition at line 76 of file FairTrajFilter.h.
View newest version in sPHENIX GitHub at line 76 of file FairTrajFilter.h
Referenced by GetMomentumCutP(), IsAccepted(), and SetMomentumCutP().
|
private |
Definition at line 75 of file FairTrajFilter.h.
View newest version in sPHENIX GitHub at line 75 of file FairTrajFilter.h
Referenced by GetMomentumCutP(), IsAccepted(), and SetMomentumCutP().
|
private |
collection of tracks
Definition at line 105 of file FairTrajFilter.h.
View newest version in sPHENIX GitHub at line 105 of file FairTrajFilter.h
Referenced by AddTrack(), GetTrack(), Init(), and Reset().
|
private |
Definition at line 67 of file FairTrajFilter.h.
View newest version in sPHENIX GitHub at line 67 of file FairTrajFilter.h
Referenced by GetVertexCut(), IsAccepted(), and SetVertexCut().
|
private |
Definition at line 66 of file FairTrajFilter.h.
View newest version in sPHENIX GitHub at line 66 of file FairTrajFilter.h
Referenced by GetVertexCut(), IsAccepted(), and SetVertexCut().
|
private |
Definition at line 69 of file FairTrajFilter.h.
View newest version in sPHENIX GitHub at line 69 of file FairTrajFilter.h
Referenced by GetVertexCut(), IsAccepted(), and SetVertexCut().
|
private |
Definition at line 68 of file FairTrajFilter.h.
View newest version in sPHENIX GitHub at line 68 of file FairTrajFilter.h
Referenced by GetVertexCut(), IsAccepted(), and SetVertexCut().
|
private |
Definition at line 71 of file FairTrajFilter.h.
View newest version in sPHENIX GitHub at line 71 of file FairTrajFilter.h
Referenced by GetVertexCut(), IsAccepted(), and SetVertexCut().
|
private |
Definition at line 70 of file FairTrajFilter.h.
View newest version in sPHENIX GitHub at line 70 of file FairTrajFilter.h
Referenced by GetVertexCut(), IsAccepted(), and SetVertexCut().