CbmRoot
Loading...
Searching...
No Matches
CbmOffsetDigiTime< TDigi > Class Template Reference

CbmRoot (+externals) headers. More...

#include <CbmOffsetDigiTime.h>

Inheritance diagram for CbmOffsetDigiTime< TDigi >:
[legend]
Collaboration diagram for CbmOffsetDigiTime< TDigi >:
[legend]

Public Member Functions

 CbmOffsetDigiTime (TString sDigiBranchName, TString sDigiCalBranchName="", TString sDigiCalBranchDescr="")
 
 CbmOffsetDigiTime (const CbmOffsetDigiTime &)=delete
 
CbmOffsetDigiTime operator= (const CbmOffsetDigiTime &)=delete
 
 ~CbmOffsetDigiTime ()
 
virtual InitStatus Init ()
 
virtual InitStatus ReInit ()
 
virtual void Exec (Option_t *)
 
virtual void SetParContainers ()
 
virtual void Finish ()
 
void SetWriteOutputFlag (Bool_t bFlagIn)
 Task settings.
 
void AddOffsetPoint (UInt_t uIndexTS, Double_t dOffset)
 
void AddAddressToOffset (UInt_t uDigiAddress)
 

Private Member Functions

 ClassDef (CbmOffsetDigiTime, 0)
 

Private Attributes

Bool_t fbWriteOutput
 Control flags.
 
uint64_t fulTsCounter = 0
 If ON the output vector of digi is written to disk by FairRoot, otherwise just made available for higher stages.
 
std::vector< TDigi > const * fvDigiIn = nullptr
 TS counter, not same as TS index!
 
std::vector< TDigi > * fvDigiOut = nullptr
 Input vector of Digis, recovered from framework for input.
 
TClonesArray * fArrayDigiIn = nullptr
 Output vector of Digis, propagated to framework for output.
 
TClonesArray * fArrayDigiOut = nullptr
 Input array of Digis, recovered from framework for input.
 
std::map< UInt_t, Double_t > fmOffsets = {}
 Output array of Digis, propagated to framework for output.
 
Double_t fdCurrentOffset = 0.0
 Index is the first TS where the offset is valid.
 
std::map< UInt_t, Double_t >::iterator fmitNextOffset = fmOffsets.end()
 Current offset in [ns].
 
std::set< UInt_t > fsAddrToOffset = {}
 List of addresses to which the offset should be applied.
 
TString fsDigiBranchName = ""
 Addresses for which the digi time is offset, if empty applied to all.
 
TString fsDigiBranchNameCal = ""
 
TString fsDigiBranchDescrCal = ""
 

Detailed Description

template<class TDigi>
class CbmOffsetDigiTime< TDigi >

CbmRoot (+externals) headers.

FairRoot headers Fairsoft (Root, Boost, ...) headers C/C++ headers

Definition at line 29 of file CbmOffsetDigiTime.h.

Constructor & Destructor Documentation

◆ CbmOffsetDigiTime() [1/2]

template<class TDigi >
CbmOffsetDigiTime< TDigi >::CbmOffsetDigiTime ( TString sDigiBranchName,
TString sDigiCalBranchName = "",
TString sDigiCalBranchDescr = "" )

◆ CbmOffsetDigiTime() [2/2]

template<class TDigi >
CbmOffsetDigiTime< TDigi >::CbmOffsetDigiTime ( const CbmOffsetDigiTime< TDigi > & )
delete

◆ ~CbmOffsetDigiTime()

template<class TDigi >
CbmOffsetDigiTime< TDigi >::~CbmOffsetDigiTime ( )

Member Function Documentation

◆ AddAddressToOffset()

template<class TDigi >
void CbmOffsetDigiTime< TDigi >::AddAddressToOffset ( UInt_t uDigiAddress)
inline

Definition at line 58 of file CbmOffsetDigiTime.h.

References CbmOffsetDigiTime< TDigi >::fsAddrToOffset.

◆ AddOffsetPoint()

template<class TDigi >
void CbmOffsetDigiTime< TDigi >::AddOffsetPoint ( UInt_t uIndexTS,
Double_t dOffset )
inline

Definition at line 57 of file CbmOffsetDigiTime.h.

References CbmOffsetDigiTime< TDigi >::fmOffsets.

◆ ClassDef()

template<class TDigi >
CbmOffsetDigiTime< TDigi >::ClassDef ( CbmOffsetDigiTime< TDigi > ,
0  )
private

◆ Exec()

template<class TDigi >
virtual void CbmOffsetDigiTime< TDigi >::Exec ( Option_t * )
virtual

Executed for each event. Inherited from FairTask.

◆ Finish()

template<class TDigi >
virtual void CbmOffsetDigiTime< TDigi >::Finish ( )
virtual

Finish task called at the end of the run. Inherited from FairTask.

◆ Init()

template<class TDigi >
virtual InitStatus CbmOffsetDigiTime< TDigi >::Init ( )
virtual

