#include <L1GtUtils.h>
Classes | |
class | LogicalExpressionL1Results |
Public Types | |
enum | TriggerCategory { AlgorithmTrigger = 0, TechnicalTrigger = 1 } |
enum | UseEventSetupIn { UseEventSetupIn::Run, UseEventSetupIn::Event, UseEventSetupIn::RunAndEvent, UseEventSetupIn::Nothing } |
Public Member Functions | |
const bool | availableL1Configuration (int &errorCode, int &l1ConfCode) const |
const bool | decision (const edm::Event &iEvent, const std::string &nameAlgoTechTrig, int &errorCode) const |
const bool | decisionAfterMask (const edm::Event &iEvent, const std::string &nameAlgoTechTrig, int &errorCode) const |
return decision after trigger mask for a given algorithm or technical trigger More... | |
const bool | decisionBeforeMask (const edm::Event &iEvent, const std::string &nameAlgoTechTrig, int &errorCode) const |
return decision before trigger mask for a given algorithm or technical trigger More... | |
void | getL1GtRunCache (const edm::Run &, const edm::EventSetup &, const bool, const bool) |
get all the run-constant quantities for L1 trigger and cache them More... | |
void | getL1GtRunCache (const edm::Event &, const edm::EventSetup &, const bool, const bool) |
for use in analyze(const edm::Event&, const edm::EventSetup&) More... | |
const bool | l1AlgoTechTrigBitNumber (const std::string &nameAlgoTechTrig, TriggerCategory &trigCategory, int &bitNumber) const |
L1GtUtils (edm::ParameterSet const &pset, edm::ConsumesCollector &&iC, bool useL1GtTriggerMenuLite, UseEventSetupIn use=UseEventSetupIn::Run) | |
L1GtUtils (edm::ParameterSet const &pset, edm::ConsumesCollector &iC, bool useL1GtTriggerMenuLite, UseEventSetupIn use=UseEventSetupIn::Run) | |
template<typename T > | |
L1GtUtils (edm::ParameterSet const &pset, edm::ConsumesCollector &&iC, bool useL1GtTriggerMenuLite, T &module, UseEventSetupIn use=UseEventSetupIn::Run) | |
template<typename T > | |
L1GtUtils (edm::ParameterSet const &pset, edm::ConsumesCollector &iC, bool useL1GtTriggerMenuLite, T &module, UseEventSetupIn use=UseEventSetupIn::Run) | |
template<typename T > | |
L1GtUtils (edm::ParameterSet const &pset, edm::ConsumesCollector &&iC, bool useL1GtTriggerMenuLite, T &module, edm::InputTag const &l1GtRecordInputTag, edm::InputTag const &l1GtReadoutRecordInputTag, edm::InputTag const &l1GtTriggerMenuLiteInputTag, UseEventSetupIn use=UseEventSetupIn::Run) | |
template<typename T > | |
L1GtUtils (edm::ParameterSet const &pset, edm::ConsumesCollector &iC, bool useL1GtTriggerMenuLite, T &module, edm::InputTag const &l1GtRecordInputTag, edm::InputTag const &l1GtReadoutRecordInputTag, edm::InputTag const &l1GtTriggerMenuLiteInputTag, UseEventSetupIn use=UseEventSetupIn::Run) | |
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 std::string &nameAlgoTechTrig, int &errorCode) const |
return prescale factor for a given algorithm or technical trigger More... | |
const std::vector< int > & | prescaleFactorSet (const edm::Event &iEvent, const TriggerCategory &trigCategory, int &errorCode) |
const int | prescaleFactorSetIndex (const edm::Event &iEvent, const TriggerCategory &trigCategory, 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 &, bool isRun=true) |
retrieve all the relevant L1 trigger event setup records and cache them to improve the speed More... | |
void | retrieveL1GtTriggerMenuLite (const edm::Run &) |
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 std::string &nameAlgoTechTrig, int &errorCode) const |
return trigger mask for a given algorithm or technical trigger More... | |
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... | |
Static Public Member Functions | |
static void | fillDescription (edm::ParameterSetDescription &desc) |
Private Member Functions | |
L1GtUtils (edm::ConsumesCollector &, UseEventSetupIn) | |
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 66 of file L1GtUtils.h.
Enumerator | |
---|---|
AlgorithmTrigger | |
TechnicalTrigger |
Definition at line 140 of file L1GtUtils.h.
|
strong |
L1GtUtils::L1GtUtils | ( | edm::ParameterSet const & | pset, |
edm::ConsumesCollector && | iC, | ||
bool | useL1GtTriggerMenuLite, | ||
UseEventSetupIn | use = UseEventSetupIn::Run |
||
) |
Definition at line 93 of file L1GtUtils.cc.
L1GtUtils::L1GtUtils | ( | edm::ParameterSet const & | pset, |
edm::ConsumesCollector & | iC, | ||
bool | useL1GtTriggerMenuLite, | ||
UseEventSetupIn | use = UseEventSetupIn::Run |
||
) |
Definition at line 99 of file L1GtUtils.cc.
References m_l1GtUtilsHelper, muonDTDigis_cfi::pset, and useL1GtTriggerMenuLite().
L1GtUtils::L1GtUtils | ( | edm::ParameterSet const & | pset, |
edm::ConsumesCollector && | iC, | ||
bool | useL1GtTriggerMenuLite, | ||
T & | module, | ||
UseEventSetupIn | use = UseEventSetupIn::Run |
||
) |
Definition at line 497 of file L1GtUtils.h.
L1GtUtils::L1GtUtils | ( | edm::ParameterSet const & | pset, |
edm::ConsumesCollector & | iC, | ||
bool | useL1GtTriggerMenuLite, | ||
T & | module, | ||
UseEventSetupIn | use = UseEventSetupIn::Run |
||
) |
Definition at line 505 of file L1GtUtils.h.
References m_l1GtUtilsHelper, callgraph::module, muonDTDigis_cfi::pset, and useL1GtTriggerMenuLite().
L1GtUtils::L1GtUtils | ( | edm::ParameterSet const & | pset, |
edm::ConsumesCollector && | iC, | ||
bool | useL1GtTriggerMenuLite, | ||
T & | module, | ||
edm::InputTag const & | l1GtRecordInputTag, | ||
edm::InputTag const & | l1GtReadoutRecordInputTag, | ||
edm::InputTag const & | l1GtTriggerMenuLiteInputTag, | ||
UseEventSetupIn | use = UseEventSetupIn::Run |
||
) |
Definition at line 515 of file L1GtUtils.h.
L1GtUtils::L1GtUtils | ( | edm::ParameterSet const & | pset, |
edm::ConsumesCollector & | iC, | ||
bool | useL1GtTriggerMenuLite, | ||
T & | module, | ||
edm::InputTag const & | l1GtRecordInputTag, | ||
edm::InputTag const & | l1GtReadoutRecordInputTag, | ||
edm::InputTag const & | l1GtTriggerMenuLiteInputTag, | ||
UseEventSetupIn | use = UseEventSetupIn::Run |
||
) |
Definition at line 533 of file L1GtUtils.h.
References WElectronSkim_cff::l1GtReadoutRecordInputTag, WElectronSkim_cff::l1GtRecordInputTag, l1MenuTree_cfi::l1GtTriggerMenuLiteInputTag, m_l1GtUtilsHelper, callgraph::module, muonDTDigis_cfi::pset, and useL1GtTriggerMenuLite().
|
virtual |
|
private |
Definition at line 30 of file L1GtUtils.cc.
References edm::BeginRun, edm::ConsumesCollector::esConsumes(), Event, m_L1GtPrescaleFactorsAlgoTrigEventToken, m_L1GtPrescaleFactorsAlgoTrigRunToken, m_L1GtPrescaleFactorsTechTrigEventToken, m_L1GtPrescaleFactorsTechTrigRunToken, m_L1GtStableParametersEventToken, m_L1GtStableParametersRunToken, m_L1GtTriggerMaskAlgoTrigEventToken, m_L1GtTriggerMaskAlgoTrigRunToken, m_L1GtTriggerMaskTechTrigEventToken, m_L1GtTriggerMaskTechTrigRunToken, m_L1GtTriggerMaskVetoAlgoTrigEventToken, m_L1GtTriggerMaskVetoAlgoTrigRunToken, m_L1GtTriggerMaskVetoTechTrigEventToken, m_L1GtTriggerMaskVetoTechTrigRunToken, m_L1GtTriggerMenuEventToken, m_L1GtTriggerMenuRunToken, Run, and RunAndEvent.
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 1679 of file L1GtUtils.cc.
References L1GtNotValidError, LogDebug, m_l1EventSetupValid, m_l1GtMenuLiteValid, m_retrieveL1EventSetup, and m_retrieveL1GtTriggerMenuLite.
Referenced by IsoTrackCalib::analyze(), L1GtAnalyzer::analyzeL1GtUtilsCore(), L1GtAnalyzer::analyzeTrigger(), l1Results(), prescaleFactorSetIndex(), ptrL1GtTriggerMenuLite(), ptrL1TriggerMenuEventSetup(), triggerMask(), and triggerMaskSet().
const bool L1GtUtils::decision | ( | const edm::Event & | iEvent, |
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 1066 of file L1GtUtils.cc.
References decisionAfterMask(), decisionBeforeMask(), iEvent, l1Results(), prescaleFactor(), and triggerMask().
Referenced by IsoTrackCalib::analyze(), L1GtAnalyzer::analyzeL1GtUtilsCore(), L1GtAnalyzer::analyzeTrigger(), and PrescaleWeightProvider::prescaleWeight().
const bool L1GtUtils::decisionAfterMask | ( | const edm::Event & | iEvent, |
const std::string & | nameAlgoTechTrig, | ||
int & | errorCode | ||
) | const |
return decision after trigger mask for a given algorithm or technical trigger
Definition at line 1052 of file L1GtUtils.cc.
References decisionBeforeMask(), iEvent, l1Results(), prescaleFactor(), and triggerMask().
Referenced by L1GtAnalyzer::analyzeL1GtUtilsCore(), L1GtAnalyzer::analyzeTrigger(), decision(), decisionBeforeMask(), l1Results(), prescaleFactor(), and triggerMask().
const bool L1GtUtils::decisionBeforeMask | ( | const edm::Event & | iEvent, |
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 algorithm trigger name or alias, or technical trigger name output (by reference): error code return: the corresponding quantity
Definition at line 1038 of file L1GtUtils.cc.
References decisionAfterMask(), iEvent, l1Results(), prescaleFactor(), and triggerMask().
Referenced by L1GtAnalyzer::analyzeL1GtUtilsCore(), L1GtAnalyzer::analyzeTrigger(), decision(), decisionAfterMask(), l1Results(), prescaleFactor(), and triggerMask().
|
inlinestatic |
Definition at line 137 of file L1GtUtils.h.
References submitPVResolutionJobs::desc, and L1GtUtilsHelper::fillDescription().
Referenced by HLTPrescaleProvider::fillPSetDescription().
void L1GtUtils::getL1GtRunCache | ( | const edm::Run & | iRun, |
const edm::EventSetup & | evSetup, | ||
const bool | useL1EventSetup, | ||
const bool | useL1GtTriggerMenuLite | ||
) |
get all the run-constant quantities for L1 trigger and cache them
for use in beginRun(const edm::Run&, const edm::EventSetup&);
Definition at line 314 of file L1GtUtils.cc.
References m_beginRunCache, retrieveL1EventSetup(), retrieveL1GtTriggerMenuLite(), useL1EventSetup(), and useL1GtTriggerMenuLite().
Referenced by IsoTrackCalib::analyze(), L1GtAnalyzer::analyzeL1GtUtils(), L1GtAnalyzer::analyzeL1GtUtilsEventSetup(), L1GtAnalyzer::analyzeL1GtUtilsMenuLite(), L1GtAnalyzer::analyzeTrigger(), and L1GtAnalyzer::beginRun().
void L1GtUtils::getL1GtRunCache | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | evSetup, | ||
const bool | useL1EventSetup, | ||
const bool | useL1GtTriggerMenuLite | ||
) |
for use in analyze(const edm::Event&, const edm::EventSetup&)
Definition at line 339 of file L1GtUtils.cc.
References edm::RunAuxiliary::id(), iEvent, m_beginRunCache, m_runIDCache, retrieveL1EventSetup(), retrieveL1GtTriggerMenuLite(), edm::Run::runAuxiliary(), useL1EventSetup(), and useL1GtTriggerMenuLite().
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 371 of file L1GtUtils.cc.
References AlgorithmTrigger, L1TBPTX_cfi::bitNumber, 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 std::string & | nameAlgoTechTrig, | ||
bool & | decisionBeforeMask, | ||
bool & | decisionAfterMask, | ||
int & | prescaleFactor, | ||
int & | triggerMask | ||
) | const |
return results for a given algorithm or technical trigger, 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 666 of file L1GtUtils.cc.
References AlgorithmTrigger, availableL1Configuration(), L1TBPTX_cfi::bitNumber, decisionAfterMask(), decisionBeforeMask(), L1GlobalTriggerReadoutRecord::decisionWord(), L1GlobalTriggerRecord::decisionWordBeforeMask(), L1GlobalTriggerReadoutRecord::gtFdlWord(), L1GlobalTriggerRecord::gtPrescaleFactorIndexAlgo(), L1GlobalTriggerRecord::gtPrescaleFactorIndexTech(), L1GtTriggerMenuLite::gtTriggerMenuImplementation(), L1GtTriggerMenu::gtTriggerMenuImplementation(), iEvent, edm::HandleBase::isValid(), l1AlgoTechTrigBitNumber(), LogDebug, m_l1GtMenu, m_l1GtMenuLite, m_l1GtMenuLiteValid, m_l1GtUtilsHelper, m_physicsDaqPartition, m_prescaleFactorsAlgoTrig, m_prescaleFactorsAlgoTrigLite, m_prescaleFactorsTechTrig, m_prescaleFactorsTechTrigLite, m_retrieveL1GtTriggerMenuLite, m_triggerMaskAlgoTrig, m_triggerMaskAlgoTrigLite, m_triggerMaskTechTrig, m_triggerMaskTechTrigLite, prescaleFactor(), TechnicalTrigger, L1GlobalTriggerReadoutRecord::technicalTriggerWord(), L1GlobalTriggerRecord::technicalTriggerWordBeforeMask(), triggerCategory(), triggerMask(), and trigResult().
Referenced by decision(), decisionAfterMask(), decisionBeforeMask(), L1GtUtils::LogicalExpressionL1Results::errorCodes(), prescaleFactor(), pat::PATTriggerProducer::produce(), and triggerMask().
const std::string & L1GtUtils::l1TriggerMenu | ( | ) | const |
return the L1 trigger menu name
Definition at line 1577 of file L1GtUtils.cc.
References EmptyString, L1GtTriggerMenuLite::gtTriggerMenuName(), L1GtTriggerMenu::gtTriggerMenuName(), m_l1GtMenu, m_l1GtMenuLite, m_l1GtMenuLiteValid, m_retrieveL1EventSetup, and m_retrieveL1GtTriggerMenuLite.
Referenced by L1MenuTreeProducer::analyze(), L1GtAnalyzer::analyzeL1GtUtilsCore(), L1GtAnalyzer::analyzeTrigger(), and L1Analysis::L1AnalysisL1Menu::SetPrescaleFactorIndex().
const std::string & L1GtUtils::l1TriggerMenuImplementation | ( | ) | const |
return the L1 trigger menu implementation
Definition at line 1598 of file L1GtUtils.cc.
References EmptyString, L1GtTriggerMenuLite::gtTriggerMenuImplementation(), L1GtTriggerMenu::gtTriggerMenuImplementation(), m_l1GtMenu, m_l1GtMenuLite, m_l1GtMenuLiteValid, m_retrieveL1EventSetup, and m_retrieveL1GtTriggerMenuLite.
Referenced by L1MenuTreeProducer::analyze(), 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 483 of file L1GtUtils.cc.
References MillePedeAlignmentAlgorithm_cfi::algoName, AlgorithmTrigger, L1TBPTX_cfi::bitNumber, 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 std::string & | nameAlgoTechTrig, | ||
int & | errorCode | ||
) | const |
return prescale factor for a given algorithm or technical trigger
Definition at line 1078 of file L1GtUtils.cc.
References decisionAfterMask(), decisionBeforeMask(), iEvent, l1Results(), and triggerMask().
Referenced by HLTInfo::analyze(), L1GtAnalyzer::analyzeL1GtUtilsCore(), L1GtAnalyzer::analyzeTrigger(), decision(), decisionAfterMask(), decisionBeforeMask(), l1Results(), PrescaleWeightProvider::prescaleWeight(), and triggerMask().
const std::vector< int > & L1GtUtils::prescaleFactorSet | ( | const edm::Event & | iEvent, |
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 1441 of file L1GtUtils.cc.
References AlgorithmTrigger, iEvent, m_l1GtMenuLiteValid, m_prescaleFactorSet, m_retrieveL1GtTriggerMenuLite, prescaleFactorSetIndex(), and TechnicalTrigger.
Referenced by L1GtAnalyzer::analyzeL1GtUtilsCore().
const int L1GtUtils::prescaleFactorSetIndex | ( | const edm::Event & | iEvent, |
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 1269 of file L1GtUtils.cc.
References AlgorithmTrigger, availableL1Configuration(), L1GlobalTriggerReadoutRecord::gtFdlWord(), L1GlobalTriggerRecord::gtPrescaleFactorIndexAlgo(), L1GlobalTriggerRecord::gtPrescaleFactorIndexTech(), iEvent, edm::HandleBase::isValid(), LogDebug, m_l1GtMenuLiteValid, m_l1GtUtilsHelper, m_prescaleFactorsAlgoTrig, m_prescaleFactorsAlgoTrigLite, m_prescaleFactorsTechTrig, m_prescaleFactorsTechTrigLite, m_retrieveL1GtTriggerMenuLite, and TechnicalTrigger.
Referenced by HLTInfo::analyze(), L1GtAnalyzer::analyzeL1GtUtilsCore(), prescaleFactorSet(), and L1Analysis::L1AnalysisL1Menu::SetPrescaleFactorIndex().
const L1GtTriggerMenuLite * L1GtUtils::ptrL1GtTriggerMenuLite | ( | int & | errorCode | ) |
return a pointer to the L1GtTriggerMenuLite product
Definition at line 1645 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 1619 of file L1GtUtils.cc.
References availableL1Configuration(), m_l1GtMenu, and m_retrieveL1EventSetup.
Referenced by IsoTrackCalib::beginRun().
void L1GtUtils::retrieveL1EventSetup | ( | const edm::EventSetup & | evSetup, |
bool | isRun = true |
||
) |
retrieve all the relevant L1 trigger event setup records and cache them to improve the speed
Definition at line 128 of file L1GtUtils.cc.
References edm::eventsetup::EventSetupRecord::cacheIdentifier(), 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_L1GtPrescaleFactorsAlgoTrigEventToken, m_L1GtPrescaleFactorsAlgoTrigRunToken, m_L1GtPrescaleFactorsTechTrigEventToken, m_L1GtPrescaleFactorsTechTrigRunToken, m_l1GtStablePar, m_L1GtStableParametersEventToken, m_L1GtStableParametersRunToken, m_l1GtStableParCacheID, m_l1GtTmAlgo, m_l1GtTmAlgoCacheID, m_l1GtTmTech, m_l1GtTmTechCacheID, m_l1GtTmVetoAlgo, m_l1GtTmVetoAlgoCacheID, m_l1GtTmVetoTech, m_l1GtTmVetoTechCacheID, m_L1GtTriggerMaskAlgoTrigEventToken, m_L1GtTriggerMaskAlgoTrigRunToken, m_L1GtTriggerMaskTechTrigEventToken, m_L1GtTriggerMaskTechTrigRunToken, m_L1GtTriggerMaskVetoAlgoTrigEventToken, m_L1GtTriggerMaskVetoAlgoTrigRunToken, m_L1GtTriggerMaskVetoTechTrigEventToken, m_L1GtTriggerMaskVetoTechTrigRunToken, m_L1GtTriggerMenuEventToken, m_L1GtTriggerMenuRunToken, m_numberAlgorithmTriggers, m_numberTechnicalTriggers, m_prescaleFactorsAlgoTrig, m_prescaleFactorSet, m_prescaleFactorsTechTrig, m_retrieveL1EventSetup, m_technicalTriggerMap, m_triggerMaskAlgoTrig, m_triggerMaskSet, m_triggerMaskTechTrig, m_triggerMaskVetoAlgoTrig, m_triggerMaskVetoTechTrig, and SiStripPI::max.
Referenced by L1MenuTreeProducer::analyze(), L1TRate_Offline::bookHistograms(), L1TRate::bookHistograms(), L1TSync::bookHistograms(), L1TSync_Offline::bookHistograms(), and getL1GtRunCache().
void L1GtUtils::retrieveL1GtTriggerMenuLite | ( | const edm::Run & | iRun | ) |
retrieve L1GtTriggerMenuLite (per run product) and cache it to improve the speed
for use in beginRun(const edm::Run&, const edm::EventSetup&);
Definition at line 281 of file L1GtUtils.cc.
References edm::Run::getByToken(), 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_l1GtUtilsHelper, 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 112 of file L1GtUtils.cc.
References AlgorithmTrigger, EmptyString, and TechnicalTrigger.
Referenced by l1Results(), triggerMask(), and trigResult().
const int L1GtUtils::triggerMask | ( | const edm::Event & | iEvent, |
const std::string & | nameAlgoTechTrig, | ||
int & | errorCode | ||
) | const |
return trigger mask for a given algorithm or technical trigger
Definition at line 1092 of file L1GtUtils.cc.
References decisionAfterMask(), decisionBeforeMask(), iEvent, l1Results(), and prescaleFactor().
Referenced by L1GtAnalyzer::analyzeL1GtUtilsCore(), L1GtAnalyzer::analyzeTrigger(), decision(), decisionAfterMask(), decisionBeforeMask(), L1TMenuHelper::getLUSOTrigger(), l1Results(), and prescaleFactor().
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 1104 of file L1GtUtils.cc.
References AlgorithmTrigger, availableL1Configuration(), L1TBPTX_cfi::bitNumber, 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 1497 of file L1GtUtils.cc.
References AlgorithmTrigger, availableL1Configuration(), mps_fire::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 1764 of file L1GtUtils.cc.
References L1TBPTX_cfi::bitNumber, LogDebug, and triggerCategory().
Referenced by l1Results().
|
staticprivate |
Definition at line 373 of file L1GtUtils.h.
Referenced by l1TriggerMenu(), l1TriggerMenuImplementation(), and triggerCategory().
|
staticprivate |
Definition at line 374 of file L1GtUtils.h.
Referenced by availableL1Configuration().
|
private |
Definition at line 434 of file L1GtUtils.h.
Referenced by l1AlgoTechTrigBitNumber(), l1TriggerNameFromBit(), and retrieveL1EventSetup().
|
private |
Definition at line 445 of file L1GtUtils.h.
Referenced by l1AlgoTechTrigBitNumber(), l1TriggerNameFromBit(), and retrieveL1GtTriggerMenuLite().
|
private |
Definition at line 433 of file L1GtUtils.h.
Referenced by l1AlgoTechTrigBitNumber(), and retrieveL1EventSetup().
|
private |
Definition at line 444 of file L1GtUtils.h.
Referenced by l1AlgoTechTrigBitNumber(), l1TriggerNameFromBit(), and retrieveL1GtTriggerMenuLite().
|
private |
flag for call of getL1GtRunCache in beginRun
Definition at line 457 of file L1GtUtils.h.
Referenced by getL1GtRunCache().
|
private |
Definition at line 437 of file L1GtUtils.h.
Referenced by availableL1Configuration(), and retrieveL1EventSetup().
|
private |
Definition at line 430 of file L1GtUtils.h.
Referenced by l1Results(), l1TriggerMenu(), l1TriggerMenuImplementation(), ptrL1TriggerMenuEventSetup(), retrieveL1EventSetup(), and triggerMask().
|
private |
Definition at line 431 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
L1GtTriggerMenuLite cached stuff.
Definition at line 442 of file L1GtUtils.h.
Referenced by l1Results(), l1TriggerMenu(), l1TriggerMenuImplementation(), ptrL1GtTriggerMenuLite(), retrieveL1GtTriggerMenuLite(), and triggerMask().
|
private |
Definition at line 454 of file L1GtUtils.h.
Referenced by availableL1Configuration(), l1AlgoTechTrigBitNumber(), l1Results(), l1TriggerMenu(), l1TriggerMenuImplementation(), l1TriggerNameFromBit(), prescaleFactorSet(), prescaleFactorSetIndex(), ptrL1GtTriggerMenuLite(), retrieveL1GtTriggerMenuLite(), triggerMask(), and triggerMaskSet().
|
private |
|
private |
Definition at line 402 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
Definition at line 404 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
Definition at line 405 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
Definition at line 487 of file L1GtUtils.h.
Referenced by L1GtUtils(), and retrieveL1EventSetup().
|
private |
Definition at line 477 of file L1GtUtils.h.
Referenced by L1GtUtils(), and retrieveL1EventSetup().
|
private |
Definition at line 488 of file L1GtUtils.h.
Referenced by L1GtUtils(), and retrieveL1EventSetup().
|
private |
Definition at line 478 of file L1GtUtils.h.
Referenced by L1GtUtils(), and retrieveL1EventSetup().
|
private |
event setup cached stuff
stable parameters
Definition at line 391 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
Definition at line 486 of file L1GtUtils.h.
Referenced by L1GtUtils(), and retrieveL1EventSetup().
|
private |
Definition at line 476 of file L1GtUtils.h.
Referenced by L1GtUtils(), and retrieveL1EventSetup().
|
private |
Definition at line 392 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
trigger masks & veto masks
Definition at line 411 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
Definition at line 412 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
Definition at line 414 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
Definition at line 415 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
Definition at line 417 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
Definition at line 418 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
Definition at line 420 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
Definition at line 421 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
Definition at line 489 of file L1GtUtils.h.
Referenced by L1GtUtils(), and retrieveL1EventSetup().
|
private |
Definition at line 479 of file L1GtUtils.h.
Referenced by L1GtUtils(), and retrieveL1EventSetup().
|
private |
Definition at line 490 of file L1GtUtils.h.
Referenced by L1GtUtils(), and retrieveL1EventSetup().
|
private |
Definition at line 480 of file L1GtUtils.h.
Referenced by L1GtUtils(), and retrieveL1EventSetup().
|
private |
Definition at line 491 of file L1GtUtils.h.
Referenced by L1GtUtils(), and retrieveL1EventSetup().
|
private |
Definition at line 481 of file L1GtUtils.h.
Referenced by L1GtUtils(), and retrieveL1EventSetup().
|
private |
Definition at line 492 of file L1GtUtils.h.
Referenced by L1GtUtils(), and retrieveL1EventSetup().
|
private |
Definition at line 482 of file L1GtUtils.h.
Referenced by L1GtUtils(), and retrieveL1EventSetup().
|
private |
Definition at line 493 of file L1GtUtils.h.
Referenced by L1GtUtils(), and retrieveL1EventSetup().
|
private |
Definition at line 483 of file L1GtUtils.h.
Referenced by L1GtUtils(), and retrieveL1EventSetup().
|
private |
Definition at line 473 of file L1GtUtils.h.
Referenced by L1GtUtils(), l1Results(), prescaleFactorSetIndex(), and retrieveL1GtTriggerMenuLite().
|
private |
number of algorithm triggers
Definition at line 395 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
number of technical triggers
Definition at line 398 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
index of physics DAQ partition
Definition at line 464 of file L1GtUtils.h.
Referenced by l1Results(), triggerMask(), and triggerMaskSet().
|
private |
Definition at line 407 of file L1GtUtils.h.
Referenced by l1Results(), prescaleFactorSetIndex(), and retrieveL1EventSetup().
|
private |
Definition at line 451 of file L1GtUtils.h.
Referenced by l1Results(), prescaleFactorSetIndex(), and retrieveL1GtTriggerMenuLite().
|
private |
Definition at line 467 of file L1GtUtils.h.
Referenced by prescaleFactorSet(), and retrieveL1EventSetup().
|
private |
Definition at line 408 of file L1GtUtils.h.
Referenced by l1Results(), prescaleFactorSetIndex(), and retrieveL1EventSetup().
|
private |
Definition at line 452 of file L1GtUtils.h.
Referenced by l1Results(), prescaleFactorSetIndex(), and retrieveL1GtTriggerMenuLite().
|
private |
flags to check which method was used to retrieve L1 trigger configuration
Definition at line 470 of file L1GtUtils.h.
Referenced by availableL1Configuration(), l1AlgoTechTrigBitNumber(), l1TriggerMenu(), l1TriggerMenuImplementation(), l1TriggerNameFromBit(), ptrL1TriggerMenuEventSetup(), and retrieveL1EventSetup().
|
private |
Definition at line 471 of file L1GtUtils.h.
Referenced by availableL1Configuration(), l1AlgoTechTrigBitNumber(), l1Results(), l1TriggerMenu(), l1TriggerMenuImplementation(), l1TriggerNameFromBit(), prescaleFactorSet(), prescaleFactorSetIndex(), ptrL1GtTriggerMenuLite(), retrieveL1GtTriggerMenuLite(), triggerMask(), and triggerMaskSet().
|
private |
|
private |
Definition at line 435 of file L1GtUtils.h.
Referenced by l1AlgoTechTrigBitNumber(), l1TriggerNameFromBit(), and retrieveL1EventSetup().
|
private |
Definition at line 446 of file L1GtUtils.h.
Referenced by l1AlgoTechTrigBitNumber(), l1TriggerNameFromBit(), and retrieveL1GtTriggerMenuLite().
|
private |
Definition at line 423 of file L1GtUtils.h.
Referenced by l1Results(), retrieveL1EventSetup(), triggerMask(), and triggerMaskSet().
|
private |
Definition at line 448 of file L1GtUtils.h.
Referenced by l1Results(), retrieveL1GtTriggerMenuLite(), triggerMask(), and triggerMaskSet().
|
private |
Definition at line 466 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup(), and triggerMaskSet().
|
private |
Definition at line 424 of file L1GtUtils.h.
Referenced by l1Results(), retrieveL1EventSetup(), triggerMask(), and triggerMaskSet().
|
private |
Definition at line 449 of file L1GtUtils.h.
Referenced by l1Results(), retrieveL1GtTriggerMenuLite(), triggerMask(), and triggerMaskSet().
|
private |
Definition at line 426 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
Definition at line 427 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().