CbmRoot
CbmMcbm2018UnpackerTaskHodo Class Reference

#include <CbmMcbm2018UnpackerTaskHodo.h>

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

Public Member Functions

 CbmMcbm2018UnpackerTaskHodo (UInt_t uNbSdpb=1)
 
 CbmMcbm2018UnpackerTaskHodo (const CbmMcbm2018UnpackerTaskHodo &)=delete
 
CbmMcbm2018UnpackerTaskHodo operator= (const CbmMcbm2018UnpackerTaskHodo &)=delete
 
virtual ~CbmMcbm2018UnpackerTaskHodo ()
 
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)
 
void SetIgnoreOverlapMs (Bool_t bFlagIn=kTRUE)
 
void SetTimeOffsetNs (Double_t dOffsetIn=0.0)
 
void SetTimeOffsetNsAsic (UInt_t uAsicIdx, Double_t dOffsetIn=0.0)
 
void SetTimeOffsetNsSts (Double_t dOffsetIn=0.0)
 
void SetTimeOffsetNsAsicSts (UInt_t uAsicIdx, Double_t dOffsetIn=0.0)
 
void MaskNoisyChannelSts (UInt_t uFeb, UInt_t uChan, Bool_t bMasked=kTRUE)
 
void SetAdcCutSts (UInt_t uAdc)
 
void SetWriteOutputFlag (Bool_t bFlagIn)
 Task settings. More...
 

Private Attributes

Bool_t fbMonitorMode
 Control flags. More...
 
Bool_t fbDebugMonitorMode
 Switch ON the filling of a minimal set of histograms. More...
 
Bool_t fbWriteOutput
 Switch ON the filling of a additional set of histograms. More...
 
std::vector< FebChanMaskStsfvChanMasks
 If ON the output TClonesArray of digi is written to disk. More...
 
uint64_t fulTsCounter
 Statistics & first TS rejection. More...
 
std::vector< CbmStsDigi > * fpvDigiSts = nullptr
 Output vectors. More...
 
std::vector< CbmErrorMessage > * fpvErrorSts = nullptr
 
CbmMcbm2018UnpackerAlgoHodofUnpackerAlgo
 Processing algo. More...
 
CbmMcbm2018UnpackerAlgoStsfUnpackerAlgoSts = nullptr
 

Detailed Description

Definition at line 26 of file CbmMcbm2018UnpackerTaskHodo.h.

Constructor & Destructor Documentation

◆ CbmMcbm2018UnpackerTaskHodo() [1/2]

CbmMcbm2018UnpackerTaskHodo::CbmMcbm2018UnpackerTaskHodo ( UInt_t  uNbSdpb = 1)

Definition at line 37 of file CbmMcbm2018UnpackerTaskHodo.cxx.

References fUnpackerAlgo, and fUnpackerAlgoSts.

◆ CbmMcbm2018UnpackerTaskHodo() [2/2]

CbmMcbm2018UnpackerTaskHodo::CbmMcbm2018UnpackerTaskHodo ( const CbmMcbm2018UnpackerTaskHodo )
delete

◆ ~CbmMcbm2018UnpackerTaskHodo()

CbmMcbm2018UnpackerTaskHodo::~CbmMcbm2018UnpackerTaskHodo ( )
virtual

Definition at line 48 of file CbmMcbm2018UnpackerTaskHodo.cxx.

References fUnpackerAlgo, and fUnpackerAlgoSts.

Member Function Documentation

◆ AddMsComponentToList()

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

◆ DoUnpack()

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

Copy the digis in the output Buffer

Sort the buffers of hits due to the time offsets applied

Copy the errors in the output Buffer Cannot be done in algo as merging outputs of 2 different ones! => Less efficient than STS only due to double sorting

Implements CbmMcbmUnpack.

Definition at line 196 of file CbmMcbm2018UnpackerTaskHodo.cxx.

References bMcbm2018UnpackerTaskHodoResetHistos, CbmStar2019Algo< T >::ClearErrorVector(), CbmStar2019Algo< T >::ClearVector(), fbMonitorMode, fpvDigiSts, fpvErrorSts, fulTsCounter, fUnpackerAlgo, fUnpackerAlgoSts, CbmStar2019Algo< T >::GetErrorVector(), CbmStar2019Algo< T >::GetVector(), CbmMcbm2018UnpackerAlgoHodo::ProcessTs(), CbmMcbm2018UnpackerAlgoSts::ProcessTs(), CbmMcbm2018UnpackerAlgoHodo::ResetHistograms(), and CbmMcbm2018UnpackerAlgoSts::ResetHistograms().

◆ Finish()

void CbmMcbm2018UnpackerTaskHodo::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 260 of file CbmMcbm2018UnpackerTaskHodo.cxx.

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

◆ Init()

Bool_t CbmMcbm2018UnpackerTaskHodo::Init ( )
virtual

WARNING: incompatible with the hodoscopes unpacker!!!!

Create output vector and register it

create output error vector and register it

Implements CbmMcbmUnpack.

Definition at line 53 of file CbmMcbm2018UnpackerTaskHodo.cxx.

References fbWriteOutput, fpvDigiSts, and fpvErrorSts.

◆ InitContainers()

Bool_t CbmMcbm2018UnpackerTaskHodo::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 121 of file CbmMcbm2018UnpackerTaskHodo.cxx.

