CbmRoot
CbmMcbm2018UnpackerTaskPsd Class Reference

#include <CbmMcbm2018UnpackerTaskPsd.h>

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

Public Member Functions

 CbmMcbm2018UnpackerTaskPsd (UInt_t uNbSdpb=1)
 
 CbmMcbm2018UnpackerTaskPsd (const CbmMcbm2018UnpackerTaskPsd &)=delete
 
CbmMcbm2018UnpackerTaskPsd operator= (const CbmMcbm2018UnpackerTaskPsd &)=delete
 
virtual ~CbmMcbm2018UnpackerTaskPsd ()
 
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 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...
 
UInt_t fuDigiMaskId
 If ON the output TClonesArray of digi is written to disk. More...
 
uint64_t fulTsCounter
 Statistics & first TS rejection. More...
 
std::vector< CbmPsdDigi > * fpvDigiPsd = nullptr
 Output vectors. More...
 
TH1 * fhArraySize = nullptr
 Histogrrams. More...
 
TH1 * fhArrayCapacity = nullptr
 
CbmMcbm2018UnpackerAlgoPsdfUnpackerAlgo
 Processing algo. More...
 

Detailed Description

Definition at line 21 of file CbmMcbm2018UnpackerTaskPsd.h.

Constructor & Destructor Documentation

◆ CbmMcbm2018UnpackerTaskPsd() [1/2]

CbmMcbm2018UnpackerTaskPsd::CbmMcbm2018UnpackerTaskPsd ( UInt_t  uNbSdpb = 1)

Definition at line 36 of file CbmMcbm2018UnpackerTaskPsd.cxx.

References fUnpackerAlgo.

◆ CbmMcbm2018UnpackerTaskPsd() [2/2]

CbmMcbm2018UnpackerTaskPsd::CbmMcbm2018UnpackerTaskPsd ( const CbmMcbm2018UnpackerTaskPsd )
delete

◆ ~CbmMcbm2018UnpackerTaskPsd()

CbmMcbm2018UnpackerTaskPsd::~CbmMcbm2018UnpackerTaskPsd ( )
virtual

Definition at line 47 of file CbmMcbm2018UnpackerTaskPsd.cxx.

References fUnpackerAlgo.

Member Function Documentation

◆ AddMsComponentToList()

void CbmMcbm2018UnpackerTaskPsd::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 CbmMcbm2018UnpackerTaskPsd.cxx.

References CbmMcbm2018UnpackerAlgoPsd::AddMsComponentToList(), and fUnpackerAlgo.

◆ DoUnpack()

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

◆ Finish()

void CbmMcbm2018UnpackerTaskPsd::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 205 of file CbmMcbm2018UnpackerTaskPsd.cxx.

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

◆ Init()

Bool_t CbmMcbm2018UnpackerTaskPsd::Init ( )
virtual

Get address of vector from algo

Implements CbmMcbmUnpack.

Definition at line 51 of file CbmMcbm2018UnpackerTaskPsd.cxx.

References fbWriteOutput, fpvDigiPsd, fUnpackerAlgo, and CbmStar2019Algo< T >::GetVector().

◆ InitContainers()

Bool_t CbmMcbm2018UnpackerTaskPsd::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 89 of file CbmMcbm2018UnpackerTaskPsd.cxx.

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

◆ operator=()

CbmMcbm2018UnpackerTaskPsd CbmMcbm2018UnpackerTaskPsd::operator= ( const CbmMcbm2018UnpackerTaskPsd )
delete

◆ ReInitContainers()

Bool_t CbmMcbm2018UnpackerTaskPsd::ReInitContainers ( )
virtual

Reimplemented from CbmMcbmUnpack.

Definition at line 154 of file CbmMcbm2018UnpackerTaskPsd.cxx.

References fUnpackerAlgo, and CbmMcbm2018UnpackerAlgoPsd::ReInitContainers().

