CbmRoot
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. More...
 
void SetNbMsInTs (size_t, size_t)
 
void SetMonitorMode (Bool_t bFlagIn=kTRUE)
 Algo settings setters. More...
 
void SetIgnoreOverlapMs (Bool_t bFlagIn=kTRUE)
 
void SetTimeOffsetNs (Double_t dOffsetIn=0.0)
 
void SetDiamondDpbIdx (UInt_t uIdx=2)
 
void SetSeparateArrayT0 (Bool_t bFlagIn=kTRUE)
 Task settings. More...
 
void SetDigiMaskAndIdT0 (UInt_t uMask, UInt_t uMaskedIdT0)
 
void SetWriteOutputFlag (Bool_t bFlagIn)
 

Private Attributes

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

Detailed Description

Definition at line 20 of file CbmMcbm2018UnpackerTaskTof.h.

Constructor & Destructor Documentation

◆ CbmMcbm2018UnpackerTaskTof() [1/2]

CbmMcbm2018UnpackerTaskTof::CbmMcbm2018UnpackerTaskTof ( UInt_t  uNbSdpb = 1)

Definition at line 35 of file CbmMcbm2018UnpackerTaskTof.cxx.

References fUnpackerAlgo.

◆ CbmMcbm2018UnpackerTaskTof() [2/2]

CbmMcbm2018UnpackerTaskTof::CbmMcbm2018UnpackerTaskTof ( const CbmMcbm2018UnpackerTaskTof )
delete

◆ ~CbmMcbm2018UnpackerTaskTof()

CbmMcbm2018UnpackerTaskTof::~CbmMcbm2018UnpackerTaskTof ( )
virtual

Definition at line 48 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 166 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)

(Re-)Create ROOT file to store the histos

Register the histos in the HTTP server

Make sure we end up in chosen folder

Write plot

Implements CbmMcbmUnpack.

Definition at line 247 of file CbmMcbm2018UnpackerTaskTof.cxx.

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

◆ Init()

Bool_t CbmMcbm2018UnpackerTaskTof::Init ( )
virtual

Implements CbmMcbmUnpack.

Definition at line 52 of file CbmMcbm2018UnpackerTaskTof.cxx.

References fbSeparateArrayT0, fbWriteOutput, fpvDigiT0, 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 94 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 159 of file CbmMcbm2018UnpackerTaskTof.cxx.

References fUnpackerAlgo, and CbmMcbm2018UnpackerAlgoTof::ReInitContainers().

◆ Reset()

void CbmMcbm2018UnpackerTaskTof::Reset ( )
virtual

Implements CbmMcbmUnpack.

Definition at line 238 of file CbmMcbm2018UnpackerTaskTof.cxx.

References fbSeparateArrayT0, fpvDigiT0, and fpvDigiTof.

◆ SetDiamondDpbIdx()

void CbmMcbm2018UnpackerTaskTof::SetDiamondDpbIdx ( UInt_t  uIdx = 2)

◆ SetDigiMaskAndIdT0()

void CbmMcbm2018UnpackerTaskTof::SetDigiMaskAndIdT0 ( UInt_t  uMask,
UInt_t  uMaskedIdT0 
)
inline

Definition at line 58 of file CbmMcbm2018UnpackerTaskTof.h.

References fuDigiMaskedIdT0, 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 47 of file CbmMcbm2018UnpackerTaskTof.h.

References fbMonitorMode.

◆ SetNbMsInTs()

void CbmMcbm2018UnpackerTaskTof::SetNbMsInTs ( size_t  ,
size_t   
)
inlinevirtual

Implements CbmMcbmUnpack.

Definition at line 44 of file CbmMcbm2018UnpackerTaskTof.h.

◆ SetParContainers()

void CbmMcbm2018UnpackerTaskTof::SetParContainers ( )
virtual

◆ SetSeparateArrayT0()

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

Task settings.

Definition at line 55 of file CbmMcbm2018UnpackerTaskTof.h.

References fbSeparateArrayT0.

◆ 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 69 of file CbmMcbm2018UnpackerTaskTof.h.

◆ fbMonitorMode

Bool_t CbmMcbm2018UnpackerTaskTof::fbMonitorMode
private

Control flags.

Definition at line 67 of file CbmMcbm2018UnpackerTaskTof.h.

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

◆ fbSeparateArrayT0

Bool_t CbmMcbm2018UnpackerTaskTof::fbSeparateArrayT0
private

Switch ON the filling of a additional set of histograms.

Definition at line 71 of file CbmMcbm2018UnpackerTaskTof.h.

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

◆ fbWriteOutput

Bool_t CbmMcbm2018UnpackerTaskTof::fbWriteOutput
private

If ON, T0 digis are saved in separate TClonesArray.

Definition at line 73 of file CbmMcbm2018UnpackerTaskTof.h.

Referenced by Init(), and SetWriteOutputFlag().

◆ fhArrayCapacity

TH1* CbmMcbm2018UnpackerTaskTof::fhArrayCapacity = nullptr
private

Definition at line 88 of file CbmMcbm2018UnpackerTaskTof.h.

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

◆ fhArraySize

TH1* CbmMcbm2018UnpackerTaskTof::fhArraySize = nullptr
private

Histograms.

Definition at line 87 of file CbmMcbm2018UnpackerTaskTof.h.

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

◆ fpvDigiT0

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

Definition at line 84 of file CbmMcbm2018UnpackerTaskTof.h.

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

◆ fpvDigiTof

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

Output vectors.

Definition at line 83 of file CbmMcbm2018UnpackerTaskTof.h.

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

◆ fuDigiMaskedIdT0

UInt_t CbmMcbm2018UnpackerTaskTof::fuDigiMaskedIdT0
private

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

Parameters

Definition at line 76 of file CbmMcbm2018UnpackerTaskTof.h.

Referenced by DoUnpack(), and SetDigiMaskAndIdT0().

◆ fuDigiMaskId

UInt_t CbmMcbm2018UnpackerTaskTof::fuDigiMaskId
private

Definition at line 77 of file CbmMcbm2018UnpackerTaskTof.h.

Referenced by DoUnpack(), and SetDigiMaskAndIdT0().

◆ fulTsCounter

uint64_t CbmMcbm2018UnpackerTaskTof::fulTsCounter
private

Statistics & first TS rejection.

Definition at line 80 of file CbmMcbm2018UnpackerTaskTof.h.

Referenced by DoUnpack().

◆ fUnpackerAlgo


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