FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairTrajFilter Class Reference

#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 FairTrajFilterInstance ()
 

Detailed Description

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.

Author
D. Kresan
Version
0.1
Since
2004-Sep-15

Definition at line 43 of file FairTrajFilter.h.

Constructor & Destructor Documentation

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.

FairTrajFilter::~FairTrajFilter ( )
virtual

Destructor.

Definition at line 77 of file FairTrajFilter.cxx.

Member Function Documentation

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  ,
 
)

Class definition.

TGeoTrack* FairTrajFilter::GetCurrentTrk ( )
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.

Parameters
Referencesto 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).

Parameters
Referencesto 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).

Parameters
Referencesto 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.

Parameters
Referencesto the variables where return values should be stored.

Definition at line 279 of file FairTrajFilter.cxx.

Double_t FairTrajFilter::GetStepSizeCut ( ) const
inline

This is the getter for the step size cut.

Returns
The minimum value of the step size wich still should be added to the trajectory.

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.

Parameters
Referencesto 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.

FairTrajFilter * FairTrajFilter::Instance ( )
static

This function is used to access the methods of the class.

Returns
Pointer to the singleton FairTrajFilter object, created with FairTrajFilter::FairTrajFilter().

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.

Parameters
p- pointer to the TParticle object.
Returns
kTRUE - if particle survives the cuts. Otherwise - kFALSE.

Definition at line 86 of file FairTrajFilter.cxx.

Bool_t FairTrajFilter::IsPrimariesStored ( ) const
inline

This is the getter for flag of storing of primaries.

Returns
kTRUE if primaries should be stored.

Definition at line 264 of file FairTrajFilter.h.

Bool_t FairTrajFilter::IsSecondariesStored ( ) const
inline

This is the getter for flag of storing of secondaries.

Returns
kTRUE if secondaries should be stored.

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.

Parameters
Totalenergy 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.

Parameters
Theregion 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.

Parameters
Theregion 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).

Parameters
Theregion 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.

Parameters
stepSizeMin- minimum value of step size, wich will be added to the trajectory.

Definition at line 225 of file FairTrajFilter.cxx.

void FairTrajFilter::SetStorePrimaries ( Bool_t  storePrim = kTRUE)
inline

This function controls the storing of primaries.

Parameters
storePrim- boolean flag to control the storing of primaries.

Definition at line 200 of file FairTrajFilter.h.

void FairTrajFilter::SetStoreSecondaries ( Bool_t  storeSec = kTRUE)
inline

This function controls the storing of secondaries.

Parameters
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.

Parameters
Boxin coordinate space. Only trajectories, created inside this box will be stored. Default values - the cave dimensions.

Definition at line 135 of file FairTrajFilter.cxx.


The documentation for this class was generated from the following files: