CbmRoot
|
#include <CbmMcbm2018UnpackerTaskHodo.h>
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< FebChanMaskSts > | fvChanMasks |
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 |
CbmMcbm2018UnpackerAlgoHodo * | fUnpackerAlgo |
Processing algo. More... | |
CbmMcbm2018UnpackerAlgoSts * | fUnpackerAlgoSts = nullptr |
Definition at line 26 of file CbmMcbm2018UnpackerTaskHodo.h.
CbmMcbm2018UnpackerTaskHodo::CbmMcbm2018UnpackerTaskHodo | ( | UInt_t | uNbSdpb = 1 | ) |
Definition at line 37 of file CbmMcbm2018UnpackerTaskHodo.cxx.
References fUnpackerAlgo, and fUnpackerAlgoSts.
|
delete |
|
virtual |
Definition at line 48 of file CbmMcbm2018UnpackerTaskHodo.cxx.
References fUnpackerAlgo, and fUnpackerAlgoSts.
|
virtual |
Temp until we change from CbmMcbmUnpack to something else.
Implements CbmMcbmUnpack.
Definition at line 190 of file CbmMcbm2018UnpackerTaskHodo.cxx.
References CbmMcbm2018UnpackerAlgoHodo::AddMsComponentToList(), CbmMcbm2018UnpackerAlgoSts::AddMsComponentToList(), fUnpackerAlgo, and fUnpackerAlgoSts.
|
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().
|
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().
|
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.
|
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().
void CbmMcbm2018UnpackerTaskHodo::MaskNoisyChannelSts | ( | UInt_t | uFeb, |
UInt_t | uChan, | ||
Bool_t | bMasked = kTRUE |
||
) |
Definition at line 321 of file CbmMcbm2018UnpackerTaskHodo.cxx.
References fvChanMasks.
|
delete |
|
virtual |
Reimplemented from CbmMcbmUnpack.
Definition at line 182 of file CbmMcbm2018UnpackerTaskHodo.cxx.
References fUnpackerAlgo, fUnpackerAlgoSts, CbmMcbm2018UnpackerAlgoHodo::ReInitContainers(), and CbmMcbm2018UnpackerAlgoSts::ReInitContainers().
|
virtual |
Implements CbmMcbmUnpack.
Definition at line 255 of file CbmMcbm2018UnpackerTaskHodo.cxx.
References fpvDigiSts, and fpvErrorSts.
void CbmMcbm2018UnpackerTaskHodo::SetAdcCutSts | ( | UInt_t | uAdc | ) |
Definition at line 327 of file CbmMcbm2018UnpackerTaskHodo.cxx.
References fUnpackerAlgoSts, and CbmMcbm2018UnpackerAlgoSts::SetAdcCut().
void CbmMcbm2018UnpackerTaskHodo::SetIgnoreOverlapMs | ( | Bool_t | bFlagIn = kTRUE | ) |
Definition at line 298 of file CbmMcbm2018UnpackerTaskHodo.cxx.
References fUnpackerAlgo, fUnpackerAlgoSts, and CbmStar2019Algo< T >::SetIgnoreOverlapMs().
|
inline |
Definition at line 52 of file CbmMcbm2018UnpackerTaskHodo.h.
References fbMonitorMode.
|
inlinevirtual |
Implements CbmMcbmUnpack.
Definition at line 50 of file CbmMcbm2018UnpackerTaskHodo.h.
|
virtual |
Implements CbmMcbmUnpack.
Definition at line 77 of file CbmMcbm2018UnpackerTaskHodo.cxx.
References fUnpackerAlgo, fUnpackerAlgoSts, CbmMcbm2018UnpackerAlgoHodo::GetParList(), and CbmMcbm2018UnpackerAlgoSts::GetParList().
void CbmMcbm2018UnpackerTaskHodo::SetTimeOffsetNs | ( | Double_t | dOffsetIn = 0.0 | ) |
Definition at line 303 of file CbmMcbm2018UnpackerTaskHodo.cxx.
References fUnpackerAlgo, and CbmMcbm2018UnpackerAlgoHodo::SetTimeOffsetNs().
void CbmMcbm2018UnpackerTaskHodo::SetTimeOffsetNsAsic | ( | UInt_t | uAsicIdx, |
Double_t | dOffsetIn = 0.0 |
||
) |
Definition at line 311 of file CbmMcbm2018UnpackerTaskHodo.cxx.
References fUnpackerAlgo, and CbmMcbm2018UnpackerAlgoHodo::SetTimeOffsetNsAsic().
void CbmMcbm2018UnpackerTaskHodo::SetTimeOffsetNsAsicSts | ( | UInt_t | uAsicIdx, |
Double_t | dOffsetIn = 0.0 |
||
) |
Definition at line 316 of file CbmMcbm2018UnpackerTaskHodo.cxx.
References fUnpackerAlgoSts, and CbmMcbm2018UnpackerAlgoSts::SetTimeOffsetNsAsic().
void CbmMcbm2018UnpackerTaskHodo::SetTimeOffsetNsSts | ( | Double_t | dOffsetIn = 0.0 | ) |
Definition at line 307 of file CbmMcbm2018UnpackerTaskHodo.cxx.
References fUnpackerAlgoSts, and CbmMcbm2018UnpackerAlgoSts::SetTimeOffsetNs().
|
inline |
Task settings.
Definition at line 66 of file CbmMcbm2018UnpackerTaskHodo.h.
References fbWriteOutput.
|
private |
Switch ON the filling of a minimal set of histograms.
Definition at line 73 of file CbmMcbm2018UnpackerTaskHodo.h.
|
private |
Control flags.
Definition at line 71 of file CbmMcbm2018UnpackerTaskHodo.h.
Referenced by DoUnpack(), Finish(), InitContainers(), and SetMonitorMode().
|
private |
Switch ON the filling of a additional set of histograms.
Definition at line 75 of file CbmMcbm2018UnpackerTaskHodo.h.
Referenced by Init(), and SetWriteOutputFlag().
|
private |
Output vectors.
Definition at line 84 of file CbmMcbm2018UnpackerTaskHodo.h.
Referenced by DoUnpack(), Init(), and Reset().
|
private |
Definition at line 85 of file CbmMcbm2018UnpackerTaskHodo.h.
Referenced by DoUnpack(), Init(), and Reset().
|
private |
Statistics & first TS rejection.
Definition at line 81 of file CbmMcbm2018UnpackerTaskHodo.h.
Referenced by DoUnpack().
|
private |
Processing algo.
Definition at line 88 of file CbmMcbm2018UnpackerTaskHodo.h.
Referenced by AddMsComponentToList(), CbmMcbm2018UnpackerTaskHodo(), DoUnpack(), Finish(), InitContainers(), ReInitContainers(), SetIgnoreOverlapMs(), SetParContainers(), SetTimeOffsetNs(), SetTimeOffsetNsAsic(), and ~CbmMcbm2018UnpackerTaskHodo().
|
private |
Definition at line 89 of file CbmMcbm2018UnpackerTaskHodo.h.
Referenced by AddMsComponentToList(), CbmMcbm2018UnpackerTaskHodo(), DoUnpack(), Finish(), InitContainers(), ReInitContainers(), SetAdcCutSts(), SetIgnoreOverlapMs(), SetParContainers(), SetTimeOffsetNsAsicSts(), SetTimeOffsetNsSts(), and ~CbmMcbm2018UnpackerTaskHodo().
|
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().