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 
13 
14 namespace edm {
15  class Event;
16  class EventSetup;
17  class TriggerNames;
18 } // namespace edm
19 
20 namespace triggerExpression {
21 
22  class Data {
23  public:
24  // default c'tor
25  Data()
26  : // configuration
27  m_hltResultsTag(""),
29  m_l1tResultsTag(""),
33  m_throw(true),
34  // l1 values and status
35  m_l1tResults(nullptr),
36  m_l1tMenu(nullptr),
37  m_l1tCacheID(),
39  // hlt values and status
40  m_hltResults(nullptr),
41  m_hltMenu(nullptr),
42  m_hltCacheID(),
44  // event values
45  m_eventNumber() {}
46 
47  // explicit c'tor from a ParameterSet
49  : // configuration
50  m_hltResultsTag(config.getParameter<edm::InputTag>("hltResults")),
52  m_l1tResultsTag(config.getParameter<edm::InputTag>("l1tResults")),
55  m_l1tIgnoreMaskAndPrescale(config.getParameter<bool>("l1tIgnoreMaskAndPrescale")),
56  m_throw(config.getParameter<bool>("throw")),
57  // l1 values and status
58  m_l1tResults(nullptr),
59  m_l1tMenu(nullptr),
60  m_l1tCacheID(),
62  // hlt values and status
63  m_hltResults(nullptr),
64  m_hltMenu(nullptr),
65  m_hltCacheID(),
67  // event values
68  m_eventNumber() {
69  if (not m_hltResultsTag.label().empty())
71  if (not m_l1tResultsTag.label().empty())
73  }
74 
75  // explicit c'tor from single arguments
76  Data(edm::InputTag const& hltResultsTag,
77  edm::InputTag const& l1tResultsTag,
79  bool doThrow,
81  : // configuration
82  m_hltResultsTag(hltResultsTag),
84  m_l1tResultsTag(l1tResultsTag),
88  m_throw(doThrow),
89  // l1 values and status
90  m_l1tResults(nullptr),
91  m_l1tMenu(nullptr),
92  m_l1tCacheID(),
94  // hlt values and status
95  m_hltResults(nullptr),
96  m_hltMenu(nullptr),
97  m_hltCacheID(),
99  // event values
100  m_eventNumber() {
101  if (not m_hltResultsTag.label().empty())
103  if (not m_l1tResultsTag.label().empty())
105  }
106 
107  // set the new event
108  bool setEvent(const edm::Event& event, const edm::EventSetup& setup);
109 
110  // re-configuration accessors
111 
113 
115 
118  }
119 
120  void setThrow(bool doThrow) { m_throw = doThrow; }
121 
122  // read-only accessors
123 
124  bool hasL1T() const { return not m_l1tResultsTag.label().empty(); }
125 
126  bool hasHLT() const { return not m_hltResultsTag.label().empty(); }
127 
128  const edm::TriggerResults& hltResults() const { return *m_hltResults; }
129 
130  const edm::TriggerNames& hltMenu() const { return *m_hltMenu; }
131 
132  const std::vector<bool>& l1tResults() const { return *m_l1tResults; }
133 
134  const L1TUtmTriggerMenu& l1tMenu() const { return *m_l1tMenu; }
135 
136  bool hltConfigurationUpdated() const { return m_hltUpdated; }
137 
138  bool l1tConfigurationUpdated() const { return m_l1tUpdated; }
139 
141 
143 
144  bool shouldThrow() const { return m_throw; }
145 
147 
148  // configuration
155  bool m_throw;
156 
157  // l1 values and status
158  const std::vector<bool>* m_l1tResults;
160  unsigned long long m_l1tCacheID;
162 
163  // hlt values and status
168 
169  // event values
171  };
172 
173 } // namespace triggerExpression
174 
175 #endif // HLTrigger_HLTfilters_TriggerExpressionData_h
electrons_cff.bool
bool
Definition: electrons_cff.py:366
L1TUtmTriggerMenuRcd.h
funct::false
false
Definition: Factorize.h:29
dijetScouting_cff.l1tIgnoreMaskAndPrescale
l1tIgnoreMaskAndPrescale
Definition: dijetScouting_cff.py:35
triggerExpression::Data::hltResults
const edm::TriggerResults & hltResults() const
Definition: TriggerExpressionData.h:128
triggerExpression::Data::m_hltResults
const edm::TriggerResults * m_hltResults
Definition: TriggerExpressionData.h:164
TriggerResults.h
triggerExpression::Data::setL1tResultsTag
void setL1tResultsTag(edm::InputTag const &tag)
Definition: TriggerExpressionData.h:114
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:76
HLT_FULL_cff.InputTag
InputTag
Definition: HLT_FULL_cff.py:89285
triggerExpression::Data::hltConfigurationUpdated
bool hltConfigurationUpdated() const
Definition: TriggerExpressionData.h:136
triggerExpression::Data::m_eventNumber
edm::EventNumber_t m_eventNumber
Definition: TriggerExpressionData.h:170
singleTopDQM_cfi.setup
setup
Definition: singleTopDQM_cfi.py:37
L1TUtmTriggerMenu
Definition: L1TUtmTriggerMenu.h:25
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:166
triggerExpression::Data::eventNumber
edm::EventNumber_t eventNumber() const
Definition: TriggerExpressionData.h:142
GlobalPosition_Frontier_DevDB_cff.tag
tag
Definition: GlobalPosition_Frontier_DevDB_cff.py:11
triggerExpression::Data::configurationUpdated
bool configurationUpdated() const
Definition: TriggerExpressionData.h:140
triggerExpression::Data::m_l1tUpdated
bool m_l1tUpdated
Definition: TriggerExpressionData.h:161
triggerExpression::Data::m_throw
bool m_throw
Definition: TriggerExpressionData.h:155
EventID.h
triggerExpression::Data::hasL1T
bool hasL1T() const
Definition: TriggerExpressionData.h:124
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:144
triggerExpression::Data::l1tResults
const std::vector< bool > & l1tResults() const
Definition: TriggerExpressionData.h:132
triggerExpression::Data::setThrow
void setThrow(bool doThrow)
Definition: TriggerExpressionData.h:120
L1TUtmTriggerMenu.h
funct::true
true
Definition: Factorize.h:173
triggerExpression::Data::m_l1tResults
const std::vector< bool > * m_l1tResults
Definition: TriggerExpressionData.h:158
triggerExpression::Data::m_l1tCacheID
unsigned long long m_l1tCacheID
Definition: TriggerExpressionData.h:160
triggerExpression::Data::l1tMenu
const L1TUtmTriggerMenu & l1tMenu() const
Definition: TriggerExpressionData.h:134
edm::ParameterSet
Definition: ParameterSet.h:47
triggerExpression::Data::ignoreL1MaskAndPrescale
bool ignoreL1MaskAndPrescale() const
Definition: TriggerExpressionData.h:146
triggerExpression::Data::m_l1tResultsTag
edm::InputTag m_l1tResultsTag
Definition: TriggerExpressionData.h:151
triggerExpression::Data::setEvent
bool setEvent(const edm::Event &event, const edm::EventSetup &setup)
Definition: TriggerExpressionData.cc:14
GlobalAlgBlk.h
triggerExpression::Data::m_l1tIgnoreMaskAndPrescale
bool m_l1tIgnoreMaskAndPrescale
Definition: TriggerExpressionData.h:154
triggerExpression::Data
Definition: TriggerExpressionData.h:22
triggerExpression::Data::setHltResultsTag
void setHltResultsTag(edm::InputTag const &tag)
Definition: TriggerExpressionData.h:112
triggerExpression::Data::m_hltResultsToken
edm::EDGetTokenT< edm::TriggerResults > m_hltResultsToken
Definition: TriggerExpressionData.h:150
edm::EventSetup
Definition: EventSetup.h:58
edm::ESGetToken< L1TUtmTriggerMenu, L1TUtmTriggerMenuRcd >
triggerExpression::Data::l1tConfigurationUpdated
bool l1tConfigurationUpdated() const
Definition: TriggerExpressionData.h:138
InputTag.h
triggerExpression::Data::m_hltUpdated
bool m_hltUpdated
Definition: TriggerExpressionData.h:167
triggerExpression::Data::Data
Data(const edm::ParameterSet &config, edm::ConsumesCollector &&iC)
Definition: TriggerExpressionData.h:48
triggerExpression::Data::hasHLT
bool hasHLT() const
Definition: TriggerExpressionData.h:126
triggerExpression::Data::m_hltMenu
const edm::TriggerNames * m_hltMenu
Definition: TriggerExpressionData.h:165
triggerExpression::Data::m_l1tUtmTriggerMenuToken
const edm::ESGetToken< L1TUtmTriggerMenu, L1TUtmTriggerMenuRcd > m_l1tUtmTriggerMenuToken
Definition: TriggerExpressionData.h:153
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:116
ConsumesCollector.h
EventSetup
ParameterSet.h
triggerExpression::Data::Data
Data()
Definition: TriggerExpressionData.h:25
event
Definition: event.py:1
DeDxTools::esConsumes
ESGetTokenH3DDVariant esConsumes(std::string const &Reccord, edm::ConsumesCollector &)
Definition: DeDxTools.cc:283
edm::Event
Definition: Event.h:73
triggerExpression::Data::m_hltResultsTag
edm::InputTag m_hltResultsTag
Definition: TriggerExpressionData.h:149
triggerExpression::Data::m_l1tMenu
const L1TUtmTriggerMenu * m_l1tMenu
Definition: TriggerExpressionData.h:159
edm::InputTag
Definition: InputTag.h:15
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
edm::TriggerResults
Definition: TriggerResults.h:35
triggerExpression::Data::m_l1tResultsToken
edm::EDGetTokenT< GlobalAlgBlkBxCollection > m_l1tResultsToken
Definition: TriggerExpressionData.h:152
triggerExpression::Data::hltMenu
const edm::TriggerNames & hltMenu() const
Definition: TriggerExpressionData.h:130