11#include <hlt/softwaretrigger/core/utilities.h>
14#include <cdc/dataobjects/CDCHit.h>
15#include <ecl/dataobjects/ECLDigit.h>
16#include <framework/database/DBObjPtr.h>
17#include <framework/datastore/StoreArray.h>
18#include <framework/datastore/StoreObjPtr.h>
19#include <framework/dbobjects/BunchStructure.h>
20#include <framework/dbobjects/HardwareClockSettings.h>
21#include <mdst/dataobjects/EventLevelTriggerTimeInfo.h>
26namespace Belle2::HLTPrefilter {
68 const double revolutionTime =
m_bunchStructure->getRFBucketsPerRevolution() * 1e-3 /
71 const double globalClock =
m_clockSettings->getGlobalClockFrequency() * 1e3;
73 const double timeSinceLastInj =
m_TTDInfo->getTimeSinceLastInjection() / globalClock;
75 const double timeInBeamCycle = timeSinceLastInj - (int)(timeSinceLastInj / revolutionTime) * revolutionTime;
90 return (LER_strip || HER_strip) && !SoftwareTrigger::makePreScale(
prescale);
Class for accessing objects in the database.
Helper for CDCECLCut state.
uint32_t nECLDigitsMax
Maximum threshold for ECL Digits.
StoreArray< ECLDigit > m_eclDigits
ECLDigits StoreArray.
uint32_t nCDCHitsMax
Define thresholds for variables.
StoreArray< CDCHit > m_cdcHits
CDChits StoreArray.
unsigned int prescale
Prescale for accepting HLTPrefilter lines, by default we randomly accept 1 out of every 1000 events.
Helper for TimingCut state.
double LERtimeSinceLastInjectionMin
Define thresholds for variables.
double HERtimeInBeamCycleMax
Maximum threshold of timeInBeamCycle for LER injection.
StoreObjPtr< EventLevelTriggerTimeInfo > m_TTDInfo
Store array object for injection time info.
DBObjPtr< HardwareClockSettings > m_clockSettings
Define object for HardwareClockSettings class.
double HERtimeSinceLastInjectionMin
Minimum threshold of timeSinceLastInjection for HER injection.
double HERtimeSinceLastInjectionMax
Maximum threshold of timeSinceLastInjection for HER injection.
double LERtimeSinceLastInjectionMax
Maximum threshold of timeSinceLastInjection for LER injection.
double HERtimeInBeamCycleMin
Minimum threshold of timeInBeamCycle for HER injection.
DBObjPtr< BunchStructure > m_bunchStructure
Define object for BunchStructure class.
double LERtimeInBeamCycleMax
Maximum threshold of timeInBeamCycle for LER injection.
unsigned int prescale
Prescale for accepting HLTPrefilter lines, by default we randomly accept 1 out of every 1000 events.
double LERtimeInBeamCycleMin
Minimum threshold of timeInBeamCycle for LER injection.
Accessor to arrays stored in the data store.
Type-safe access to single objects in the data store.