CbmRoot
Loading...
Searching...
No Matches
CbmTaskMakeRecoEvents Class Reference

Task class for interfacing storable raw events in the CbmDigiEvent format to the current offline reconstruction chain. More...

#include <CbmTaskMakeRecoEvents.h>

Inheritance diagram for CbmTaskMakeRecoEvents:
[legend]
Collaboration diagram for CbmTaskMakeRecoEvents:
[legend]

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.
 
CbmTaskMakeRecoEventsoperator= (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.
 

Detailed Description

Task class for interfacing storable raw events in the CbmDigiEvent format to the current offline reconstruction chain.

Author
Volker Friese v.fri.nosp@m.ese@.nosp@m.gsi.d.nosp@m.e
Since
08.12.2021

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.

Constructor & Destructor Documentation

◆ CbmTaskMakeRecoEvents() [1/2]

CbmTaskMakeRecoEvents::CbmTaskMakeRecoEvents ( )

Constructor.

Definition at line 27 of file CbmTaskMakeRecoEvents.cxx.

◆ CbmTaskMakeRecoEvents() [2/2]

CbmTaskMakeRecoEvents::CbmTaskMakeRecoEvents ( const CbmTaskMakeRecoEvents & )
delete

Copy constructor (disabled)

◆ ~CbmTaskMakeRecoEvents()

CbmTaskMakeRecoEvents::~CbmTaskMakeRecoEvents ( )
virtual

Destructor.

Definition at line 32 of file CbmTaskMakeRecoEvents.cxx.

Member Function Documentation

◆ ClassDef()

CbmTaskMakeRecoEvents::ClassDef ( CbmTaskMakeRecoEvents ,
1  )
private

◆ Exec()

void CbmTaskMakeRecoEvents::Exec ( Option_t * opt)
virtual

◆ FillTree()

template<typename Digi >
void CbmTaskMakeRecoEvents::FillTree ( gsl::span< const Digi > inVec,
std::vector< Digi > * outVec,
CbmEvent * event,
ECbmDataType digiType )
inlineprivate

Fill the tree structure with digis from CbmDigiEvent.

Parameters
inVecDigi vector form CbmDigiEvent
outVecDigi vector in TTree branch
eventPointer to CbmEvent object the digis will be registered to
digiTypeType 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().

◆ Finish()

void CbmTaskMakeRecoEvents::Finish ( )
virtual

Finish timeslice.

Definition at line 110 of file CbmTaskMakeRecoEvents.cxx.

References fNumEvents, fNumTs, and fTimeTot.

◆ Init()

InitStatus CbmTaskMakeRecoEvents::Init ( )
privatevirtual

Task initialisation.

Definition at line 123 of file CbmTaskMakeRecoEvents.cxx.

References fBmonDigis, fDigiEvents, fMuchDigis, fPsdDigis, fRecoEvents, fRichDigis, fStsDigis, fTofDigis, and fTrdDigis.

◆ operator=()

CbmTaskMakeRecoEvents & CbmTaskMakeRecoEvents::operator= ( const CbmTaskMakeRecoEvents & )
delete

Assignment operator (disabled)

Member Data Documentation

◆ fBmonDigis

std::vector<CbmBmonDigi>* CbmTaskMakeRecoEvents::fBmonDigis = nullptr
private

Definition at line 96 of file CbmTaskMakeRecoEvents.h.

Referenced by Exec(), and Init().

◆ fDigiEvents

const std::vector<CbmDigiEvent>* CbmTaskMakeRecoEvents::fDigiEvents = nullptr
private

Definition at line 94 of file CbmTaskMakeRecoEvents.h.

Referenced by Exec(), and Init().

◆ fMuchDigis

std::vector<CbmMuchDigi>* CbmTaskMakeRecoEvents::fMuchDigis = nullptr
private

Definition at line 99 of file CbmTaskMakeRecoEvents.h.

Referenced by Exec(), and Init().

◆ fNumEvents

size_t CbmTaskMakeRecoEvents::fNumEvents = 0
private

Number of events.

Definition at line 105 of file CbmTaskMakeRecoEvents.h.

Referenced by Exec(), and Finish().

◆ fNumTs

size_t CbmTaskMakeRecoEvents::fNumTs = 0
private

Number of processed timeslices.

Definition at line 104 of file CbmTaskMakeRecoEvents.h.

Referenced by Exec(), and Finish().

◆ fPsdDigis

std::vector<CbmPsdDigi>* CbmTaskMakeRecoEvents::fPsdDigis = nullptr
private

Definition at line 102 of file CbmTaskMakeRecoEvents.h.

Referenced by Exec(), and Init().

◆ fRecoEvents

TClonesArray* CbmTaskMakeRecoEvents::fRecoEvents = nullptr
private

Definition at line 95 of file CbmTaskMakeRecoEvents.h.

Referenced by Exec(), and Init().

◆ fRichDigis

std::vector<CbmRichDigi>* CbmTaskMakeRecoEvents::fRichDigis = nullptr
private

Definition at line 98 of file CbmTaskMakeRecoEvents.h.

Referenced by Exec(), and Init().

◆ fStsDigis

std::vector<CbmStsDigi>* CbmTaskMakeRecoEvents::fStsDigis = nullptr
private

Definition at line 97 of file CbmTaskMakeRecoEvents.h.

Referenced by Exec(), and Init().

◆ fTimeTot

double CbmTaskMakeRecoEvents::fTimeTot = 0.
private

Execution time.

Definition at line 103 of file CbmTaskMakeRecoEvents.h.

Referenced by Exec(), and Finish().

◆ fTofDigis

std::vector<CbmTofDigi>* CbmTaskMakeRecoEvents::fTofDigis = nullptr
private

Definition at line 101 of file CbmTaskMakeRecoEvents.h.

Referenced by Exec(), and Init().

◆ fTrdDigis

std::vector<CbmTrdDigi>* CbmTaskMakeRecoEvents::fTrdDigis = nullptr
private

Definition at line 100 of file CbmTaskMakeRecoEvents.h.

Referenced by Exec(), and Init().


The documentation for this class was generated from the following files: