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

#include <CbmCosy2019UnpackerTaskHodo.h>

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

Public Member Functions

 CbmCosy2019UnpackerTaskHodo (UInt_t uNbSdpb=1)
 
 CbmCosy2019UnpackerTaskHodo (const CbmCosy2019UnpackerTaskHodo &)=delete
 
CbmCosy2019UnpackerTaskHodo operator= (const CbmCosy2019UnpackerTaskHodo &)=delete
 
virtual ~CbmCosy2019UnpackerTaskHodo ()
 
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 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.
 

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.
 
std::vector< FebChanMaskStsfvChanMasks
 If ON the output TClonesArray of digi is written to disk.
 
uint64_t fulTsCounter
 Statistics & first TS rejection.
 
std::vector< CbmStsDigi > * fpvDigiSts = nullptr
 Output vectors.
 
std::vector< CbmErrorMessage > * fpvErrorSts = nullptr
 
CbmCosy2019UnpackerAlgoHodofUnpackerAlgo
 Processing algo.
 
CbmMcbm2018UnpackerAlgoStsfUnpackerAlgoSts = nullptr
 

Detailed Description

Definition at line 30 of file CbmCosy2019UnpackerTaskHodo.h.

Constructor & Destructor Documentation

◆ CbmCosy2019UnpackerTaskHodo() [1/2]

CbmCosy2019UnpackerTaskHodo::CbmCosy2019UnpackerTaskHodo ( UInt_t uNbSdpb = 1)

Definition at line 42 of file CbmCosy2019UnpackerTaskHodo.cxx.

References fUnpackerAlgo, and fUnpackerAlgoSts.

◆ CbmCosy2019UnpackerTaskHodo() [2/2]

CbmCosy2019UnpackerTaskHodo::CbmCosy2019UnpackerTaskHodo ( const CbmCosy2019UnpackerTaskHodo & )
delete

◆ ~CbmCosy2019UnpackerTaskHodo()

CbmCosy2019UnpackerTaskHodo::~CbmCosy2019UnpackerTaskHodo ( )
virtual

Definition at line 54 of file CbmCosy2019UnpackerTaskHodo.cxx.

References fUnpackerAlgo, and fUnpackerAlgoSts.

Member Function Documentation

◆ AddMsComponentToList()

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

◆ DoUnpack()

Bool_t CbmCosy2019UnpackerTaskHodo::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 199 of file CbmCosy2019UnpackerTaskHodo.cxx.

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

◆ Finish()

void CbmCosy2019UnpackerTaskHodo::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 252 of file CbmCosy2019UnpackerTaskHodo.cxx.

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

◆ Init()

Bool_t CbmCosy2019UnpackerTaskHodo::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 60 of file CbmCosy2019UnpackerTaskHodo.cxx.

References fbWriteOutput, fpvDigiSts, and fpvErrorSts.

◆ InitContainers()

Bool_t CbmCosy2019UnpackerTaskHodo::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 128 of file CbmCosy2019UnpackerTaskHodo.cxx.

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

◆ MaskNoisyChannelSts()

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

Definition at line 315 of file CbmCosy2019UnpackerTaskHodo.cxx.

References fvChanMasks.

◆ operator=()

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

◆ ReInitContainers()

Bool_t CbmCosy2019UnpackerTaskHodo::ReInitContainers ( )
virtual

◆ Reset()

void CbmCosy2019UnpackerTaskHodo::Reset ( )
virtual

Implements CbmMcbmUnpack.

Definition at line 246 of file CbmCosy2019UnpackerTaskHodo.cxx.

References fpvDigiSts, and fpvErrorSts.

◆ SetAdcCutSts()

void CbmCosy2019UnpackerTaskHodo::SetAdcCutSts ( UInt_t uAdc)

◆ SetIgnoreOverlapMs()

void CbmCosy2019UnpackerTaskHodo::SetIgnoreOverlapMs ( Bool_t bFlagIn = kTRUE)

◆ SetMonitorMode()

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

Definition at line 55 of file CbmCosy2019UnpackerTaskHodo.h.

References fbMonitorMode.

◆ SetNbMsInTs()

void CbmCosy2019UnpackerTaskHodo::SetNbMsInTs ( size_t ,
size_t  )
inlinevirtual

Implements CbmMcbmUnpack.

Definition at line 53 of file CbmCosy2019UnpackerTaskHodo.h.

◆ SetParContainers()

void CbmCosy2019UnpackerTaskHodo::SetParContainers ( )
virtual

◆ SetTimeOffsetNs()

void CbmCosy2019UnpackerTaskHodo::SetTimeOffsetNs ( Double_t dOffsetIn = 0.0)

◆ SetTimeOffsetNsAsic()

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

◆ SetTimeOffsetNsAsicSts()

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

◆ SetTimeOffsetNsSts()

void CbmCosy2019UnpackerTaskHodo::SetTimeOffsetNsSts ( Double_t dOffsetIn = 0.0)

◆ SetWriteOutputFlag()

void CbmCosy2019UnpackerTaskHodo::SetWriteOutputFlag ( Bool_t bFlagIn)
inline

Task settings.

Definition at line 67 of file CbmCosy2019UnpackerTaskHodo.h.

References fbWriteOutput.

Member Data Documentation

◆ fbDebugMonitorMode

Bool_t CbmCosy2019UnpackerTaskHodo::fbDebugMonitorMode
private

Switch ON the filling of a minimal set of histograms.

Definition at line 72 of file CbmCosy2019UnpackerTaskHodo.h.

◆ fbMonitorMode

Bool_t CbmCosy2019UnpackerTaskHodo::fbMonitorMode
private

Control flags.

Definition at line 71 of file CbmCosy2019UnpackerTaskHodo.h.

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

◆ fbWriteOutput

Bool_t CbmCosy2019UnpackerTaskHodo::fbWriteOutput
private

Switch ON the filling of a additional set of histograms.

Definition at line 73 of file CbmCosy2019UnpackerTaskHodo.h.

Referenced by Init(), and SetWriteOutputFlag().

◆ fpvDigiSts

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

Output vectors.

Definition at line 82 of file CbmCosy2019UnpackerTaskHodo.h.

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

◆ fpvErrorSts

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

Definition at line 83 of file CbmCosy2019UnpackerTaskHodo.h.

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

◆ fulTsCounter

uint64_t CbmCosy2019UnpackerTaskHodo::fulTsCounter
private

Statistics & first TS rejection.

Definition at line 79 of file CbmCosy2019UnpackerTaskHodo.h.

Referenced by DoUnpack().

◆ fUnpackerAlgo

◆ fUnpackerAlgoSts

◆ fvChanMasks

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

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

Temporary storage of user parameters

Definition at line 76 of file CbmCosy2019UnpackerTaskHodo.h.

Referenced by InitContainers(), and MaskNoisyChannelSts().


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