CbmRoot
Loading...
Searching...
No Matches
CbmRecoT0.h
Go to the documentation of this file.
1/* Copyright (C) 2022 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Volker Friese [committer] */
4
5
6#ifndef CBMRECOBMON_H
7#define CBMRECOBMON_H 1
8
9#include "CbmBmonDigi.h"
10#include "FairTask.h"
11
12#include <vector>
13
14class TClonesArray;
15
16
23 size_t fNumTs = 0;
24 size_t fNumEvents = 0;
25 size_t fNumEvtsBmon0 = 0;
26 size_t fNumEvtsBmon1 = 0;
27 size_t fNumEvtsBmonn = 0;
28 double fExecTime = 0.;
29
31 {
32 fNumTs += other.fNumTs;
33 fNumEvents += other.fNumEvents;
37 fExecTime += other.fExecTime;
38 return *this;
39 }
40};
41
50class CbmRecoT0 : public FairTask {
51
52 public:
58 CbmRecoT0(const char* name = "RecoBmon");
59
60
62 virtual ~CbmRecoT0();
63
64
66 virtual InitStatus Init();
67
68
70 virtual void Exec(Option_t* opt);
71
72
74 virtual void Finish();
75
76
77 private:
78 // --- Data
79 const std::vector<CbmBmonDigi>* fBmonDigis = nullptr;
80 TClonesArray* fEvents = nullptr;
81
82 // --- Monitor
84
85
87};
88
89#endif
Task class for reconstruction of the event t0.
Definition CbmRecoT0.h:50
CbmRecoT0MoniData fMonitor
Monitor data.
Definition CbmRecoT0.h:83
virtual InitStatus Init()
Initialisation.
Definition CbmRecoT0.cxx:41
virtual void Finish()
End-of-timeslice action.
CbmRecoT0(const char *name="RecoBmon")
Constructor.
Definition CbmRecoT0.cxx:31
const std::vector< CbmBmonDigi > * fBmonDigis
BMON digis.
Definition CbmRecoT0.h:79
virtual ~CbmRecoT0()
Destructor.
Definition CbmRecoT0.cxx:36
virtual void Exec(Option_t *opt)
Task execution.
Definition CbmRecoT0.cxx:83
ClassDef(CbmRecoT0, 1)
TClonesArray * fEvents
CbmEvent.
Definition CbmRecoT0.h:80
Monitor data for Bmon reconstruction.
Definition CbmRecoT0.h:22
size_t fNumEvtsBmonn
Definition CbmRecoT0.h:27
size_t fNumEvtsBmon1
Definition CbmRecoT0.h:26
size_t fNumEvtsBmon0
Definition CbmRecoT0.h:25
CbmRecoT0MoniData & operator+=(const CbmRecoT0MoniData &other)
Definition CbmRecoT0.h:30