Belle II Software prerelease-11-00-00a
HLTPrefilterParameters.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10
11/* ROOT headers. */
12#include <TObject.h>
13
14/* C++ headers. */
15#include <cstdint>
16
17namespace Belle2 {
22
26 class HLTPrefilterParameters : public TObject {
27
28 public:
29
46
58 HLTPrefilterParameters(double LERtimeSinceLastInjectionMin, double LERtimeSinceLastInjectionMax, double LERtimeInBeamCycleMin,
59 double LERtimeInBeamCycleMax, double HERtimeSinceLastInjectionMin, double HERtimeSinceLastInjectionMax,
60 double HERtimeInBeamCycleMin, double HERtimeInBeamCycleMax)
61 {
62 m_LERtimeSinceLastInjectionMin = LERtimeSinceLastInjectionMin;
63 m_LERtimeSinceLastInjectionMax = LERtimeSinceLastInjectionMax;
64 m_HERtimeSinceLastInjectionMin = HERtimeSinceLastInjectionMin;
65 m_HERtimeSinceLastInjectionMax = HERtimeSinceLastInjectionMax;
66 m_LERtimeInBeamCycleMin = LERtimeInBeamCycleMin;
67 m_LERtimeInBeamCycleMax = LERtimeInBeamCycleMax;
68 m_HERtimeInBeamCycleMin = HERtimeInBeamCycleMin;
69 m_HERtimeInBeamCycleMax = HERtimeInBeamCycleMax;
70 m_cdcHitsMax = 1e9;
71 m_eclDigitsMax = 1e9;
72 }
73
92
99
104 void setLERtimeSinceLastInjectionMin(double LERtimeSinceLastInjectionMin)
105 {
106 m_LERtimeSinceLastInjectionMin = LERtimeSinceLastInjectionMin;
107 }
108
113 void setLERtimeSinceLastInjectionMax(double LERtimeSinceLastInjectionMax)
114 {
115 m_LERtimeSinceLastInjectionMax = LERtimeSinceLastInjectionMax;
116 }
117
122 void setHERtimeSinceLastInjectionMin(double HERtimeSinceLastInjectionMin)
123 {
124 m_HERtimeSinceLastInjectionMin = HERtimeSinceLastInjectionMin;
125 }
126
131 void setHERtimeSinceLastInjectionMax(double HERtimeSinceLastInjectionMax)
132 {
133 m_HERtimeSinceLastInjectionMax = HERtimeSinceLastInjectionMax;
134 }
135
136
141 void setLERtimeInBeamCycleMin(double LERtimeInBeamCycleMin)
142 {
143 m_LERtimeInBeamCycleMin = LERtimeInBeamCycleMin;
144 }
145
150 void setLERtimeInBeamCycleMax(double LERtimeInBeamCycleMax)
151 {
152 m_LERtimeInBeamCycleMax = LERtimeInBeamCycleMax;
153 }
154
159 void setHERtimeInBeamCycleMin(double HERtimeInBeamCycleMin)
160 {
161 m_HERtimeInBeamCycleMin = HERtimeInBeamCycleMin;
162 }
163
168 void setHERtimeInBeamCycleMax(double HERtimeInBeamCycleMax)
169 {
170 m_HERtimeInBeamCycleMax = HERtimeInBeamCycleMax;
171 }
172
177 void setCDCHitsMax(uint32_t cdcHitsMax)
178 {
179 m_cdcHitsMax = cdcHitsMax;
180 }
181
186 void setECLDigitsMax(uint32_t eclDigitsMax)
187 {
188 m_eclDigitsMax = eclDigitsMax;
189 }
190
198
206
214
222
227 {
229 }
230
235 {
237 }
238
243 {
245 }
246
251 {
253 }
254
258 uint32_t getCDCHitsMax() const
259 {
260 return m_cdcHitsMax;
261 }
262
266 uint32_t getECLDigitsMax() const
267 {
268 return m_eclDigitsMax;
269 }
270
271 private:
272
308 uint32_t m_cdcHitsMax;
313
318
319 };
320
322}
double m_HERtimeSinceLastInjectionMin
Minimum threshold of timeSinceLastInjection for HER injection.
void setLERtimeInBeamCycleMax(double LERtimeInBeamCycleMax)
Set the maximum threshold of timeInBeamCycle for LER injection for an event.
void setHERtimeSinceLastInjectionMin(double HERtimeSinceLastInjectionMin)
Set the minimum threshold of timeSinceLastInjection for HER injection for an event.
double getLERtimeSinceLastInjectionMax() const
Get the maximum threshold of timeSinceLastInjection for LER injection for an event.
HLTPrefilterParameters()
Default constructor.
void setHERtimeInBeamCycleMax(double HERtimeInBeamCycleMax)
Set the maximum threshold of timeInBeamCycle for HER injection for an event.
uint32_t m_eclDigitsMax
Maximum threshold of ECLDigits.
double getHERtimeSinceLastInjectionMax() const
Get the maximum threshold of timeSinceLastInjection for HER injection for an event.
double m_LERtimeInBeamCycleMin
Minimum threshold of timeInBeamCycle for LER injection.
double getLERtimeInBeamCycleMin() const
Get the minimum threshold of timeInBeamCycle for LER injection for an event.
void setECLDigitsMax(uint32_t eclDigitsMax)
Set the maximum threshold of CDCHits for an event.
double m_HERtimeInBeamCycleMin
Minimum threshold of timeInBeamCycle for HER injection.
double m_LERtimeSinceLastInjectionMax
Maximum threshold of timeSinceLastInjection for LER injection.
double getHERtimeInBeamCycleMin() const
Get the minimum threshold of timeInBeamCycle for HER injection for an event.
void setLERtimeSinceLastInjectionMax(double LERtimeSinceLastInjectionMax)
Set the maximum threshold of timeSinceLastInjection for LER injection for an event.
double getHERtimeSinceLastInjectionMin() const
Get the minimum threshold of timeSinceLastInjection for HER injection for an event.
double m_LERtimeInBeamCycleMax
Maximum threshold of timeInBeamCycle for LER injection.
uint32_t m_cdcHitsMax
Maximum threshold of CDCHits.
HLTPrefilterParameters(uint32_t cdcHitsMax, uint32_t eclDigitsMax)
Constructor.
double m_HERtimeInBeamCycleMax
Maximum threshold of timeInBeamCycle for HER injection.
double getHERtimeInBeamCycleMax() const
Get the maximum threshold of timeInBeamCycle for HER injection for an event.
double getLERtimeInBeamCycleMax() const
Get the maximum threshold of timeInBeamCycle for LER injection for an event.
double m_HERtimeSinceLastInjectionMax
Maximum threshold of timeSinceLastInjection for HER injection.
uint32_t getECLDigitsMax() const
Get the maximum threshold of CDCHits for an event.
void setCDCHitsMax(uint32_t cdcHitsMax)
Set the maximum threshold of CDCHits for an event.
void setLERtimeInBeamCycleMin(double LERtimeInBeamCycleMin)
Set the minimum threshold of timeInBeamCycle for LER injection for an event.
void setHERtimeSinceLastInjectionMax(double HERtimeSinceLastInjectionMax)
Set the maximum threshold of timeSinceLastInjection for HER injection for an event.
void setLERtimeSinceLastInjectionMin(double LERtimeSinceLastInjectionMin)
Set the minimum threshold of timeSinceLastInjection for LER injection for an event.
double getLERtimeSinceLastInjectionMin() const
Get the minimum threshold of timeSinceLastInjection for LER injection for an event.
HLTPrefilterParameters(double LERtimeSinceLastInjectionMin, double LERtimeSinceLastInjectionMax, double LERtimeInBeamCycleMin, double LERtimeInBeamCycleMax, double HERtimeSinceLastInjectionMin, double HERtimeSinceLastInjectionMax, double HERtimeInBeamCycleMin, double HERtimeInBeamCycleMax)
Constructor.
uint32_t getCDCHitsMax() const
Get the maximum threshold of CDCHits for an event.
ClassDef(HLTPrefilterParameters, 2)
Class version.
void setHERtimeInBeamCycleMin(double HERtimeInBeamCycleMin)
Set the minimum threshold of timeInBeamCycle for HER injection for an event.
double m_LERtimeSinceLastInjectionMin
Minimum threshold of timeSinceLastInjection for LER injection.
Abstract base class for different kinds of events.