#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 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) | |
L1GtUtils (edm::ParameterSet const &pset, edm::ConsumesCollector &iC, bool useL1GtTriggerMenuLite) | |
template<typename T > | |
L1GtUtils (edm::ParameterSet const &pset, edm::ConsumesCollector &&iC, bool useL1GtTriggerMenuLite, T &module) | |
template<typename T > | |
L1GtUtils (edm::ParameterSet const &pset, edm::ConsumesCollector &iC, bool useL1GtTriggerMenuLite, T &module) | |
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) | |
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) | |
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 &) |
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 () | |
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 48 of file L1GtUtils.h.
Enumerator | |
---|---|
AlgorithmTrigger | |
TechnicalTrigger |
Definition at line 111 of file L1GtUtils.h.
L1GtUtils::L1GtUtils | ( | edm::ParameterSet const & | pset, |
edm::ConsumesCollector && | iC, | ||
bool | useL1GtTriggerMenuLite | ||
) |
Definition at line 81 of file L1GtUtils.cc.
L1GtUtils::L1GtUtils | ( | edm::ParameterSet const & | pset, |
edm::ConsumesCollector & | iC, | ||
bool | useL1GtTriggerMenuLite | ||
) |
Definition at line 86 of file L1GtUtils.cc.
References m_l1GtUtilsHelper.
L1GtUtils::L1GtUtils | ( | edm::ParameterSet const & | pset, |
edm::ConsumesCollector && | iC, | ||
bool | useL1GtTriggerMenuLite, | ||
T & | module | ||
) |
Definition at line 473 of file L1GtUtils.h.
L1GtUtils::L1GtUtils | ( | edm::ParameterSet const & | pset, |
edm::ConsumesCollector & | iC, | ||
bool | useL1GtTriggerMenuLite, | ||
T & | module | ||
) |
Definition at line 480 of file L1GtUtils.h.
References m_l1GtUtilsHelper.
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 | ||
) |
Definition at line 492 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 | ||
) |
Definition at line 503 of file L1GtUtils.h.
References m_l1GtUtilsHelper.
|
virtual |
|
private |
Definition at line 48 of file L1GtUtils.cc.
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 1948 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 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 1208 of file L1GtUtils.cc.
References decisionAfterMask(), decisionBeforeMask(), l1Results(), prescaleFactor(), and triggerMask().
Referenced by IsolatedTracksNxN::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 1193 of file L1GtUtils.cc.
References decisionBeforeMask(), l1Results(), prescaleFactor(), and triggerMask().
Referenced by HLTSeedL1LogicScalers::analyzeL1GtUtils(), L1GtAnalyzer::analyzeL1GtUtilsCore(), L1GtAnalyzer::analyzeTrigger(), decision(), decisionBeforeMask(), 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 1178 of file L1GtUtils.cc.
References decisionAfterMask(), l1Results(), prescaleFactor(), and triggerMask().
Referenced by HLTSeedL1LogicScalers::analyzeL1GtUtils(), L1GtAnalyzer::analyzeL1GtUtilsCore(), L1GtAnalyzer::analyzeTrigger(), decision(), decisionAfterMask(), l1Results(), prescaleFactor(), and triggerMask().
|
inlinestatic |
Definition at line 105 of file L1GtUtils.h.
References L1GtUtilsHelper::fillDescription().
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 319 of file L1GtUtils.cc.
References m_beginRunCache, retrieveL1EventSetup(), and retrieveL1GtTriggerMenuLite().
Referenced by IsolatedTracksNxN::analyze(), L1GtAnalyzer::analyzeL1GtUtils(), L1GtAnalyzer::analyzeL1GtUtilsEventSetup(), L1GtAnalyzer::analyzeL1GtUtilsMenuLite(), L1GtAnalyzer::analyzeTrigger(), L1GtAnalyzer::beginRun(), HLTPrescaleProvider::init(), HLTPrescaleProvider::prescaleSet(), HLTPrescaleProvider::prescaleValues(), and HLTPrescaleProvider::prescaleValuesInDetail().
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 343 of file L1GtUtils.cc.
References edm::Event::getRun(), edm::RunAuxiliary::id(), m_beginRunCache, m_runIDCache, retrieveL1EventSetup(), retrieveL1GtTriggerMenuLite(), and edm::Run::runAuxiliary().
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 376 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 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 713 of file L1GtUtils.cc.
References AlgorithmTrigger, availableL1Configuration(), decisionBeforeMask(), edm::Event::getByToken(), L1GtTriggerMenuLite::gtTriggerMenuImplementation(), L1GtTriggerMenu::gtTriggerMenuImplementation(), 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, TechnicalTrigger, triggerCategory(), 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 1833 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 1858 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 503 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 std::string & | nameAlgoTechTrig, | ||
int & | errorCode | ||
) | const |
return prescale factor for a given algorithm or technical trigger
Definition at line 1223 of file L1GtUtils.cc.
References decisionAfterMask(), decisionBeforeMask(), l1Results(), and triggerMask().
Referenced by HLTInfo::analyze(), IsolatedTracksNxN::analyze(), L1GtAnalyzer::analyzeL1GtUtilsCore(), L1GtAnalyzer::analyzeTrigger(), decision(), decisionAfterMask(), decisionBeforeMask(), HLTPrescaleProvider::prescaleValues(), 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 1662 of file L1GtUtils.cc.
References AlgorithmTrigger, 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 1458 of file L1GtUtils.cc.
References AlgorithmTrigger, availableL1Configuration(), edm::Event::getByToken(), 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 HLTPrescaleProvider::prescaleSet().
const L1GtTriggerMenuLite * L1GtUtils::ptrL1GtTriggerMenuLite | ( | int & | errorCode | ) |
return a pointer to the L1GtTriggerMenuLite product
Definition at line 1911 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 1883 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 121 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 HLTSeedL1LogicScalers::analyze(), L1TRate::bookHistograms(), L1TRate_Offline::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 279 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 100 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 1238 of file L1GtUtils.cc.
References decisionAfterMask(), decisionBeforeMask(), l1Results(), and prescaleFactor().
Referenced by L1GtAnalyzer::analyzeL1GtUtilsCore(), L1GtAnalyzer::analyzeTrigger(), decision(), decisionAfterMask(), decisionBeforeMask(), L1TMenuHelper::getLUSOTrigger(), 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 1253 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 1734 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 2052 of file L1GtUtils.cc.
References LogDebug, and triggerCategory().
Referenced by l1Results().
|
staticprivate |
Definition at line 368 of file L1GtUtils.h.
Referenced by l1TriggerMenu(), l1TriggerMenuImplementation(), and triggerCategory().
|
staticprivate |
Definition at line 369 of file L1GtUtils.h.
Referenced by availableL1Configuration().
|
private |
Definition at line 428 of file L1GtUtils.h.
Referenced by l1AlgoTechTrigBitNumber(), l1TriggerNameFromBit(), and retrieveL1EventSetup().
|
private |
Definition at line 440 of file L1GtUtils.h.
Referenced by l1AlgoTechTrigBitNumber(), l1TriggerNameFromBit(), and retrieveL1GtTriggerMenuLite().
|
private |
Definition at line 427 of file L1GtUtils.h.
Referenced by l1AlgoTechTrigBitNumber(), and retrieveL1EventSetup().
|
private |
Definition at line 439 of file L1GtUtils.h.
Referenced by l1AlgoTechTrigBitNumber(), l1TriggerNameFromBit(), and retrieveL1GtTriggerMenuLite().
|
private |
flag for call of getL1GtRunCache in beginRun
Definition at line 452 of file L1GtUtils.h.
Referenced by getL1GtRunCache().
|
private |
Definition at line 431 of file L1GtUtils.h.
Referenced by availableL1Configuration(), and retrieveL1EventSetup().
|
private |
Definition at line 424 of file L1GtUtils.h.
Referenced by l1Results(), l1TriggerMenu(), l1TriggerMenuImplementation(), ptrL1TriggerMenuEventSetup(), retrieveL1EventSetup(), and triggerMask().
|
private |
Definition at line 425 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
L1GtTriggerMenuLite cached stuff.
Definition at line 437 of file L1GtUtils.h.
Referenced by l1Results(), l1TriggerMenu(), l1TriggerMenuImplementation(), ptrL1GtTriggerMenuLite(), retrieveL1GtTriggerMenuLite(), and triggerMask().
|
private |
Definition at line 449 of file L1GtUtils.h.
Referenced by availableL1Configuration(), l1AlgoTechTrigBitNumber(), l1Results(), l1TriggerMenu(), l1TriggerMenuImplementation(), l1TriggerNameFromBit(), prescaleFactorSet(), prescaleFactorSetIndex(), ptrL1GtTriggerMenuLite(), retrieveL1GtTriggerMenuLite(), triggerMask(), and triggerMaskSet().
|
private |
|
private |
Definition at line 396 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
Definition at line 398 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
Definition at line 399 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
event setup cached stuff
stable parameters
Definition at line 385 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
Definition at line 386 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
trigger masks & veto masks
Definition at line 405 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
Definition at line 406 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
Definition at line 408 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
Definition at line 409 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
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 469 of file L1GtUtils.h.
Referenced by L1GtUtils(), l1Results(), prescaleFactorSetIndex(), and retrieveL1GtTriggerMenuLite().
|
private |
number of algorithm triggers
Definition at line 389 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
number of technical triggers
Definition at line 392 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
index of physics DAQ partition
Definition at line 460 of file L1GtUtils.h.
Referenced by l1Results(), triggerMask(), and triggerMaskSet().
|
private |
Definition at line 401 of file L1GtUtils.h.
Referenced by l1Results(), prescaleFactorSetIndex(), and retrieveL1EventSetup().
|
private |
Definition at line 446 of file L1GtUtils.h.
Referenced by l1Results(), prescaleFactorSetIndex(), and retrieveL1GtTriggerMenuLite().
|
private |
Definition at line 463 of file L1GtUtils.h.
Referenced by prescaleFactorSet(), and retrieveL1EventSetup().
|
private |
Definition at line 402 of file L1GtUtils.h.
Referenced by l1Results(), prescaleFactorSetIndex(), and retrieveL1EventSetup().
|
private |
Definition at line 447 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 466 of file L1GtUtils.h.
Referenced by availableL1Configuration(), l1AlgoTechTrigBitNumber(), l1TriggerMenu(), l1TriggerMenuImplementation(), l1TriggerNameFromBit(), ptrL1TriggerMenuEventSetup(), and retrieveL1EventSetup().
|
private |
Definition at line 467 of file L1GtUtils.h.
Referenced by availableL1Configuration(), l1AlgoTechTrigBitNumber(), l1Results(), l1TriggerMenu(), l1TriggerMenuImplementation(), l1TriggerNameFromBit(), prescaleFactorSet(), prescaleFactorSetIndex(), ptrL1GtTriggerMenuLite(), retrieveL1GtTriggerMenuLite(), triggerMask(), and triggerMaskSet().
|
private |
|
private |
Definition at line 429 of file L1GtUtils.h.
Referenced by l1AlgoTechTrigBitNumber(), l1TriggerNameFromBit(), and retrieveL1EventSetup().
|
private |
Definition at line 441 of file L1GtUtils.h.
Referenced by l1AlgoTechTrigBitNumber(), l1TriggerNameFromBit(), and retrieveL1GtTriggerMenuLite().
|
private |
Definition at line 417 of file L1GtUtils.h.
Referenced by l1Results(), retrieveL1EventSetup(), triggerMask(), and triggerMaskSet().
|
private |
Definition at line 443 of file L1GtUtils.h.
Referenced by l1Results(), retrieveL1GtTriggerMenuLite(), triggerMask(), and triggerMaskSet().
|
private |
Definition at line 462 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup(), and triggerMaskSet().
|
private |
Definition at line 418 of file L1GtUtils.h.
Referenced by l1Results(), retrieveL1EventSetup(), triggerMask(), and triggerMaskSet().
|
private |
Definition at line 444 of file L1GtUtils.h.
Referenced by l1Results(), retrieveL1GtTriggerMenuLite(), triggerMask(), and triggerMaskSet().
|
private |
Definition at line 420 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().
|
private |
Definition at line 421 of file L1GtUtils.h.
Referenced by retrieveL1EventSetup().