#include <TriggerExpressionData.h>
Definition at line 22 of file TriggerExpressionData.h.
triggerExpression::Data::Data | ( | ) | [inline] |
Definition at line 25 of file TriggerExpressionData.h.
: // configuration m_hltResultsTag(""), m_l1tResultsTag(""), m_daqPartitions(0x01), m_l1tIgnoreMask(false), m_l1techIgnorePrescales(false), m_throw(true), // l1 values and status m_l1tResults(0), m_l1tMenu(0), m_l1tAlgoMask(0), m_l1tTechMask(0), m_l1tCacheID(), m_l1tUpdated(false), // hlt values and status m_hltResults(0), m_hltMenu(0), m_hltCacheID(), m_hltUpdated(false), // event values m_eventNumber() { }
triggerExpression::Data::Data | ( | const edm::ParameterSet & | config | ) | [inline, explicit] |
Definition at line 50 of file TriggerExpressionData.h.
: // configuration m_hltResultsTag(config.getParameter<edm::InputTag>("hltResults")), m_l1tResultsTag(config.getParameter<edm::InputTag>("l1tResults")), m_daqPartitions(config.getParameter<unsigned int>("daqPartitions")), m_l1tIgnoreMask(config.getParameter<bool>("l1tIgnoreMask")), m_l1techIgnorePrescales(config.getParameter<bool>("l1techIgnorePrescales")), m_throw(config.getParameter<bool>("throw")), // l1 values and status m_l1tResults(0), m_l1tMenu(0), m_l1tAlgoMask(0), m_l1tTechMask(0), m_l1tCacheID(), m_l1tUpdated(false), // hlt values and status m_hltResults(0), m_hltMenu(0), m_hltCacheID(), m_hltUpdated(false), // event values m_eventNumber() { }
triggerExpression::Data::Data | ( | edm::InputTag const & | hltResultsTag, |
edm::InputTag const & | l1tResultsTag, | ||
unsigned int | daqPartitions, | ||
bool | l1tIgnoreMask, | ||
bool | l1techIgnorePrescales, | ||
bool | doThrow | ||
) | [inline] |
Definition at line 75 of file TriggerExpressionData.h.
: // configuration m_hltResultsTag(hltResultsTag), m_l1tResultsTag(l1tResultsTag), m_daqPartitions(daqPartitions), m_l1tIgnoreMask(l1tIgnoreMask), m_l1techIgnorePrescales(l1techIgnorePrescales), m_throw(doThrow), // l1 values and status m_l1tResults(0), m_l1tMenu(0), m_l1tAlgoMask(0), m_l1tTechMask(0), m_l1tCacheID(), m_l1tUpdated(false), // hlt values and status m_hltResults(0), m_hltMenu(0), m_hltCacheID(), m_hltUpdated(false), // event values m_eventNumber() { }
bool triggerExpression::Data::configurationUpdated | ( | ) | const [inline] |
Definition at line 177 of file TriggerExpressionData.h.
References m_hltUpdated, and m_l1tUpdated.
Referenced by DiJetVarAnalyzer::analyze(), TriggerResultsFilter::filter(), and TriggerResultsFilterFromDB::hltFilter().
{ return m_hltUpdated or m_l1tUpdated; }
unsigned int triggerExpression::Data::daqPartitions | ( | ) | const [inline] |
Definition at line 197 of file TriggerExpressionData.h.
References m_daqPartitions.
Referenced by triggerExpression::L1TechReader::init(), triggerExpression::L1Reader::init(), and setDaqPartitions().
{ return m_daqPartitions; }
edm::EventNumber_t triggerExpression::Data::eventNumber | ( | ) | const [inline] |
Definition at line 181 of file TriggerExpressionData.h.
References m_eventNumber.
Referenced by triggerExpression::Prescaler::init().
{ return m_eventNumber; }
bool triggerExpression::Data::hasHLT | ( | ) | const [inline] |
Definition at line 141 of file TriggerExpressionData.h.
References edm::InputTag::label(), and m_hltResultsTag.
Referenced by triggerExpression::HLTReader::operator()().
{ return not m_hltResultsTag.label().empty(); }
bool triggerExpression::Data::hasL1T | ( | ) | const [inline] |
Definition at line 137 of file TriggerExpressionData.h.
References edm::InputTag::label(), and m_l1tResultsTag.
Referenced by triggerExpression::L1TechReader::operator()(), and triggerExpression::L1Reader::operator()().
{ return not m_l1tResultsTag.label().empty(); }
bool triggerExpression::Data::hltConfigurationUpdated | ( | ) | const [inline] |
Definition at line 169 of file TriggerExpressionData.h.
References m_hltUpdated.
{ return m_hltUpdated; }
const edm::TriggerNames& triggerExpression::Data::hltMenu | ( | ) | const [inline] |
Definition at line 149 of file TriggerExpressionData.h.
References m_hltMenu.
Referenced by triggerExpression::HLTReader::init().
{ return * m_hltMenu; }
const edm::TriggerResults& triggerExpression::Data::hltResults | ( | ) | const [inline] |
Definition at line 145 of file TriggerExpressionData.h.
References m_hltResults.
Referenced by triggerExpression::HLTReader::operator()().
{ return * m_hltResults; }
bool triggerExpression::Data::ignoreL1Mask | ( | ) | const [inline] |
Definition at line 189 of file TriggerExpressionData.h.
References m_l1tIgnoreMask.
Referenced by triggerExpression::L1TechReader::init(), and triggerExpression::L1Reader::init().
{ return m_l1tIgnoreMask; }
bool triggerExpression::Data::ignoreL1TechPrescales | ( | ) | const [inline] |
Definition at line 193 of file TriggerExpressionData.h.
References m_l1techIgnorePrescales.
Referenced by triggerExpression::L1TechReader::operator()().
{ return m_l1techIgnorePrescales; }
const L1GtTriggerMask& triggerExpression::Data::l1tAlgoMask | ( | ) | const [inline] |
Definition at line 161 of file TriggerExpressionData.h.
References m_l1tAlgoMask.
Referenced by triggerExpression::L1Reader::init().
{ return * m_l1tAlgoMask; }
bool triggerExpression::Data::l1tConfigurationUpdated | ( | ) | const [inline] |
Definition at line 173 of file TriggerExpressionData.h.
References m_l1tUpdated.
{ return m_l1tUpdated; }
const L1GtTriggerMenu& triggerExpression::Data::l1tMenu | ( | ) | const [inline] |
Definition at line 157 of file TriggerExpressionData.h.
References m_l1tMenu.
Referenced by triggerExpression::L1TechReader::init(), and triggerExpression::L1Reader::init().
{ return * m_l1tMenu; }
const L1GlobalTriggerReadoutRecord& triggerExpression::Data::l1tResults | ( | ) | const [inline] |
Definition at line 153 of file TriggerExpressionData.h.
References m_l1tResults.
Referenced by triggerExpression::L1TechReader::operator()(), and triggerExpression::L1Reader::operator()().
{ return * m_l1tResults; }
const L1GtTriggerMask& triggerExpression::Data::l1tTechMask | ( | ) | const [inline] |
Definition at line 165 of file TriggerExpressionData.h.
References m_l1tTechMask.
Referenced by triggerExpression::L1TechReader::init().
{ return * m_l1tTechMask; }
void triggerExpression::Data::setDaqPartitions | ( | unsigned int | daqPartitions | ) | [inline] |
Definition at line 119 of file TriggerExpressionData.h.
References daqPartitions(), and m_daqPartitions.
{ m_daqPartitions = daqPartitions; }
bool Data::setEvent | ( | const edm::Event & | event, |
const edm::EventSetup & | setup | ||
) |
Definition at line 43 of file TriggerExpressionData.cc.
References L1GtTriggerMenu::buildGtConditionMap(), event(), edm::EventSetup::get(), edm::InputTag::label(), m_eventNumber, m_hltCacheID, m_hltMenu, m_hltResults, m_hltResultsTag, m_hltUpdated, m_l1tAlgoMask, m_l1tCacheID, m_l1tMenu, m_l1tResults, m_l1tResultsTag, m_l1tTechMask, m_l1tUpdated, edm::TriggerNames::parameterSetID(), HcalObjRepresent::setup(), and edm::TriggerNames::triggerNames().
Referenced by DiJetVarAnalyzer::analyze(), TriggerResultsFilter::filter(), and TriggerResultsFilterFromDB::hltFilter().
{ // cache the event number m_eventNumber = event.id().event(); // access L1 objects only if L1 is used if (not m_l1tResultsTag.label().empty()) { // cache the L1 GT results objects m_l1tResults = get<L1GlobalTriggerReadoutRecord>(event, m_l1tResultsTag); if (not m_l1tResults) return false; // cache the L1 trigger masks m_l1tAlgoMask = get<L1GtTriggerMaskAlgoTrigRcd, L1GtTriggerMask>(setup); m_l1tTechMask = get<L1GtTriggerMaskTechTrigRcd, L1GtTriggerMask>(setup); // cache the L1 trigger menu unsigned long long l1tCacheID = setup.get<L1GtTriggerMenuRcd>().cacheIdentifier(); if (m_l1tCacheID == l1tCacheID) { m_l1tUpdated = false; } else { m_l1tMenu = get<L1GtTriggerMenuRcd, L1GtTriggerMenu>(setup); (const_cast<L1GtTriggerMenu *>(m_l1tMenu))->buildGtConditionMap(); m_l1tCacheID = l1tCacheID; m_l1tUpdated = true; } } // access HLT objects only if HLT is used if (not m_hltResultsTag.label().empty()) { // cache the HLT TriggerResults m_hltResults = get<edm::TriggerResults>(event, m_hltResultsTag); if (not m_hltResults) return false; // access the TriggerNames, and check if it has changed m_hltMenu = & event.triggerNames(* m_hltResults); if (m_hltMenu->parameterSetID() == m_hltCacheID) { m_hltUpdated = false; } else { m_hltCacheID = m_hltMenu->parameterSetID(); m_hltUpdated = true; } } return true; }
void triggerExpression::Data::setHltResultsTag | ( | edm::InputTag const & | tag | ) | [inline] |
Definition at line 111 of file TriggerExpressionData.h.
References m_hltResultsTag, and GlobalPosition_Frontier_DevDB_cff::tag.
{ m_hltResultsTag = tag; }
void triggerExpression::Data::setL1techIgnorePrescales | ( | bool | l1techIgnorePrescales | ) | [inline] |
Definition at line 127 of file TriggerExpressionData.h.
References m_l1techIgnorePrescales.
{ m_l1techIgnorePrescales = l1techIgnorePrescales; }
void triggerExpression::Data::setL1tIgnoreMask | ( | bool | l1tIgnoreMask | ) | [inline] |
Definition at line 123 of file TriggerExpressionData.h.
References m_l1tIgnoreMask.
{ m_l1tIgnoreMask = l1tIgnoreMask; }
void triggerExpression::Data::setL1tResultsTag | ( | edm::InputTag const & | tag | ) | [inline] |
Definition at line 115 of file TriggerExpressionData.h.
References m_l1tResultsTag, and GlobalPosition_Frontier_DevDB_cff::tag.
{ m_l1tResultsTag = tag; }
void triggerExpression::Data::setThrow | ( | bool | doThrow | ) | [inline] |
bool triggerExpression::Data::shouldThrow | ( | ) | const [inline] |
Definition at line 185 of file TriggerExpressionData.h.
References m_throw.
Referenced by triggerExpression::HLTReader::init(), triggerExpression::L1TechReader::init(), and triggerExpression::L1Reader::init().
{ return m_throw; }
unsigned int triggerExpression::Data::m_daqPartitions [private] |
Definition at line 205 of file TriggerExpressionData.h.
Referenced by daqPartitions(), and setDaqPartitions().
Definition at line 225 of file TriggerExpressionData.h.
Referenced by eventNumber(), and setEvent().
Definition at line 221 of file TriggerExpressionData.h.
Referenced by setEvent().
const edm::TriggerNames* triggerExpression::Data::m_hltMenu [private] |
Definition at line 220 of file TriggerExpressionData.h.
Referenced by hltMenu(), and setEvent().
const edm::TriggerResults* triggerExpression::Data::m_hltResults [private] |
Definition at line 219 of file TriggerExpressionData.h.
Referenced by hltResults(), and setEvent().
Definition at line 203 of file TriggerExpressionData.h.
Referenced by hasHLT(), setEvent(), and setHltResultsTag().
bool triggerExpression::Data::m_hltUpdated [private] |
Definition at line 222 of file TriggerExpressionData.h.
Referenced by configurationUpdated(), hltConfigurationUpdated(), and setEvent().
const L1GtTriggerMask* triggerExpression::Data::m_l1tAlgoMask [private] |
Definition at line 213 of file TriggerExpressionData.h.
Referenced by l1tAlgoMask(), and setEvent().
unsigned long long triggerExpression::Data::m_l1tCacheID [private] |
Definition at line 215 of file TriggerExpressionData.h.
Referenced by setEvent().
bool triggerExpression::Data::m_l1techIgnorePrescales [private] |
Definition at line 207 of file TriggerExpressionData.h.
Referenced by ignoreL1TechPrescales(), and setL1techIgnorePrescales().
bool triggerExpression::Data::m_l1tIgnoreMask [private] |
Definition at line 206 of file TriggerExpressionData.h.
Referenced by ignoreL1Mask(), and setL1tIgnoreMask().
const L1GtTriggerMenu* triggerExpression::Data::m_l1tMenu [private] |
Definition at line 212 of file TriggerExpressionData.h.
Referenced by l1tMenu(), and setEvent().
const L1GlobalTriggerReadoutRecord* triggerExpression::Data::m_l1tResults [private] |
Definition at line 211 of file TriggerExpressionData.h.
Referenced by l1tResults(), and setEvent().
Definition at line 204 of file TriggerExpressionData.h.
Referenced by hasL1T(), setEvent(), and setL1tResultsTag().
const L1GtTriggerMask* triggerExpression::Data::m_l1tTechMask [private] |
Definition at line 214 of file TriggerExpressionData.h.
Referenced by l1tTechMask(), and setEvent().
bool triggerExpression::Data::m_l1tUpdated [private] |
Definition at line 216 of file TriggerExpressionData.h.
Referenced by configurationUpdated(), l1tConfigurationUpdated(), and setEvent().
bool triggerExpression::Data::m_throw [private] |
Definition at line 208 of file TriggerExpressionData.h.
Referenced by setThrow(), and shouldThrow().