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

#include <CbmMcbm2018UnpackerTaskTof.h>

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

Public Member Functions

 CbmMcbm2018UnpackerTaskTof (UInt_t uNbSdpb=1)
 
 CbmMcbm2018UnpackerTaskTof (const CbmMcbm2018UnpackerTaskTof &)=delete
 
CbmMcbm2018UnpackerTaskTof operator= (const CbmMcbm2018UnpackerTaskTof &)=delete
 
virtual ~CbmMcbm2018UnpackerTaskTof ()
 
virtual Bool_t Init ()
 
virtual Bool_t DoUnpack (const fles::Timeslice &ts, size_t component)
 
virtual void Reset ()
 
virtual void Finish ()
 
void SetParContainers ()
 
Bool_t InitContainers ()
 
Bool_t ReInitContainers ()
 
void AddMsComponentToList (size_t component, UShort_t usDetectorId)
 Temp until we change from CbmMcbmUnpack to something else.
 
void SetNbMsInTs (size_t, size_t)
 
void SetMonitorMode (Bool_t bFlagIn=kTRUE)
 Algo settings setters.
 
void SetIgnoreOverlapMs (Bool_t bFlagIn=kTRUE)
 
void SetTimeOffsetNs (Double_t dOffsetIn=0.0)
 
void SetDiamondDpbIdx (UInt_t uIdx=2)
 
void SetSeparateArrayBmon (Bool_t bFlagIn=kTRUE)
 Task settings.
 
void SetDigiMaskAndIdBmon (UInt_t uMask, UInt_t uMaskedIdBmon)
 
void SetWriteOutputFlag (Bool_t bFlagIn)
 

Private Attributes

Bool_t fbMonitorMode
 Control flags.
 
Bool_t fbDebugMonitorMode
 Switch ON the filling of a minimal set of histograms.
 
Bool_t fbSeparateArrayBmon
 Switch ON the filling of a additional set of histograms.
 
Bool_t fbWriteOutput
 If ON, Bmon digis are saved in separate TClonesArray.
 
UInt_t fuDigiMaskedIdBmon
 If ON the output TClonesArray of digi is written to disk.
 
UInt_t fuDigiMaskId
 
uint64_t fulTsCounter
 Statistics & first TS rejection.
 
std::vector< CbmTofDigi > * fpvDigiTof = nullptr
 Output vectors.
 
std::vector< CbmTofDigi > * fpvDigiBmon = nullptr
 
TH1 * fhArraySize = nullptr
 Histograms.
 
TH1 * fhArrayCapacity = nullptr
 
CbmMcbm2018UnpackerAlgoToffUnpackerAlgo
 Processing algo.
 

Detailed Description

Definition at line 24 of file CbmMcbm2018UnpackerTaskTof.h.

Constructor & Destructor Documentation

◆ CbmMcbm2018UnpackerTaskTof() [1/2]

CbmMcbm2018UnpackerTaskTof::CbmMcbm2018UnpackerTaskTof ( UInt_t uNbSdpb = 1)

Definition at line 40 of file CbmMcbm2018UnpackerTaskTof.cxx.

References fUnpackerAlgo.

◆ CbmMcbm2018UnpackerTaskTof() [2/2]

CbmMcbm2018UnpackerTaskTof::CbmMcbm2018UnpackerTaskTof ( const CbmMcbm2018UnpackerTaskTof & )
delete

◆ ~CbmMcbm2018UnpackerTaskTof()

CbmMcbm2018UnpackerTaskTof::~CbmMcbm2018UnpackerTaskTof ( )
virtual

Definition at line 54 of file CbmMcbm2018UnpackerTaskTof.cxx.

References fUnpackerAlgo.

Member Function Documentation

◆ AddMsComponentToList()

void CbmMcbm2018UnpackerTaskTof::AddMsComponentToList ( size_t component,
UShort_t usDetectorId )
virtual

Temp until we change from CbmMcbmUnpack to something else.

Implements CbmMcbmUnpack.

Definition at line 161 of file CbmMcbm2018UnpackerTaskTof.cxx.

References CbmMcbm2018UnpackerAlgoTof::AddMsComponentToList(), and fUnpackerAlgo.

◆ DoUnpack()

