CMS 3D CMS Logo

TriggerExpressionData.h
Go to the documentation of this file.
1 #ifndef HLTrigger_HLTfilters_TriggerExpressionData_h
2 #define HLTrigger_HLTfilters_TriggerExpressionData_h
3 
11 
12 namespace edm {
13  class Event;
14  class EventSetup;
15  class TriggerNames;
16 } // namespace edm
17 
18 class L1TUtmTriggerMenu;
19 
20 namespace triggerExpression {
21 
22  class Data {
23  public:
24  // default c'tor
25  Data()
26  : // configuration
27  m_hltResultsTag(""),
29  m_l1tResultsTag(""),
32  m_throw(true),
33  // l1 values and status
34  m_l1tResults(nullptr),
35  m_l1tMenu(nullptr),
36  m_l1tCacheID(),
38  // hlt values and status
39  m_hltResults(nullptr),
40  m_hltMenu(nullptr),
41  m_hltCacheID(),
43  // event values
44  m_eventNumber() {}
45 
46  // explicit c'tor from a ParameterSet
48  : // configuration
49  m_hltResultsTag(config.getParameter<edm::InputTag>("hltResults")),
51  m_l1tResultsTag(config.getParameter<edm::InputTag>("l1tResults")),
53  m_l1tIgnoreMaskAndPrescale(config.getParameter<bool>("l1tIgnoreMaskAndPrescale")),
54  m_throw(config.getParameter<bool>("throw")),
55  // l1 values and status
56  m_l1tResults(nullptr),
57  m_l1tMenu(nullptr),
58  m_l1tCacheID(),
60  // hlt values and status
61  m_hltResults(nullptr),
62  m_hltMenu(nullptr),
63  m_hltCacheID(),
65  // event values
66  m_eventNumber() {
67  if (not m_hltResultsTag.label().empty())
69  if (not m_l1tResultsTag.label().empty())
71  }
72 
73  // explicit c'tor from single arguments
74  Data(edm::InputTag const& hltResultsTag,
75  edm::InputTag const& l1tResultsTag,
77  bool doThrow,
79  : // configuration
80  m_hltResultsTag(hltResultsTag),
82  m_l1tResultsTag(l1tResultsTag),
85  m_throw(doThrow),
86  // l1 values and status
87  m_l1tResults(nullptr),
88  m_l1tMenu(nullptr),
89  m_l1tCacheID(),
91  // hlt values and status
92  m_hltResults(nullptr),
93  m_hltMenu(nullptr),
94  m_hltCacheID(),
96  // event values
97  m_eventNumber() {
98  if (not m_hltResultsTag.label().empty())
100  if (not m_l1tResultsTag.label().empty())
102  }
103 
104  // set the new event
105  bool setEvent(const edm::Event& event, const edm::EventSetup& setup);
106 
107  // re-configuration accessors
108 
110 
112 
115  }
116 
117  void setThrow(bool doThrow) { m_throw = doThrow; }
118 
119  // read-only accessors
120 
121  bool hasL1T() const { return not m_l1tResultsTag.label().empty(); }
122 
123  bool hasHLT() const { return not m_hltResultsTag.label().empty(); }
124 
125  const edm::TriggerResults& hltResults() const { return *m_hltResults; }
126 
127  const edm::TriggerNames& hltMenu() const { return *m_hltMenu; }
128 
129  const std::vector<bool>& l1tResults() const { return *m_l1tResults; }
130 
131  const L1TUtmTriggerMenu& l1tMenu() const { return *m_l1tMenu; }
132 
133  bool hltConfigurationUpdated() const { return m_hltUpdated; }
134 
135  bool l1tConfigurationUpdated() const { return m_l1tUpdated; }
136 
138 
140 
141  bool shouldThrow() const { return m_throw; }
142 
144 
145  // configuration
151  bool m_throw;
152 
153  // l1 values and status
154  const std::vector<bool>* m_l1tResults;
156  unsigned long long m_l1tCacheID;
158 
159  // hlt values and status
164 
165  // event values
167  };
168 
169 } // namespace triggerExpression
170 
171 #endif // HLTrigger_HLTfilters_TriggerExpressionData_h
electrons_cff.bool
bool
Definition: electrons_cff.py:372
funct::false
false
Definition: Factorize.h:34
dijetScouting_cff.l1tIgnoreMaskAndPrescale
l1tIgnoreMaskAndPrescale
Definition: dijetScouting_cff.py:35
triggerExpression::Data::hltResults
const edm::TriggerResults & hltResults() const
Definition: TriggerExpressionData.h:125
triggerExpression::Data::m_hltResults
const edm::TriggerResults * m_hltResults
Definition: TriggerExpressionData.h:160
TriggerResults.h
triggerExpression::Data::setL1tResultsTag
void setL1tResultsTag(edm::InputTag const &tag)
Definition: TriggerExpressionData.h:111
edm::EDGetTokenT< edm::TriggerResults >
edm
HLT enums.
Definition: AlignableModifier.h:19
triggerExpression::Data::Data
Data(edm::InputTag const &hltResultsTag, edm::InputTag const &l1tResultsTag, bool l1tIgnoreMaskAndPrescale, bool doThrow, edm::ConsumesCollector &&iC)
Definition: TriggerExpressionData.h:74
triggerExpression::Data::hltConfigurationUpdated
bool hltConfigurationUpdated() const
Definition: TriggerExpressionData.h:133
triggerExpression::Data::m_eventNumber
edm::EventNumber_t m_eventNumber
Definition: TriggerExpressionData.h:166
singleTopDQM_cfi.setup
setup
Definition: singleTopDQM_cfi.py:37
L1TUtmTriggerMenu
Definition: L1TUtmTriggerMenu.h:36
BXVector
Definition: BXVector.h:15
config
Definition: config.py:1
edm::InputTag::label
std::string const & label() const
Definition: InputTag.h:36
triggerExpression::Data::m_hltCacheID
edm::ParameterSetID m_hltCacheID
Definition: TriggerExpressionData.h:162
triggerExpression::Data::eventNumber
edm::EventNumber_t eventNumber() const
Definition: TriggerExpressionData.h:139
GlobalPosition_Frontier_DevDB_cff.tag
tag
Definition: GlobalPosition_Frontier_DevDB_cff.py:11
triggerExpression::Data::configurationUpdated
bool configurationUpdated() const
Definition: TriggerExpressionData.h:137
triggerExpression::Data::m_l1tUpdated
bool m_l1tUpdated
Definition: TriggerExpressionData.h:157
triggerExpression::Data::m_throw
bool m_throw
Definition: TriggerExpressionData.h:151
EventID.h
triggerExpression::Data::hasL1T
bool hasL1T() const
Definition: TriggerExpressionData.h:121
Event
edm::Hash< ParameterSetType >
edm::EventNumber_t
unsigned long long EventNumber_t
Definition: RunLumiEventNumber.h:12
triggerExpression::Data::shouldThrow
bool shouldThrow() const
Definition: TriggerExpressionData.h:141
triggerExpression::Data::l1tResults
const std::vector< bool > & l1tResults() const
Definition: TriggerExpressionData.h:129
triggerExpression::Data::setThrow
void setThrow(bool doThrow)
Definition: TriggerExpressionData.h:117
funct::true
true
Definition: Factorize.h:173
triggerExpression::Data::m_l1tResults
const std::vector< bool > * m_l1tResults
Definition: TriggerExpressionData.h:154
triggerExpression::Data::m_l1tCacheID
unsigned long long m_l1tCacheID
Definition: TriggerExpressionData.h:156
HLT_2018_cff.InputTag
InputTag
Definition: HLT_2018_cff.py:79016
triggerExpression::Data::l1tMenu
const L1TUtmTriggerMenu & l1tMenu() const
Definition: TriggerExpressionData.h:131
edm::ParameterSet
Definition: ParameterSet.h:36
triggerExpression::Data::ignoreL1MaskAndPrescale
bool ignoreL1MaskAndPrescale() const
Definition: TriggerExpressionData.h:143
triggerExpression::Data::m_l1tResultsTag
edm::InputTag m_l1tResultsTag
Definition: TriggerExpressionData.h:148
triggerExpression::Data::setEvent
bool setEvent(const edm::Event &event, const edm::EventSetup &setup)
Definition: TriggerExpressionData.cc:18
GlobalAlgBlk.h
triggerExpression::Data::m_l1tIgnoreMaskAndPrescale
bool m_l1tIgnoreMaskAndPrescale
Definition: TriggerExpressionData.h:150
triggerExpression::Data
Definition: TriggerExpressionData.h:22
triggerExpression::Data::setHltResultsTag
void setHltResultsTag(edm::InputTag const &tag)
Definition: TriggerExpressionData.h:109
triggerExpression::Data::m_hltResultsToken
edm::EDGetTokenT< edm::TriggerResults > m_hltResultsToken
Definition: TriggerExpressionData.h:147
edm::EventSetup
Definition: EventSetup.h:57
triggerExpression::Data::l1tConfigurationUpdated
bool l1tConfigurationUpdated() const
Definition: TriggerExpressionData.h:135
InputTag.h
triggerExpression::Data::m_hltUpdated
bool m_hltUpdated
Definition: TriggerExpressionData.h:163
triggerExpression::Data::Data
Data(const edm::ParameterSet &config, edm::ConsumesCollector &&iC)
Definition: TriggerExpressionData.h:47
triggerExpression::Data::hasHLT
bool hasHLT() const
Definition: TriggerExpressionData.h:123
triggerExpression::Data::m_hltMenu
const edm::TriggerNames * m_hltMenu
Definition: TriggerExpressionData.h:161
edm::TriggerNames
Definition: TriggerNames.h:55
or
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12
triggerExpression
Definition: TriggerExpressionConstant.h:6
ParameterSetID.h
triggerExpression::Data::setL1tIgnoreMaskAndPrescale
void setL1tIgnoreMaskAndPrescale(bool l1tIgnoreMaskAndPrescale)
Definition: TriggerExpressionData.h:113
ConsumesCollector.h
EventSetup
ParameterSet.h
triggerExpression::Data::Data
Data()
Definition: TriggerExpressionData.h:25
event
Definition: event.py:1
edm::Event
Definition: Event.h:73
triggerExpression::Data::m_hltResultsTag
edm::InputTag m_hltResultsTag
Definition: TriggerExpressionData.h:146
triggerExpression::Data::m_l1tMenu
const L1TUtmTriggerMenu * m_l1tMenu
Definition: TriggerExpressionData.h:155
edm::InputTag
Definition: InputTag.h:15
edm::ConsumesCollector
Definition: ConsumesCollector.h:39
edm::TriggerResults
Definition: TriggerResults.h:35
triggerExpression::Data::m_l1tResultsToken
edm::EDGetTokenT< GlobalAlgBlkBxCollection > m_l1tResultsToken
Definition: TriggerExpressionData.h:149
triggerExpression::Data::hltMenu
const edm::TriggerNames & hltMenu() const
Definition: TriggerExpressionData.h:127