Go to the documentation of this file.
6 #ifndef CBMMCEVENTFILTER_H
7 #define CBMMCEVENTFILTER_H 1
10 #include "FairMCApplication.h"
12 #include "TClonesArray.h"
76 return (
fData.at(type) ==
nullptr ? 0 :
fData.at(type)->GetEntriesFast());
87 std::map<ECbmDataType, TClonesArray*>
fData;
98 virtual void Exec(Option_t*);
112 virtual InitStatus
Init();
Class deciding whether to store an MC event.
virtual InitStatus Init()
Initialisation.
void GetBranch(ECbmDataType type)
Get a branch from FairRootManager.
Int_t GetNofData(ECbmDataType type) const
Number of data in a branch.
Int_t fNofEventsOut
Counter: output events.
TObject * GetData(ECbmDataType type, Int_t index) const
Get a data object by index.
TString GetBranchName(ECbmDataType type) const
Get branch name from data type.
virtual void Exec(Option_t *)
Execution.
Int_t GetNofInputEvents() const
Number of processed events.
virtual ~CbmMCEventFilter()
Destructor.
Bool_t SelectEvent() const
Event selector method.
std::string Statistics() const
Info on number of MC objects in the arrays.
virtual void Finish()
Finish (end of run)
std::map< ECbmDataType, TClonesArray * > fData
Int_t fNofEventsIn
Counter: input events.
ClassDef(CbmMCEventFilter, 2)
std::map< ECbmDataType, Int_t > fMinNofData
Data arrays.
void SetMinNofData(ECbmDataType type, Int_t value)
Set a cut on the minimum number of data of a given type.