CbmRoot
|
#include <CbmBmonUnpackAlgo.h>
Public Member Functions | |
CbmBmonUnpackAlgo () | |
Create the Cbm Trd Unpack AlgoBase object. | |
virtual | ~CbmBmonUnpackAlgo () |
Destroy the Cbm Trd Unpack Task object. | |
CbmBmonUnpackAlgo (const CbmBmonUnpackAlgo &)=delete | |
Copy constructor - not implemented. | |
CbmBmonUnpackAlgo & | operator= (const CbmBmonUnpackAlgo &)=delete |
Assignment operator - not implemented. | |
Bool_t | Init () |
Initialisation at begin of run. Forwards to TOF unpacker algo instance. | |
std::vector< CbmBmonDigi > | Unpack (const fles::Timeslice *ts, std::uint16_t icomp) |
Unpack a given timeslice component. Overload to forward inner calls to TOF unpacker algo instance. | |
virtual std::vector< std::pair< std::string, std::shared_ptr< FairParGenericSet > > > * | GetParContainerRequest (std::string geoTag, std::uint32_t runId) |
Get the requested parameter containers. To be defined in the derived classes! Return the required parameter containers together with the paths to the ascii files to. Forwards to TOF unpacker algo instance. | |
std::vector< CbmErrorMessage > * | GetOptOutAVec () |
Get a given output vector connected to the tree, if called after calling InitUnpacker(). Forwards to TOF unpacker algo instance. | |
std::vector< std::nullptr_t > * | GetOptOutBVec () |
Get a given output vector connected to the tree, if called after calling InitUnpacker(). Forwards to TOF unpacker algo instance. | |
int32_t | GetSystemTimeOffset () |
Get the global system time offset Forwards to TOF unpacker algo instance. | |
void | SetDoIgnoreOverlappMs (bool value=false) |
Set the Do Ignore Overlapp µslices flag. | |
void | SetOptOutAVec (std::vector< CbmErrorMessage > *vec) |
Set the optional output A vector. | |
void | SetOptOutBVec (std::vector< std::nullptr_t > *vec) |
Set the optional output B vector. | |
void | SetParFilesBasePath (std::string value) |
Set the base path to the parameter containers. | |
void | SetSystemTimeOffset (int32_t value) |
Set the global system time offset. | |
void | SetTsStartTime (size_t value) |
Set the start time of the current TS. | |
void | SetFlagEpochCountHack2021 (bool bFlagin=true) |
Sets the flag enabling the epoch offset hack for the July 2021 data. Default is enable. Forwards to TOF unpacker algo instance. | |
void | SetFlagBmonParMode (bool bFlagin=true) |
Sets the flag switching to a request of CbmMcbm2018BmonPar. Default is enable. Forwards to TOF unpacker algo instance. | |
void | SetParFileName (std::string sNewName) |
Sets the name of the parameter file to be used. Forwards to TOF unpacker algo instance. | |
void | SetMonitor (std::shared_ptr< CbmTofUnpackMonitor > monitor) |
Set a predefined monitor. | |
Static Public Member Functions | |
static size_t | GetOutputObjSize () |
Get the Output Obj Size. | |
Protected Member Functions | |
void | finish () |
Finish function for this algorithm base clase. Forwards to TOF unpacker algo instance. | |
void | finishDerived () |
Function that allows special calls during Finish in the derived algos. Forwards to TOF unpacker algo instance. | |
Bool_t | init () |
Initialisation at begin of run. Forwards to TOF unpacker algo instance. | |
Bool_t | initParSet (FairParGenericSet *parset) |
Handles the distribution of the hidden derived classes to their explicit functions. Forwards to TOF unpacker algo instance. | |
Bool_t | initParSet (CbmMcbm2018TofPar *parset) |
Handles the distribution of the hidden derived classes to their explicit functions. Forwards to TOF unpacker algo instance. | |
bool | setDerivedTsParameters (size_t) |
Set the Derived Ts Parameters. | |
virtual void | FinalizeComponent () |
Copy the buffer from the internal (TOF) algo to the new Digi Type storage. | |
virtual bool | unpack (const fles::Timeslice *, std::uint16_t, UInt_t) |
Unpack a given microslice. To be implemented in the derived unpacker algos. Unused as "Unpack(timeslice, component)" is overloaded, but necessary to avoir pure virtual class. | |
Private Attributes | |
CbmTofUnpackAlgo | fTofAlgo |
Actual unpacker algo. | |
Definition at line 27 of file CbmBmonUnpackAlgo.h.
CbmBmonUnpackAlgo::CbmBmonUnpackAlgo | ( | ) |
Create the Cbm Trd Unpack AlgoBase object.
Definition at line 7 of file CbmBmonUnpackAlgo.cxx.
|
virtual |
Destroy the Cbm Trd Unpack Task object.
Definition at line 9 of file CbmBmonUnpackAlgo.cxx.
|
delete |
Copy constructor - not implemented.
|
inlineprotectedvirtual |
Copy the buffer from the internal (TOF) algo to the new Digi Type storage.
Definition at line 266 of file CbmBmonUnpackAlgo.h.
References fTofAlgo, and CbmTofUnpackAlgo::GetOutputVec().
Referenced by Unpack().
|
inlineprotected |
Finish function for this algorithm base clase. Forwards to TOF unpacker algo instance.
Definition at line 219 of file CbmBmonUnpackAlgo.h.
References CbmTofUnpackAlgo::finish(), and fTofAlgo.
|
inlineprotected |
Function that allows special calls during Finish in the derived algos. Forwards to TOF unpacker algo instance.
Definition at line 224 of file CbmBmonUnpackAlgo.h.
References CbmTofUnpackAlgo::finishDerived(), and fTofAlgo.
|
inline |
Get a given output vector connected to the tree, if called after calling InitUnpacker(). Forwards to TOF unpacker algo instance.
Definition at line 133 of file CbmBmonUnpackAlgo.h.
References fTofAlgo.
|
inline |
Get a given output vector connected to the tree, if called after calling InitUnpacker(). Forwards to TOF unpacker algo instance.
Definition at line 141 of file CbmBmonUnpackAlgo.h.
References fTofAlgo.
|
inlinestatic |
Get the Output Obj Size.
Definition at line 148 of file CbmBmonUnpackAlgo.h.
Referenced by Unpack().
|
inlinevirtual |
Get the requested parameter containers. To be defined in the derived classes! Return the required parameter containers together with the paths to the ascii files to. Forwards to TOF unpacker algo instance.
[in] | std::string | geoTag as used in CbmSetup |
[in] | std::uint32_t | runId for runwise defined parameters |
Definition at line 122 of file CbmBmonUnpackAlgo.h.
References fTofAlgo, and CbmTofUnpackAlgo::GetParContainerRequest().
|
inline |
Get the global system time offset Forwards to TOF unpacker algo instance.
Definition at line 155 of file CbmBmonUnpackAlgo.h.
References fTofAlgo.
|
inline |
Initialisation at begin of run. Forwards to TOF unpacker algo instance.
Bool_t | initOk If not kTRUE, task will be set inactive. |
Definition at line 46 of file CbmBmonUnpackAlgo.h.
References fTofAlgo.
|
inlineprotected |
Initialisation at begin of run. Forwards to TOF unpacker algo instance.
Bool_t | initOk |
Definition at line 231 of file CbmBmonUnpackAlgo.h.
References fTofAlgo, and CbmTofUnpackAlgo::init().
|
inlineprotected |
Handles the distribution of the hidden derived classes to their explicit functions. Forwards to TOF unpacker algo instance.
parset |
Definition at line 249 of file CbmBmonUnpackAlgo.h.
References fTofAlgo, and CbmTofUnpackAlgo::initParSet().
|
inlineprotected |
Handles the distribution of the hidden derived classes to their explicit functions. Forwards to TOF unpacker algo instance.
parset |
Definition at line 240 of file CbmBmonUnpackAlgo.h.
References fTofAlgo, and CbmTofUnpackAlgo::initParSet().
|
delete |
Assignment operator - not implemented.
|
inlineprotected |
Set the Derived Ts Parameters.
In this function parameters required by the explicit algo connected to the timeslice can be set.
itimeslice |
Definition at line 261 of file CbmBmonUnpackAlgo.h.
Referenced by Unpack().
|
inline |
Set the Do Ignore Overlapp µslices flag.
value |
Definition at line 163 of file CbmBmonUnpackAlgo.h.
References fTofAlgo.
|
inline |
Sets the flag switching to a request of CbmMcbm2018BmonPar. Default is enable. Forwards to TOF unpacker algo instance.
[in] | Optional | boolean flag value, default is true |
Definition at line 202 of file CbmBmonUnpackAlgo.h.
References fTofAlgo, and CbmTofUnpackAlgo::SetFlagBmonParMode().
|
inline |
Sets the flag enabling the epoch offset hack for the July 2021 data. Default is enable. Forwards to TOF unpacker algo instance.
[in] | Optional | boolean flag value, default is true |
Definition at line 194 of file CbmBmonUnpackAlgo.h.
References fTofAlgo, and CbmTofUnpackAlgo::SetFlagEpochCountHack2021().
|
inline |
Set a predefined monitor.
monitor | predefined unpacking monitor Forwards to TOF unpacker algo instance. |
Definition at line 215 of file CbmBmonUnpackAlgo.h.
References fTofAlgo, and CbmTofUnpackAlgo::SetMonitor().
|
inline |
Set the optional output A vector.
vec |
Definition at line 170 of file CbmBmonUnpackAlgo.h.
References fTofAlgo.
|
inline |
Set the optional output B vector.
vec |
Definition at line 173 of file CbmBmonUnpackAlgo.h.
References fTofAlgo.
|
inline |
Sets the name of the parameter file to be used. Forwards to TOF unpacker algo instance.
[in] | std:string,path | should not be included as set in the Config class |
Definition at line 210 of file CbmBmonUnpackAlgo.h.
References fTofAlgo, and CbmTofUnpackAlgo::SetParFileName().
|
inline |
Set the base path to the parameter containers.
value |
Definition at line 180 of file CbmBmonUnpackAlgo.h.
References fTofAlgo.
|
inline |
Set the global system time offset.
Definition at line 183 of file CbmBmonUnpackAlgo.h.
References fTofAlgo.
|
inline |
Set the start time of the current TS.
Definition at line 186 of file CbmBmonUnpackAlgo.h.
References fTofAlgo.
|
inline |
Unpack a given timeslice component. Overload to forward inner calls to TOF unpacker algo instance.
ts | timeslice pointer |
icomp | index to the component to be unpacked |
On first TS, extract the TS parameters from header (by definition stable over time).
Loop over choosen microslices (all or core only)
Give opportunity to finalize component (e.g. copy from temp buffers) if necessary
Definition at line 63 of file CbmBmonUnpackAlgo.h.
References FinalizeComponent(), fTofAlgo, GetOutputObjSize(), CbmTofUnpackAlgo::GetOutputVec(), setDerivedTsParameters(), and CbmTofUnpackAlgo::unpack().
|
inlineprotectedvirtual |
Unpack a given microslice. To be implemented in the derived unpacker algos. Unused as "Unpack(timeslice, component)" is overloaded, but necessary to avoir pure virtual class.
ts | timeslice pointer |
icomp | index to the component to be unpacked |
imslice | index of the microslice to be unpacked |
Definition at line 287 of file CbmBmonUnpackAlgo.h.
|
private |
Actual unpacker algo.
Definition at line 291 of file CbmBmonUnpackAlgo.h.
Referenced by FinalizeComponent(), finish(), finishDerived(), GetOptOutAVec(), GetOptOutBVec(), GetParContainerRequest(), GetSystemTimeOffset(), Init(), init(), initParSet(), initParSet(), SetDoIgnoreOverlappMs(), SetFlagBmonParMode(), SetFlagEpochCountHack2021(), SetMonitor(), SetOptOutAVec(), SetOptOutBVec(), SetParFileName(), SetParFilesBasePath(), SetSystemTimeOffset(), SetTsStartTime(), and Unpack().