CbmRoot
Loading...
Searching...
No Matches
CbmCheckEvents.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: Florian Uhlig [committer] */
4
5#ifndef CBMCHECKEVENTS_H
6#define CBMCHECKEVENTS_H
7
8#include "CbmDefs.h"
9#include "CbmTofDigi.h"
10
11#include "FairTask.h"
12
13#include "TString.h"
14
15#include <vector>
16
17class CbmEvent;
18
19class TClonesArray;
20class TH1;
21class TH2;
22class TProfile;
23class CbmDigiManager;
24
25class CbmCheckEvents : public FairTask {
26public:
29
32
34 // CbmCheckEvents(Int_t verbose);
35
36
39
40
42 virtual InitStatus Init();
43
45 virtual InitStatus ReInit();
46
47
49 virtual void Exec(Option_t*);
50
52 virtual void SetParContainers();
53
55 virtual void Finish();
56
57private:
58 void CreateHistos();
59 void AnalyseEvent(CbmEvent* event);
60
61 void GetTimeDiffBmon(CbmEvent*, TH1*, TH1*);
62
63 template<class Digi>
64 void GetTimeDiff(CbmEvent* event, TH1*, TH1*, ECbmDataType type);
65
68 const std::vector<CbmTofDigi>* fBmonDigiVec = nullptr;
69 TClonesArray* fBmonDigiArr {nullptr};
70 TClonesArray* fEvents {nullptr};
71
72 // Variables to store the previous digi time
73 Double_t fPrevEventTime {0.};
74
75 //
76 Int_t fNrTs {0};
77
78 // Histograms
79 TH1* fEventSize = nullptr;
80 TH1* fEventLength = nullptr;
81 TH1* fEventsPerTS = nullptr;
82 TH1* fBmonInEvent = nullptr;
83 TH1* fStsInEvent = nullptr;
84 TH1* fMuchInEvent = nullptr;
85 TH1* fTofInEvent = nullptr;
86
87 TH1* fBmonDeltaT = nullptr;
88 TH1* fStsDeltaT = nullptr;
89 TH1* fMuchDeltaT = nullptr;
90 TH1* fTofDeltaT = nullptr;
91
92 TH2* fEventsvsTS = nullptr;
93 TProfile* fLengthvsTS = nullptr;
94
96};
97
98#endif
ECbmDataType
Definition CbmDefs.h:90
CbmDigiManager * fDigiMan
TProfile * fLengthvsTS
const std::vector< CbmTofDigi > * fBmonDigiVec
Interface to digi data.
TClonesArray * fEvents
ClassDef(CbmCheckEvents, 1)
virtual InitStatus Init()
TClonesArray * fBmonDigiArr
virtual void Exec(Option_t *)
virtual InitStatus ReInit()
void GetTimeDiff(CbmEvent *event, TH1 *, TH1 *, ECbmDataType type)
CbmCheckEvents(const CbmCheckEvents &)=delete
CbmCheckEvents operator=(const CbmCheckEvents &)=delete
void GetTimeDiffBmon(CbmEvent *, TH1 *, TH1 *)
Double_t fPrevEventTime
virtual void SetParContainers()
void AnalyseEvent(CbmEvent *event)
virtual void Finish()
CbmDigiManager.
Class characterising one event by a collection of links (indices) to data objects,...
Definition CbmEvent.h:34