CbmRoot
CbmMcbm2018UnpackerTaskTof.h
Go to the documentation of this file.
1 // -----------------------------------------------------------------------------
2 // ----- -----
3 // ----- CbmMcbm2018UnpackerTaskTof -----
4 // ----- Created 10.02.2019 by P.-A. Loizeau -----
5 // ----- -----
6 // -----------------------------------------------------------------------------
7 
8 #ifndef CbmMcbm2018UnpackerTaskTof_H
9 #define CbmMcbm2018UnpackerTaskTof_H
10 
11 #include "Timeslice.hpp"
12 
13 #include "CbmMcbmUnpack.h"
14 #include "CbmTofDigi.h"
15 
17 //class TClonesArray;
18 class TH1;
19 
21 public:
22  CbmMcbm2018UnpackerTaskTof(UInt_t uNbSdpb = 1);
23 
27 
29 
30  virtual Bool_t Init();
31  virtual Bool_t DoUnpack(const fles::Timeslice& ts, size_t component);
32  virtual void Reset();
33 
34  virtual void Finish();
35 
36  void SetParContainers();
37 
38  Bool_t InitContainers();
39 
40  Bool_t ReInitContainers();
41 
43  void AddMsComponentToList(size_t component, UShort_t usDetectorId);
44  void SetNbMsInTs(size_t /*uCoreMsNb*/, size_t /*uOverlapMsNb*/) {};
45 
47  inline void SetMonitorMode(Bool_t bFlagIn = kTRUE) {
48  fbMonitorMode = bFlagIn;
49  }
50  void SetIgnoreOverlapMs(Bool_t bFlagIn = kTRUE);
51  void SetTimeOffsetNs(Double_t dOffsetIn = 0.0);
52  void SetDiamondDpbIdx(UInt_t uIdx = 2);
53 
55  void SetSeparateArrayT0(Bool_t bFlagIn = kTRUE) {
56  fbSeparateArrayT0 = bFlagIn;
57  }
58  void SetDigiMaskAndIdT0(UInt_t uMask, UInt_t uMaskedIdT0) {
59  fuDigiMaskId = uMask;
60  fuDigiMaskedIdT0 = uMaskedIdT0;
61  }
62  void SetWriteOutputFlag(Bool_t bFlagIn) { fbWriteOutput = bFlagIn; }
63 
64 private:
66  Bool_t
68  Bool_t
70  Bool_t
72  Bool_t
74 
77  UInt_t fuDigiMaskId;
78 
80  uint64_t fulTsCounter;
81 
83  std::vector<CbmTofDigi>* fpvDigiTof = nullptr;
84  std::vector<CbmTofDigi>* fpvDigiT0 = nullptr;
85 
87  TH1* fhArraySize = nullptr;
88  TH1* fhArrayCapacity = nullptr;
89 
92 
93  ClassDef(CbmMcbm2018UnpackerTaskTof, 2)
94 };
95 
96 #endif
CbmMcbm2018UnpackerTaskTof::SetNbMsInTs
void SetNbMsInTs(size_t, size_t)
Definition: CbmMcbm2018UnpackerTaskTof.h:44
CbmMcbm2018UnpackerAlgoTof
Definition: CbmMcbm2018UnpackerAlgoTof.h:35
CbmMcbm2018UnpackerTaskTof::CbmMcbm2018UnpackerTaskTof
CbmMcbm2018UnpackerTaskTof(UInt_t uNbSdpb=1)
Definition: CbmMcbm2018UnpackerTaskTof.cxx:35
CbmMcbm2018UnpackerTaskTof::operator=
CbmMcbm2018UnpackerTaskTof operator=(const CbmMcbm2018UnpackerTaskTof &)=delete
CbmMcbmUnpack.h
CbmMcbm2018UnpackerTaskTof::Finish
virtual void Finish()
Definition: CbmMcbm2018UnpackerTaskTof.cxx:247
CbmMcbm2018UnpackerTaskTof::SetWriteOutputFlag
void SetWriteOutputFlag(Bool_t bFlagIn)
Definition: CbmMcbm2018UnpackerTaskTof.h:62
CbmMcbm2018UnpackerTaskTof::SetIgnoreOverlapMs
void SetIgnoreOverlapMs(Bool_t bFlagIn=kTRUE)
Definition: CbmMcbm2018UnpackerTaskTof.cxx:284
CbmMcbm2018UnpackerTaskTof::fhArrayCapacity
TH1 * fhArrayCapacity
Definition: CbmMcbm2018UnpackerTaskTof.h:88
CbmMcbm2018UnpackerTaskTof::~CbmMcbm2018UnpackerTaskTof
virtual ~CbmMcbm2018UnpackerTaskTof()
Definition: CbmMcbm2018UnpackerTaskTof.cxx:48
CbmMcbm2018UnpackerTaskTof::fbSeparateArrayT0
Bool_t fbSeparateArrayT0
Switch ON the filling of a additional set of histograms.
Definition: CbmMcbm2018UnpackerTaskTof.h:71
CbmTofDigi.h
CbmMcbm2018UnpackerTaskTof::fulTsCounter
uint64_t fulTsCounter
Statistics & first TS rejection.
Definition: CbmMcbm2018UnpackerTaskTof.h:80
CbmMcbm2018UnpackerTaskTof::fUnpackerAlgo
CbmMcbm2018UnpackerAlgoTof * fUnpackerAlgo
Processing algo.
Definition: CbmMcbm2018UnpackerTaskTof.h:91
CbmMcbm2018UnpackerTaskTof::SetSeparateArrayT0
void SetSeparateArrayT0(Bool_t bFlagIn=kTRUE)
Task settings.
Definition: CbmMcbm2018UnpackerTaskTof.h:55
CbmMcbm2018UnpackerTaskTof::SetDigiMaskAndIdT0
void SetDigiMaskAndIdT0(UInt_t uMask, UInt_t uMaskedIdT0)
Definition: CbmMcbm2018UnpackerTaskTof.h:58
CbmMcbm2018UnpackerTaskTof::fbWriteOutput
Bool_t fbWriteOutput
If ON, T0 digis are saved in separate TClonesArray.
Definition: CbmMcbm2018UnpackerTaskTof.h:73
CbmMcbm2018UnpackerTaskTof::fpvDigiT0
std::vector< CbmTofDigi > * fpvDigiT0
Definition: CbmMcbm2018UnpackerTaskTof.h:84
CbmMcbm2018UnpackerTaskTof::SetTimeOffsetNs
void SetTimeOffsetNs(Double_t dOffsetIn=0.0)
Definition: CbmMcbm2018UnpackerTaskTof.cxx:288
CbmMcbm2018UnpackerTaskTof::SetMonitorMode
void SetMonitorMode(Bool_t bFlagIn=kTRUE)
Algo settings setters.
Definition: CbmMcbm2018UnpackerTaskTof.h:47
CbmMcbm2018UnpackerTaskTof::DoUnpack
virtual Bool_t DoUnpack(const fles::Timeslice &ts, size_t component)
Definition: CbmMcbm2018UnpackerTaskTof.cxx:171
CbmMcbm2018UnpackerTaskTof::Init
virtual Bool_t Init()
Definition: CbmMcbm2018UnpackerTaskTof.cxx:52
CbmMcbm2018UnpackerTaskTof::Reset
virtual void Reset()
Definition: CbmMcbm2018UnpackerTaskTof.cxx:238
CbmMcbm2018UnpackerTaskTof::SetParContainers
void SetParContainers()
Definition: CbmMcbm2018UnpackerTaskTof.cxx:70
CbmMcbm2018UnpackerTaskTof::SetDiamondDpbIdx
void SetDiamondDpbIdx(UInt_t uIdx=2)
Definition: CbmMcbm2018UnpackerTaskTof.cxx:291
CbmMcbm2018UnpackerTaskTof::fuDigiMaskId
UInt_t fuDigiMaskId
Definition: CbmMcbm2018UnpackerTaskTof.h:77
CbmMcbm2018UnpackerTaskTof::AddMsComponentToList
void AddMsComponentToList(size_t component, UShort_t usDetectorId)
Temp until we change from CbmMcbmUnpack to something else.
Definition: CbmMcbm2018UnpackerTaskTof.cxx:166
CbmMcbm2018UnpackerTaskTof::InitContainers
Bool_t InitContainers()
Definition: CbmMcbm2018UnpackerTaskTof.cxx:94
CbmMcbm2018UnpackerTaskTof::fhArraySize
TH1 * fhArraySize
Histograms.
Definition: CbmMcbm2018UnpackerTaskTof.h:87
CbmMcbm2018UnpackerTaskTof::fbMonitorMode
Bool_t fbMonitorMode
Control flags.
Definition: CbmMcbm2018UnpackerTaskTof.h:67
CbmMcbm2018UnpackerTaskTof::CbmMcbm2018UnpackerTaskTof
CbmMcbm2018UnpackerTaskTof(const CbmMcbm2018UnpackerTaskTof &)=delete
CbmMcbm2018UnpackerTaskTof
Definition: CbmMcbm2018UnpackerTaskTof.h:20
CbmMcbm2018UnpackerTaskTof::fuDigiMaskedIdT0
UInt_t fuDigiMaskedIdT0
If ON the output TClonesArray of digi is written to disk.
Definition: CbmMcbm2018UnpackerTaskTof.h:76
CbmMcbm2018UnpackerTaskTof::fpvDigiTof
std::vector< CbmTofDigi > * fpvDigiTof
Output vectors.
Definition: CbmMcbm2018UnpackerTaskTof.h:83
CbmMcbmUnpack
Definition: CbmMcbmUnpack.h:15
CbmMcbm2018UnpackerTaskTof::fbDebugMonitorMode
Bool_t fbDebugMonitorMode
Switch ON the filling of a minimal set of histograms.
Definition: CbmMcbm2018UnpackerTaskTof.h:69
CbmMcbm2018UnpackerTaskTof::ReInitContainers
Bool_t ReInitContainers()
Definition: CbmMcbm2018UnpackerTaskTof.cxx:159