Provides a code based selection for trigger and DCS information in order to have no failing filters in the CMSSW path. More...
#include "CommonTools/TriggerUtils/interface/GenericTriggerEventFlag.h"
Static Public Member Functions | |
static void | fillPSetDescription (edm::ParameterSetDescription &desc) |
Private Member Functions | |
bool | acceptDcs (const edm::Event &event) |
bool | acceptDcsPartition (const edm::Handle< DcsStatusCollection > &dcsStatus, const edm::Handle< DCSRecord > &dcsRecord, bool useDCSRecord, int dcsPartition) const |
bool | acceptGt (const edm::Event &event) |
Does this event fulfill the configured GT status logical expression combination? More... | |
bool | acceptGtLogicalExpression (const edm::Event &event, std::string gtLogicalExpression) |
Does this event fulfill this particular GT status bits' logical expression? More... | |
bool | acceptHlt (const edm::Event &event) |
Was this event accepted by the configured HLT logical expression combination? More... | |
bool | acceptHltLogicalExpression (const edm::Handle< edm::TriggerResults > &hltTriggerResults, std::string hltLogicalExpression) const |
Was this event accepted by this particular HLT paths' logical expression? More... | |
bool | acceptL1 (const edm::Event &event, const edm::EventSetup &setup) |
Was this event accepted by the configured L1 logical expression combination? More... | |
bool | acceptL1LogicalExpression (const edm::Event &event, const edm::EventSetup &setup, std::string l1LogicalExpression) |
Was this event accepted by this particular L1 algorithms' logical expression? More... | |
std::string | expandLogicalExpression (const std::vector< std::string > &target, const std::string &expr, bool useAnd=false) const |
Expand wild-carded logical expressions, giving version postfixes priority. More... | |
GenericTriggerEventFlag (const edm::ParameterSet &config, edm::ConsumesCollector &iC, bool stage1Valid) | |
To be called from the ED module's c'tor. More... | |
bool | negate (std::string &word) const |
Checks for negated words. More... | |
Provides a code based selection for trigger and DCS information in order to have no failing filters in the CMSSW path.
[...]
Definition at line 44 of file GenericTriggerEventFlag.h.
|
inline |
Definition at line 117 of file GenericTriggerEventFlag.h.
GenericTriggerEventFlag::GenericTriggerEventFlag | ( | const edm::ParameterSet & | config, |
edm::ConsumesCollector & | iC, | ||
l1t::UseEventSetupIn | use = l1t::UseEventSetupIn::RunAndEvent |
||
) |
Definition at line 20 of file GenericTriggerEventFlag.cc.
References submitPVResolutionJobs::config, l1uGt_, and stage2_.
GenericTriggerEventFlag::GenericTriggerEventFlag | ( | const edm::ParameterSet & | config, |
edm::ConsumesCollector && | iC, | ||
T & | module, | ||
l1t::UseEventSetupIn | use = l1t::UseEventSetupIn::RunAndEvent |
||
) |
Definition at line 192 of file GenericTriggerEventFlag.h.
GenericTriggerEventFlag::GenericTriggerEventFlag | ( | const edm::ParameterSet & | config, |
edm::ConsumesCollector & | iC, | ||
T & | module, | ||
l1t::UseEventSetupIn | use = l1t::UseEventSetupIn::RunAndEvent |
||
) |
Definition at line 199 of file GenericTriggerEventFlag.h.
References submitPVResolutionJobs::config, l1t::Event, L1GtUtils::Event, l1Gt_, l1uGt_, callgraph::module, on_, L1GtUtils::Run, l1t::RunAndEvent, L1GtUtils::RunAndEvent, and stage2_.
|
private |
To be called from the ED module's c'tor.
Definition at line 32 of file GenericTriggerEventFlag.cc.
References alCaRecoTriggerBitsToken_, andOr_, andOrDcs_, andOrGt_, andOrHlt_, andOrL1_, edm::BeginRun, dbLabel_, dcsInputTag_, dcsInputToken_, dcsPartitions_, dcsRecordInputTag_, dcsRecordToken_, errorReplyDcs_, errorReplyGt_, errorReplyHlt_, errorReplyL1_, edm::ConsumesCollector::esConsumes(), Exception, gtDBKey_, gtEvmInputTag_, gtEvmInputToken_, gtInputTag_, gtInputToken_, gtLogicalExpressions_, hltDBKey_, hltInputTag_, hltInputToken_, hltLogicalExpressionsCache_, l1BeforeMask_, l1DBKey_, l1GtTriggerMenuToken_, l1LogicalExpressionsCache_, edm::ConsumesCollector::mayConsume(), on_, onDcs_, onGt_, onHlt_, onL1_, stage2_, AlCaHLTBitMon_QueryRunRegistry::string, verbose_, and watchDB_.
bool GenericTriggerEventFlag::accept | ( | const edm::Event & | event, |
const edm::EventSetup & | setup | ||
) |
To be called from analyze/filter() methods.
Definition at line 268 of file GenericTriggerEventFlag.cc.
References acceptDcs(), acceptGt(), acceptHlt(), acceptL1(), andOr_, on_, and singleTopDQM_cfi::setup.
Referenced by dEdxAnalyzer::analyze(), dEdxHitAnalyzer::analyze(), SiStripMonitorCluster::analyze(), LogMessageMonitor::analyze(), V0Monitor::analyze(), SiStripMonitorTrack::analyze(), TrackingMonitor::analyze(), and esMonitoring.FDJsonServer::handle_accept().
|
private |
Definition at line 278 of file GenericTriggerEventFlag.cc.
References acceptDcsPartition(), andOr_, andOrDcs_, dcsInputTag_, dcsInputToken_, dcsPartitions_, DQMOffline_cff::dcsRecord, dcsRecordInputTag_, dcsRecordToken_, edm::InputTag::encode(), errorReplyDcs_, edm::HandleBase::isValid(), onDcs_, and verbose_.
Referenced by accept().
|
private |
Definition at line 343 of file GenericTriggerEventFlag.cc.
References DCSRecord::BPIX, DcsStatus::BPIX, DCSRecord::CASTOR, DcsStatus::CASTOR, DCSRecord::CSCm, DcsStatus::CSCm, DCSRecord::CSCp, DcsStatus::CSCp, DCSRecord::DT0, DcsStatus::DT0, DCSRecord::DTm, DcsStatus::DTm, DCSRecord::DTp, DcsStatus::DTp, DCSRecord::EBm, DcsStatus::EBm, DCSRecord::EBp, DcsStatus::EBp, DcsStatus::EEm, DCSRecord::EEp, DcsStatus::EEp, errorReplyDcs_, DCSRecord::ESm, DcsStatus::ESm, DCSRecord::ESp, DcsStatus::ESp, DCSRecord::FPIX, DcsStatus::FPIX, DCSRecord::HBHEa, DcsStatus::HBHEa, DCSRecord::HBHEb, DcsStatus::HBHEb, DCSRecord::HBHEc, DcsStatus::HBHEc, DCSRecord::HF, DcsStatus::HF, DCSRecord::HO, DcsStatus::HO, LogDebug, DCSRecord::RPC, DcsStatus::RPC, DCSRecord::TECm, DcsStatus::TECm, DCSRecord::TECp, DcsStatus::TECp, DCSRecord::TIBTID, DcsStatus::TIBTID, DCSRecord::TOB, DcsStatus::TOB, and verbose_.
Referenced by acceptDcs().
|
private |
Does this event fulfill the configured GT status logical expression combination?
Definition at line 444 of file GenericTriggerEventFlag.cc.
References acceptGtLogicalExpression(), andOr_, andOrGt_, gtLogicalExpressions_, and onGt_.
Referenced by accept().
|
private |
Does this event fulfill this particular GT status bits' logical expression?
Definition at line 469 of file GenericTriggerEventFlag.cc.
References L1GtfeExtWord::beamMode(), L1GtfeExtWord::beamMomentum(), edm::InputTag::encode(), errorReplyDcs_, errorReplyGt_, L1GtLogicParser::expressionResult(), gtEvmInputTag_, gtEvmInputToken_, L1GlobalTriggerReadoutRecord::gtFdlWord(), L1GlobalTriggerEvmReadoutRecord::gtfeWord(), gtInputTag_, gtInputToken_, edm::HandleBase::isValid(), negate(), L1GtLogicParser::operandTokenVector(), L1GtFdlWord::physicsDeclared(), AlCaHLTBitMon_QueryRunRegistry::string, and verbose_.
Referenced by acceptGt().
|
private |
Was this event accepted by the configured HLT logical expression combination?
Definition at line 646 of file GenericTriggerEventFlag.cc.
References acceptHltLogicalExpression(), andOr_, andOrHlt_, edm::InputTag::encode(), errorReplyDcs_, errorReplyHlt_, hltConfigInit_, hltInputTag_, hltInputToken_, hltLogicalExpressions_, edm::HandleBase::isValid(), onHlt_, and verbose_.
Referenced by accept().
|
private |
Was this event accepted by this particular HLT paths' logical expression?
Definition at line 694 of file GenericTriggerEventFlag.cc.
References edm::HLTGlobalStatus::accept(), edm::HLTGlobalStatus::error(), errorReplyHlt_, L1GtLogicParser::expressionResult(), hltConfig_, hltInputTag_, negate(), L1GtLogicParser::operandTokenVector(), edm::InputTag::process(), HLTConfigProvider::size(), AlCaHLTBitMon_QueryRunRegistry::string, HLTConfigProvider::triggerIndex(), and verbose_.
Referenced by acceptHlt().
|
private |
Was this event accepted by the configured L1 logical expression combination?
Definition at line 552 of file GenericTriggerEventFlag.cc.
References acceptL1LogicalExpression(), andOr_, andOrL1_, l1LogicalExpressions_, onL1_, and singleTopDQM_cfi::setup.
Referenced by accept().
|
private |
Was this event accepted by this particular L1 algorithms' logical expression?
Definition at line 577 of file GenericTriggerEventFlag.cc.
References relativeConstraints::error, errorReplyL1_, L1GtLogicParser::expressionResult(), l1BeforeMask_, l1Gt_, l1uGt_, negate(), L1GtLogicParser::operandTokenVector(), singleTopDQM_cfi::setup, stage2_, AlCaHLTBitMon_QueryRunRegistry::string, useL1EventSetup(), useL1GtTriggerMenuLite(), and verbose_.
Referenced by acceptL1().
bool GenericTriggerEventFlag::allHLTPathsAreValid | ( | ) | const |
Definition at line 817 of file GenericTriggerEventFlag.cc.
References hltConfig_, hltConfigInit_, hltInputTag_, hltLogicalExpressions_, onHlt_, L1GtLogicParser::operandTokenVector(), edm::InputTag::process(), HLTConfigProvider::size(), AlCaHLTBitMon_QueryRunRegistry::string, HLTConfigProvider::triggerIndex(), and verbose_.
|
private |
Expand wild-carded logical expressions, giving version postfixes priority.
Definition at line 744 of file GenericTriggerEventFlag.cc.
References jetsAK8_cff::expr, hltConfig_, muonTagProbeFilters_cff::matched, HLTConfigProvider::matched(), HLTConfigProvider::restoreVersion(), AlCaHLTBitMon_QueryRunRegistry::string, dqmd_manager::targets, and verbose_.
Referenced by initRun().
std::vector< std::string > GenericTriggerEventFlag::expressionsFromDB | ( | const std::string & | key, |
const edm::EventSetup & | setup | ||
) |
Reads and returns logical expressions from DB.
Definition at line 790 of file GenericTriggerEventFlag.cc.
References alCaRecoTriggerBitsToken_, configError_, dbLabel_, emptyKeyError_, crabWrapper::key, SummaryClient_cfi::labels, singleTopDQM_cfi::setup, and verbose_.
Referenced by initRun().
|
static |
Definition at line 859 of file GenericTriggerEventFlag.cc.
References submitPVResolutionJobs::desc, HLT_2022v14_cff::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by Tau3MuMonitor::fillDescriptions(), DiDispStaMuonMonitor::fillDescriptions(), NoBPTXMonitor::fillDescriptions(), JetMonitor::fillDescriptions(), METplusTrackMonitor::fillDescriptions(), MuonMonitor::fillDescriptions(), METMonitor::fillDescriptions(), ObjMonitor::fillDescriptions(), RazorMonitor::fillDescriptions(), DiJetMonitor::fillDescriptions(), PhotonMonitor::fillDescriptions(), TopMonitor::fillDescriptions(), HTMonitor::fillDescriptions(), BTagAndProbe::fillDescriptions(), ParticleNetJetTagMonitor::fillDescriptions(), BPHMonitor::fillDescriptions(), and TrackToTrackComparisonHists::fillDescriptions().
|
inline |
|
inline |
void GenericTriggerEventFlag::initRun | ( | const edm::Run & | run, |
const edm::EventSetup & | setup | ||
) |
To be called from beginRun() methods.
Definition at line 155 of file GenericTriggerEventFlag.cc.
References configError_, edm::InputTag::encode(), expandLogicalExpression(), expressionsFromDB(), spr::find(), L1GtTriggerMenu::gtAlgorithmMap(), gtDBKey_, gtLogicalExpressions_, L1GtTriggerMenu::gtTechnicalTriggerMap(), hltConfig_, hltConfigInit_, hltDBKey_, hltInputTag_, hltLogicalExpressions_, hltLogicalExpressionsCache_, HLTConfigProvider::init(), l1DBKey_, l1Gt_, l1GtTriggerMenuToken_, l1LogicalExpressions_, l1LogicalExpressionsCache_, l1uGt_, onGt_, onHlt_, onL1_, hltrates_dqm_sourceclient-live_cfg::prescales, edm::InputTag::process(), writedatasetfile::run, singleTopDQM_cfi::setup, HLTConfigProvider::size(), stage2_, AlCaHLTBitMon_QueryRunRegistry::string, createJobs::tmp, HLTConfigProvider::triggerNames(), useL1EventSetup(), useL1GtTriggerMenuLite(), verbose_, and watchDB_.
Referenced by dEdxAnalyzer::bookHistograms(), V0Monitor::bookHistograms(), LogMessageMonitor::bookHistograms(), TrackingMonitor::bookHistograms(), dEdxHitAnalyzer::dqmBeginRun(), SiStripMonitorCluster::dqmBeginRun(), SiStripMonitorTrack::dqmBeginRun(), and TauTagValidation::dqmBeginRun().
|
inline |
|
private |
Checks for negated words.
Definition at line 780 of file GenericTriggerEventFlag.cc.
Referenced by acceptGtLogicalExpression(), acceptHltLogicalExpression(), and acceptL1LogicalExpression().
|
inline |
|
inline |
Definition at line 139 of file GenericTriggerEventFlag.h.
References on_.
Referenced by dEdxAnalyzer::analyze(), dEdxHitAnalyzer::analyze(), SiStripMonitorCluster::analyze(), LogMessageMonitor::analyze(), V0Monitor::analyze(), SiStripMonitorTrack::analyze(), TrackingMonitor::analyze(), TauTagValidation::analyze(), dEdxAnalyzer::bookHistograms(), V0Monitor::bookHistograms(), LogMessageMonitor::bookHistograms(), TrackingMonitor::bookHistograms(), dEdxHitAnalyzer::dqmBeginRun(), SiStripMonitorCluster::dqmBeginRun(), SiStripMonitorTrack::dqmBeginRun(), and TauTagValidation::dqmBeginRun().
|
private |
Definition at line 52 of file GenericTriggerEventFlag.h.
Referenced by expressionsFromDB(), and GenericTriggerEventFlag().
|
private |
Definition at line 54 of file GenericTriggerEventFlag.h.
Referenced by accept(), acceptDcs(), acceptGt(), acceptHlt(), acceptL1(), and GenericTriggerEventFlag().
|
private |
Definition at line 57 of file GenericTriggerEventFlag.h.
Referenced by acceptDcs(), and GenericTriggerEventFlag().
|
private |
Definition at line 64 of file GenericTriggerEventFlag.h.
Referenced by acceptGt(), and GenericTriggerEventFlag().
|
private |
Definition at line 79 of file GenericTriggerEventFlag.h.
Referenced by acceptHlt(), and GenericTriggerEventFlag().
|
private |
Definition at line 72 of file GenericTriggerEventFlag.h.
Referenced by acceptL1(), and GenericTriggerEventFlag().
|
private |
Definition at line 93 of file GenericTriggerEventFlag.h.
Referenced by expressionsFromDB(), and initRun().
|
private |
Definition at line 55 of file GenericTriggerEventFlag.h.
Referenced by expressionsFromDB(), and GenericTriggerEventFlag().
|
private |
Definition at line 58 of file GenericTriggerEventFlag.h.
Referenced by acceptDcs(), and GenericTriggerEventFlag().
|
private |
Definition at line 60 of file GenericTriggerEventFlag.h.
Referenced by acceptDcs(), and GenericTriggerEventFlag().
|
private |
Definition at line 62 of file GenericTriggerEventFlag.h.
Referenced by acceptDcs(), and GenericTriggerEventFlag().
|
private |
Definition at line 59 of file GenericTriggerEventFlag.h.
Referenced by acceptDcs(), and GenericTriggerEventFlag().
|
private |
Definition at line 61 of file GenericTriggerEventFlag.h.
Referenced by acceptDcs(), and GenericTriggerEventFlag().
|
private |
Definition at line 94 of file GenericTriggerEventFlag.h.
Referenced by expressionsFromDB().
|
private |
Definition at line 63 of file GenericTriggerEventFlag.h.
Referenced by acceptDcs(), acceptDcsPartition(), acceptGtLogicalExpression(), acceptHlt(), and GenericTriggerEventFlag().
|
private |
Definition at line 71 of file GenericTriggerEventFlag.h.
Referenced by acceptGtLogicalExpression(), and GenericTriggerEventFlag().
|
private |
Definition at line 85 of file GenericTriggerEventFlag.h.
Referenced by acceptHlt(), acceptHltLogicalExpression(), and GenericTriggerEventFlag().
|
private |
Definition at line 78 of file GenericTriggerEventFlag.h.
Referenced by acceptL1LogicalExpression(), and GenericTriggerEventFlag().
|
private |
Definition at line 69 of file GenericTriggerEventFlag.h.
Referenced by GenericTriggerEventFlag(), gtDBKey(), and initRun().
|
private |
Definition at line 67 of file GenericTriggerEventFlag.h.
Referenced by acceptGtLogicalExpression(), and GenericTriggerEventFlag().
|
private |
Definition at line 68 of file GenericTriggerEventFlag.h.
Referenced by acceptGtLogicalExpression(), and GenericTriggerEventFlag().
|
private |
Definition at line 65 of file GenericTriggerEventFlag.h.
Referenced by acceptGtLogicalExpression(), and GenericTriggerEventFlag().
|
private |
Definition at line 66 of file GenericTriggerEventFlag.h.
Referenced by acceptGtLogicalExpression(), and GenericTriggerEventFlag().
|
private |
Definition at line 70 of file GenericTriggerEventFlag.h.
Referenced by acceptGt(), GenericTriggerEventFlag(), and initRun().
|
private |
Definition at line 49 of file GenericTriggerEventFlag.h.
Referenced by acceptHltLogicalExpression(), allHLTPathsAreValid(), expandLogicalExpression(), and initRun().
|
private |
Definition at line 50 of file GenericTriggerEventFlag.h.
Referenced by acceptHlt(), allHLTPathsAreValid(), and initRun().
|
private |
Definition at line 82 of file GenericTriggerEventFlag.h.
Referenced by GenericTriggerEventFlag(), hltDBKey(), and initRun().
|
private |
Definition at line 80 of file GenericTriggerEventFlag.h.
Referenced by acceptHlt(), acceptHltLogicalExpression(), allHLTPathsAreValid(), GenericTriggerEventFlag(), and initRun().
|
private |
Definition at line 81 of file GenericTriggerEventFlag.h.
Referenced by acceptHlt(), and GenericTriggerEventFlag().
|
private |
Definition at line 84 of file GenericTriggerEventFlag.h.
Referenced by acceptHlt(), allHLTPathsAreValid(), and initRun().
|
private |
Definition at line 83 of file GenericTriggerEventFlag.h.
Referenced by GenericTriggerEventFlag(), and initRun().
|
private |
Definition at line 74 of file GenericTriggerEventFlag.h.
Referenced by acceptL1LogicalExpression(), and GenericTriggerEventFlag().
|
private |
Definition at line 75 of file GenericTriggerEventFlag.h.
Referenced by GenericTriggerEventFlag(), initRun(), and l1DBKey().
|
private |
Definition at line 47 of file GenericTriggerEventFlag.h.
Referenced by acceptL1LogicalExpression(), GenericTriggerEventFlag(), and initRun().
|
private |
Definition at line 51 of file GenericTriggerEventFlag.h.
Referenced by GenericTriggerEventFlag(), and initRun().
|
private |
Definition at line 77 of file GenericTriggerEventFlag.h.
Referenced by acceptL1(), and initRun().
|
private |
Definition at line 76 of file GenericTriggerEventFlag.h.
Referenced by GenericTriggerEventFlag(), and initRun().
|
private |
Definition at line 48 of file GenericTriggerEventFlag.h.
Referenced by acceptL1LogicalExpression(), GenericTriggerEventFlag(), and initRun().
|
private |
Definition at line 87 of file GenericTriggerEventFlag.h.
Referenced by accept(), GenericTriggerEventFlag(), off(), and on().
|
private |
Definition at line 88 of file GenericTriggerEventFlag.h.
Referenced by acceptDcs(), and GenericTriggerEventFlag().
|
private |
Definition at line 89 of file GenericTriggerEventFlag.h.
Referenced by acceptGt(), GenericTriggerEventFlag(), and initRun().
|
private |
Definition at line 91 of file GenericTriggerEventFlag.h.
Referenced by acceptHlt(), allHLTPathsAreValid(), GenericTriggerEventFlag(), and initRun().
|
private |
Definition at line 90 of file GenericTriggerEventFlag.h.
Referenced by acceptL1(), GenericTriggerEventFlag(), and initRun().
|
private |
Definition at line 73 of file GenericTriggerEventFlag.h.
Referenced by acceptL1LogicalExpression(), GenericTriggerEventFlag(), and initRun().
|
private |
Definition at line 56 of file GenericTriggerEventFlag.h.
Referenced by acceptDcs(), acceptDcsPartition(), acceptGtLogicalExpression(), acceptHlt(), acceptHltLogicalExpression(), acceptL1LogicalExpression(), allHLTPathsAreValid(), expandLogicalExpression(), expressionsFromDB(), GenericTriggerEventFlag(), and initRun().
|
private |
Definition at line 46 of file GenericTriggerEventFlag.h.
Referenced by GenericTriggerEventFlag(), and initRun().