CbmRoot
Loading...
Searching...
No Matches
CbmMcbm2018MonitorTaskPsd.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// ----- CbmMcbm2018MonitorTaskPsd -----
8// ----- Created 26.09.2019 by N.Karpushkin -----
9// ----- based on CbmMcbm2018MonitorTaskBmon by P.-A. Loizeau -----
10// ----- -----
11// -----------------------------------------------------------------------------
12
13#ifndef CbmMcbm2018MonitorTaskPsd_H
14#define CbmMcbm2018MonitorTaskPsd_H
15
16#include "CbmMcbmUnpack.h"
17
18#include "Timeslice.hpp"
19
20#include "TString.h"
21
23
25public:
28
29 virtual Bool_t Init();
30 virtual Bool_t DoUnpack(const fles::Timeslice& ts, size_t component);
31 virtual void Reset();
32
33 virtual void Finish();
34
35 void SetParContainers();
36
37 Bool_t InitContainers();
38
39 Bool_t ReInitContainers();
40
42 void AddMsComponentToList(size_t component, UShort_t usDetectorId);
43 void SetNbMsInTs(size_t /*uCoreMsNb*/, size_t /*uOverlapMsNb*/) {};
44
46 inline void SetMonitorMode(Bool_t bFlagIn = kTRUE) { fbMonitorMode = bFlagIn; }
47 inline void SetMonitorChanMode(Bool_t bFlagIn = kTRUE) { fbMonitorChanMode = bFlagIn; }
48 inline void SetMonitorWfmMode(Bool_t bFlagIn = kTRUE) { fbMonitorWfmMode = bFlagIn; }
49 inline void SetMonitorFitMode(Bool_t bFlagIn = kTRUE) { fbMonitorFitMode = bFlagIn; }
50 void SetIgnoreOverlapMs(Bool_t bFlagIn = kTRUE);
51 inline void SetHistoryHistoSize(UInt_t inHistorySizeSec = 1800) { fuHistoryHistoSize = inHistorySizeSec; }
52 inline void SetChargeHistoArgs(std::vector<Int_t> inVec) { fviHistoChargeArgs = inVec; }
53 inline void SetAmplHistoArgs(std::vector<Int_t> inVec) { fviHistoAmplArgs = inVec; }
54 inline void SetZLHistoArgs(std::vector<Int_t> inVec) { fviHistoZLArgs = inVec; }
55 inline void SetHistoFilename(TString sNameIn) { fsHistoFileName = sNameIn; }
56
57private:
64
67 std::vector<Int_t> fviHistoChargeArgs;
68 std::vector<Int_t> fviHistoAmplArgs;
69 std::vector<Int_t> fviHistoZLArgs;
71
73 uint64_t fulTsCounter;
74
77
80
81 ClassDef(CbmMcbm2018MonitorTaskPsd, 1)
82};
83
84#endif
void SetIgnoreOverlapMs(Bool_t bFlagIn=kTRUE)
void SetHistoryHistoSize(UInt_t inHistorySizeSec=1800)
void SetMonitorFitMode(Bool_t bFlagIn=kTRUE)
CbmMcbm2018MonitorAlgoPsd * fMonitorAlgo
Processing algo.
void SetAmplHistoArgs(std::vector< Int_t > inVec)
void SetMonitorChanMode(Bool_t bFlagIn=kTRUE)
Bool_t fbMonitorWfmMode
Switch ON the filling channelwise histograms.
Bool_t fbDebugMonitorMode
Switch ON the filling waveform fitting histograms.
uint64_t fulTsCounter
Statistics & first TS rejection.
void SetHistoFilename(TString sNameIn)
void SetZLHistoArgs(std::vector< Int_t > inVec)
CbmMcbm2018MonitorTaskPsd operator=(const CbmMcbm2018MonitorTaskPsd &)
UInt_t fuHistoryHistoSize
Switch ON the filling of a additional set of histograms.
void SetMonitorMode(Bool_t bFlagIn=kTRUE)
Algo settings setters.
CbmMcbm2018MonitorTaskPsd(const CbmMcbm2018MonitorTaskPsd &)
void SetChargeHistoArgs(std::vector< Int_t > inVec)
std::vector< Int_t > fviHistoChargeArgs
void AddMsComponentToList(size_t component, UShort_t usDetectorId)
Temp until we change from CbmMcbmUnpack to something else.
Bool_t fbMonitorChanMode
Switch ON the filling of a minimal set of histograms.
virtual Bool_t DoUnpack(const fles::Timeslice &ts, size_t component)
void SetMonitorWfmMode(Bool_t bFlagIn=kTRUE)
Bool_t fbMonitorFitMode
Switch ON the filling waveforms histograms.