Belle II Software development
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:
30 enum HLTPrefilterState { TimingCut = 0, CDCECLCut = 1 };
31
50
64 HLTPrefilterParameters(double LERtimeSinceLastInjectionMin, double LERtimeSinceLastInjectionMax, double LERtimeInBeamCycleMin,
65 double LERtimeInBeamCycleMax, double HERtimeSinceLastInjectionMin, double HERtimeSinceLastInjectionMax,
66 double HERtimeInBeamCycleMin, double HERtimeInBeamCycleMax, unsigned short State,
67 unsigned int HLTPrefilterPrescale)
68 {
69 m_LERtimeSinceLastInjectionMin = LERtimeSinceLastInjectionMin;
70 m_LERtimeSinceLastInjectionMax = LERtimeSinceLastInjectionMax;
71 m_HERtimeSinceLastInjectionMin = HERtimeSinceLastInjectionMin;
72 m_HERtimeSinceLastInjectionMax = HERtimeSinceLastInjectionMax;
73 m_LERtimeInBeamCycleMin = LERtimeInBeamCycleMin;
74 m_LERtimeInBeamCycleMax = LERtimeInBeamCycleMax;
75 m_HERtimeInBeamCycleMin = HERtimeInBeamCycleMin;
76 m_HERtimeInBeamCycleMax = HERtimeInBeamCycleMax;
77 m_cdcHitsMax = 1e9;
78 m_eclDigitsMax = 1e9;
79 m_HLTPrefilterState = static_cast<HLTPrefilterState>(State);
80 m_HLTPrefilterPrescale = HLTPrefilterPrescale;
81 }
82
90 HLTPrefilterParameters(uint32_t cdcHitsMax, uint32_t eclDigitsMax, unsigned short State, unsigned int HLTPrefilterPrescale)
91 {
100 m_cdcHitsMax = cdcHitsMax;
101 m_eclDigitsMax = eclDigitsMax;
102 m_HLTPrefilterState = static_cast<HLTPrefilterState>(State);
103 m_HLTPrefilterPrescale = HLTPrefilterPrescale;
104 }
105
112
117 void setLERtimeSinceLastInjectionMin(double LERtimeSinceLastInjectionMin)
118 {
119 m_LERtimeSinceLastInjectionMin = LERtimeSinceLastInjectionMin;
120 }
121
126 void setLERtimeSinceLastInjectionMax(double LERtimeSinceLastInjectionMax)
127 {
128 m_LERtimeSinceLastInjectionMax = LERtimeSinceLastInjectionMax;
129 }
130
135 void setHERtimeSinceLastInjectionMin(double HERtimeSinceLastInjectionMin)
136 {
137 m_HERtimeSinceLastInjectionMin = HERtimeSinceLastInjectionMin;
138 }
139
144 void setHERtimeSinceLastInjectionMax(double HERtimeSinceLastInjectionMax)
145 {
146 m_HERtimeSinceLastInjectionMax = HERtimeSinceLastInjectionMax;
147 }
148
149
154 void setLERtimeInBeamCycleMin(double LERtimeInBeamCycleMin)
155 {
156 m_LERtimeInBeamCycleMin = LERtimeInBeamCycleMin;
157 }
158
163 void setLERtimeInBeamCycleMax(double LERtimeInBeamCycleMax)
164 {
165 m_LERtimeInBeamCycleMax = LERtimeInBeamCycleMax;
166 }
167
172 void setHERtimeInBeamCycleMin(double HERtimeInBeamCycleMin)
173 {
174 m_HERtimeInBeamCycleMin = HERtimeInBeamCycleMin;
175 }
176
181 void setHERtimeInBeamCycleMax(double HERtimeInBeamCycleMax)
182 {
183 m_HERtimeInBeamCycleMax = HERtimeInBeamCycleMax;
184 }
185
190 void setCDCHitsMax(uint32_t cdcHitsMax)
191 {
192 m_cdcHitsMax = cdcHitsMax;
193 }
194
199 void setECLDigitsMax(uint32_t eclDigitsMax)
200 {
201 m_eclDigitsMax = eclDigitsMax;
202 }
203
208 void setHLTPrefilterState(unsigned short State)
209 {
210 m_HLTPrefilterState = static_cast<HLTPrefilterState>(State);
211 }
212
217 void setHLTPrefilterPrescale(unsigned int HLTPrefilterPrescale)
218 {
219 m_HLTPrefilterPrescale = HLTPrefilterPrescale;
220 }
221
229
237
245
253
258 {
260 }
261
266 {
268 }
269
274 {
276 }
277
282 {
284 }
285
289 uint32_t getCDCHitsMax() const
290 {
291 return m_cdcHitsMax;
292 }
293
297 uint32_t getECLDigitsMax() const
298 {
299 return m_eclDigitsMax;
300 }
301
305 unsigned short getHLTPrefilterState() const
306 {
307 return static_cast<unsigned short>(m_HLTPrefilterState);
308 }
309
313 unsigned int getHLTPrefilterPrescale() const
314 {
316 }
317
318 private:
319
355 uint32_t m_cdcHitsMax;
360
365
370
375
376 };
377
379}
void setHLTPrefilterPrescale(unsigned int HLTPrefilterPrescale)
Set the prescale for HLTPrefilter result.
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.
unsigned short getHLTPrefilterState() const
Get the HLTPrefilter state.
void setHLTPrefilterState(unsigned short State)
Set the HLTPrefilter state.
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.
unsigned int m_HLTPrefilterPrescale
HLTPrefilter prescale.
double getLERtimeInBeamCycleMin() const
Get the minimum threshold of timeInBeamCycle for LER injection for an event.
unsigned int getHLTPrefilterPrescale() const
Get the prescale for HLTPrefilter result.
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.
HLTPrefilterParameters(uint32_t cdcHitsMax, uint32_t eclDigitsMax, unsigned short State, unsigned int HLTPrefilterPrescale)
Constructor.
double getHERtimeSinceLastInjectionMin() const
Get the minimum threshold of timeSinceLastInjection for HER injection for an event.
HLTPrefilterState
Enumeration for HLT prefilter state.
HLTPrefilterState m_HLTPrefilterState
HLTPrefilter State.
double m_LERtimeInBeamCycleMax
Maximum threshold of timeInBeamCycle for LER injection.
HLTPrefilterParameters(double LERtimeSinceLastInjectionMin, double LERtimeSinceLastInjectionMax, double LERtimeInBeamCycleMin, double LERtimeInBeamCycleMax, double HERtimeSinceLastInjectionMin, double HERtimeSinceLastInjectionMax, double HERtimeInBeamCycleMin, double HERtimeInBeamCycleMax, unsigned short State, unsigned int HLTPrefilterPrescale)
Constructor.
uint32_t m_cdcHitsMax
Maximum threshold of CDCHits.
double m_HERtimeInBeamCycleMax
Maximum threshold of timeInBeamCycle for HER injection.
ClassDef(HLTPrefilterParameters, 1)
Class version.
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.
uint32_t getCDCHitsMax() const
Get the maximum threshold of CDCHits for an event.
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.