Bool_t CbmMcbm2018UnpackerTaskTof::DoUnpack ( const fles::Timeslice & ts,
size_t component )
virtual

◆ Finish()

void CbmMcbm2018UnpackerTaskTof::Finish ( )
virtual

If monitor mode enabled, trigger histos creation, obtain pointer on them and add them to the HTTP server

Obtain vector of pointers on each histo from the algo (+ optionally desired folder)

Save old global file and folder pointer to avoid messing with FairRoot

Register the histos in the HTTP server

Make sure we end up in chosen folder

Write plot

Restore old global file and folder pointer to avoid messing with FairRoot

Implements CbmMcbmUnpack.

Definition at line 233 of file CbmMcbm2018UnpackerTaskTof.cxx.

References fbMonitorMode, fhArrayCapacity, fhArraySize, fUnpackerAlgo, and CbmStar2019Algo< T >::GetHistoVector().

◆ Init()

Bool_t CbmMcbm2018UnpackerTaskTof::Init ( )
virtual

Implements CbmMcbmUnpack.

Definition at line 56 of file CbmMcbm2018UnpackerTaskTof.cxx.

References fbSeparateArrayBmon, fbWriteOutput, fpvDigiBmon, and fpvDigiTof.

◆ InitContainers()

Bool_t CbmMcbm2018UnpackerTaskTof::InitContainers ( )
virtual

Control flags

If monitor mode enabled, trigger histos creation, obtain pointer on them and add them to the HTTP server

Trigger histo creation on all associated algos

Obtain vector of pointers on each histo from the algo (+ optionally desired folder)

Register the histos in the HTTP server

Reimplemented from CbmMcbmUnpack.

Definition at line 99 of file CbmMcbm2018UnpackerTaskTof.cxx.

References CbmMcbm2018UnpackerAlgoTof::CreateHistograms(), fbMonitorMode, fhArrayCapacity, fhArraySize, fUnpackerAlgo, CbmStar2019Algo< T >::GetHistoVector(), CbmMcbm2018UnpackerAlgoTof::InitContainers(), and CbmMcbm2018UnpackerAlgoTof::SetMonitorMode().

◆ operator=()

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

◆ ReInitContainers()

Bool_t CbmMcbm2018UnpackerTaskTof::ReInitContainers ( )
virtual

Reimplemented from CbmMcbmUnpack.

Definition at line 153 of file CbmMcbm2018UnpackerTaskTof.cxx.

References fUnpackerAlgo, and CbmMcbm2018UnpackerAlgoTof::ReInitContainers().

◆ Reset()

void CbmMcbm2018UnpackerTaskTof::Reset ( )
virtual

Implements CbmMcbmUnpack.

Definition at line 225 of file CbmMcbm2018UnpackerTaskTof.cxx.

References fbSeparateArrayBmon, fpvDigiBmon, and fpvDigiTof.

◆ SetDiamondDpbIdx()

void CbmMcbm2018UnpackerTaskTof::SetDiamondDpbIdx ( UInt_t uIdx = 2)

◆ SetDigiMaskAndIdBmon()

void CbmMcbm2018UnpackerTaskTof::SetDigiMaskAndIdBmon ( UInt_t uMask,
UInt_t uMaskedIdBmon )
inline

Definition at line 57 of file CbmMcbm2018UnpackerTaskTof.h.

References fuDigiMaskedIdBmon, and fuDigiMaskId.

◆ SetIgnoreOverlapMs()

void CbmMcbm2018UnpackerTaskTof::SetIgnoreOverlapMs ( Bool_t bFlagIn = kTRUE)

◆ SetMonitorMode()

void CbmMcbm2018UnpackerTaskTof::SetMonitorMode ( Bool_t bFlagIn = kTRUE)
inline

Algo settings setters.

Definition at line 50 of file CbmMcbm2018UnpackerTaskTof.h.

References fbMonitorMode.

◆ SetNbMsInTs()

void CbmMcbm2018UnpackerTaskTof::SetNbMsInTs ( size_t ,
size_t  )
inlinevirtual

Implements CbmMcbmUnpack.

Definition at line 47 of file CbmMcbm2018UnpackerTaskTof.h.

◆ SetParContainers()

void CbmMcbm2018UnpackerTaskTof::SetParContainers ( )
virtual