Initiliazation of task at the beginning of a run. Inherited from FairTask.

◆ operator=()

template<class TDigi >
CbmOffsetDigiTime CbmOffsetDigiTime< TDigi >::operator= ( const CbmOffsetDigiTime< TDigi > & )
delete

◆ ReInit()

template<class TDigi >
virtual InitStatus CbmOffsetDigiTime< TDigi >::ReInit ( )
virtual

ReInitiliazation of task when the runID changes. Inherited from FairTask.

◆ SetParContainers()

template<class TDigi >
virtual void CbmOffsetDigiTime< TDigi >::SetParContainers ( )
virtual

Load the parameter container from the runtime database. Inherited from FairTask.

◆ SetWriteOutputFlag()

template<class TDigi >
void CbmOffsetDigiTime< TDigi >::SetWriteOutputFlag ( Bool_t bFlagIn)
inline

Task settings.

Definition at line 56 of file CbmOffsetDigiTime.h.

References CbmOffsetDigiTime< TDigi >::fbWriteOutput.

Member Data Documentation

◆ fArrayDigiIn

template<class TDigi >
TClonesArray* CbmOffsetDigiTime< TDigi >::fArrayDigiIn = nullptr
private

Output vector of Digis, propagated to framework for output.

Input/Output Arrays (backup)

Definition at line 73 of file CbmOffsetDigiTime.h.

◆ fArrayDigiOut

template<class TDigi >
TClonesArray* CbmOffsetDigiTime< TDigi >::fArrayDigiOut = nullptr
private

Input array of Digis, recovered from framework for input.

Definition at line 74 of file CbmOffsetDigiTime.h.

◆ fbWriteOutput

template<class TDigi >
Bool_t CbmOffsetDigiTime< TDigi >::fbWriteOutput
private
Initial value:
=
kTRUE

Control flags.

Definition at line 62 of file CbmOffsetDigiTime.h.

Referenced by CbmOffsetDigiTime< TDigi >::SetWriteOutputFlag().

◆ fdCurrentOffset

template<class TDigi >
Double_t CbmOffsetDigiTime< TDigi >::fdCurrentOffset = 0.0
private

Index is the first TS where the offset is valid.

Definition at line 79 of file CbmOffsetDigiTime.h.

◆ fmitNextOffset

template<class TDigi >
std::map<UInt_t,Double_t>::iterator CbmOffsetDigiTime< TDigi >::fmitNextOffset = fmOffsets.end()
private

Current offset in [ns].

Definition at line 80 of file CbmOffsetDigiTime.h.

◆ fmOffsets

template<class TDigi >
std::map<UInt_t, Double_t> CbmOffsetDigiTime< TDigi >::fmOffsets = {}
private

Output array of Digis, propagated to framework for output.

List of offsets with their boundaries

Definition at line 78 of file CbmOffsetDigiTime.h.

Referenced by CbmOffsetDigiTime< TDigi >::AddOffsetPoint().

◆ fsAddrToOffset

template<class TDigi >
std::set<UInt_t> CbmOffsetDigiTime< TDigi >::fsAddrToOffset = {}
private

List of addresses to which the offset should be applied.

Definition at line 83 of file CbmOffsetDigiTime.h.

Referenced by CbmOffsetDigiTime< TDigi >::AddAddressToOffset().

◆ fsDigiBranchDescrCal

template<class TDigi >
TString CbmOffsetDigiTime< TDigi >::fsDigiBranchDescrCal = ""
private

Definition at line 88 of file CbmOffsetDigiTime.h.

◆ fsDigiBranchName

template<class TDigi >
TString CbmOffsetDigiTime< TDigi >::fsDigiBranchName = ""
private

Addresses for which the digi time is offset, if empty applied to all.

Names for framework objects search

Definition at line 86 of file CbmOffsetDigiTime.h.

◆ fsDigiBranchNameCal

template<class TDigi >
TString CbmOffsetDigiTime< TDigi >::fsDigiBranchNameCal = ""
private

Definition at line 87 of file CbmOffsetDigiTime.h.

◆ fulTsCounter

template<class TDigi >
uint64_t CbmOffsetDigiTime< TDigi >::fulTsCounter = 0
private

If ON the output vector of digi is written to disk by FairRoot, otherwise just made available for higher stages.

Statistics

Definition at line 66 of file CbmOffsetDigiTime.h.

◆ fvDigiIn

template<class TDigi >
std::vector<TDigi> const* CbmOffsetDigiTime< TDigi >::fvDigiIn = nullptr
private

TS counter, not same as TS index!

Input/Output vectors (default)

Definition at line 69 of file CbmOffsetDigiTime.h.

◆ fvDigiOut

template<class TDigi >
std::vector<TDigi>* CbmOffsetDigiTime< TDigi >::fvDigiOut = nullptr
private

Input vector of Digis, recovered from framework for input.

Definition at line 70 of file CbmOffsetDigiTime.h.


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