CbmRoot
|
Task class for interfacing storable raw events in the CbmDigiEvent format to the current offline reconstruction chain. More...
#include <CbmTaskMakeRecoEvents.h>
Public Member Functions | |
CbmTaskMakeRecoEvents () | |
Constructor. | |
CbmTaskMakeRecoEvents (const CbmTaskMakeRecoEvents &)=delete | |
Copy constructor (disabled) | |
virtual | ~CbmTaskMakeRecoEvents () |
Destructor. | |
virtual void | Exec (Option_t *opt) |
Task execution. | |
virtual void | Finish () |
Finish timeslice. | |
CbmTaskMakeRecoEvents & | operator= (const CbmTaskMakeRecoEvents &)=delete |
Assignment operator (disabled) | |
Private Member Functions | |
virtual InitStatus | Init () |
Task initialisation. | |
template<typename Digi > | |
void | FillTree (gsl::span< const Digi > inVec, std::vector< Digi > *outVec, CbmEvent *event, ECbmDataType digiType) |
Fill the tree structure with digis from CbmDigiEvent. | |
ClassDef (CbmTaskMakeRecoEvents, 1) | |
Private Attributes | |
const std::vector< CbmDigiEvent > * | fDigiEvents = nullptr |
TClonesArray * | fRecoEvents = nullptr |
std::vector< CbmBmonDigi > * | fBmonDigis = nullptr |
std::vector< CbmStsDigi > * | fStsDigis = nullptr |
std::vector< CbmRichDigi > * | fRichDigis = nullptr |
std::vector< CbmMuchDigi > * | fMuchDigis = nullptr |
std::vector< CbmTrdDigi > * | fTrdDigis = nullptr |
std::vector< CbmTofDigi > * | fTofDigis = nullptr |
std::vector< CbmPsdDigi > * | fPsdDigis = nullptr |
double | fTimeTot = 0. |
Execution time. | |
size_t | fNumTs = 0 |
Number of processed timeslices. | |
size_t | fNumEvents = 0 |
Number of events. | |
Task class for interfacing storable raw events in the CbmDigiEvent format to the current offline reconstruction chain.
This tasks creates the established data interfaces (digi branches, CbmEvent) as input to the reconstruction tasks from digis stored in the new event data format CbmDigiEvent as created by trigger and event builder from experiment or simulated data. It is to be understood as intermediate solution until the reconstruction routines will be properly interfaced to the new format. The expense is a duplication of digis in memory.
The task has to be run prior to any reconstruction task making use of digis (cluster and hit finder).
TOFO: The current implementation is for STS only and shall be expanded to all digi types.
Definition at line 40 of file CbmTaskMakeRecoEvents.h.
CbmTaskMakeRecoEvents::CbmTaskMakeRecoEvents | ( | ) |
Constructor.
Definition at line 27 of file CbmTaskMakeRecoEvents.cxx.
|
delete |
Copy constructor (disabled)
|
virtual |
Destructor.
Definition at line 32 of file CbmTaskMakeRecoEvents.cxx.
|
private |
|
virtual |
Task execution.
Definition at line 37 of file CbmTaskMakeRecoEvents.cxx.
References fBmonDigis, fDigiEvents, FillTree(), fMuchDigis, fNumEvents, fNumTs, fPsdDigis, fRecoEvents, fRichDigis, fStsDigis, fTimeTot, fTofDigis, fTrdDigis, kBmonDigi, kMuchDigi, kPsdDigi, kRichDigi, kStsDigi, kTofDigi, and kTrdDigi.
|
inlineprivate |
Fill the tree structure with digis from CbmDigiEvent.
inVec | Digi vector form CbmDigiEvent |
outVec | Digi vector in TTree branch |
event | Pointer to CbmEvent object the digis will be registered to |
digiType | Type of digi class (ECbmDataType) |
Copies the digis from CbmDigiEvent into the TTree branch and registers them to the CbmEvent object.
Definition at line 83 of file CbmTaskMakeRecoEvents.h.
References CbmEvent::AddData().
Referenced by Exec().
|
virtual |
Finish timeslice.
Definition at line 110 of file CbmTaskMakeRecoEvents.cxx.
References fNumEvents, fNumTs, and fTimeTot.
|
privatevirtual |
Task initialisation.
Definition at line 123 of file CbmTaskMakeRecoEvents.cxx.
References fBmonDigis, fDigiEvents, fMuchDigis, fPsdDigis, fRecoEvents, fRichDigis, fStsDigis, fTofDigis, and fTrdDigis.
|
delete |
Assignment operator (disabled)
|
private |
Definition at line 96 of file CbmTaskMakeRecoEvents.h.
|
private |
Definition at line 94 of file CbmTaskMakeRecoEvents.h.
|
private |
Definition at line 99 of file CbmTaskMakeRecoEvents.h.
|
private |
Number of events.
Definition at line 105 of file CbmTaskMakeRecoEvents.h.
|
private |
Number of processed timeslices.
Definition at line 104 of file CbmTaskMakeRecoEvents.h.
|
private |
Definition at line 102 of file CbmTaskMakeRecoEvents.h.
|
private |
Definition at line 95 of file CbmTaskMakeRecoEvents.h.
|
private |
Definition at line 98 of file CbmTaskMakeRecoEvents.h.
|
private |
Definition at line 97 of file CbmTaskMakeRecoEvents.h.
|
private |
Execution time.
Definition at line 103 of file CbmTaskMakeRecoEvents.h.
|
private |
Definition at line 101 of file CbmTaskMakeRecoEvents.h.
|
private |
Definition at line 100 of file CbmTaskMakeRecoEvents.h.