CbmRoot
Loading...
Searching...
No Matches
CbmMcbm2018UnpackerTaskPsd.h
Go to the documentation of this file.
1/* Copyright (C) 2019-2021 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Nikolay Karpushkin, David Emschermann [committer] */
4
5// -----------------------------------------------------------------------------
6// ----- -----
7// ----- CbmMcbm2018UnpackerTaskPsd -----
8// ----- Created 09.10.2019 by N.Karpushkin -----
9// ----- based on CbmMcbm2018UnpackerTaskTof by P.-A. Loizeau -----
10// ----- -----
11// -----------------------------------------------------------------------------
12
13#ifndef CbmMcbm2018UnpackerTaskPsd_H
14#define CbmMcbm2018UnpackerTaskPsd_H
15
16#include "CbmMcbmUnpack.h"
17#include "CbmPsdDigi.h"
18#include "CbmPsdDsp.h"
19
20#include "Timeslice.hpp"
21
23//class TClonesArray;
24class TH1;
25
27public:
28 CbmMcbm2018UnpackerTaskPsd(UInt_t uNbSdpb = 1);
29
34
36
37 virtual Bool_t Init();
38 virtual Bool_t DoUnpack(const fles::Timeslice& ts, size_t component);
39 virtual void Reset();
40
41 virtual void Finish();
42
43 void SetParContainers();
44
45 Bool_t InitContainers();
46
47 Bool_t ReInitContainers();
48
50 void AddMsComponentToList(size_t component, UShort_t usDetectorId);
51 void SetNbMsInTs(size_t /*uCoreMsNb*/, size_t /*uOverlapMsNb*/) {};
52
54
55 inline void SetMonitorMode(Bool_t bFlagIn = kTRUE) { fbMonitorMode = bFlagIn; }
56 void SetDspWriteMode(Bool_t bFlagIn = kTRUE);
57 void SetIgnoreOverlapMs(Bool_t bFlagIn = kTRUE);
58 void SetTimeOffsetNs(Double_t dOffsetIn = 0.0);
59
61 void SetWriteOutputFlag(Bool_t bFlagIn) { fbWriteOutput = bFlagIn; }
62
63private:
69
71
72
74 uint64_t fulTsCounter;
75
77 std::vector<CbmPsdDigi>* fPsdDigiVector;
78
80 std::vector<CbmPsdDsp>* fPsdDspVector;
81
84
86};
87
88#endif
virtual Bool_t DoUnpack(const fles::Timeslice &ts, size_t component)
CbmMcbm2018UnpackerTaskPsd operator=(const CbmMcbm2018UnpackerTaskPsd &)
Bool_t fbWriteOutput
Switch ON the filling of a additional set of histograms.
uint64_t fulTsCounter
If ON the output vector of dsp debug information is written to disk.
void SetWriteOutputFlag(Bool_t bFlagIn)
Task settings.
std::vector< CbmPsdDigi > * fPsdDigiVector
Output Digi vector.
CbmMcbm2018UnpackerTaskPsd(const CbmMcbm2018UnpackerTaskPsd &)
Bool_t fbDebugWriteOutput
If ON the output vector of digi is written to disk.
void SetIgnoreOverlapMs(Bool_t bFlagIn=kTRUE)
void AddMsComponentToList(size_t component, UShort_t usDetectorId)
Temp until we change from CbmMcbmUnpack to something else.
CbmMcbm2018UnpackerAlgoPsd * fUnpackerAlgo
Processing algo.
void SetTimeOffsetNs(Double_t dOffsetIn=0.0)
void SetMonitorMode(Bool_t bFlagIn=kTRUE)
Algo settings setters.
Bool_t fbDebugMonitorMode
Switch ON the filling of a minimal set of histograms.
std::vector< CbmPsdDsp > * fPsdDspVector
Output Dsp vector – preprocessed info for debugging.
void SetDspWriteMode(Bool_t bFlagIn=kTRUE)