Belle II Software development
HLTPrefilterModule.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#pragma once
9
10/* HLT headers */
11#include <hlt/dbobjects/HLTPrefilterParameters.h>
12#include <hlt/softwaretrigger/core/utilities.h>
13#include <hlt/utilities/HLTPrefilter.h>
14
15/* BASF2 headers */
16#include <framework/core/Module.h>
17#include <framework/database/DBObjPtr.h>
18#include <framework/datastore/StoreObjPtr.h>
19
20/* C++ headers */
21#include <cstdint>
22#include <map>
23
24namespace Belle2 {
29
30 class EventMetaData;
32 class TRGSummary;
33
37 class HLTPrefilterModule final : public Module {
38
39 public:
42
44 virtual ~HLTPrefilterModule() final;
45
47 void initialize() final;
48
50 void beginRun() final;
51
57 void event() final;
58
59 private:
61 enum HLTPrefilterState { TimingCut = 0, CDCECLCut = 1 };
62
65
68
70 std::map<HLTPrefilterState, bool> m_decisions;
71
74
77
80
83
84 };
85
86}
87
Class for accessing objects in the database.
Definition DBObjPtr.h:21
Store event, run, and experiment numbers.
virtual ~HLTPrefilterModule() final
Default Destructor.
HLTPrefilterModule()
Module constructor.
void initialize() final
Module initializer.
void beginRun() final
Called when entering a new run.
StoreObjPtr< TRGSummary > m_trgSummary
Trigger summary Store ObjPtr.
StoreObjPtr< EventMetaData > m_eventInfo
Event Meta Data Store ObjPtr.
void event() final
Flag each event.
HLTPrefilterState
enumeration for HLTPrefilter state
HLTPrefilterState m_HLTPrefilterState
Instance for prefilter cut state.
DBObjPtr< HLTPrefilterParameters > m_hltPrefilterParameters
HLTprefilterParameters Database OjbPtr.
std::map< HLTPrefilterState, bool > m_decisions
Decision results.
HLTPrefilter::TimingCutState m_timingPrefilter
Helper instance for timing based prefilter.
HLTPrefilter::CDCECLCutState m_cdceclPrefilter
Helper instance for CDC-ECL occupancy based prefilter.
DBObject containing parameters used in HLTprefilter module.
Helper for CDCECLCut state.
Helper for TimingCut state.
Module()
Constructor.
Definition Module.cc:30
Type-safe access to single objects in the data store.
Definition StoreObjPtr.h:96
Trigger Summary Information input bits input bits from subdetectors ftdl (Final Trigger Decision Logi...
Definition TRGSummary.h:32
Abstract base class for different kinds of events.