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

◆ AddOffsetPoint()

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

Definition at line 55 of file CbmOffsetDigiTime.h.

◆ ClassDef()

template<class TDigi >
CbmOffsetDigiTime< TDigi >::ClassDef ( CbmOffsetDigiTime< TDigi >  ,
 
)
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 54 of file CbmOffsetDigiTime.h.

Member Data Documentation

◆ fArrayDigiIn

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

Output vector of Digis, propagated to framework for output.

Input/Output Arrays (backup)

Definition at line 77 of file CbmOffsetDigiTime.h.

◆ fArrayDigiOut

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

Input array of Digis, recovered from framework for input.

Definition at line 79 of file CbmOffsetDigiTime.h.

◆ fbWriteOutput

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

Control flags.

Definition at line 64 of file CbmOffsetDigiTime.h.

Referenced by CbmOffsetDigiTime< CbmTofDigi >::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 86 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 87 of file CbmOffsetDigiTime.h.

◆ fmOffsets

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

Output array of Digis, propagated to framework for output.

List of offsets with their boundaries

Definition at line 84 of file CbmOffsetDigiTime.h.

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

◆ fsAddrToOffset

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

List of addresses to which the offset should be applied.

Definition at line 90 of file CbmOffsetDigiTime.h.

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

◆ fsDigiBranchDescrCal

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

Definition at line 96 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 94 of file CbmOffsetDigiTime.h.

◆ fsDigiBranchNameCal

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

Definition at line 95 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 68 of file CbmOffsetDigiTime.h.

◆ fvDigiIn

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

TS counter, not same as TS index!

Input/Output vectors (default)

Definition at line 71 of file CbmOffsetDigiTime.h.

◆ fvDigiOut

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

Input vector of Digis, recovered from framework for input.

Definition at line 73 of file CbmOffsetDigiTime.h.


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