CbmRoot
Loading...
Searching...
No Matches
CbmTsEventHeader.h
Go to the documentation of this file.
1/* Copyright (C) 2021 Goethe-University Frankfurt, Frankfurt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Pascal Raisig [committer] */
4
5#ifndef CbmTsEventHeader_H
6#define CbmTsEventHeader_H
7
8#include <FairEventHeader.h>
9
10#include <cstddef>
11#include <cstdint>
12
13class CbmTsEventHeader : public FairEventHeader {
14
15public:
18
20 virtual ~CbmTsEventHeader() {};
21
23 void AddNDigisMuch(uint64_t value) { fNDigisMuch += value; }
25 void AddNDigisPsd(uint64_t value) { fNDigisPsd += value; }
27 void AddNDigisFsd(uint64_t value) { fNDigisFsd += value; }
29 void AddNDigisRich(uint64_t value) { fNDigisRich += value; }
31 void AddNDigisSts(uint64_t value) { fNDigisSts += value; }
33 void AddNDigisTof(uint64_t value) { fNDigisTof += value; }
35 void AddNDigisTrd1D(uint64_t value) { fNDigisTrd1D += value; }
37 void AddNDigisTrd2D(uint64_t value) { fNDigisTrd2D += value; }
39 void AddNDigisBmon(uint64_t value) { fNDigisBmon += value; }
40
42 uint64_t GetNDigisMuch() const { return fNDigisMuch; }
44 uint64_t GetNDigisPsd() const { return fNDigisPsd; }
46 uint64_t GetNDigisFsd() const { return fNDigisFsd; }
48 uint64_t GetNDigisRich() const { return fNDigisRich; }
50 uint64_t GetNDigisSts() const { return fNDigisSts; }
52 uint64_t GetNDigisTof() const { return fNDigisTof; }
54 uint64_t GetNDigisTrd1D() const { return fNDigisTrd1D; }
56 uint64_t GetNDigisTrd2D() const { return fNDigisTrd2D; }
58 uint64_t GetNDigisBmon() const { return fNDigisBmon; }
59
61 uint64_t GetTsIndex() const { return fTsIndex; }
63 uint64_t GetTsStartTime() const { return fTsStartTime; }
64
66 void Reset();
67
69 void SetNDigisMuch(uint64_t value) { fNDigisMuch = value; }
71 void SetNDigisPsd(uint64_t value) { fNDigisPsd = value; }
73 void SetNDigisFsd(uint64_t value) { fNDigisFsd = value; }
75 void SetNDigisRich(uint64_t value) { fNDigisRich = value; }
77 void SetNDigisSts(uint64_t value) { fNDigisSts = value; }
79 void SetNDigisTof(uint64_t value) { fNDigisTof = value; }
81 void SetNDigisTrd1D(uint64_t value) { fNDigisTrd1D = value; }
83 void SetNDigisTrd2D(uint64_t value) { fNDigisTrd2D = value; }
85 void SetNDigisBmon(uint64_t value) { fNDigisBmon = value; }
86
88 void SetTsIndex(uint64_t value) { fTsIndex = value; }
90 void SetTsStartTime(uint64_t value) { fTsStartTime = value; }
91
92
95
96protected:
98 uint64_t fTsIndex = 0;
100 uint64_t fTsStartTime = 0;
101
103 uint64_t fNDigisMuch = 0;
105 uint64_t fNDigisPsd = 0;
107 uint64_t fNDigisFsd = 0;
109 uint64_t fNDigisRich = 0;
111 uint64_t fNDigisSts = 0;
113 uint64_t fNDigisTof = 0;
115 uint64_t fNDigisTrd1D = 0;
117 uint64_t fNDigisTrd2D = 0;
119 uint64_t fNDigisBmon = 0;
120
121 ClassDef(CbmTsEventHeader, 7)
122};
123#endif
void AddNDigisTof(uint64_t value)
Add a number of digis from this Ts.
uint64_t GetNDigisMuch() const
Get the number of digis in this Ts.
void SetNDigisTrd2D(uint64_t value)
Set the number of digis in this Ts.
void AddNDigisMuch(uint64_t value)
Add a number of digis from this Ts.
void SetNDigisBmon(uint64_t value)
Set the number of digis in this Ts.
void SetNDigisMuch(uint64_t value)
Set the number of digis in this Ts.
uint64_t GetNDigisFsd() const
Get the number of digis in this Ts.
uint64_t GetTsStartTime() const
void AddNDigisTrd1D(uint64_t value)
Add a number of digis from this Ts.
void SetNDigisFsd(uint64_t value)
Set the number of digis in this Ts.
uint64_t fNDigisFsd
nDigis in "this" timeslice measured by the FSD
uint64_t fNDigisTrd2D
nDigis in "this" timeslice measured by the TRD2D
uint64_t fNDigisTrd1D
nDigis in "this" timeslice measured by the TRD1D
uint64_t fNDigisMuch
nDigis in "this" timeslice measured by the MUCH
uint64_t GetNDigisBmon() const
Get the number of digis in this Ts.
CbmTsEventHeader(const CbmTsEventHeader &)=default
CbmTsEventHeader & operator=(const CbmTsEventHeader &)=default
void AddNDigisBmon(uint64_t value)
Add a number of digis from this Ts.
uint64_t GetNDigisRich() const
Get the number of digis in this Ts.
void AddNDigisPsd(uint64_t value)
Add a number of digis from this Ts.
uint64_t GetNDigisPsd() const
Get the number of digis in this Ts.
void SetNDigisPsd(uint64_t value)
Set the number of digis in this Ts.
uint64_t fNDigisPsd
nDigis in "this" timeslice measured by the PSD
void SetNDigisRich(uint64_t value)
Set the number of digis in this Ts.
uint64_t fNDigisBmon
nDigis in "this" timeslice measured by the BMON
uint64_t GetNDigisTof() const
Get the number of digis in this Ts.
uint64_t GetNDigisTrd2D() const
Get the number of digis in this Ts.
uint64_t fNDigisSts
nDigis in "this" timeslice measured by the STS
virtual ~CbmTsEventHeader()
uint64_t GetNDigisTrd1D() const
Get the number of digis in this Ts.
void AddNDigisSts(uint64_t value)
Add a number of digis from this Ts.
uint64_t GetNDigisSts() const
Get the number of digis in this Ts.
uint64_t fNDigisTof
nDigis in "this" timeslice measured by the TOF
void SetNDigisTrd1D(uint64_t value)
Set the number of digis in this Ts.
uint64_t fNDigisRich
nDigis in "this" timeslice measured by the RICH
void Reset()
Resets counters and variables for a new Timeslice, e.g. the NDigis counter are set back to 0.
void SetNDigisTof(uint64_t value)
Set the number of digis in this Ts.
void AddNDigisRich(uint64_t value)
Add a number of digis from this Ts.
void SetTsStartTime(uint64_t value)
Set the Ts Start Time.
uint64_t GetTsIndex() const
void AddNDigisFsd(uint64_t value)
Add a number of digis from this Ts.
void SetNDigisSts(uint64_t value)
Set the number of digis in this Ts.
void AddNDigisTrd2D(uint64_t value)
Add a number of digis from this Ts.
void SetTsIndex(uint64_t value)
Set the Ts Start Time.