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_HLTPrefilterState = static_cast<HLTPrefilterState>(State);
78 m_HLTPrefilterPrescale = HLTPrefilterPrescale;
79 }
80
88 HLTPrefilterParameters(uint32_t cdcHitsMax, uint32_t eclDigitsMax, unsigned short State, unsigned int HLTPrefilterPrescale)
89 {
90 m_cdcHitsMax = cdcHitsMax;
91 m_eclDigitsMax = eclDigitsMax;
92 m_HLTPrefilterState = static_cast<HLTPrefilterState>(State);
93 m_HLTPrefilterPrescale = HLTPrefilterPrescale;
94 }
95
102
107 void setLERtimeSinceLastInjectionMin(double LERtimeSinceLastInjectionMin)
108 {
109 m_LERtimeSinceLastInjectionMin = LERtimeSinceLastInjectionMin;
110 }
111
116 void setLERtimeSinceLastInjectionMax(double LERtimeSinceLastInjectionMax)
117 {
118 m_LERtimeSinceLastInjectionMax = LERtimeSinceLastInjectionMax;
119 }
120
125 void setHERtimeSinceLastInjectionMin(double HERtimeSinceLastInjectionMin)
126 {
127 m_HERtimeSinceLastInjectionMin = HERtimeSinceLastInjectionMin;
128 }
129
134 void setHERtimeSinceLastInjectionMax(double HERtimeSinceLastInjectionMax)
135 {
136 m_HERtimeSinceLastInjectionMax = HERtimeSinceLastInjectionMax;
137 }
138
139
144 void setLERtimeInBeamCycleMin(double LERtimeInBeamCycleMin)
145 {
146 m_LERtimeInBeamCycleMin = LERtimeInBeamCycleMin;
147 }
148
153 void setLERtimeInBeamCycleMax(double LERtimeInBeamCycleMax)
154 {
155 m_LERtimeInBeamCycleMax = LERtimeInBeamCycleMax;
156 }
157
162 void setHERtimeInBeamCycleMin(double HERtimeInBeamCycleMin)
163 {
164 m_HERtimeInBeamCycleMin = HERtimeInBeamCycleMin;
165 }
166
171 void setHERtimeInBeamCycleMax(double HERtimeInBeamCycleMax)
172 {
173 m_HERtimeInBeamCycleMax = HERtimeInBeamCycleMax;
174 }
175
180 void setCDCHitsMax(uint32_t cdcHitsMax)
181 {
182 m_cdcHitsMax = cdcHitsMax;
183 }
184
189 void setECLDigitsMax(uint32_t eclDigitsMax)
190 {
191 m_eclDigitsMax = eclDigitsMax;
192 }
193
198 void setHLTPrefilterState(unsigned short State)
199 {
200 m_HLTPrefilterState = static_cast<HLTPrefilterState>(State);
201 }
202
207 void setHLTPrefilterPrescale(unsigned int HLTPrefilterPrescale)
208 {
209 m_HLTPrefilterPrescale = HLTPrefilterPrescale;
210 }
211
219
227
235
243
248 {
250 }
251
256 {
258 }
259
264 {
266 }
267
272 {
274 }
275
279 uint32_t getCDCHitsMax() const
280 {
281 return m_cdcHitsMax;
282 }
283
287 uint32_t getECLDigitsMax() const
288 {
289 return m_eclDigitsMax;
290 }
291
295 unsigned short getHLTPrefilterState() const
296 {
297 return static_cast<unsigned short>(m_HLTPrefilterState);
298 }
299
303 unsigned int getHLTPrefilterPrescale() const
304 {
306 }
307
308 private:
309
345 uint32_t m_cdcHitsMax;
350
355
360
365
366 };
367
369}
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.