Go to the documentation of this file.
7 #ifndef CBMSTACKFILTER_H
8 #define CBMSTACKFILTER_H 1
69 typedef std::map<std::pair<Int_t, ECbmModuleId>, Int_t>
PointMap;
92 virtual const std::vector<Bool_t>&
Select(
const TClonesArray& particles,
173 std::map<ECbmModuleId, UInt_t>
Class for filtering the stack before writing.
void SetMinNofPoints(ECbmModuleId detector, UInt_t minimum)
Set the minimum number of MCPoints for a given detector.
virtual ~CbmStackFilter()
Destructor.
void SetStoreAllMothers(Bool_t choice)
Set the storage of all mothers of selected tracks.
ClassDef(CbmStackFilter, 2)
CbmStackFilter()
Constructor.
std::vector< Bool_t > fStore
Vector with storage decision.
void SetStoreAllPrimaries(Bool_t choice)
Set the storage of primary tracks.
Bool_t fStoreAllDecays
Flag for storage of all primary decay daughters.
std::map< ECbmModuleId, UInt_t > fMinNofPoints
Cut values for the number of points.
@ kNofSystems
For loops over active systems.
virtual const std::vector< Bool_t > & Select(const TClonesArray &particles, const PointMap &points)
Check the stack particles for fulfilling the storage criteria.
Bool_t fStoreAllPrimaries
Flag for storage of primaries.
Bool_t fStoreAllMothers
Flag for storage of mothers.
std::map< std::pair< Int_t, ECbmModuleId >, Int_t > PointMap
Map holding the number of points for each detector. The key is a pair of (track index,...
void SetStoreAllPrimaryDecays(Bool_t choice=kTRUE)
Set the storage of all decay daughters of primaries.
Double_t fMinEkin
Cut value for kinetic energy.
void SetMinEkin(Double_t minimum)
Set the minimum kinetic energy.