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

Task class for clone CbmEvent objects from the Input to the output to allow their update, e.g. due to new reconstruction steps. More...

#include <CbmTaskEventsCloneInToOut.h>

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

Public Member Functions

 CbmTaskEventsCloneInToOut ()
 Constructor.
 
 CbmTaskEventsCloneInToOut (const CbmTaskEventsCloneInToOut &)=delete
 Copy constructor (disabled)
 
virtual ~CbmTaskEventsCloneInToOut ()
 Destructor.
 
virtual void Exec (Option_t *opt)
 Task execution.
 
virtual void Finish ()
 Finish timeslice.
 
CbmTaskEventsCloneInToOutoperator= (const CbmTaskEventsCloneInToOut &)=delete
 Assignment operator (disabled)
 

Private Member Functions

virtual InitStatus Init ()
 Task initialisation.
 
 ClassDef (CbmTaskEventsCloneInToOut, 1)
 

Private Attributes

FairFileSource * fpFileIn = nullptr
 
const TClonesArray * fRecoEventsIn = nullptr
 
TClonesArray * fRecoEventsOut = 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 clone CbmEvent objects from the Input to the output to allow their update, e.g. due to new reconstruction steps.

Author
Pierre-Alain Loizeau v.fri.nosp@m.ese@.nosp@m.gsi.d.nosp@m.e
Since
17.01.2023

This tasks copies the existing CbmEvent from the input file to the memory with the persitency flag set, so that they appear in the output file and can be updated (standard inputs are const).

The task has to be run prior to any reconstruction task adding more information to the CbmEvent (e.g. hit or track reconstruction), but only in case the event building was done in a previous run (thus saving the events to the file used as input for this run)

Definition at line 29 of file CbmTaskEventsCloneInToOut.h.

Constructor & Destructor Documentation

◆ CbmTaskEventsCloneInToOut() [1/2]

CbmTaskEventsCloneInToOut::CbmTaskEventsCloneInToOut ( )

Constructor.

Definition at line 27 of file CbmTaskEventsCloneInToOut.cxx.

◆ CbmTaskEventsCloneInToOut() [2/2]

CbmTaskEventsCloneInToOut::CbmTaskEventsCloneInToOut ( const CbmTaskEventsCloneInToOut & )
delete

Copy constructor (disabled)

◆ ~CbmTaskEventsCloneInToOut()

CbmTaskEventsCloneInToOut::~CbmTaskEventsCloneInToOut ( )
virtual

Destructor.

Definition at line 32 of file CbmTaskEventsCloneInToOut.cxx.

Member Function Documentation

◆ ClassDef()

CbmTaskEventsCloneInToOut::ClassDef ( CbmTaskEventsCloneInToOut ,
1  )
private

◆ Exec()

void CbmTaskEventsCloneInToOut::Exec ( Option_t * opt)
virtual

Task execution.

Explicit creation-copy as no ranged Copy method for TClonesArray

Definition at line 37 of file CbmTaskEventsCloneInToOut.cxx.

References fNumEvents, fNumTs, fRecoEventsIn, fRecoEventsOut, and fTimeTot.

◆ Finish()

void CbmTaskEventsCloneInToOut::Finish ( )
virtual

Finish timeslice.

Definition at line 84 of file CbmTaskEventsCloneInToOut.cxx.

References fNumEvents, fNumTs, fRecoEventsOut, and fTimeTot.

◆ Init()

InitStatus CbmTaskEventsCloneInToOut::Init ( )
privatevirtual

Task initialisation.

Definition at line 98 of file CbmTaskEventsCloneInToOut.cxx.

References fpFileIn, fRecoEventsIn, and fRecoEventsOut.

◆ operator=()

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

Assignment operator (disabled)

Member Data Documentation

◆ fNumEvents

size_t CbmTaskEventsCloneInToOut::fNumEvents = 0
private

Number of events.

Definition at line 67 of file CbmTaskEventsCloneInToOut.h.

Referenced by Exec(), and Finish().

◆ fNumTs

size_t CbmTaskEventsCloneInToOut::fNumTs = 0
private

Number of processed timeslices.

Definition at line 66 of file CbmTaskEventsCloneInToOut.h.

Referenced by Exec(), and Finish().

◆ fpFileIn

FairFileSource* CbmTaskEventsCloneInToOut::fpFileIn = nullptr
private

Definition at line 62 of file CbmTaskEventsCloneInToOut.h.

Referenced by Init().

◆ fRecoEventsIn

const TClonesArray* CbmTaskEventsCloneInToOut::fRecoEventsIn = nullptr
private

Definition at line 63 of file CbmTaskEventsCloneInToOut.h.

Referenced by Exec(), and Init().

◆ fRecoEventsOut

TClonesArray* CbmTaskEventsCloneInToOut::fRecoEventsOut = nullptr
private

Definition at line 64 of file CbmTaskEventsCloneInToOut.h.

Referenced by Exec(), Finish(), and Init().

◆ fTimeTot

double CbmTaskEventsCloneInToOut::fTimeTot = 0.
private

Execution time.

Definition at line 65 of file CbmTaskEventsCloneInToOut.h.

Referenced by Exec(), and Finish().


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