11#ifndef CBMSTACKFILTER_H
12#define CBMSTACKFILTER_H 1
75 typedef std::map<std::pair<Int_t, ECbmModuleId>, Int_t>
PointMap;
98 virtual const std::vector<Bool_t>&
Select(
const TClonesArray& particles,
const PointMap&
points);
@ kNofSystems
For loops over active systems.
Class for filtering the stack before writing.
void SetStoreAllPrimaryDecays(Bool_t choice=kTRUE)
Set the storage of all decay daughters of primaries.
void SetMinNofPoints(ECbmModuleId detector, UInt_t minimum)
Set the minimum number of MCPoints for a given detector.
Bool_t fStoreAllDecays
Flag for storage of all primary decay daughters.
CbmStackFilter()
Constructor.
Bool_t fStoreAllMothers
Flag for storage of mothers.
Double_t fMinEkin
Cut value for kinetic energy.
std::map< ECbmModuleId, UInt_t > fMinNofPoints
Cut values for the number of points.
ClassDef(CbmStackFilter, 2)
Bool_t fStoreAllPrimaries
Flag for storage of primaries.
virtual ~CbmStackFilter()
Destructor.
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 SetStoreAllMothers(Bool_t choice)
Set the storage of all mothers of selected tracks.
std::vector< Bool_t > fStore
Vector with storage decision.
void SetStoreAllPrimaries(Bool_t choice)
Set the storage of primary tracks.
virtual const std::vector< Bool_t > & Select(const TClonesArray &particles, const PointMap &points)
Check the stack particles for fulfilling the storage criteria.
void SetMinEkin(Double_t minimum)
Set the minimum kinetic energy.