References CbmMcbm2018UnpackerAlgoHodo::CreateHistograms(), CbmMcbm2018UnpackerAlgoSts::CreateHistograms(), fbMonitorMode, fUnpackerAlgo, fUnpackerAlgoSts, fvChanMasks, CbmStar2019Algo< T >::GetHistoVector(), CbmMcbm2018UnpackerAlgoHodo::InitContainers(), CbmMcbm2018UnpackerAlgoSts::InitContainers(), CbmMcbm2018UnpackerAlgoSts::MaskNoisyChannel(), CbmMcbm2018UnpackerAlgoHodo::SetMonitorMode(), and CbmMcbm2018UnpackerAlgoSts::SetMonitorMode().

◆ MaskNoisyChannelSts()

void CbmMcbm2018UnpackerTaskHodo::MaskNoisyChannelSts ( UInt_t  uFeb,
UInt_t  uChan,
Bool_t  bMasked = kTRUE 
)

Definition at line 321 of file CbmMcbm2018UnpackerTaskHodo.cxx.

References fvChanMasks.

◆ operator=()

CbmMcbm2018UnpackerTaskHodo CbmMcbm2018UnpackerTaskHodo::operator= ( const CbmMcbm2018UnpackerTaskHodo )
delete

◆ ReInitContainers()

Bool_t CbmMcbm2018UnpackerTaskHodo::ReInitContainers ( )
virtual

◆ Reset()

void CbmMcbm2018UnpackerTaskHodo::Reset ( )
virtual

Implements CbmMcbmUnpack.

Definition at line 255 of file CbmMcbm2018UnpackerTaskHodo.cxx.

References fpvDigiSts, and fpvErrorSts.

◆ SetAdcCutSts()

void CbmMcbm2018UnpackerTaskHodo::SetAdcCutSts ( UInt_t  uAdc)

◆ SetIgnoreOverlapMs()

void CbmMcbm2018UnpackerTaskHodo::SetIgnoreOverlapMs ( Bool_t  bFlagIn = kTRUE)

◆ SetMonitorMode()

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

Definition at line 52 of file CbmMcbm2018UnpackerTaskHodo.h.

References fbMonitorMode.

◆ SetNbMsInTs()

void CbmMcbm2018UnpackerTaskHodo::SetNbMsInTs ( size_t  ,
size_t   
)
inlinevirtual

Implements CbmMcbmUnpack.

Definition at line 50 of file CbmMcbm2018UnpackerTaskHodo.h.

◆ SetParContainers()

void CbmMcbm2018UnpackerTaskHodo::SetParContainers ( )
virtual

◆ SetTimeOffsetNs()

void CbmMcbm2018UnpackerTaskHodo::SetTimeOffsetNs ( Double_t  dOffsetIn = 0.0)

◆ SetTimeOffsetNsAsic()

void CbmMcbm2018UnpackerTaskHodo::SetTimeOffsetNsAsic ( UInt_t  uAsicIdx,
Double_t  dOffsetIn = 0.0 
)

◆ SetTimeOffsetNsAsicSts()

void CbmMcbm2018UnpackerTaskHodo::SetTimeOffsetNsAsicSts ( UInt_t  uAsicIdx,
Double_t  dOffsetIn = 0.0 
)

◆ SetTimeOffsetNsSts()

void CbmMcbm2018UnpackerTaskHodo::SetTimeOffsetNsSts ( Double_t  dOffsetIn = 0.0)

◆ SetWriteOutputFlag()

void CbmMcbm2018UnpackerTaskHodo::SetWriteOutputFlag ( Bool_t  bFlagIn)
inline

Task settings.

Definition at line 66 of file CbmMcbm2018UnpackerTaskHodo.h.

References fbWriteOutput.

Member Data Documentation

◆ fbDebugMonitorMode

Bool_t CbmMcbm2018UnpackerTaskHodo::fbDebugMonitorMode
private

Switch ON the filling of a minimal set of histograms.

Definition at line 73 of file CbmMcbm2018UnpackerTaskHodo.h.

◆ fbMonitorMode

Bool_t CbmMcbm2018UnpackerTaskHodo::fbMonitorMode
private

Control flags.

Definition at line 71 of file CbmMcbm2018UnpackerTaskHodo.h.

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

◆ fbWriteOutput

Bool_t CbmMcbm2018UnpackerTaskHodo::fbWriteOutput
private

Switch ON the filling of a additional set of histograms.

Definition at line 75 of file CbmMcbm2018UnpackerTaskHodo.h.

Referenced by Init(), and SetWriteOutputFlag().

◆ fpvDigiSts

std::vector<CbmStsDigi>* CbmMcbm2018UnpackerTaskHodo::fpvDigiSts = nullptr
private

Output vectors.

Definition at line 84 of file CbmMcbm2018UnpackerTaskHodo.h.

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

◆ fpvErrorSts

std::vector<CbmErrorMessage>* CbmMcbm2018UnpackerTaskHodo::fpvErrorSts = nullptr
private

Definition at line 85 of file CbmMcbm2018UnpackerTaskHodo.h.

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

◆ fulTsCounter

uint64_t CbmMcbm2018UnpackerTaskHodo::fulTsCounter
private

Statistics & first TS rejection.

Definition at line 81 of file CbmMcbm2018UnpackerTaskHodo.h.

Referenced by DoUnpack().

◆ fUnpackerAlgo

◆ fUnpackerAlgoSts

◆ fvChanMasks

std::vector<FebChanMaskSts> CbmMcbm2018UnpackerTaskHodo::fvChanMasks
private

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

Temporary storage of user parameters

Definition at line 78 of file CbmMcbm2018UnpackerTaskHodo.h.

Referenced by InitContainers(), and MaskNoisyChannelSts().


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