CbmRoot
CbmMcbm2019TimeWinEventBuilderTask.h
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 #ifndef CBMMCBM2019TIMEWINEVENTBUILDERTASK_H
9 #define CBMMCBM2019TIMEWINEVENTBUILDERTASK_H
10 
13 
15 #include "FairTask.h"
16 
18 
20 #include "CbmTofDigi.h"
21 #include <array>
22 #include <map>
23 #include <set>
24 #include <tuple>
25 #include <vector>
26 
27 class TClonesArray;
28 
29 class CbmMcbm2019TimeWinEventBuilderTask : public FairTask {
30 public:
33 
35  const CbmMcbm2019TimeWinEventBuilderTask&) = delete;
38 
40  // CbmMcbm2019TimeWinEventBuilderTask(Int_t verbose);
41 
42 
45 
46 
48  virtual InitStatus Init();
49 
51  virtual InitStatus ReInit();
52 
53 
55  virtual void Exec(Option_t*);
56 
58  virtual void SetParContainers();
59 
61  virtual void Finish();
62 
63  void SetFillHistos(Bool_t bFlag = kTRUE);
64  void SetOutFilename(TString sNameIn);
65 
66  void SetReferenceDetector(ECbmModuleId refDet) __attribute__((deprecated));
67  void AddDetector(ECbmModuleId selDet) __attribute__((deprecated));
68  void RemoveDetector(ECbmModuleId selDet) __attribute__((deprecated));
69 
71  void AddDetector(EventBuilderDetector selDet);
73 
74  void SetTriggerMinNumber(ECbmModuleId selDet, UInt_t uVal);
75  void SetTriggerMaxNumber(ECbmModuleId selDet, Int_t iVal);
76 
77  void SetTriggerWindow(ECbmModuleId det, Double_t dWinBeg, Double_t dWinEnd);
78 
80  void SetIgnoreTsOverlap(Bool_t bFlagIn);
81 
82 private:
83  void FillOutput();
84  void SaveHistos();
85 
87 
88  TClonesArray* fEvents = nullptr;
89 
90  Bool_t fbFillHistos {kTRUE};
91 
93  TString fsOutFileName {"data/HistosEvtWin.root"};
94 
96 };
97 
98 #endif // CBMMCBM2019TIMEWINEVENTBUILDERTASK_H
CbmMcbm2019TimeWinEventBuilderTask::FillOutput
void FillOutput()
Definition: CbmMcbm2019TimeWinEventBuilderTask.cxx:81
CbmMcbm2019TimeWinEventBuilderTask::Exec
virtual void Exec(Option_t *)
Definition: CbmMcbm2019TimeWinEventBuilderTask.cxx:60
CbmMcbm2019TimeWinEventBuilderTask::operator=
CbmMcbm2019TimeWinEventBuilderTask operator=(const CbmMcbm2019TimeWinEventBuilderTask &)=delete
CbmMcbm2019TimeWinEventBuilderTask::fpAlgo
CbmMcbm2019TimeWinEventBuilderAlgo * fpAlgo
Definition: CbmMcbm2019TimeWinEventBuilderTask.h:86
CbmMcbm2019TimeWinEventBuilderTask::SetTriggerWindow
void SetTriggerWindow(ECbmModuleId det, Double_t dWinBeg, Double_t dWinEnd)
Definition: CbmMcbm2019TimeWinEventBuilderTask.cxx:177
CbmMcbm2019TimeWinEventBuilderTask::CbmMcbm2019TimeWinEventBuilderTask
CbmMcbm2019TimeWinEventBuilderTask()
Definition: CbmMcbm2019TimeWinEventBuilderTask.cxx:23
CbmMcbm2019TimeWinEventBuilderTask::ReInit
virtual InitStatus ReInit()
Definition: CbmMcbm2019TimeWinEventBuilderTask.cxx:57
CbmMcbm2019TimeWinEventBuilderTask::SetTriggerMinNumber
void SetTriggerMinNumber(ECbmModuleId selDet, UInt_t uVal)
Definition: CbmMcbm2019TimeWinEventBuilderTask.cxx:166
CbmMcbm2019TimeWinEventBuilderTask::CbmMcbm2019TimeWinEventBuilderTask
CbmMcbm2019TimeWinEventBuilderTask(const CbmMcbm2019TimeWinEventBuilderTask &)=delete
ECbmModuleId
ECbmModuleId
Definition: CbmDefs.h:33
CbmMcbm2019TimeWinEventBuilderTask::fbFillHistos
Bool_t fbFillHistos
output container of CbmEvents
Definition: CbmMcbm2019TimeWinEventBuilderTask.h:90
CbmMcbm2019TimeWinEventBuilderAlgo.h
CbmTofDigi.h
CbmMcbm2019TimeWinEventBuilderTask::Finish
virtual void Finish()
Definition: CbmMcbm2019TimeWinEventBuilderTask.cxx:73
CbmMcbm2019TimeWinEventBuilderTask::SetTriggerMaxNumber
void SetTriggerMaxNumber(ECbmModuleId selDet, Int_t iVal)
Definition: CbmMcbm2019TimeWinEventBuilderTask.cxx:171
CbmMcbm2019TimeWinEventBuilderTask::fsOutFileName
TString fsOutFileName
Switch ON/OFF filling of histograms.
Definition: CbmMcbm2019TimeWinEventBuilderTask.h:93
CbmMcbm2019TimeWinEventBuilderTask::Init
virtual InitStatus Init()
Definition: CbmMcbm2019TimeWinEventBuilderTask.cxx:38
CbmMcbm2019TimeWinEventBuilderTask::ClassDef
ClassDef(CbmMcbm2019TimeWinEventBuilderTask, 1)
__attribute__
nsL1vector __attribute__
CbmMcbm2019TimeWinEventBuilderTask::SaveHistos
void SaveHistos()
Definition: CbmMcbm2019TimeWinEventBuilderTask.cxx:102
CbmMcbm2019TimeWinEventBuilderTask::~CbmMcbm2019TimeWinEventBuilderTask
~CbmMcbm2019TimeWinEventBuilderTask()
Definition: CbmMcbm2019TimeWinEventBuilderTask.cxx:30
CbmMcbm2019TimeWinEventBuilderTask
Definition: CbmMcbm2019TimeWinEventBuilderTask.h:29
EventBuilderDetector
Definition: CbmMcbm2019TimeWinEventBuilderAlgo.h:37
CbmMcbm2019TimeWinEventBuilderTask::SetIgnoreTsOverlap
void SetIgnoreTsOverlap(Bool_t bFlagIn)
Definition: CbmMcbm2019TimeWinEventBuilderTask.cxx:187
CbmMcbm2019TimeWinEventBuilderTask::RemoveDetector
void RemoveDetector(ECbmModuleId selDet) __attribute__((deprecated))
Definition: CbmMcbm2019TimeWinEventBuilderTask.cxx:149
CbmMcbm2019TimeWinEventBuilderTask::SetReferenceDetector
void SetReferenceDetector(ECbmModuleId refDet) __attribute__((deprecated))
Definition: CbmMcbm2019TimeWinEventBuilderTask.cxx:142
CbmMcbm2019TimeWinEventBuilderTask::SetParContainers
virtual void SetParContainers()
Definition: CbmMcbm2019TimeWinEventBuilderTask.cxx:33
CbmMcbm2019TimeWinEventBuilderTask::AddDetector
void AddDetector(ECbmModuleId selDet) __attribute__((deprecated))
Definition: CbmMcbm2019TimeWinEventBuilderTask.cxx:146
CbmMcbm2019TimeWinEventBuilderTask::SetEventOverlapMode
void SetEventOverlapMode(EOverlapMode mode)
Definition: CbmMcbm2019TimeWinEventBuilderTask.cxx:183
EOverlapMode
EOverlapMode
Definition: CbmMcbm2019TimeWinEventBuilderAlgo.h:35
CbmMcbm2019TimeWinEventBuilderTask::fEvents
TClonesArray * fEvents
Definition: CbmMcbm2019TimeWinEventBuilderTask.h:88
CbmMcbm2019TimeWinEventBuilderTask::SetOutFilename
void SetOutFilename(TString sNameIn)
Definition: CbmMcbm2019TimeWinEventBuilderTask.cxx:138
CbmMcbm2019TimeWinEventBuilderAlgo
Definition: CbmMcbm2019TimeWinEventBuilderAlgo.h:106
CbmMcbm2019TimeWinEventBuilderTask::SetFillHistos
void SetFillHistos(Bool_t bFlag=kTRUE)
Definition: CbmMcbm2019TimeWinEventBuilderTask.cxx:134