CbmRoot
CbmMcbm2018UnpackerTaskMuch Class Reference

#include <CbmMcbm2018UnpackerTaskMuch.h>

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

Public Member Functions

 CbmMcbm2018UnpackerTaskMuch (UInt_t uNbSdpb=1)
 
 CbmMcbm2018UnpackerTaskMuch (const CbmMcbm2018UnpackerTaskMuch &)=delete
 
CbmMcbm2018UnpackerTaskMuch operator= (const CbmMcbm2018UnpackerTaskMuch &)=delete
 
virtual ~CbmMcbm2018UnpackerTaskMuch ()
 
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 EnableAsicType (Int_t fiFlag=0)
 
void SetBinningFwFlag (Bool_t bEnable=kTRUE)
 => Quick and dirty hack for binning FW!!! More...
 
void SetWriteOutputFlag (Bool_t bFlagIn)
 Task settings. More...
 
void MaskNoisyChannel (UInt_t uFeb, UInt_t uChan, Bool_t bMasked=kTRUE)
 
void SetAdcCut (UInt_t uAdc)
 ADC cut. 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< MuchFebChanMaskfvChanMasks
 If ON the output TClonesArray of digi is written to disk. More...
 
uint64_t fulTsCounter
 Statistics & first TS rejection. More...
 
std::vector< CbmMuchBeamTimeDigi > * fpvDigiMuch = nullptr
 Output vectors. More...
 
std::vector< CbmErrorMessage > * fpvErrorMuch = nullptr
 
CbmMcbm2018UnpackerAlgoMuchfUnpackerAlgo
 Processing algo. More...
 

Detailed Description

Definition at line 26 of file CbmMcbm2018UnpackerTaskMuch.h.

Constructor & Destructor Documentation

◆ CbmMcbm2018UnpackerTaskMuch() [1/2]

CbmMcbm2018UnpackerTaskMuch::CbmMcbm2018UnpackerTaskMuch ( UInt_t  uNbSdpb = 1)

Definition at line 34 of file CbmMcbm2018UnpackerTaskMuch.cxx.

References fUnpackerAlgo.

◆ CbmMcbm2018UnpackerTaskMuch() [2/2]

CbmMcbm2018UnpackerTaskMuch::CbmMcbm2018UnpackerTaskMuch ( const CbmMcbm2018UnpackerTaskMuch )
delete

◆ ~CbmMcbm2018UnpackerTaskMuch()

CbmMcbm2018UnpackerTaskMuch::~CbmMcbm2018UnpackerTaskMuch ( )
virtual

Definition at line 44 of file CbmMcbm2018UnpackerTaskMuch.cxx.

References fUnpackerAlgo.

Member Function Documentation

◆ AddMsComponentToList()

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

Temp until we change from CbmMcbmUnpack to something else.

Implements CbmMcbmUnpack.

Definition at line 152 of file CbmMcbm2018UnpackerTaskMuch.cxx.

References CbmMcbm2018UnpackerAlgoMuch::AddMsComponentToList(), and fUnpackerAlgo.

◆ DoUnpack()

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

◆ EnableAsicType()

void CbmMcbm2018UnpackerTaskMuch::EnableAsicType ( Int_t  fiFlag = 0)

◆ Finish()

void CbmMcbm2018UnpackerTaskMuch::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 193 of file CbmMcbm2018UnpackerTaskMuch.cxx.

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

◆ Init()

Bool_t CbmMcbm2018UnpackerTaskMuch::Init ( )
virtual

Get address of vector from algo

Get address of error vector from algo

Implements CbmMcbmUnpack.

Definition at line 48 of file CbmMcbm2018UnpackerTaskMuch.cxx.

References fbWriteOutput, fpvDigiMuch, fpvErrorMuch, fUnpackerAlgo, CbmStar2019Algo< T >::GetErrorVector(), and CbmStar2019Algo< T >::GetVector().

◆ InitContainers()

Bool_t CbmMcbm2018UnpackerTaskMuch::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 90 of file CbmMcbm2018UnpackerTaskMuch.cxx.

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

◆ MaskNoisyChannel()

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

Definition at line 249 of file CbmMcbm2018UnpackerTaskMuch.cxx.

References fvChanMasks.

◆ operator=()

CbmMcbm2018UnpackerTaskMuch CbmMcbm2018UnpackerTaskMuch::operator= ( const CbmMcbm2018UnpackerTaskMuch )
delete