◆ Reset()

void CbmMcbm2018UnpackerTaskPsd::Reset ( )
virtual

Implements CbmMcbmUnpack.

Definition at line 202 of file CbmMcbm2018UnpackerTaskPsd.cxx.

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

◆ SetDiamondDpbIdx()

void CbmMcbm2018UnpackerTaskPsd::SetDiamondDpbIdx ( UInt_t  uIdx = 2)

◆ SetIgnoreOverlapMs()

void CbmMcbm2018UnpackerTaskPsd::SetIgnoreOverlapMs ( Bool_t  bFlagIn = kTRUE)

◆ SetMonitorMode()

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

Algo settings setters.

Definition at line 48 of file CbmMcbm2018UnpackerTaskPsd.h.

References fbMonitorMode.

◆ SetNbMsInTs()

void CbmMcbm2018UnpackerTaskPsd::SetNbMsInTs ( size_t  ,
size_t   
)
inlinevirtual

Implements CbmMcbmUnpack.

Definition at line 45 of file CbmMcbm2018UnpackerTaskPsd.h.

◆ SetParContainers()

void CbmMcbm2018UnpackerTaskPsd::SetParContainers ( )
virtual

◆ SetTimeOffsetNs()

void CbmMcbm2018UnpackerTaskPsd::SetTimeOffsetNs ( Double_t  dOffsetIn = 0.0)

◆ SetWriteOutputFlag()

void CbmMcbm2018UnpackerTaskPsd::SetWriteOutputFlag ( Bool_t  bFlagIn)
inline

Task settings.

Definition at line 56 of file CbmMcbm2018UnpackerTaskPsd.h.

References fbWriteOutput.

Member Data Documentation

◆ fbDebugMonitorMode

Bool_t CbmMcbm2018UnpackerTaskPsd::fbDebugMonitorMode
private

Switch ON the filling of a minimal set of histograms.

Definition at line 63 of file CbmMcbm2018UnpackerTaskPsd.h.

◆ fbMonitorMode

Bool_t CbmMcbm2018UnpackerTaskPsd::fbMonitorMode
private

Control flags.

Definition at line 61 of file CbmMcbm2018UnpackerTaskPsd.h.

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

◆ fbWriteOutput

Bool_t CbmMcbm2018UnpackerTaskPsd::fbWriteOutput
private

Switch ON the filling of a additional set of histograms.

Definition at line 65 of file CbmMcbm2018UnpackerTaskPsd.h.

Referenced by Init(), and SetWriteOutputFlag().

◆ fhArrayCapacity

TH1* CbmMcbm2018UnpackerTaskPsd::fhArrayCapacity = nullptr
private

Definition at line 78 of file CbmMcbm2018UnpackerTaskPsd.h.

Referenced by Finish(), and InitContainers().

◆ fhArraySize

TH1* CbmMcbm2018UnpackerTaskPsd::fhArraySize = nullptr
private

Histogrrams.

Definition at line 77 of file CbmMcbm2018UnpackerTaskPsd.h.

Referenced by Finish(), and InitContainers().

◆ fpvDigiPsd

std::vector<CbmPsdDigi>* CbmMcbm2018UnpackerTaskPsd::fpvDigiPsd = nullptr
private

Output vectors.

Definition at line 74 of file CbmMcbm2018UnpackerTaskPsd.h.

Referenced by Init().

◆ fuDigiMaskId

UInt_t CbmMcbm2018UnpackerTaskPsd::fuDigiMaskId
private

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

Parameters

Definition at line 68 of file CbmMcbm2018UnpackerTaskPsd.h.

◆ fulTsCounter

uint64_t CbmMcbm2018UnpackerTaskPsd::fulTsCounter
private

Statistics & first TS rejection.

Definition at line 71 of file CbmMcbm2018UnpackerTaskPsd.h.

Referenced by DoUnpack().

◆ fUnpackerAlgo


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