CbmRoot
Loading...
Searching...
No Matches
CbmMcbmCheckTimingTask.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 CBMMCBMCHECKTIMINGTASK_H
6#define CBMMCBMCHECKTIMINGTASK_H
7
10
12#include "FairTask.h"
13
15
17
18class TClonesArray;
19
20class CbmMcbmCheckTimingTask : public FairTask {
21public:
24
27
29 // CbmMcbmCheckTimingTask(Int_t verbose);
30
31
34
35
37 virtual InitStatus Init();
38
40 virtual InitStatus ReInit();
41
42
44 virtual void Exec(Option_t*);
45
47 virtual void SetParContainers();
48
50 virtual void Finish();
51
52 void SetOutFilename(TString sNameIn);
53
54 void SetReferenceDetector(ECbmModuleId refDetIn, std::string sNameIn, Double_t dTimeRangeBegIn = -1000.0,
55 Double_t dTimeRangeEndIn = 1000.0, UInt_t uRangeNbBinsIn = 320, UInt_t uChargeCutMinIn = 0,
56 UInt_t uChargeCutMaxIn = 0);
57 void AddCheckDetector(ECbmModuleId detIn, std::string sNameIn, Double_t dTimeRangeBegIn = -1000.0,
58 Double_t dTimeRangeEndIn = 1000.0, UInt_t uRangeNbBinsIn = 320, UInt_t uChargeCutMinIn = 0,
59 UInt_t uChargeCutMaxIn = 0);
61 void SetDetectorDifferential(ECbmModuleId detIn, std::vector<std::string> vName);
62
63private:
64 void SaveHistos();
65
67
69 TString fsOutFileName = "data/HistosCheckTiming.root";
70
72};
73
74#endif // CBMMCBM2019TIMEWINEVENTBUILDERTASK_H
ECbmModuleId
Definition CbmDefs.h:39
void SetOutFilename(TString sNameIn)
void RemoveCheckDetector(ECbmModuleId detIn)
void AddCheckDetector(ECbmModuleId detIn, std::string sNameIn, Double_t dTimeRangeBegIn=-1000.0, Double_t dTimeRangeEndIn=1000.0, UInt_t uRangeNbBinsIn=320, UInt_t uChargeCutMinIn=0, UInt_t uChargeCutMaxIn=0)
ClassDef(CbmMcbmCheckTimingTask, 1)
void SetDetectorDifferential(ECbmModuleId detIn, std::vector< std::string > vName)
virtual void Exec(Option_t *)
CbmMcbmCheckTimingTask operator=(const CbmMcbmCheckTimingTask &)=delete
void SetReferenceDetector(ECbmModuleId refDetIn, std::string sNameIn, Double_t dTimeRangeBegIn=-1000.0, Double_t dTimeRangeEndIn=1000.0, UInt_t uRangeNbBinsIn=320, UInt_t uChargeCutMinIn=0, UInt_t uChargeCutMaxIn=0)
CbmMcbmCheckTimingAlgo * fpAlgo
CbmMcbmCheckTimingTask(const CbmMcbmCheckTimingTask &)=delete