#include <L1GtUtils.h>
Classes | |
class | LogicalExpressionL1Results |
Public Types | |
enum | TriggerCategory { AlgorithmTrigger = 0, TechnicalTrigger = 1 } |
Public Member Functions | |
const bool | availableL1Configuration (int &errorCode, int &l1ConfCode) const |
const bool | decision (const edm::Event &iEvent, const edm::InputTag &l1GtRecordInputTag, const edm::InputTag &l1GtReadoutRecordInputTag, const std::string &nameAlgoTechTrig, int &errorCode) const |
const bool | decision (const edm::Event &iEvent, const std::string &nameAlgoTechTrig, int &errorCode) const |
const bool | decisionAfterMask (const edm::Event &iEvent, const edm::InputTag &l1GtRecordInputTag, const edm::InputTag &l1GtReadoutRecordInputTag, const std::string &nameAlgoTechTrig, int &errorCode) const |
return decision after trigger mask for a given algorithm or technical trigger More... | |
const bool | decisionAfterMask (const edm::Event &iEvent, const std::string &nameAlgoTechTrig, int &errorCode) const |
const bool | decisionBeforeMask (const edm::Event &iEvent, const edm::InputTag &l1GtRecordInputTag, const edm::InputTag &l1GtReadoutRecordInputTag, const std::string &nameAlgoTechTrig, int &errorCode) const |
return decision before trigger mask for a given algorithm or technical trigger More... | |
const bool | decisionBeforeMask (const edm::Event &iEvent, const std::string &nameAlgoTechTrig, int &errorCode) const |
void | getL1GtRecordInputTag (const edm::Event &iEvent, edm::InputTag &l1GtRecordInputTag, edm::InputTag &l1GtReadoutRecordInputTag) const |
void | getL1GtRunCache (const edm::Run &, const edm::EventSetup &, const bool, const bool, const edm::InputTag &) |
get all the run-constant quantities for L1 trigger and cache them More... | |
void | getL1GtRunCache (const edm::Run &, const edm::EventSetup &, const bool, const bool) |
input tag for L1GtTriggerMenuLite found from provenance More... | |
void | getL1GtRunCache (const edm::Event &, const edm::EventSetup &, const bool, const bool, const edm::InputTag &) |
void | getL1GtRunCache (const edm::Event &, const edm::EventSetup &, const bool, const bool) |
input tag for L1GtTriggerMenuLite found from provenance More... | |
void | getL1GtTriggerMenuLiteInputTag (const edm::Run &iRun, edm::InputTag &l1GtTriggerMenuLiteInputTag) const |
get the input tag for L1GtTriggerMenuLite More... | |
const bool | l1AlgoTechTrigBitNumber (const std::string &nameAlgoTechTrig, TriggerCategory &trigCategory, int &bitNumber) const |
L1GtUtils () | |
constructor More... | |
const int | l1Results (const edm::Event &iEvent, const edm::InputTag &l1GtRecordInputTag, const edm::InputTag &l1GtReadoutRecordInputTag, const std::string &nameAlgoTechTrig, bool &decisionBeforeMask, bool &decisionAfterMask, int &prescaleFactor, int &triggerMask) const |
const int | l1Results (const edm::Event &iEvent, const std::string &nameAlgoTechTrig, bool &decisionBeforeMask, bool &decisionAfterMask, int &prescaleFactor, int &triggerMask) const |
const std::string & | l1TriggerMenu () const |
return the L1 trigger menu name More... | |
const std::string & | l1TriggerMenuImplementation () const |
return the L1 trigger menu implementation More... | |
const bool | l1TriggerNameFromBit (const int &bitNumber, const TriggerCategory &trigCategory, std::string &aliasL1Trigger, std::string &nameL1Trigger) const |
const int | prescaleFactor (const edm::Event &iEvent, const edm::InputTag &l1GtRecordInputTag, const edm::InputTag &l1GtReadoutRecordInputTag, const std::string &nameAlgoTechTrig, int &errorCode) const |
return prescale factor for a given algorithm or technical trigger More... | |
const int | prescaleFactor (const edm::Event &iEvent, const std::string &nameAlgoTechTrig, int &errorCode) const |
const std::vector< int > & | prescaleFactorSet (const edm::Event &iEvent, const edm::InputTag &l1GtRecordInputTag, const edm::InputTag &l1GtReadoutRecordInputTag, const TriggerCategory &trigCategory, int &errorCode) |
const std::vector< int > & | prescaleFactorSet (const edm::Event &iEvent, const TriggerCategory &trigCategory, int &errorCode) |
const int | prescaleFactorSetIndex (const edm::Event &iEvent, const edm::InputTag &l1GtRecordInputTag, const edm::InputTag &l1GtReadoutRecordInputTag, const TriggerCategory &trigCategory, int &errorCode) const |
const int | prescaleFactorSetIndex (const edm::Event &iEvent, const TriggerCategory &trigCategory, int &errorCode) const |
const edm::InputTag & | provL1GtReadoutRecordInputTag () |
const edm::InputTag & | provL1GtRecordInputTag () |
return the input tags found from provenance More... | |
const edm::InputTag & | provL1GtTriggerMenuLiteInputTag () |
const L1GtTriggerMenuLite * | ptrL1GtTriggerMenuLite (int &errorCode) |
return a pointer to the L1GtTriggerMenuLite product More... | |
const L1GtTriggerMenu * | ptrL1TriggerMenuEventSetup (int &errorCode) |
return a pointer to the L1 trigger menu from event setup More... | |
void | retrieveL1EventSetup (const edm::EventSetup &) |
retrieve all the relevant L1 trigger event setup records and cache them to improve the speed More... | |
void | retrieveL1GtTriggerMenuLite (const edm::Run &, const edm::InputTag &) |
retrieve L1GtTriggerMenuLite (per run product) and cache it to improve the speed More... | |
const std::string | triggerCategory (const TriggerCategory &) const |
public methods More... | |
const int | triggerMask (const edm::Event &iEvent, const edm::InputTag &l1GtRecordInputTag, const edm::InputTag &l1GtReadoutRecordInputTag, const std::string &nameAlgoTechTrig, int &errorCode) const |
return trigger mask for a given algorithm or technical trigger More... | |
const int | triggerMask (const edm::Event &iEvent, const std::string &nameAlgoTechTrig, int &errorCode) const |
const int | triggerMask (const std::string &nameAlgoTechTrig, int &errorCode) const |
const std::vector< unsigned int > & | triggerMaskSet (const TriggerCategory &trigCategory, int &errorCode) |
virtual | ~L1GtUtils () |
destructor More... | |
Private Member Functions | |
const bool | trigResult (const DecisionWord &decWord, const int bitNumber, const std::string &nameAlgoTechTrig, const TriggerCategory &trigCategory, int &errorCode) const |
Static Private Attributes | |
static const std::string | EmptyString = "" |
static const int | L1GtNotValidError = 99999 |
Description: various methods for L1 GT, to be called in an EDM analyzer, producer or filter.
Implementation: <TODO: enter implementation details>
Description: return L1 trigger results for a logical expression.
Implementation: Return L1 trigger results for a logical expression of algorithm or technical triggers. Mixture of algorithm and technical triggers in the logical expression is allowed only if trigger names or aliases are used. Mixing bit numbers and names or aliases is not supported. If the expression has bit numbers, they are assumed to be technical triggers.
Definition at line 46 of file L1GtUtils.h.
Enumerator | |
---|---|
AlgorithmTrigger | |
TechnicalTrigger |
Definition at line 58 of file L1GtUtils.h.
|
explicit |
constructor
Definition at line 49 of file L1GtUtils.cc.
|
virtual |
const bool L1GtUtils::availableL1Configuration | ( | int & | errorCode, |
int & | l1ConfCode | ||
) | const |
check if L1 trigger configuration is available return false and an error code if configuration is not available
Definition at line 2416 of file L1GtUtils.cc.
References L1GtNotValidError, LogDebug, m_l1EventSetupValid, m_l1GtMenuLiteValid, m_retrieveL1EventSetup, and m_retrieveL1GtTriggerMenuLite.
Referenced by IsolatedTracksNxN::analyze(), L1GtAnalyzer::analyzeL1GtUtilsCore(), L1GtAnalyzer::analyzeTrigger(), l1Results(), prescaleFactorSetIndex(), ptrL1GtTriggerMenuLite(), ptrL1TriggerMenuEventSetup(), triggerMask(), and triggerMaskSet().
const bool L1GtUtils::decision | ( | const edm::Event & | iEvent, |
const edm::InputTag & | l1GtRecordInputTag, | ||
const edm::InputTag & | l1GtReadoutRecordInputTag, | ||
const std::string & | nameAlgoTechTrig, | ||
int & | errorCode | ||
) | const |
return decision after trigger mask for a given algorithm or technical trigger function identical with decisionAfterMask
Definition at line 1571 of file L1GtUtils.cc.
References decisionAfterMask(), decisionBeforeMask(), l1Results(), prescaleFactor(), and triggerMask().
Referenced by TriggerHelper::acceptL1LogicalExpression(), IsolatedTracksNxN::analyze(), L1GtAnalyzer::analyzeL1GtUtilsCore(), L1GtAnalyzer::analyzeTrigger(), and PrescaleWeightProvider::prescaleWeight().
const bool L1GtUtils::decision | ( | const edm::Event & | iEvent, |
const std::string & | nameAlgoTechTrig, | ||
int & | errorCode | ||
) | const |
Definition at line 1590 of file L1GtUtils.cc.
References decisionAfterMask(), decisionBeforeMask(), l1Results(), prescaleFactor(), and triggerMask().
const bool L1GtUtils::decisionAfterMask | ( | const edm::Event & | iEvent, |
const edm::InputTag & | l1GtRecordInputTag, | ||
const edm::InputTag & | l1GtReadoutRecordInputTag, | ||
const std::string & | nameAlgoTechTrig, | ||
int & | errorCode | ||
) | const |
return decision after trigger mask for a given algorithm or technical trigger
Definition at line 1534 of file L1GtUtils.cc.
References decisionBeforeMask(), l1Results(), prescaleFactor(), and triggerMask().
Referenced by GenericTriggerEventFlag::acceptL1LogicalExpression(), L1GtAnalyzer::analyzeL1GtUtilsCore(), L1GtAnalyzer::analyzeTrigger(), decision(), decisionAfterMask(), decisionBeforeMask(), prescaleFactor(), and triggerMask().
const bool L1GtUtils::decisionAfterMask | ( | const edm::Event & | iEvent, |
const std::string & | nameAlgoTechTrig, | ||
int & | errorCode | ||
) | const |
Definition at line 1553 of file L1GtUtils.cc.
References decisionAfterMask(), decisionBeforeMask(), l1Results(), prescaleFactor(), and triggerMask().
const bool L1GtUtils::decisionBeforeMask | ( | const edm::Event & | iEvent, |
const edm::InputTag & | l1GtRecordInputTag, | ||
const edm::InputTag & | l1GtReadoutRecordInputTag, | ||
const std::string & | nameAlgoTechTrig, | ||
int & | errorCode | ||
) | const |
return decision before trigger mask for a given algorithm or technical trigger
for the functions decisionBeforeMask, decisionAfterMask, decision prescaleFactor, trigger mask:
input: event, event setup input tag for the L1GlobalTriggerRecord product input tag for the L1GlobalTriggerReadoutRecord product algorithm trigger name or alias, or technical trigger name output (by reference): error code return: the corresponding quantity
if input tags are not given, they are found for the appropriate EDM products from provenance
Definition at line 1497 of file L1GtUtils.cc.
References decisionAfterMask(), l1Results(), prescaleFactor(), and triggerMask().
Referenced by GenericTriggerEventFlag::acceptL1LogicalExpression(), L1GtAnalyzer::analyzeL1GtUtilsCore(), L1GtAnalyzer::analyzeTrigger(), decision(), decisionAfterMask(), decisionBeforeMask(), l1Results(), prescaleFactor(), and triggerMask().
const bool L1GtUtils::decisionBeforeMask | ( | const edm::Event & | iEvent, |
const std::string & | nameAlgoTechTrig, | ||
int & | errorCode | ||
) | const |
Definition at line 1516 of file L1GtUtils.cc.
References decisionAfterMask(), decisionBeforeMask(), l1Results(), prescaleFactor(), and triggerMask().
void L1GtUtils::getL1GtRecordInputTag | ( | const edm::Event & | iEvent, |
edm::InputTag & | l1GtRecordInputTag, | ||
edm::InputTag & | l1GtReadoutRecordInputTag | ||
) | const |
find from provenance the input tags for L1GlobalTriggerRecord and L1GlobalTriggerReadoutRecord if the product does not exist, return empty input tags
Definition at line 428 of file L1GtUtils.cc.
References edm::EventID::event(), edm::friendlyname::friendlyName(), edm::Event::getAllProvenance(), edm::EventBase::id(), HLT_25ns14e33_v1_cff::InputTag, LogDebug, LogTrace, FSQHLTOfflineSource_cfi::processName, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by getL1GtRunCache().
void L1GtUtils::getL1GtRunCache | ( | const edm::Run & | iRun, |
const edm::EventSetup & | evSetup, | ||
const bool | useL1EventSetup, | ||
const bool | useL1GtTriggerMenuLite, | ||
const edm::InputTag & | l1GtTmLInputTag | ||
) |
get all the run-constant quantities for L1 trigger and cache them
for use in beginRun(const edm::Run&, const edm::EventSetup&); input tag for L1GtTriggerMenuLite explicitly given
Definition at line 312 of file L1GtUtils.cc.
References m_beginRunCache, retrieveL1EventSetup(), and retrieveL1GtTriggerMenuLite().
Referenced by GenericTriggerEventFlag::acceptL1(), HLTInfo::analyze(), IsolatedTracksNxN::analyze(), L1GtAnalyzer::analyzeL1GtUtils(), L1GtAnalyzer::analyzeL1GtUtilsEventSetup(), L1GtAnalyzer::analyzeL1GtUtilsMenuLite(), L1GtAnalyzer::analyzeTrigger(), L1GtAnalyzer::beginRun(), getL1GtRunCache(), GenericTriggerEventFlag::initRun(), and pat::PATTriggerProducer::produce().
void L1GtUtils::getL1GtRunCache | ( | const edm::Run & | iRun, |
const edm::EventSetup & | evSetup, | ||
const bool | useL1EventSetup, | ||
const bool | useL1GtTriggerMenuLite | ||
) |
input tag for L1GtTriggerMenuLite found from provenance
Definition at line 338 of file L1GtUtils.cc.
References getL1GtRunCache(), getL1GtTriggerMenuLiteInputTag(), and m_provL1GtTriggerMenuLiteInputTag.
void L1GtUtils::getL1GtRunCache | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | evSetup, | ||
const bool | useL1EventSetup, | ||
const bool | useL1GtTriggerMenuLite, | ||
const edm::InputTag & | l1GtTmLInputTag | ||
) |
for use in analyze(const edm::Event&, const edm::EventSetup&) input tag for L1GtTriggerMenuLite explicitly given
Definition at line 354 of file L1GtUtils.cc.
References getL1GtRecordInputTag(), edm::Event::getRun(), edm::RunAuxiliary::id(), m_beginRunCache, m_provL1GtReadoutRecordInputTag, m_provL1GtRecordInputTag, m_runIDCache, retrieveL1EventSetup(), retrieveL1GtTriggerMenuLite(), and edm::Run::runAuxiliary().
void L1GtUtils::getL1GtRunCache | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | evSetup, | ||
const bool | useL1EventSetup, | ||
const bool | useL1GtTriggerMenuLite | ||
) |
input tag for L1GtTriggerMenuLite found from provenance
Definition at line 397 of file L1GtUtils.cc.
References getL1GtRunCache(), getL1GtTriggerMenuLiteInputTag(), edm::Event::getRun(), edm::RunAuxiliary::id(), m_beginRunCache, m_provL1GtTriggerMenuLiteInputTag, m_provRunIDCache, and edm::Run::runAuxiliary().
void L1GtUtils::getL1GtTriggerMenuLiteInputTag | ( | const edm::Run & | iRun, |
edm::InputTag & | l1GtTriggerMenuLiteInputTag | ||
) | const |
get the input tag for L1GtTriggerMenuLite
Definition at line 617 of file L1GtUtils.cc.
References edm::friendlyname::friendlyName(), edm::Run::getAllProvenance(), HLT_25ns14e33_v1_cff::InputTag, LogDebug, LogTrace, FSQHLTOfflineSource_cfi::processName, edm::RunAuxiliary::run(), edm::Run::runAuxiliary(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by getL1GtRunCache().
const bool L1GtUtils::l1AlgoTechTrigBitNumber | ( | const std::string & | nameAlgoTechTrig, |
TriggerCategory & | trigCategory, | ||
int & | bitNumber | ||
) | const |
return the trigger "category" trigCategory algorithm trigger alias or algorithm trigger name AlgorithmTrigger = 0, technical trigger TechnicalTrigger = 1 and its bit number
in case the algorithm trigger / technical trigger is not in the menu, the returned function is false, the trigger category is irrelevant (default value is AlgorithmTrigger), and the value of the bit number is -1
Definition at line 671 of file L1GtUtils.cc.
References AlgorithmTrigger, m_algorithmAliasMap, m_algorithmAliasMapLite, m_algorithmMap, m_algorithmMapLite, m_l1GtMenuLiteValid, m_retrieveL1EventSetup, m_retrieveL1GtTriggerMenuLite, m_technicalTriggerMap, m_technicalTriggerMapLite, and TechnicalTrigger.
Referenced by l1Results(), pat::PATTriggerProducer::produce(), and triggerMask().
const int L1GtUtils::l1Results | ( | const edm::Event & | iEvent, |
const edm::InputTag & | l1GtRecordInputTag, | ||
const edm::InputTag & | l1GtReadoutRecordInputTag, | ||
const std::string & | nameAlgoTechTrig, | ||
bool & | decisionBeforeMask, | ||
bool & | decisionAfterMask, | ||
int & | prescaleFactor, | ||
int & | triggerMask | ||
) | const |
return results for a given algorithm or technical trigger: input: event input tag for the L1GlobalTriggerRecord product input tag for the L1GlobalTriggerReadoutRecord product algorithm trigger name or alias, or technical trigger name output (by reference): decision before mask, decision after mask, prescale factor trigger mask return: integer error code
Definition at line 1008 of file L1GtUtils.cc.
References AlgorithmTrigger, availableL1Configuration(), decisionBeforeMask(), edm::Event::getByLabel(), L1GtTriggerMenuLite::gtTriggerMenuImplementation(), L1GtTriggerMenu::gtTriggerMenuImplementation(), edm::HandleBase::isValid(), l1AlgoTechTrigBitNumber(), LogDebug, m_l1GtMenu, m_l1GtMenuLite, m_l1GtMenuLiteValid, m_physicsDaqPartition, m_prescaleFactorsAlgoTrig, m_prescaleFactorsAlgoTrigLite, m_prescaleFactorsTechTrig, m_prescaleFactorsTechTrigLite, m_retrieveL1GtTriggerMenuLite, m_triggerMaskAlgoTrig, m_triggerMaskAlgoTrigLite, m_triggerMaskTechTrig, m_triggerMaskTechTrigLite, TechnicalTrigger, triggerCategory(), and trigResult().
Referenced by decision(), decisionAfterMask(), decisionBeforeMask(), L1GtUtils::LogicalExpressionL1Results::errorCodes(), l1Results(), prescaleFactor(), pat::PATTriggerProducer::produce(), and triggerMask().
const int L1GtUtils::l1Results | ( | const edm::Event & | iEvent, |
const std::string & | nameAlgoTechTrig, | ||
bool & | decisionBeforeMask, | ||
bool & | decisionAfterMask, | ||
int & | prescaleFactor, | ||
int & | triggerMask | ||
) | const |
return results for a given algorithm or technical trigger, input tag for the an appropriate EDM product will be found from provenance input: event algorithm trigger name or alias, or technical trigger name output (by reference): decision before mask, decision after mask, prescale factor trigger mask return: integer error code
Definition at line 1475 of file L1GtUtils.cc.
References l1Results(), m_provL1GtReadoutRecordInputTag, and m_provL1GtRecordInputTag.
const std::string & L1GtUtils::l1TriggerMenu | ( | ) | const |
return the L1 trigger menu name
Definition at line 2301 of file L1GtUtils.cc.
References EmptyString, L1GtTriggerMenuLite::gtTriggerMenuName(), L1GtTriggerMenu::gtTriggerMenuName(), m_l1GtMenu, m_l1GtMenuLite, m_l1GtMenuLiteValid, m_retrieveL1EventSetup, and m_retrieveL1GtTriggerMenuLite.
Referenced by L1GtAnalyzer::analyzeL1GtUtilsCore(), and L1GtAnalyzer::analyzeTrigger().
const std::string & L1GtUtils::l1TriggerMenuImplementation | ( | ) | const |
return the L1 trigger menu implementation
Definition at line 2326 of file L1GtUtils.cc.
References EmptyString, L1GtTriggerMenuLite::gtTriggerMenuImplementation(), L1GtTriggerMenu::gtTriggerMenuImplementation(), m_l1GtMenu, m_l1GtMenuLite, m_l1GtMenuLiteValid, m_retrieveL1EventSetup, and m_retrieveL1GtTriggerMenuLite.
Referenced by L1GtAnalyzer::analyzeL1GtUtilsCore(), and L1GtAnalyzer::analyzeTrigger().
const bool L1GtUtils::l1TriggerNameFromBit | ( | const int & | bitNumber, |
const TriggerCategory & | trigCategory, | ||
std::string & | aliasL1Trigger, | ||
std::string & | nameL1Trigger | ||
) | const |
return the trigger name and alias for a given trigger category and a given bit number
in case no algorithm trigger / technical trigger is defined for that bit in the menu, the returned function is false, and the name and the alias is empty
Definition at line 798 of file L1GtUtils.cc.
References AlgorithmTrigger, m_algorithmAliasMap, m_algorithmAliasMapLite, m_algorithmMapLite, m_l1GtMenuLiteValid, m_retrieveL1EventSetup, m_retrieveL1GtTriggerMenuLite, m_technicalTriggerMap, m_technicalTriggerMapLite, and TechnicalTrigger.
const int L1GtUtils::prescaleFactor | ( | const edm::Event & | iEvent, |
const edm::InputTag & | l1GtRecordInputTag, | ||
const edm::InputTag & | l1GtReadoutRecordInputTag, | ||
const std::string & | nameAlgoTechTrig, | ||
int & | errorCode | ||
) | const |
return prescale factor for a given algorithm or technical trigger
Definition at line 1608 of file L1GtUtils.cc.
References decisionAfterMask(), decisionBeforeMask(), l1Results(), and triggerMask().
Referenced by HLTInfo::analyze(), IsolatedTracksNxN::analyze(), L1GtAnalyzer::analyzeL1GtUtilsCore(), L1GtAnalyzer::analyzeTrigger(), decision(), decisionAfterMask(), decisionBeforeMask(), prescaleFactor(), PrescaleWeightProvider::prescaleWeight(), and triggerMask().
const int L1GtUtils::prescaleFactor | ( | const edm::Event & | iEvent, |
const std::string & | nameAlgoTechTrig, | ||
int & | errorCode | ||
) | const |
Definition at line 1627 of file L1GtUtils.cc.
References decisionAfterMask(), decisionBeforeMask(), l1Results(), prescaleFactor(), and triggerMask().
const std::vector< int > & L1GtUtils::prescaleFactorSet | ( | const edm::Event & | iEvent, |
const edm::InputTag & | l1GtRecordInputTag, | ||
const edm::InputTag & | l1GtReadoutRecordInputTag, | ||
const TriggerCategory & | trigCategory, | ||
int & | errorCode | ||
) |
return the actual set of prescale factors used for the event (must be the same for all events in the luminosity block, if no errors)
Definition at line 2107 of file L1GtUtils.cc.
References AlgorithmTrigger, m_l1GtMenuLiteValid, m_prescaleFactorSet, m_retrieveL1GtTriggerMenuLite, prescaleFactorSetIndex(), and TechnicalTrigger.
Referenced by L1GtAnalyzer::analyzeL1GtUtilsCore(), and prescaleFactorSet().
const std::vector< int > & L1GtUtils::prescaleFactorSet | ( | const edm::Event & | iEvent, |
const TriggerCategory & | trigCategory, | ||
int & | errorCode | ||
) |
Definition at line 2182 of file L1GtUtils.cc.
References m_prescaleFactorSet, m_provL1GtReadoutRecordInputTag, m_provL1GtRecordInputTag, and prescaleFactorSet().
const int L1GtUtils::prescaleFactorSetIndex | ( | const edm::Event & | iEvent, |
const edm::InputTag & | l1GtRecordInputTag, | ||
const edm::InputTag & | l1GtReadoutRecordInputTag, | ||
const TriggerCategory & | trigCategory, | ||
int & | errorCode | ||
) | const |
return the index of the actual set of prescale factors used for the event (must be the same for all events in the luminosity block, if no errors)
Definition at line 1883 of file L1GtUtils.cc.
References AlgorithmTrigger, availableL1Configuration(), edm::Event::getByLabel(), edm::HandleBase::isValid(), LogDebug, m_l1GtMenuLiteValid, m_prescaleFactorsAlgoTrig, m_prescaleFactorsAlgoTrigLite, m_prescaleFactorsTechTrig, m_prescaleFactorsTechTrigLite, m_retrieveL1GtTriggerMenuLite, and TechnicalTrigger.
Referenced by HLTInfo::analyze(), L1GtAnalyzer::analyzeL1GtUtilsCore(), prescaleFactorSet(), and prescaleFactorSetIndex().
const int L1GtUtils::prescaleFactorSetIndex | ( | const edm::Event & | iEvent, |
const TriggerCategory & | trigCategory, | ||
int & | errorCode | ||
) | const |
Definition at line 2088 of file L1GtUtils.cc.
References m_provL1GtReadoutRecordInputTag, m_provL1GtRecordInputTag, and prescaleFactorSetIndex().
|
inline |
Definition at line 242 of file L1GtUtils.h.
References m_provL1GtReadoutRecordInputTag.
|
inline |
return the input tags found from provenance
Definition at line 238 of file L1GtUtils.h.
References m_provL1GtRecordInputTag.
|
inline |
Definition at line 246 of file L1GtUtils.h.
References m_provL1GtTriggerMenuLiteInputTag.
const L1GtTriggerMenuLite * L1GtUtils::ptrL1GtTriggerMenuLite | ( | int & | errorCode | ) |
return a pointer to the L1GtTriggerMenuLite product
Definition at line 2379 of file L1GtUtils.cc.
References availableL1Configuration(), m_l1GtMenuLite, m_l1GtMenuLiteValid, and m_retrieveL1GtTriggerMenuLite.
const L1GtTriggerMenu * L1GtUtils::ptrL1TriggerMenuEventSetup | ( | int & | errorCode | ) |
return a pointer to the L1 trigger menu from event setup
Definition at line 2351 of file L1GtUtils.cc.
References availableL1Configuration(), m_l1GtMenu, and m_retrieveL1EventSetup.
Referenced by IsolatedTracksNxN::analyze().
void L1GtUtils::retrieveL1EventSetup | ( | const edm::EventSetup & | evSetup | ) |
retrieve all the relevant L1 trigger event setup records and cache them to improve the speed
Definition at line 112 of file L1GtUtils.cc.
References edm::EventSetup::get(), L1GtTriggerMenu::gtAlgorithmAliasMap(), L1GtTriggerMenu::gtAlgorithmMap(), L1GtStableParameters::gtNumberPhysTriggers(), L1GtStableParameters::gtNumberTechnicalTriggers(), L1GtPrescaleFactors::gtPrescaleFactors(), L1GtTriggerMenu::gtTechnicalTriggerMap(), L1GtTriggerMask::gtTriggerMask(), m_algorithmAliasMap, m_algorithmMap, m_l1EventSetupValid, m_l1GtMenu, m_l1GtMenuCacheID, m_l1GtPfAlgo, m_l1GtPfAlgoCacheID, m_l1GtPfTech, m_l1GtPfTechCacheID, m_l1GtStablePar, m_l1GtStableParCacheID, m_l1GtTmAlgo, m_l1GtTmAlgoCacheID, m_l1GtTmTech, m_l1GtTmTechCacheID, m_l1GtTmVetoAlgo, m_l1GtTmVetoAlgoCacheID, m_l1GtTmVetoTech, m_l1GtTmVetoTechCacheID, m_numberAlgorithmTriggers, m_numberTechnicalTriggers, m_prescaleFactorsAlgoTrig, m_prescaleFactorSet, m_prescaleFactorsTechTrig, m_retrieveL1EventSetup, m_technicalTriggerMap, m_triggerMaskAlgoTrig, m_triggerMaskSet, m_triggerMaskTechTrig, m_triggerMaskVetoAlgoTrig, m_triggerMaskVetoTechTrig, bookConverter::max, and edm::ESHandle< class >::product().
Referenced by TriggerHelper::acceptL1(), getL1GtRunCache(), and PrescaleWeightProvider::prescaleWeight().
void L1GtUtils::retrieveL1GtTriggerMenuLite | ( | const edm::Run & | iRun, |
const edm::InputTag & | l1GtMenuLiteInputTag | ||
) |
retrieve L1GtTriggerMenuLite (per run product) and cache it to improve the speed
for use in beginRun(const edm::Run&, const edm::EventSetup&); input tag explicitly given
Definition at line 270 of file L1GtUtils.cc.
References edm::Run::getByLabel(), L1GtTriggerMenuLite::gtAlgorithmAliasMap(), L1GtTriggerMenuLite::gtAlgorithmMap(), L1GtTriggerMenuLite::gtPrescaleFactorsAlgoTrig(), L1GtTriggerMenuLite::gtPrescaleFactorsTechTrig(), L1GtTriggerMenuLite::gtTechnicalTriggerMap(), L1GtTriggerMenuLite::gtTriggerMaskAlgoTrig(), L1GtTriggerMenuLite::gtTriggerMaskTechTrig(), edm::HandleBase::isValid(), LogDebug, m_algorithmAliasMapLite, m_algorithmMapLite, m_l1GtMenuLite, m_l1GtMenuLiteValid, m_prescaleFactorsAlgoTrigLite, m_prescaleFactorsTechTrigLite, m_retrieveL1GtTriggerMenuLite, m_technicalTriggerMapLite, m_triggerMaskAlgoTrigLite, m_triggerMaskTechTrigLite, edm::Handle< T >::product(), edm::RunAuxiliary::run(), and edm::Run::runAuxiliary().
Referenced by getL1GtRunCache().
const std::string L1GtUtils::triggerCategory | ( | const TriggerCategory & | trigCategory | ) | const |
public methods
Definition at line 91 of file L1GtUtils.cc.
References AlgorithmTrigger, EmptyString, and TechnicalTrigger.
Referenced by l1Results(), triggerMask(), and trigResult().
const int L1GtUtils::triggerMask | ( | const edm::Event & | iEvent, |
const edm::InputTag & | l1GtRecordInputTag, | ||
const edm::InputTag & | l1GtReadoutRecordInputTag, | ||
const std::string & | nameAlgoTechTrig, | ||
int & | errorCode | ||
) | const |
return trigger mask for a given algorithm or technical trigger
Definition at line 1643 of file L1GtUtils.cc.
References decisionAfterMask(), decisionBeforeMask(), l1Results(), and prescaleFactor().
Referenced by L1GtAnalyzer::analyzeL1GtUtilsCore(), L1GtAnalyzer::analyzeTrigger(), decision(), decisionAfterMask(), decisionBeforeMask(), prescaleFactor(), and triggerMask().
const int L1GtUtils::triggerMask | ( | const edm::Event & | iEvent, |
const std::string & | nameAlgoTechTrig, | ||
int & | errorCode | ||
) | const |
Definition at line 1662 of file L1GtUtils.cc.
References decisionAfterMask(), decisionBeforeMask(), l1Results(), prescaleFactor(), and triggerMask().
const int L1GtUtils::triggerMask | ( | const std::string & | nameAlgoTechTrig, |
int & | errorCode | ||
) | const |
faster than previous two methods - one needs in fact for the masks the event setup only
Definition at line 1678 of file L1GtUtils.cc.
References AlgorithmTrigger, availableL1Configuration(), L1GtTriggerMenuLite::gtTriggerMenuImplementation(), L1GtTriggerMenu::gtTriggerMenuImplementation(), l1AlgoTechTrigBitNumber(), LogDebug, m_l1GtMenu, m_l1GtMenuLite, m_l1GtMenuLiteValid, m_physicsDaqPartition, m_retrieveL1GtTriggerMenuLite, m_triggerMaskAlgoTrig, m_triggerMaskAlgoTrigLite, m_triggerMaskTechTrig, m_triggerMaskTechTrigLite, TechnicalTrigger, and triggerCategory().
const std::vector< unsigned int > & L1GtUtils::triggerMaskSet | ( | const TriggerCategory & | trigCategory, |
int & | errorCode | ||
) |
return the set of trigger masks for the physics partition (partition zero) used for the event (remain the same in the whole run, if no errors)
Definition at line 2202 of file L1GtUtils.cc.
References AlgorithmTrigger, availableL1Configuration(), i, m_l1GtMenuLiteValid, m_physicsDaqPartition, m_retrieveL1GtTriggerMenuLite, m_triggerMaskAlgoTrig, m_triggerMaskAlgoTrigLite, m_triggerMaskSet, m_triggerMaskTechTrig, m_triggerMaskTechTrigLite, and TechnicalTrigger.
Referenced by L1GtAnalyzer::analyzeL1GtUtilsCore().
|
private |
return the trigger result given bit number and decision word errorCode != 0 if bit number greater than size of decision word print in debug mode a message in case of error
Definition at line 2520 of file L1GtUtils.cc.
References LogDebug, and triggerCategory().
Referenced by l1Results().
|
staticprivate |
Definition at line 428 of file L1GtUtils.h.
Referenced by l1TriggerMenu(), l1TriggerMenuImplementation(), and triggerCategory().
|
staticprivate |
Definition at line 429 of file L1GtUtils.h.
Referenced by availableL1Configuration().
|
private |
Definition at line 486 of file L1GtUtils.h.
Referenced by l1AlgoTechTrigBitNumber(), l1TriggerNameFromBit(), and retrieveL1EventSetup().
|
private |
Definition at line 498 of file L1GtUtils.h.
Referenced by l1AlgoTechTrigBitNumber(), l1TriggerNameFromBit(), and retrieveL1GtTriggerMenuLite().
|
private |
Definition at line 485 of file L1GtUtils.h.
Referenced by l1AlgoTechTrigBitNumber(), and retrieveL1EventSetup().
|
private |
Definition at line 497 of file L1GtUtils.h.
Referenced by l1AlgoTechTrigBitNumber(), l1TriggerNameFromBit(), and retrieveL1GtTriggerMenuLite().
|
private |
flag for call of getL1GtRunCache in beginRun
Definition at line 510 of file L1GtUtils.h.
Referenced by getL1GtRunCache().
|
private |
Definition at line 489 of file L1GtUtils.h.
Referenced by availableL1Configuration(), and retrieveL1EventSetup().
|
private |
Definition at line 482 of file L1GtUtils.h.
Referenced by l1Results(), l1TriggerMenu(), l1TriggerMenuImplementation(), ptrL1TriggerMenuEventSetup(), retrieveL1EventSetup(), and triggerMask().
|
private |
Definition at line 483 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
L1GtTriggerMenuLite cached stuff.
Definition at line 495 of file L1GtUtils.h.
Referenced by l1Results(), l1TriggerMenu(), l1TriggerMenuImplementation(), ptrL1GtTriggerMenuLite(), retrieveL1GtTriggerMenuLite(), and triggerMask().
|
private |
Definition at line 507 of file L1GtUtils.h.
Referenced by availableL1Configuration(), l1AlgoTechTrigBitNumber(), l1Results(), l1TriggerMenu(), l1TriggerMenuImplementation(), l1TriggerNameFromBit(), prescaleFactorSet(), prescaleFactorSetIndex(), ptrL1GtTriggerMenuLite(), retrieveL1GtTriggerMenuLite(), triggerMask(), and triggerMaskSet().
|
private |
|
private |
Definition at line 454 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
Definition at line 456 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
Definition at line 457 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
event setup cached stuff
stable parameters
Definition at line 443 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
Definition at line 444 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
trigger masks & veto masks
Definition at line 463 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
Definition at line 464 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
Definition at line 466 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
Definition at line 467 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
Definition at line 469 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
Definition at line 470 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
Definition at line 472 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
Definition at line 473 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
number of algorithm triggers
Definition at line 447 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
number of technical triggers
Definition at line 450 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
index of physics DAQ partition
Definition at line 526 of file L1GtUtils.h.
Referenced by l1Results(), triggerMask(), and triggerMaskSet().
|
private |
Definition at line 459 of file L1GtUtils.h.
Referenced by l1Results(), prescaleFactorSetIndex(), and retrieveL1EventSetup().
|
private |
Definition at line 504 of file L1GtUtils.h.
Referenced by l1Results(), prescaleFactorSetIndex(), and retrieveL1GtTriggerMenuLite().
|
private |
Definition at line 529 of file L1GtUtils.h.
Referenced by prescaleFactorSet(), and retrieveL1EventSetup().
|
private |
Definition at line 460 of file L1GtUtils.h.
Referenced by l1Results(), prescaleFactorSetIndex(), and retrieveL1EventSetup().
|
private |
Definition at line 505 of file L1GtUtils.h.
Referenced by l1Results(), prescaleFactorSetIndex(), and retrieveL1GtTriggerMenuLite().
|
mutableprivate |
Definition at line 515 of file L1GtUtils.h.
Referenced by getL1GtRunCache(), l1Results(), prescaleFactorSet(), prescaleFactorSetIndex(), and provL1GtReadoutRecordInputTag().
|
mutableprivate |
cached input tags from provenance - they are updated once per run only
Definition at line 514 of file L1GtUtils.h.
Referenced by getL1GtRunCache(), l1Results(), prescaleFactorSet(), prescaleFactorSetIndex(), and provL1GtRecordInputTag().
|
mutableprivate |
Definition at line 516 of file L1GtUtils.h.
Referenced by getL1GtRunCache(), and provL1GtTriggerMenuLiteInputTag().
|
private |
Definition at line 520 of file L1GtUtils.h.
Referenced by getL1GtRunCache().
|
private |
flags to check which method was used to retrieve L1 trigger configuration
Definition at line 532 of file L1GtUtils.h.
Referenced by availableL1Configuration(), l1AlgoTechTrigBitNumber(), l1TriggerMenu(), l1TriggerMenuImplementation(), l1TriggerNameFromBit(), ptrL1TriggerMenuEventSetup(), and retrieveL1EventSetup().
|
private |
Definition at line 533 of file L1GtUtils.h.
Referenced by availableL1Configuration(), l1AlgoTechTrigBitNumber(), l1Results(), l1TriggerMenu(), l1TriggerMenuImplementation(), l1TriggerNameFromBit(), prescaleFactorSet(), prescaleFactorSetIndex(), ptrL1GtTriggerMenuLite(), retrieveL1GtTriggerMenuLite(), triggerMask(), and triggerMaskSet().
|
private |
|
private |
Definition at line 487 of file L1GtUtils.h.
Referenced by l1AlgoTechTrigBitNumber(), l1TriggerNameFromBit(), and retrieveL1EventSetup().
|
private |
Definition at line 499 of file L1GtUtils.h.
Referenced by l1AlgoTechTrigBitNumber(), l1TriggerNameFromBit(), and retrieveL1GtTriggerMenuLite().
|
private |
Definition at line 475 of file L1GtUtils.h.
Referenced by l1Results(), retrieveL1EventSetup(), triggerMask(), and triggerMaskSet().
|
private |
Definition at line 501 of file L1GtUtils.h.
Referenced by l1Results(), retrieveL1GtTriggerMenuLite(), triggerMask(), and triggerMaskSet().
|
private |
Definition at line 528 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup(), and triggerMaskSet().
|
private |
Definition at line 476 of file L1GtUtils.h.
Referenced by l1Results(), retrieveL1EventSetup(), triggerMask(), and triggerMaskSet().
|
private |
Definition at line 502 of file L1GtUtils.h.
Referenced by l1Results(), retrieveL1GtTriggerMenuLite(), triggerMask(), and triggerMaskSet().
|
private |
Definition at line 478 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
Definition at line 479 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().