![]() |
![]() |
#include <L1GtUtils.h>
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 | getInputTag (const edm::Event &iEvent, edm::InputTag &l1GtRecordInputTag, edm::InputTag &l1GtReadoutRecordInputTag) const |
get the input tags for L1GlobalTriggerRecord and L1GlobalTriggerReadoutRecord More... | |
void | getL1GtTriggerMenuLiteInputTag (const edm::Event &iEvent, edm::InputTag &l1GtTriggerMenuLiteInputTag) const |
get the input tags for L1GtTriggerMenuLite More... | |
const bool | l1AlgoTechTrigBitNumber (const std::string &nameAlgoTechTrig, TriggerCategory &trigCategory, int &bitNumber) const |
const bool | l1AlgTechTrigBitNumber (const std::string &nameAlgoTechTrig, int &triggerAlgoTechTrig, int &bitNumber) const |
deprecated version - use l1AlgoTechTrigBitNumber More... | |
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 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 std::vector< int > & | prescaleFactorSet (const edm::Event &iEvent, const edm::InputTag &l1GtRecordInputTag, const edm::InputTag &l1GtReadoutRecordInputTag, const std::string &triggerAlgoTechTrig, int &errorCode) |
deprecated versions More... | |
const std::vector< int > & | prescaleFactorSet (const edm::Event &iEvent, const std::string &triggerAlgoTechTrig, 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 int | prescaleFactorSetIndex (const edm::Event &iEvent, const edm::InputTag &l1GtRecordInputTag, const edm::InputTag &l1GtReadoutRecordInputTag, const std::string &triggerAlgoTechTrig, int &errorCode) const |
deprecated versions More... | |
const int | prescaleFactorSetIndex (const edm::Event &iEvent, const std::string &triggerAlgoTechTrig, int &errorCode) const |
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::Event &, edm::InputTag &) |
void | retrieveL1GtTriggerMenuLite (const edm::Event &) |
input tag found from provenance 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) |
const std::vector< unsigned int > & | triggerMaskSet (const std::string &triggerAlgoTechTrig, int &errorCode) |
deprecated version More... | |
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>
$Date$ $Revision$
Definition at line 47 of file L1GtUtils.h.
Enumerator | |
---|---|
AlgorithmTrigger | |
TechnicalTrigger |
Definition at line 59 of file L1GtUtils.h.
|
explicit |
constructor
Definition at line 50 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 2235 of file L1GtUtils.cc.
References L1GtNotValidError, LogDebug, m_l1EventSetupValid, m_l1GtMenuLiteValid, m_retrieveL1EventSetup, and m_retrieveL1GtTriggerMenuLite.
Referenced by L1GtAnalyzer::analyzeL1GtUtilsCore(), l1Results(), prescaleFactorSet(), 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 1184 of file L1GtUtils.cc.
References decisionAfterMask(), decisionBeforeMask(), l1Results(), prescaleFactor(), and triggerMask().
Referenced by TriggerHelper::acceptL1LogicalExpression(), GenericTriggerEventFlag::acceptL1LogicalExpression(), L1GtAnalyzer::analyzeL1GtUtilsCore(), and PrescaleWeightProvider::prescaleWeight().
const bool L1GtUtils::decision | ( | const edm::Event & | iEvent, |
const std::string & | nameAlgoTechTrig, | ||
int & | errorCode | ||
) | const |
Definition at line 1203 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 1147 of file L1GtUtils.cc.
References decisionBeforeMask(), l1Results(), prescaleFactor(), and triggerMask().
Referenced by L1GtAnalyzer::analyzeL1GtUtilsCore(), decision(), decisionAfterMask(), decisionBeforeMask(), prescaleFactor(), and triggerMask().
const bool L1GtUtils::decisionAfterMask | ( | const edm::Event & | iEvent, |
const std::string & | nameAlgoTechTrig, | ||
int & | errorCode | ||
) | const |
Definition at line 1166 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 1110 of file L1GtUtils.cc.
References decisionAfterMask(), l1Results(), prescaleFactor(), and triggerMask().
Referenced by L1GtAnalyzer::analyzeL1GtUtilsCore(), 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 1129 of file L1GtUtils.cc.
References decisionAfterMask(), decisionBeforeMask(), l1Results(), prescaleFactor(), and triggerMask().
void L1GtUtils::getInputTag | ( | const edm::Event & | iEvent, |
edm::InputTag & | l1GtRecordInputTag, | ||
edm::InputTag & | l1GtReadoutRecordInputTag | ||
) | const |
get the input tags for L1GlobalTriggerRecord and L1GlobalTriggerReadoutRecord
Definition at line 339 of file L1GtUtils.cc.
References edm::friendlyname::friendlyName(), and edm::Event::getAllProvenance().
Referenced by l1Results(), prescaleFactorSet(), and prescaleFactorSetIndex().
void L1GtUtils::getL1GtTriggerMenuLiteInputTag | ( | const edm::Event & | iEvent, |
edm::InputTag & | l1GtTriggerMenuLiteInputTag | ||
) | const |
get the input tags for L1GtTriggerMenuLite
Definition at line 410 of file L1GtUtils.cc.
References edm::friendlyname::friendlyName(), edm::Run::getAllProvenance(), and edm::Event::getRun().
Referenced by retrieveL1GtTriggerMenuLite().
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 470 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 l1AlgTechTrigBitNumber(), l1Results(), pat::PATTriggerProducer::produce(), and triggerMask().
const bool L1GtUtils::l1AlgTechTrigBitNumber | ( | const std::string & | nameAlgoTechTrig, |
int & | triggerAlgoTechTrig, | ||
int & | bitNumber | ||
) | const |
deprecated version - use l1AlgoTechTrigBitNumber
Definition at line 598 of file L1GtUtils.cc.
References AlgorithmTrigger, and l1AlgoTechTrigBitNumber().
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 614 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(), 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 1083 of file L1GtUtils.cc.
References getInputTag(), and l1Results().
const std::string & L1GtUtils::l1TriggerMenu | ( | ) | const |
return the L1 trigger menu name
Definition at line 2120 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().
const std::string & L1GtUtils::l1TriggerMenuImplementation | ( | ) | const |
return the L1 trigger menu implementation
Definition at line 2145 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().
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 1221 of file L1GtUtils.cc.
References decisionAfterMask(), decisionBeforeMask(), l1Results(), and triggerMask().
Referenced by HLTInfo::analyze(), L1GtAnalyzer::analyzeL1GtUtilsCore(), 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 1240 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 1800 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 1875 of file L1GtUtils.cc.
References getInputTag(), m_prescaleFactorSet, and prescaleFactorSet().
const std::vector< int > & L1GtUtils::prescaleFactorSet | ( | const edm::Event & | iEvent, |
const edm::InputTag & | l1GtRecordInputTag, | ||
const edm::InputTag & | l1GtReadoutRecordInputTag, | ||
const std::string & | triggerAlgoTechTrig, | ||
int & | errorCode | ||
) |
deprecated versions
Definition at line 1899 of file L1GtUtils.cc.
References AlgorithmTrigger, availableL1Configuration(), LogDebug, m_prescaleFactorSet, prescaleFactorSet(), and TechnicalTrigger.
const std::vector< int > & L1GtUtils::prescaleFactorSet | ( | const edm::Event & | iEvent, |
const std::string & | triggerAlgoTechTrig, | ||
int & | errorCode | ||
) |
Definition at line 1952 of file L1GtUtils.cc.
References getInputTag(), m_prescaleFactorSet, 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 1496 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 1703 of file L1GtUtils.cc.
References getInputTag(), and prescaleFactorSetIndex().
const int L1GtUtils::prescaleFactorSetIndex | ( | const edm::Event & | iEvent, |
const edm::InputTag & | l1GtRecordInputTag, | ||
const edm::InputTag & | l1GtReadoutRecordInputTag, | ||
const std::string & | triggerAlgoTechTrig, | ||
int & | errorCode | ||
) | const |
deprecated versions
Definition at line 1727 of file L1GtUtils.cc.
References AlgorithmTrigger, availableL1Configuration(), LogDebug, prescaleFactorSetIndex(), and TechnicalTrigger.
const int L1GtUtils::prescaleFactorSetIndex | ( | const edm::Event & | iEvent, |
const std::string & | triggerAlgoTechTrig, | ||
int & | errorCode | ||
) | const |
Definition at line 1778 of file L1GtUtils.cc.
References getInputTag(), and prescaleFactorSetIndex().
const L1GtTriggerMenuLite * L1GtUtils::ptrL1GtTriggerMenuLite | ( | int & | errorCode | ) |
return a pointer to the L1GtTriggerMenuLite product
Definition at line 2198 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 2170 of file L1GtUtils.cc.
References availableL1Configuration(), m_l1GtMenu, and m_retrieveL1EventSetup.
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 107 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, max(), and edm::ESHandle< class >::product().
Referenced by TriggerHelper::acceptL1(), GenericTriggerEventFlag::acceptL1(), HLTInfo::analyze(), L1GtAnalyzer::analyzeL1GtUtils(), L1GtAnalyzer::analyzeL1GtUtilsEventSetup(), PrescaleWeightProvider::prescaleWeight(), and pat::PATTriggerProducer::produce().
void L1GtUtils::retrieveL1GtTriggerMenuLite | ( | const edm::Event & | iEvent, |
edm::InputTag & | l1GtMenuLiteInputTag | ||
) |
retrieve L1GtTriggerMenuLite (per run product) and cache it to improve the speed input tag explicitly given
Definition at line 283 of file L1GtUtils.cc.
References edm::Run::getByLabel(), edm::Event::getRun(), L1GtTriggerMenuLite::gtAlgorithmAliasMap(), L1GtTriggerMenuLite::gtAlgorithmMap(), L1GtTriggerMenuLite::gtPrescaleFactorsAlgoTrig(), L1GtTriggerMenuLite::gtPrescaleFactorsTechTrig(), L1GtTriggerMenuLite::gtTechnicalTriggerMap(), L1GtTriggerMenuLite::gtTriggerMaskAlgoTrig(), L1GtTriggerMenuLite::gtTriggerMaskTechTrig(), edm::RunAuxiliary::id(), edm::HandleBase::isValid(), LogDebug, m_algorithmAliasMapLite, m_algorithmMapLite, m_l1GtMenuLite, m_l1GtMenuLiteValid, m_prescaleFactorsAlgoTrigLite, m_prescaleFactorsTechTrigLite, m_retrieveL1GtTriggerMenuLite, m_runIDCache, m_technicalTriggerMapLite, m_triggerMaskAlgoTrigLite, m_triggerMaskTechTrigLite, edm::Handle< T >::product(), edm::RunAuxiliary::run(), and edm::Run::runAuxiliary().
Referenced by L1GtAnalyzer::analyzeL1GtUtils(), L1GtAnalyzer::analyzeL1GtUtilsMenuLite(), and retrieveL1GtTriggerMenuLite().
void L1GtUtils::retrieveL1GtTriggerMenuLite | ( | const edm::Event & | iEvent | ) |
input tag found from provenance
Definition at line 264 of file L1GtUtils.cc.
References getL1GtTriggerMenuLiteInputTag(), edm::Event::getRun(), edm::RunAuxiliary::id(), m_provRunIDCache, retrieveL1GtTriggerMenuLite(), and edm::Run::runAuxiliary().
const std::string L1GtUtils::triggerCategory | ( | const TriggerCategory & | trigCategory | ) | const |
public methods
Definition at line 86 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 1256 of file L1GtUtils.cc.
References decisionAfterMask(), decisionBeforeMask(), l1Results(), and prescaleFactor().
Referenced by L1GtAnalyzer::analyzeL1GtUtilsCore(), decision(), decisionAfterMask(), decisionBeforeMask(), prescaleFactor(), and triggerMask().
const int L1GtUtils::triggerMask | ( | const edm::Event & | iEvent, |
const std::string & | nameAlgoTechTrig, | ||
int & | errorCode | ||
) | const |
Definition at line 1275 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 1291 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 1972 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(), and triggerMaskSet().
const std::vector< unsigned int > & L1GtUtils::triggerMaskSet | ( | const std::string & | triggerAlgoTechTrig, |
int & | errorCode | ||
) |
deprecated version
Definition at line 2071 of file L1GtUtils.cc.
References AlgorithmTrigger, availableL1Configuration(), LogDebug, m_triggerMaskSet, TechnicalTrigger, and triggerMaskSet().
|
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 2339 of file L1GtUtils.cc.
References LogDebug, and triggerCategory().
Referenced by l1Results().
|
staticprivate |
Definition at line 277 of file L1GtUtils.h.
Referenced by l1TriggerMenu(), l1TriggerMenuImplementation(), and triggerCategory().
|
staticprivate |
Definition at line 278 of file L1GtUtils.h.
Referenced by availableL1Configuration().
|
private |
Definition at line 335 of file L1GtUtils.h.
Referenced by l1AlgoTechTrigBitNumber(), and retrieveL1EventSetup().
|
private |
Definition at line 347 of file L1GtUtils.h.
Referenced by l1AlgoTechTrigBitNumber(), and retrieveL1GtTriggerMenuLite().
|
private |
Definition at line 334 of file L1GtUtils.h.
Referenced by l1AlgoTechTrigBitNumber(), and retrieveL1EventSetup().
|
private |
Definition at line 346 of file L1GtUtils.h.
Referenced by l1AlgoTechTrigBitNumber(), and retrieveL1GtTriggerMenuLite().
|
private |
Definition at line 338 of file L1GtUtils.h.
Referenced by availableL1Configuration(), and retrieveL1EventSetup().
|
private |
Definition at line 331 of file L1GtUtils.h.
Referenced by l1Results(), l1TriggerMenu(), l1TriggerMenuImplementation(), ptrL1TriggerMenuEventSetup(), retrieveL1EventSetup(), and triggerMask().
|
private |
Definition at line 332 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
L1GtTriggerMenuLite cached stuff.
Definition at line 344 of file L1GtUtils.h.
Referenced by l1Results(), l1TriggerMenu(), l1TriggerMenuImplementation(), ptrL1GtTriggerMenuLite(), retrieveL1GtTriggerMenuLite(), and triggerMask().
|
private |
Definition at line 362 of file L1GtUtils.h.
Referenced by availableL1Configuration(), l1AlgoTechTrigBitNumber(), l1Results(), l1TriggerMenu(), l1TriggerMenuImplementation(), prescaleFactorSet(), prescaleFactorSetIndex(), ptrL1GtTriggerMenuLite(), retrieveL1GtTriggerMenuLite(), triggerMask(), and triggerMaskSet().
|
private |
|
private |
Definition at line 303 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
Definition at line 305 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
Definition at line 306 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
event setup cached stuff
stable parameters
Definition at line 292 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
Definition at line 293 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
trigger masks & veto masks
Definition at line 312 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
Definition at line 313 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
Definition at line 315 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
Definition at line 316 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
Definition at line 318 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
Definition at line 319 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
Definition at line 321 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
Definition at line 322 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
number of algorithm triggers
Definition at line 296 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
number of technical triggers
Definition at line 299 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
index of physics DAQ partition
Definition at line 367 of file L1GtUtils.h.
Referenced by l1Results(), triggerMask(), and triggerMaskSet().
|
private |
Definition at line 308 of file L1GtUtils.h.
Referenced by l1Results(), prescaleFactorSetIndex(), and retrieveL1EventSetup().
|
private |
Definition at line 353 of file L1GtUtils.h.
Referenced by l1Results(), prescaleFactorSetIndex(), and retrieveL1GtTriggerMenuLite().
|
private |
Definition at line 370 of file L1GtUtils.h.
Referenced by prescaleFactorSet(), and retrieveL1EventSetup().
|
private |
Definition at line 309 of file L1GtUtils.h.
Referenced by l1Results(), prescaleFactorSetIndex(), and retrieveL1EventSetup().
|
private |
Definition at line 354 of file L1GtUtils.h.
Referenced by l1Results(), prescaleFactorSetIndex(), and retrieveL1GtTriggerMenuLite().
|
private |
Definition at line 359 of file L1GtUtils.h.
Referenced by retrieveL1GtTriggerMenuLite().
|
private |
flags to check which method was used to retrieve L1 trigger configuration
Definition at line 373 of file L1GtUtils.h.
Referenced by availableL1Configuration(), l1AlgoTechTrigBitNumber(), l1TriggerMenu(), l1TriggerMenuImplementation(), ptrL1TriggerMenuEventSetup(), and retrieveL1EventSetup().
|
private |
Definition at line 374 of file L1GtUtils.h.
Referenced by availableL1Configuration(), l1AlgoTechTrigBitNumber(), l1Results(), l1TriggerMenu(), l1TriggerMenuImplementation(), prescaleFactorSet(), prescaleFactorSetIndex(), ptrL1GtTriggerMenuLite(), retrieveL1GtTriggerMenuLite(), triggerMask(), and triggerMaskSet().
|
private |
Definition at line 356 of file L1GtUtils.h.
Referenced by retrieveL1GtTriggerMenuLite().
|
private |
Definition at line 336 of file L1GtUtils.h.
Referenced by l1AlgoTechTrigBitNumber(), and retrieveL1EventSetup().
|
private |
Definition at line 348 of file L1GtUtils.h.
Referenced by l1AlgoTechTrigBitNumber(), and retrieveL1GtTriggerMenuLite().
|
private |
Definition at line 324 of file L1GtUtils.h.
Referenced by l1Results(), retrieveL1EventSetup(), triggerMask(), and triggerMaskSet().
|
private |
Definition at line 350 of file L1GtUtils.h.
Referenced by l1Results(), retrieveL1GtTriggerMenuLite(), triggerMask(), and triggerMaskSet().
|
private |
Definition at line 369 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup(), and triggerMaskSet().
|
private |
Definition at line 325 of file L1GtUtils.h.
Referenced by l1Results(), retrieveL1EventSetup(), triggerMask(), and triggerMaskSet().
|
private |
Definition at line 351 of file L1GtUtils.h.
Referenced by l1Results(), retrieveL1GtTriggerMenuLite(), triggerMask(), and triggerMaskSet().
|
private |
Definition at line 327 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
Definition at line 328 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().