◆ ReInitContainers()

Bool_t CbmMcbm2018UnpackerTaskMuch::ReInitContainers ( )
virtual

◆ Reset()

void CbmMcbm2018UnpackerTaskMuch::Reset ( )
virtual

◆ SetAdcCut()

void CbmMcbm2018UnpackerTaskMuch::SetAdcCut ( UInt_t  uAdc)

ADC cut.

Definition at line 256 of file CbmMcbm2018UnpackerTaskMuch.cxx.

References fUnpackerAlgo, and CbmMcbm2018UnpackerAlgoMuch::SetAdcCut().

◆ SetBinningFwFlag()

void CbmMcbm2018UnpackerTaskMuch::SetBinningFwFlag ( Bool_t  bEnable = kTRUE)

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

Definition at line 245 of file CbmMcbm2018UnpackerTaskMuch.cxx.

References fUnpackerAlgo, and CbmMcbm2018UnpackerAlgoMuch::SetBinningFwFlag().

◆ SetIgnoreOverlapMs()

void CbmMcbm2018UnpackerTaskMuch::SetIgnoreOverlapMs ( Bool_t  bFlagIn = kTRUE)

◆ SetMonitorMode()

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

Definition at line 52 of file CbmMcbm2018UnpackerTaskMuch.h.

References fbMonitorMode.

◆ SetNbMsInTs()

void CbmMcbm2018UnpackerTaskMuch::SetNbMsInTs ( size_t  ,
size_t   
)
inlinevirtual

Implements CbmMcbmUnpack.

Definition at line 50 of file CbmMcbm2018UnpackerTaskMuch.h.

◆ SetParContainers()

void CbmMcbm2018UnpackerTaskMuch::SetParContainers ( )
virtual

◆ SetTimeOffsetNs()

void CbmMcbm2018UnpackerTaskMuch::SetTimeOffsetNs ( Double_t  dOffsetIn = 0.0)

◆ SetTimeOffsetNsAsic()

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

◆ SetWriteOutputFlag()

void CbmMcbm2018UnpackerTaskMuch::SetWriteOutputFlag ( Bool_t  bFlagIn)
inline

Task settings.

Definition at line 66 of file CbmMcbm2018UnpackerTaskMuch.h.

References fbWriteOutput.

Member Data Documentation

◆ fbDebugMonitorMode

Bool_t CbmMcbm2018UnpackerTaskMuch::fbDebugMonitorMode
private

Switch ON the filling of a minimal set of histograms.

Definition at line 77 of file CbmMcbm2018UnpackerTaskMuch.h.

◆ fbMonitorMode

Bool_t CbmMcbm2018UnpackerTaskMuch::fbMonitorMode
private

Control flags.

Definition at line 75 of file CbmMcbm2018UnpackerTaskMuch.h.

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

◆ fbWriteOutput

Bool_t CbmMcbm2018UnpackerTaskMuch::fbWriteOutput
private

Switch ON the filling of a additional set of histograms.

Definition at line 79 of file CbmMcbm2018UnpackerTaskMuch.h.

Referenced by Init(), and SetWriteOutputFlag().

◆ fpvDigiMuch

std::vector<CbmMuchBeamTimeDigi>* CbmMcbm2018UnpackerTaskMuch::fpvDigiMuch = nullptr
private

Output vectors.

Definition at line 88 of file CbmMcbm2018UnpackerTaskMuch.h.

Referenced by Init().

◆ fpvErrorMuch

std::vector<CbmErrorMessage>* CbmMcbm2018UnpackerTaskMuch::fpvErrorMuch = nullptr
private

Definition at line 89 of file CbmMcbm2018UnpackerTaskMuch.h.

Referenced by Init().

◆ fulTsCounter

uint64_t CbmMcbm2018UnpackerTaskMuch::fulTsCounter
private

Statistics & first TS rejection.

Definition at line 85 of file CbmMcbm2018UnpackerTaskMuch.h.

Referenced by DoUnpack().

◆ fUnpackerAlgo

◆ fvChanMasks

std::vector<MuchFebChanMask> CbmMcbm2018UnpackerTaskMuch::fvChanMasks
private

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

Temporary storage of user parameters

Definition at line 82 of file CbmMcbm2018UnpackerTaskMuch.h.

Referenced by InitContainers(), and MaskNoisyChannel().


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