FairRoot
|
#include <FairTrajFilter.h>
Public Member Functions | |
FairTrajFilter () | |
virtual | ~FairTrajFilter () |
ClassDef (FairTrajFilter, 1) | |
TGeoTrack * | AddTrack (Int_t trackId, Int_t pdgCode) |
TGeoTrack * | AddTrack (TParticle *p) |
TGeoTrack * | CheckAddTrack (Int_t trackId, 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 () |
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 43 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 35 of file FairTrajFilter.cxx.
|
virtual |
Destructor.
Definition at line 77 of file FairTrajFilter.cxx.
TGeoTrack * FairTrajFilter::AddTrack | ( | Int_t | trackId, |
Int_t | pdgCode | ||
) |
Definition at line 296 of file FairTrajFilter.cxx.
TGeoTrack * FairTrajFilter::AddTrack | ( | TParticle * | p | ) |
Definition at line 306 of file FairTrajFilter.cxx.
TGeoTrack * FairTrajFilter::CheckAddTrack | ( | Int_t | trackId, |
TParticle * | p | ||
) |
Definition at line 320 of file FairTrajFilter.cxx.
FairTrajFilter::ClassDef | ( | FairTrajFilter | , |
1 | |||
) |
Class definition.
|
inline |
Definition at line 116 of file FairTrajFilter.h.
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 290 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 264 of file FairTrajFilter.cxx.
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 249 of file FairTrajFilter.cxx.
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.
|
inline |
This is the getter for the step size cut.
Definition at line 277 of file FairTrajFilter.h.
TGeoTrack * FairTrajFilter::GetTrack | ( | Int_t | trackId | ) |
Definition at line 337 of file FairTrajFilter.cxx.
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 234 of file FairTrajFilter.cxx.
void FairTrajFilter::Init | ( | TString | brName = "GeoTracks" , |
TString | folderName = "MCGeoTrack" |
||
) |
Definition at line 79 of file FairTrajFilter.cxx.
|
static |
This function is used to access the methods of the class.
Definition at line 33 of file FairTrajFilter.cxx.
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 86 of file FairTrajFilter.cxx.
|
inline |
This is the getter for flag of storing of primaries.
Definition at line 264 of file FairTrajFilter.h.
|
inline |
This is the getter for flag of storing of secondaries.
Definition at line 270 of file FairTrajFilter.h.
void FairTrajFilter::Reset | ( | ) |
Definition at line 84 of file FairTrajFilter.cxx.
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 215 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 182 of file FairTrajFilter.cxx.
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 161 of file FairTrajFilter.cxx.
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 202 of file FairTrajFilter.cxx.
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 225 of file FairTrajFilter.cxx.
|
inline |
This function controls the storing of primaries.
storePrim | - boolean flag to control the storing of primaries. |
Definition at line 200 of file FairTrajFilter.h.
|
inline |
This function controls the storing of secondaries.
storeSec | - boolean flag to control the storing of secondaries. |
Definition at line 206 of file FairTrajFilter.h.
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 135 of file FairTrajFilter.cxx.