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

#include <CbmMcbm2018UnpackerTaskSts.h>

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

Public Member Functions

 CbmMcbm2018UnpackerTaskSts (UInt_t uNbSdpb=1)
 
 CbmMcbm2018UnpackerTaskSts (const CbmMcbm2018UnpackerTaskSts &)=delete
 
CbmMcbm2018UnpackerTaskSts operator= (const CbmMcbm2018UnpackerTaskSts &)=delete
 
virtual ~CbmMcbm2018UnpackerTaskSts ()
 
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)
 
void SetIgnoreOverlapMs (Bool_t bFlagIn=kTRUE)
 
void SetTimeOffsetNs (Double_t dOffsetIn=0.0)
 
void SetTimeOffsetNsAsic (UInt_t uAsicIdx, Double_t dOffsetIn=0.0)
 
void MaskNoisyChannel (UInt_t uFeb, UInt_t uChan, Bool_t bMasked=kTRUE)
 
void SetAdcCut (UInt_t uAdc)
 
void SetBinningFwFlag (Bool_t bEnable=kTRUE)
 => Quick and dirty hack for binning FW!!!
 
void SetWriteOutputFlag (Bool_t bFlagIn)
 Task settings.
 
void SeparatePulserOutput (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 fbWriteOutput
 Switch ON the filling of a additional set of histograms.
 
Bool_t fbPulserOutput = kTRUE
 If ON the output TClonesArray of digi is written to disk.
 
std::vector< FebChanMaskfvChanMasks
 If ON a separate output vector of digi is used for the pulser.
 
uint64_t fulTsCounter
 Statistics & first TS rejection.
 
std::vector< CbmStsDigi > * fpvDigiSts = nullptr
 Output vectors.
 
std::vector< CbmStsDigi > * fpvPulserDigiSts = nullptr
 
std::vector< CbmErrorMessage > * fpvErrorSts = nullptr
 
CbmMcbm2018UnpackerAlgoStsfUnpackerAlgo
 Processing algo.
 

Detailed Description

Definition at line 30 of file CbmMcbm2018UnpackerTaskSts.h.

Constructor & Destructor Documentation

◆ CbmMcbm2018UnpackerTaskSts() [1/2]

CbmMcbm2018UnpackerTaskSts::CbmMcbm2018UnpackerTaskSts ( UInt_t uNbSdpb = 1)

Definition at line 39 of file CbmMcbm2018UnpackerTaskSts.cxx.

References fUnpackerAlgo.

◆ CbmMcbm2018UnpackerTaskSts() [2/2]

CbmMcbm2018UnpackerTaskSts::CbmMcbm2018UnpackerTaskSts ( const CbmMcbm2018UnpackerTaskSts & )
delete

◆ ~CbmMcbm2018UnpackerTaskSts()

CbmMcbm2018UnpackerTaskSts::~CbmMcbm2018UnpackerTaskSts ( )
virtual

Definition at line 50 of file CbmMcbm2018UnpackerTaskSts.cxx.

References fUnpackerAlgo.

Member Function Documentation

◆ AddMsComponentToList()

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

Temp until we change from CbmMcbmUnpack to something else.

Implements CbmMcbmUnpack.

Definition at line 165 of file CbmMcbm2018UnpackerTaskSts.cxx.

References CbmMcbm2018UnpackerAlgoSts::AddMsComponentToList(), and fUnpackerAlgo.

◆ DoUnpack()

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

◆ Finish()

void CbmMcbm2018UnpackerTaskSts::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 206 of file CbmMcbm2018UnpackerTaskSts.cxx.

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

◆ Init()

Bool_t CbmMcbm2018UnpackerTaskSts::Init ( )
virtual

WARNING: incompatible with the hodoscopes unpacker!!!!

Get address of vector from algo

Get address of pulser vector from algo

Get address of error vector from algo

Implements CbmMcbmUnpack.

Definition at line 52 of file CbmMcbm2018UnpackerTaskSts.cxx.

References fbPulserOutput, fbWriteOutput, fpvDigiSts, fpvErrorSts, fpvPulserDigiSts, fUnpackerAlgo, CbmStar2019Algo< T >::GetErrorVector(), CbmMcbm2018UnpackerAlgoSts::GetPulserVector(), and CbmStar2019Algo< T >::GetVector().

◆ InitContainers()

Bool_t CbmMcbm2018UnpackerTaskSts::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 107 of file CbmMcbm2018UnpackerTaskSts.cxx.

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

◆ MaskNoisyChannel()

void CbmMcbm2018UnpackerTaskSts::MaskNoisyChannel ( UInt_t uFeb,
UInt_t uChan,
Bool_t bMasked = kTRUE )

Definition at line 253 of file CbmMcbm2018UnpackerTaskSts.cxx.

References fvChanMasks.

◆ operator=()

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

◆ ReInitContainers()

Bool_t CbmMcbm2018UnpackerTaskSts::ReInitContainers ( )
virtual

Reimplemented from CbmMcbmUnpack.

Definition at line 157 of file CbmMcbm2018UnpackerTaskSts.cxx.

References fUnpackerAlgo, and CbmMcbm2018UnpackerAlgoSts::ReInitContainers().

◆ Reset()

◆ SeparatePulserOutput()

void CbmMcbm2018UnpackerTaskSts::SeparatePulserOutput ( Bool_t bFlagIn)

◆ SetAdcCut()

void CbmMcbm2018UnpackerTaskSts::SetAdcCut ( UInt_t uAdc)

◆ SetBinningFwFlag()

void CbmMcbm2018UnpackerTaskSts::SetBinningFwFlag ( Bool_t bEnable = kTRUE)

=> Quick and dirty hack for binning FW!!!

Definition at line 260 of file CbmMcbm2018UnpackerTaskSts.cxx.

References fUnpackerAlgo, and CbmMcbm2018UnpackerAlgoSts::SetBinningFwFlag().

◆ SetIgnoreOverlapMs()

void CbmMcbm2018UnpackerTaskSts::SetIgnoreOverlapMs ( Bool_t bFlagIn = kTRUE)

◆ SetMonitorMode()

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

Definition at line 55 of file CbmMcbm2018UnpackerTaskSts.h.

References fbMonitorMode.

◆ SetNbMsInTs()

void CbmMcbm2018UnpackerTaskSts::SetNbMsInTs ( size_t ,
size_t  )
inlinevirtual

Implements CbmMcbmUnpack.

Definition at line 53 of file CbmMcbm2018UnpackerTaskSts.h.

◆ SetParContainers()

void CbmMcbm2018UnpackerTaskSts::SetParContainers ( )
virtual

◆ SetTimeOffsetNs()

void CbmMcbm2018UnpackerTaskSts::SetTimeOffsetNs ( Double_t dOffsetIn = 0.0)

◆ SetTimeOffsetNsAsic()

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

◆ SetWriteOutputFlag()

void CbmMcbm2018UnpackerTaskSts::SetWriteOutputFlag ( Bool_t bFlagIn)
inline

Task settings.

Definition at line 67 of file CbmMcbm2018UnpackerTaskSts.h.

References fbWriteOutput.

Member Data Documentation

◆ fbDebugMonitorMode

Bool_t CbmMcbm2018UnpackerTaskSts::fbDebugMonitorMode
private

Switch ON the filling of a minimal set of histograms.

Definition at line 73 of file CbmMcbm2018UnpackerTaskSts.h.

◆ fbMonitorMode

Bool_t CbmMcbm2018UnpackerTaskSts::fbMonitorMode
private

Control flags.

Definition at line 72 of file CbmMcbm2018UnpackerTaskSts.h.

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

◆ fbPulserOutput

Bool_t CbmMcbm2018UnpackerTaskSts::fbPulserOutput = kTRUE
private

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

Definition at line 75 of file CbmMcbm2018UnpackerTaskSts.h.

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

◆ fbWriteOutput

Bool_t CbmMcbm2018UnpackerTaskSts::fbWriteOutput
private

Switch ON the filling of a additional set of histograms.

Definition at line 74 of file CbmMcbm2018UnpackerTaskSts.h.

Referenced by Init(), and SetWriteOutputFlag().

◆ fpvDigiSts

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

Output vectors.

Definition at line 84 of file CbmMcbm2018UnpackerTaskSts.h.

Referenced by Init().

◆ fpvErrorSts

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

Definition at line 86 of file CbmMcbm2018UnpackerTaskSts.h.

Referenced by Init().

◆ fpvPulserDigiSts

std::vector<CbmStsDigi>* CbmMcbm2018UnpackerTaskSts::fpvPulserDigiSts = nullptr
private

Definition at line 85 of file CbmMcbm2018UnpackerTaskSts.h.

Referenced by Init().

◆ fulTsCounter

uint64_t CbmMcbm2018UnpackerTaskSts::fulTsCounter
private

Statistics & first TS rejection.

Definition at line 81 of file CbmMcbm2018UnpackerTaskSts.h.

Referenced by DoUnpack().

◆ fUnpackerAlgo

◆ fvChanMasks

std::vector<FebChanMask> CbmMcbm2018UnpackerTaskSts::fvChanMasks
private

If ON a separate output vector of digi is used for the pulser.

Temporary storage of user parameters

Definition at line 78 of file CbmMcbm2018UnpackerTaskSts.h.

Referenced by InitContainers(), and MaskNoisyChannel().


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