CbmRoot
Loading...
Searching...
No Matches
CbmMcbm2019TimeWinEventBuilderTask.h
Go to the documentation of this file.
1/* Copyright (C) 2020-2021 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Pierre-Alain Loizeau [committer] */
4
5#ifndef CBMMCBM2019TIMEWINEVENTBUILDERTASK_H
6#define CBMMCBM2019TIMEWINEVENTBUILDERTASK_H
7
10
12#include "FairTask.h"
13
15
17#include "CbmTofDigi.h"
18
19#include <tuple>
20
21#include <array>
22#include <map>
23#include <set>
24#include <vector>
25
26class TClonesArray;
27
28class CbmMcbm2019TimeWinEventBuilderTask : public FairTask {
29public:
32
35
37 // CbmMcbm2019TimeWinEventBuilderTask(Int_t verbose);
38
39
42
43
45 virtual InitStatus Init();
46
48 virtual InitStatus ReInit();
49
50
52 virtual void Exec(Option_t*);
53
55 virtual void SetParContainers();
56
58 virtual void Finish();
59
60 void SetFillHistos(Bool_t bFlag = kTRUE);
61 void SetOutFilename(TString sNameIn);
62
66
67 void SetTriggerMinNumber(ECbmModuleId selDet, UInt_t uVal);
68 void SetTriggerMaxNumber(ECbmModuleId selDet, Int_t iVal);
69
70 void SetTriggerWindow(ECbmModuleId det, Double_t dWinBeg, Double_t dWinEnd);
71
72 void SetTsParameters(Double_t dTsStartTime, Double_t dTsLength, Double_t dTsOverLength);
73
75 void SetIgnoreTsOverlap(Bool_t bFlagIn);
76
77 void ChangeMuchBeamtimeDigiFlag(Bool_t bFlagIn = kFALSE);
78
79private:
80 void FillOutput();
81 void SaveHistos();
82
84
85 TClonesArray* fEvents = nullptr;
86
87 Bool_t fbFillHistos {kTRUE};
88
90 TString fsOutFileName {"data/HistosEvtWin.root"};
91
93};
94
95#endif // CBMMCBM2019TIMEWINEVENTBUILDERTASK_H
ECbmModuleId
Definition CbmDefs.h:39
static double dTsStartTime
void SetTsParameters(Double_t dTsStartTime, Double_t dTsLength, Double_t dTsOverLength)
TString fsOutFileName
Switch ON/OFF filling of histograms.
void SetTriggerWindow(ECbmModuleId det, Double_t dWinBeg, Double_t dWinEnd)
void SetTriggerMaxNumber(ECbmModuleId selDet, Int_t iVal)
ClassDef(CbmMcbm2019TimeWinEventBuilderTask, 1)
void SetTriggerMinNumber(ECbmModuleId selDet, UInt_t uVal)
Bool_t fbFillHistos
output container of CbmEvents
CbmMcbm2019TimeWinEventBuilderAlgo * fpAlgo
CbmMcbm2019TimeWinEventBuilderTask operator=(const CbmMcbm2019TimeWinEventBuilderTask &)=delete
CbmMcbm2019TimeWinEventBuilderTask(const CbmMcbm2019TimeWinEventBuilderTask &)=delete