CbmRoot
|
#include <CbmCosy2019UnpackerTaskHodo.h>
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< FebChanMaskSts > | fvChanMasks |
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 |
CbmCosy2019UnpackerAlgoHodo * | fUnpackerAlgo |
Processing algo. | |
CbmMcbm2018UnpackerAlgoSts * | fUnpackerAlgoSts = nullptr |
Definition at line 30 of file CbmCosy2019UnpackerTaskHodo.h.
CbmCosy2019UnpackerTaskHodo::CbmCosy2019UnpackerTaskHodo | ( | UInt_t | uNbSdpb = 1 | ) |
Definition at line 42 of file CbmCosy2019UnpackerTaskHodo.cxx.
References fUnpackerAlgo, and fUnpackerAlgoSts.
|
delete |
|
virtual |
Definition at line 54 of file CbmCosy2019UnpackerTaskHodo.cxx.
References fUnpackerAlgo, and fUnpackerAlgoSts.
|
virtual |
Temp until we change from CbmMcbmUnpack to something else.
Implements CbmMcbmUnpack.
Definition at line 193 of file CbmCosy2019UnpackerTaskHodo.cxx.
References CbmCosy2019UnpackerAlgoHodo::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 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().
|
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().
|
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.
|
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().
void CbmCosy2019UnpackerTaskHodo::MaskNoisyChannelSts | ( | UInt_t | uFeb, |
UInt_t | uChan, | ||
Bool_t | bMasked = kTRUE ) |
Definition at line 315 of file CbmCosy2019UnpackerTaskHodo.cxx.
References fvChanMasks.
|
delete |
|
virtual |
Reimplemented from CbmMcbmUnpack.
Definition at line 184 of file CbmCosy2019UnpackerTaskHodo.cxx.
References fUnpackerAlgo, fUnpackerAlgoSts, CbmCosy2019UnpackerAlgoHodo::ReInitContainers(), and CbmMcbm2018UnpackerAlgoSts::ReInitContainers().
|
virtual |
Implements CbmMcbmUnpack.
Definition at line 246 of file CbmCosy2019UnpackerTaskHodo.cxx.
References fpvDigiSts, and fpvErrorSts.
void CbmCosy2019UnpackerTaskHodo::SetAdcCutSts | ( | UInt_t | uAdc | ) |
Definition at line 320 of file CbmCosy2019UnpackerTaskHodo.cxx.
References fUnpackerAlgoSts, and CbmMcbm2018UnpackerAlgoSts::SetAdcCut().
void CbmCosy2019UnpackerTaskHodo::SetIgnoreOverlapMs | ( | Bool_t | bFlagIn = kTRUE | ) |
Definition at line 292 of file CbmCosy2019UnpackerTaskHodo.cxx.
References fUnpackerAlgo, fUnpackerAlgoSts, and CbmStar2019Algo< T >::SetIgnoreOverlapMs().
|
inline |
Definition at line 55 of file CbmCosy2019UnpackerTaskHodo.h.
References fbMonitorMode.
|
inlinevirtual |
Implements CbmMcbmUnpack.
Definition at line 53 of file CbmCosy2019UnpackerTaskHodo.h.
|
virtual |
Implements CbmMcbmUnpack.
Definition at line 85 of file CbmCosy2019UnpackerTaskHodo.cxx.
References fUnpackerAlgo, fUnpackerAlgoSts, CbmCosy2019UnpackerAlgoHodo::GetParList(), and CbmMcbm2018UnpackerAlgoSts::GetParList().
void CbmCosy2019UnpackerTaskHodo::SetTimeOffsetNs | ( | Double_t | dOffsetIn = 0.0 | ) |
Definition at line 298 of file CbmCosy2019UnpackerTaskHodo.cxx.
References fUnpackerAlgo, and CbmCosy2019UnpackerAlgoHodo::SetTimeOffsetNs().
void CbmCosy2019UnpackerTaskHodo::SetTimeOffsetNsAsic | ( | UInt_t | uAsicIdx, |
Double_t | dOffsetIn = 0.0 ) |
Definition at line 305 of file CbmCosy2019UnpackerTaskHodo.cxx.
References fUnpackerAlgo, and CbmCosy2019UnpackerAlgoHodo::SetTimeOffsetNsAsic().
void CbmCosy2019UnpackerTaskHodo::SetTimeOffsetNsAsicSts | ( | UInt_t | uAsicIdx, |
Double_t | dOffsetIn = 0.0 ) |
Definition at line 310 of file CbmCosy2019UnpackerTaskHodo.cxx.
References fUnpackerAlgoSts, and CbmMcbm2018UnpackerAlgoSts::SetTimeOffsetNsAsic().
void CbmCosy2019UnpackerTaskHodo::SetTimeOffsetNsSts | ( | Double_t | dOffsetIn = 0.0 | ) |
Definition at line 300 of file CbmCosy2019UnpackerTaskHodo.cxx.
References fUnpackerAlgoSts, and CbmMcbm2018UnpackerAlgoSts::SetTimeOffsetNs().
|
inline |
Task settings.
Definition at line 67 of file CbmCosy2019UnpackerTaskHodo.h.
References fbWriteOutput.
|
private |
Switch ON the filling of a minimal set of histograms.
Definition at line 72 of file CbmCosy2019UnpackerTaskHodo.h.
|
private |
Control flags.
Definition at line 71 of file CbmCosy2019UnpackerTaskHodo.h.
Referenced by DoUnpack(), Finish(), InitContainers(), and SetMonitorMode().
|
private |
Switch ON the filling of a additional set of histograms.
Definition at line 73 of file CbmCosy2019UnpackerTaskHodo.h.
Referenced by Init(), and SetWriteOutputFlag().
|
private |
Output vectors.
Definition at line 82 of file CbmCosy2019UnpackerTaskHodo.h.
Referenced by DoUnpack(), Init(), and Reset().
|
private |
Definition at line 83 of file CbmCosy2019UnpackerTaskHodo.h.
Referenced by DoUnpack(), Init(), and Reset().
|
private |
Statistics & first TS rejection.
Definition at line 79 of file CbmCosy2019UnpackerTaskHodo.h.
Referenced by DoUnpack().
|
private |
Processing algo.
Definition at line 86 of file CbmCosy2019UnpackerTaskHodo.h.
Referenced by AddMsComponentToList(), CbmCosy2019UnpackerTaskHodo(), DoUnpack(), Finish(), InitContainers(), ReInitContainers(), SetIgnoreOverlapMs(), SetParContainers(), SetTimeOffsetNs(), SetTimeOffsetNsAsic(), and ~CbmCosy2019UnpackerTaskHodo().
|
private |
Definition at line 87 of file CbmCosy2019UnpackerTaskHodo.h.
Referenced by AddMsComponentToList(), CbmCosy2019UnpackerTaskHodo(), DoUnpack(), Finish(), InitContainers(), ReInitContainers(), SetAdcCutSts(), SetIgnoreOverlapMs(), SetParContainers(), SetTimeOffsetNsAsicSts(), SetTimeOffsetNsSts(), and ~CbmCosy2019UnpackerTaskHodo().
|
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().