5#ifndef CBMTASKBUILDEVENTS_H
6#define CBMTASKBUILDEVENTS_H 1
48 virtual void Exec(Option_t* opt);
78 virtual InitStatus
Init();
96 std::vector<CbmDigiEvent>*
fEvents =
nullptr;
97 std::unique_ptr<cbm::algo::evbuild::DigiEventSelector>
fSelector;
98 std::unique_ptr<cbm::algo::evbuild::EventBuilder>
fAlgo;
99 std::unique_ptr<cbm::algo::evbuild::EventBuilderConfig>
fConfig;
Collection of digis from all detector systems.
Collection of digis from all detector systems within one timeslice.
Task class for associating digis to events.
std::map< ECbmModuleId, size_t > fNumDigisTs
Event builder configuration.
virtual InitStatus Init()
Task initialisation.
const CbmDigiTimeslice * fTimeslice
CbmDigiTimeslice FillTimeSlice()
Construct a DigiTimeslice from the data in CbmDigiManager.
CbmTaskBuildEvents()
Constructor.
std::unique_ptr< cbm::algo::evbuild::EventBuilder > fAlgo
Event selector.
size_t GetNumDigis(const CbmDigiData &data, ECbmModuleId system)
Number of digis for a given system.
virtual ~CbmTaskBuildEvents()
Destructor.
const std::vector< double > * fTriggers
Input data (from simulation)
std::map< ECbmModuleId, size_t > fNumDigisEv
std::vector< CbmDigiEvent > * fEvents
Input data (triggers)
virtual void Finish()
Finish timeslice.
void SetConfig(const cbm::algo::evbuild::EventBuilderConfig &config)
Configure the event builder algorithm.
void SetDigiEventSelector(cbm::algo::evbuild::DigiEventSelectorConfig config)
Activate event selector which requires a minimum number of fired layers.
std::unique_ptr< cbm::algo::evbuild::DigiEventSelector > fSelector
Output data (events)
ClassDef(CbmTaskBuildEvents, 1)
virtual void Exec(Option_t *opt)
Task execution.
CbmDigiManager * fDigiMan
Input data (from unpacking)
std::unique_ptr< cbm::algo::evbuild::EventBuilderConfig > fConfig
Algorithm.
CbmTaskBuildEvents & operator=(const CbmTaskBuildEvents &)=delete
Assignment operator (disabled)
CbmTaskBuildEvents(const CbmTaskBuildEvents &)=delete
Copy constructor (disabled)
Configuration of the DigiEventSelector class.
Algorithm to select CbmDigiEvents based on the number of digis and the number of activated layers in ...
Configuration of the EventBuilder class.