CbmRoot
CbmMcbm2018MonitorTaskHodo.h
Go to the documentation of this file.
1 // -----------------------------------------------------------------------------
2 // ----- -----
3 // ----- CbmMcbm2018MonitorTaskHodo -----
4 // ----- Created 03.07.2019 by P.-A. Loizeau -----
5 // ----- -----
6 // -----------------------------------------------------------------------------
7 
8 #ifndef CbmMcbm2018MonitorTaskHodo_H
9 #define CbmMcbm2018MonitorTaskHodo_H
10 
11 #include "Timeslice.hpp"
12 
13 #include "CbmMcbmUnpack.h"
14 
16 
18 public:
19  CbmMcbm2018MonitorTaskHodo(UInt_t uNbSdpb = 1);
20 
24 
26 
27  virtual Bool_t Init();
28  virtual Bool_t DoUnpack(const fles::Timeslice& ts, size_t component);
29  virtual void Reset();
30 
31  virtual void Finish();
32 
33  void SetParContainers();
34 
35  Bool_t InitContainers();
36 
37  Bool_t ReInitContainers();
38 
40  void AddMsComponentToList(size_t component, UShort_t usDetectorId);
41  void SetNbMsInTs(size_t /*uCoreMsNb*/, size_t /*uOverlapMsNb*/) {};
42 
43  inline void SetMonitorMode(Bool_t bFlagIn = kTRUE) {
44  fbMonitorMode = bFlagIn;
45  }
46  void SetIgnoreOverlapMs(Bool_t bFlagIn = kTRUE);
47  void SetDpbId(UInt_t uDpbId = 0x5b75);
48  void SetHodoElinkIdx(UInt_t uElinkHodoA = 5, UInt_t uElinkHodoB = 10);
49  void SetHodoSwapXY(Bool_t bSwapHodoA = kFALSE, Bool_t bSwapHodoB = kTRUE);
50  void SetHodoInvertX(Bool_t bInvHodoA = kFALSE, Bool_t bInvHodoB = kTRUE);
51  void SetHodoInvertY(Bool_t bInvHodoA = kFALSE, Bool_t bInvHodoB = kTRUE);
52 
53  void SetTimeOffsetNs(Double_t dOffsetIn = 0.0);
54 
56  void SetWriteOutputFlag(Bool_t bFlagIn) { fbWriteOutput = bFlagIn; }
57 
58 private:
60  Bool_t
62  Bool_t
64  Bool_t
66 
68  uint64_t fulTsCounter;
69 
72 
73  Bool_t SaveHistograms();
74 
75  ClassDef(CbmMcbm2018MonitorTaskHodo, 1)
76 };
77 
78 #endif
CbmMcbm2018MonitorTaskHodo::operator=
CbmMcbm2018MonitorTaskHodo operator=(const CbmMcbm2018MonitorTaskHodo &)=delete
CbmMcbm2018MonitorTaskHodo::AddMsComponentToList
void AddMsComponentToList(size_t component, UShort_t usDetectorId)
Temp until we change from CbmMcbmUnpack to something else.
Definition: CbmMcbm2018MonitorTaskHodo.cxx:160
CbmMcbm2018MonitorTaskHodo::Reset
virtual void Reset()
Definition: CbmMcbm2018MonitorTaskHodo.cxx:204
CbmMcbm2018MonitorTaskHodo::SetDpbId
void SetDpbId(UInt_t uDpbId=0x5b75)
Definition: CbmMcbm2018MonitorTaskHodo.cxx:273
CbmMcbm2018MonitorTaskHodo::DoUnpack
virtual Bool_t DoUnpack(const fles::Timeslice &ts, size_t component)
Definition: CbmMcbm2018MonitorTaskHodo.cxx:165
CbmMcbm2018MonitorTaskHodo::fbDebugMonitorMode
Bool_t fbDebugMonitorMode
Switch ON the filling of a minimal set of histograms.
Definition: CbmMcbm2018MonitorTaskHodo.h:63
CbmMcbm2018MonitorTaskHodo::SetNbMsInTs
void SetNbMsInTs(size_t, size_t)
Definition: CbmMcbm2018MonitorTaskHodo.h:41
CbmMcbm2018MonitorTaskHodo::SetParContainers
void SetParContainers()
Definition: CbmMcbm2018MonitorTaskHodo.cxx:71
CbmMcbm2018MonitorAlgoHodo
Definition: CbmMcbm2018MonitorAlgoHodo.h:36
CbmMcbmUnpack.h
CbmMcbm2018MonitorTaskHodo::SetHodoElinkIdx
void SetHodoElinkIdx(UInt_t uElinkHodoA=5, UInt_t uElinkHodoB=10)
Definition: CbmMcbm2018MonitorTaskHodo.cxx:276
CbmMcbm2018MonitorTaskHodo::CbmMcbm2018MonitorTaskHodo
CbmMcbm2018MonitorTaskHodo(const CbmMcbm2018MonitorTaskHodo &)=delete
CbmMcbm2018MonitorTaskHodo::SetTimeOffsetNs
void SetTimeOffsetNs(Double_t dOffsetIn=0.0)
Definition: CbmMcbm2018MonitorTaskHodo.cxx:270
CbmMcbm2018MonitorTaskHodo::fulTsCounter
uint64_t fulTsCounter
If ON the output TClonesArray of digi is written to disk.
Definition: CbmMcbm2018MonitorTaskHodo.h:68
CbmMcbm2018MonitorTaskHodo::SetHodoSwapXY
void SetHodoSwapXY(Bool_t bSwapHodoA=kFALSE, Bool_t bSwapHodoB=kTRUE)
Definition: CbmMcbm2018MonitorTaskHodo.cxx:280
CbmMcbm2018MonitorTaskHodo::SetMonitorMode
void SetMonitorMode(Bool_t bFlagIn=kTRUE)
Definition: CbmMcbm2018MonitorTaskHodo.h:43
CbmMcbm2018MonitorTaskHodo::SetIgnoreOverlapMs
void SetIgnoreOverlapMs(Bool_t bFlagIn=kTRUE)
Definition: CbmMcbm2018MonitorTaskHodo.cxx:266
CbmMcbm2018MonitorTaskHodo
Definition: CbmMcbm2018MonitorTaskHodo.h:17
CbmMcbm2018MonitorTaskHodo::fMonitorAlgo
CbmMcbm2018MonitorAlgoHodo * fMonitorAlgo
Processing algo.
Definition: CbmMcbm2018MonitorTaskHodo.h:71
CbmMcbm2018MonitorTaskHodo::SaveHistograms
Bool_t SaveHistograms()
Definition: CbmMcbm2018MonitorTaskHodo.cxx:215
CbmMcbm2018MonitorTaskHodo::ReInitContainers
Bool_t ReInitContainers()
Definition: CbmMcbm2018MonitorTaskHodo.cxx:153
CbmMcbm2018MonitorTaskHodo::SetHodoInvertY
void SetHodoInvertY(Bool_t bInvHodoA=kFALSE, Bool_t bInvHodoB=kTRUE)
Definition: CbmMcbm2018MonitorTaskHodo.cxx:288
CbmMcbm2018MonitorTaskHodo::SetHodoInvertX
void SetHodoInvertX(Bool_t bInvHodoA=kFALSE, Bool_t bInvHodoB=kTRUE)
Definition: CbmMcbm2018MonitorTaskHodo.cxx:284
CbmMcbm2018MonitorTaskHodo::SetWriteOutputFlag
void SetWriteOutputFlag(Bool_t bFlagIn)
Task settings.
Definition: CbmMcbm2018MonitorTaskHodo.h:56
CbmMcbm2018MonitorTaskHodo::fbWriteOutput
Bool_t fbWriteOutput
Switch ON the filling of a additional set of histograms.
Definition: CbmMcbm2018MonitorTaskHodo.h:65
CbmMcbm2018MonitorTaskHodo::Finish
virtual void Finish()
Definition: CbmMcbm2018MonitorTaskHodo.cxx:208
CbmMcbm2018MonitorTaskHodo::Init
virtual Bool_t Init()
Definition: CbmMcbm2018MonitorTaskHodo.cxx:51
CbmMcbm2018MonitorTaskHodo::fbMonitorMode
Bool_t fbMonitorMode
Control flags.
Definition: CbmMcbm2018MonitorTaskHodo.h:61
CbmMcbm2018MonitorTaskHodo::CbmMcbm2018MonitorTaskHodo
CbmMcbm2018MonitorTaskHodo(UInt_t uNbSdpb=1)
Definition: CbmMcbm2018MonitorTaskHodo.cxx:36
CbmMcbmUnpack
Definition: CbmMcbmUnpack.h:15
CbmMcbm2018MonitorTaskHodo::InitContainers
Bool_t InitContainers()
Definition: CbmMcbm2018MonitorTaskHodo.cxx:95
CbmMcbm2018MonitorTaskHodo::~CbmMcbm2018MonitorTaskHodo
virtual ~CbmMcbm2018MonitorTaskHodo()
Definition: CbmMcbm2018MonitorTaskHodo.cxx:47