◆ SetSeparateArrayBmon()

void CbmMcbm2018UnpackerTaskTof::SetSeparateArrayBmon ( Bool_t bFlagIn = kTRUE)
inline

Task settings.

Definition at line 56 of file CbmMcbm2018UnpackerTaskTof.h.

References fbSeparateArrayBmon.

◆ SetTimeOffsetNs()

void CbmMcbm2018UnpackerTaskTof::SetTimeOffsetNs ( Double_t dOffsetIn = 0.0)

◆ SetWriteOutputFlag()

void CbmMcbm2018UnpackerTaskTof::SetWriteOutputFlag ( Bool_t bFlagIn)
inline

Definition at line 62 of file CbmMcbm2018UnpackerTaskTof.h.

References fbWriteOutput.

Member Data Documentation

◆ fbDebugMonitorMode

Bool_t CbmMcbm2018UnpackerTaskTof::fbDebugMonitorMode
private

Switch ON the filling of a minimal set of histograms.

Definition at line 67 of file CbmMcbm2018UnpackerTaskTof.h.

◆ fbMonitorMode

Bool_t CbmMcbm2018UnpackerTaskTof::fbMonitorMode
private

Control flags.

Definition at line 66 of file CbmMcbm2018UnpackerTaskTof.h.

Referenced by DoUnpack(), Finish(), InitContainers(), and SetMonitorMode().

◆ fbSeparateArrayBmon

Bool_t CbmMcbm2018UnpackerTaskTof::fbSeparateArrayBmon
private

Switch ON the filling of a additional set of histograms.

Definition at line 68 of file CbmMcbm2018UnpackerTaskTof.h.

Referenced by DoUnpack(), Init(), Reset(), and SetSeparateArrayBmon().

◆ fbWriteOutput

Bool_t CbmMcbm2018UnpackerTaskTof::fbWriteOutput
private

If ON, Bmon digis are saved in separate TClonesArray.

Definition at line 69 of file CbmMcbm2018UnpackerTaskTof.h.

Referenced by Init(), and SetWriteOutputFlag().

◆ fhArrayCapacity

TH1* CbmMcbm2018UnpackerTaskTof::fhArrayCapacity = nullptr
private

Definition at line 84 of file CbmMcbm2018UnpackerTaskTof.h.

Referenced by DoUnpack(), Finish(), and InitContainers().

◆ fhArraySize

TH1* CbmMcbm2018UnpackerTaskTof::fhArraySize = nullptr
private

Histograms.

Definition at line 83 of file CbmMcbm2018UnpackerTaskTof.h.

Referenced by DoUnpack(), Finish(), and InitContainers().

◆ fpvDigiBmon

std::vector<CbmTofDigi>* CbmMcbm2018UnpackerTaskTof::fpvDigiBmon = nullptr
private

Definition at line 80 of file CbmMcbm2018UnpackerTaskTof.h.

Referenced by DoUnpack(), Init(), and Reset().

◆ fpvDigiTof

std::vector<CbmTofDigi>* CbmMcbm2018UnpackerTaskTof::fpvDigiTof = nullptr
private

Output vectors.

Definition at line 79 of file CbmMcbm2018UnpackerTaskTof.h.

Referenced by DoUnpack(), Init(), and Reset().

◆ fuDigiMaskedIdBmon

UInt_t CbmMcbm2018UnpackerTaskTof::fuDigiMaskedIdBmon
private

If ON the output TClonesArray of digi is written to disk.

Parameters

Definition at line 72 of file CbmMcbm2018UnpackerTaskTof.h.

Referenced by DoUnpack(), and SetDigiMaskAndIdBmon().

◆ fuDigiMaskId

UInt_t CbmMcbm2018UnpackerTaskTof::fuDigiMaskId
private

Definition at line 73 of file CbmMcbm2018UnpackerTaskTof.h.

Referenced by DoUnpack(), and SetDigiMaskAndIdBmon().

◆ fulTsCounter

uint64_t CbmMcbm2018UnpackerTaskTof::fulTsCounter
private

Statistics & first TS rejection.

Definition at line 76 of file CbmMcbm2018UnpackerTaskTof.h.

Referenced by DoUnpack().

◆ fUnpackerAlgo


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