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"
Public Member Functions | |
bool | accept (const edm::Event &event, const edm::EventSetup &setup) |
To be called from analyze/filter() methods. More... | |
std::vector< std::string > | expressionsFromDB (const std::string &key, const edm::EventSetup &setup) |
Reads and returns logical expressions from DB. More... | |
GenericTriggerEventFlag (const edm::ParameterSet &config) | |
To be called from the ED module's c'tor. More... | |
std::string | gtDBKey () |
std::string | hltDBKey () |
void | initRun (const edm::Run &run, const edm::EventSetup &setup) |
To be called from beginRun() methods. More... | |
std::string | l1DBKey () |
bool | off () |
bool | on () |
~GenericTriggerEventFlag () | |
To be called from d'tors by 'delete'. More... | |
Private Member Functions | |
bool | acceptDcs (const edm::Event &event) |
bool | acceptDcsPartition (const edm::Handle< DcsStatusCollection > &dcsStatus, 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, 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... | |
bool | negate (std::string &word) const |
Checks for negated words. More... | |
Private Attributes | |
bool | andOr_ |
bool | andOrDcs_ |
bool | andOrGt_ |
bool | andOrHlt_ |
bool | andOrL1_ |
const std::string | configError_ |
std::string | dbLabel_ |
edm::InputTag | dcsInputTag_ |
std::vector< int > | dcsPartitions_ |
const std::string | emptyKeyError_ |
bool | errorReplyDcs_ |
bool | errorReplyGt_ |
bool | errorReplyHlt_ |
bool | errorReplyL1_ |
std::string | gtDBKey_ |
edm::InputTag | gtEvmInputTag_ |
edm::InputTag | gtInputTag_ |
std::vector< std::string > | gtLogicalExpressions_ |
HLTConfigProvider | hltConfig_ |
bool | hltConfigInit_ |
std::string | hltDBKey_ |
edm::InputTag | hltInputTag_ |
std::vector< std::string > | hltLogicalExpressions_ |
std::vector< std::string > | hltLogicalExpressionsCache_ |
bool | l1BeforeMask_ |
std::string | l1DBKey_ |
L1GtUtils | l1Gt_ |
std::vector< std::string > | l1LogicalExpressions_ |
std::vector< std::string > | l1LogicalExpressionsCache_ |
bool | on_ |
bool | onDcs_ |
bool | onGt_ |
bool | onHlt_ |
bool | onL1_ |
unsigned | verbose_ |
edm::ESWatcher < AlCaRecoTriggerBitsRcd > * | watchDB_ |
Provides a code based selection for trigger and DCS information in order to have no failing filters in the CMSSW path.
[...]
Definition at line 36 of file GenericTriggerEventFlag.h.
GenericTriggerEventFlag::GenericTriggerEventFlag | ( | const edm::ParameterSet & | config | ) |
To be called from the ED module's c'tor.
Definition at line 27 of file GenericTriggerEventFlag.cc.
References andOr_, andOrDcs_, andOrGt_, andOrHlt_, andOrL1_, dbLabel_, dcsInputTag_, dcsPartitions_, errorReplyDcs_, errorReplyGt_, errorReplyHlt_, errorReplyL1_, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), gtDBKey_, gtEvmInputTag_, gtInputTag_, gtLogicalExpressions_, hltDBKey_, hltInputTag_, hltLogicalExpressionsCache_, l1BeforeMask_, l1DBKey_, l1LogicalExpressionsCache_, on_, onDcs_, onGt_, onHlt_, onL1_, verbose_, and watchDB_.
GenericTriggerEventFlag::~GenericTriggerEventFlag | ( | ) |
To be called from d'tors by 'delete'.
Definition at line 116 of file GenericTriggerEventFlag.cc.
bool GenericTriggerEventFlag::accept | ( | const edm::Event & | event, |
const edm::EventSetup & | setup | ||
) |
To be called from analyze/filter() methods.
Definition at line 213 of file GenericTriggerEventFlag.cc.
References acceptDcs(), acceptGt(), acceptHlt(), acceptL1(), andOr_, and on_.
Referenced by SiStripMonitorCluster::analyze(), dEdxAnalyzer::analyze(), MonitorTrackResiduals::analyze(), TrackingMonitor::analyze(), LogMessageMonitor::analyze(), SiStripMonitorTrack::analyze(), TauTagValidation::analyze(), Vispa.Gui.BoxContentDialog.BoxContentDialog::apply(), and Vispa.Plugins.ConfigEditor.ToolDialog.ToolDialog::apply().
|
private |
Definition at line 225 of file GenericTriggerEventFlag.cc.
References acceptDcsPartition(), andOr_, andOrDcs_, dcsInputTag_, dcsPartitions_, edm::InputTag::encode(), errorReplyDcs_, edm::HandleBase::isValid(), onDcs_, and verbose_.
Referenced by accept().
|
private |
Definition at line 258 of file GenericTriggerEventFlag.cc.
References DcsStatus::BPIX, DcsStatus::CASTOR, DcsStatus::CSCm, DcsStatus::CSCp, DcsStatus::DT0, DcsStatus::DTm, DcsStatus::DTp, DcsStatus::EBm, DcsStatus::EBp, DcsStatus::EEm, DcsStatus::EEp, errorReplyDcs_, DcsStatus::ESm, DcsStatus::ESp, DcsStatus::FPIX, DcsStatus::HBHEa, DcsStatus::HBHEb, DcsStatus::HBHEc, DcsStatus::HF, DcsStatus::HO, DcsStatus::RPC, DcsStatus::TECm, DcsStatus::TECp, DcsStatus::TIBTID, DcsStatus::TOB, and verbose_.
Referenced by acceptDcs().
|
private |
Does this event fulfill the configured GT status logical expression combination?
Definition at line 300 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 322 of file GenericTriggerEventFlag.cc.
References edm::InputTag::encode(), errorReplyDcs_, errorReplyGt_, L1GtLogicParser::expressionResult(), gtEvmInputTag_, gtInputTag_, edm::HandleBase::isValid(), negate(), L1GtLogicParser::operandTokenVector(), and verbose_.
Referenced by acceptGt().
|
private |
Was this event accepted by the configured HLT logical expression combination?
Definition at line 468 of file GenericTriggerEventFlag.cc.
References acceptHltLogicalExpression(), andOr_, andOrHlt_, edm::InputTag::encode(), errorReplyDcs_, errorReplyHlt_, hltConfigInit_, hltInputTag_, 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 508 of file GenericTriggerEventFlag.cc.
References errorReplyHlt_, L1GtLogicParser::expressionResult(), hltConfig_, hltInputTag_, negate(), L1GtLogicParser::operandTokenVector(), edm::InputTag::process(), HLTConfigProvider::size(), HLTConfigProvider::triggerIndex(), and verbose_.
Referenced by acceptHlt().
|
private |
Was this event accepted by the configured L1 logical expression combination?
Definition at line 399 of file GenericTriggerEventFlag.cc.
References acceptL1LogicalExpression(), andOr_, andOrL1_, L1GtUtils::getL1GtRunCache(), l1Gt_, l1LogicalExpressions_, onL1_, useL1EventSetup(), and useL1GtTriggerMenuLite().
Referenced by accept().
|
private |
Was this event accepted by this particular L1 algorithms' logical expression?
Definition at line 424 of file GenericTriggerEventFlag.cc.
References L1GtUtils::decisionAfterMask(), L1GtUtils::decisionBeforeMask(), error, errorReplyL1_, L1GtLogicParser::expressionResult(), l1BeforeMask_, l1Gt_, negate(), L1GtLogicParser::operandTokenVector(), and verbose_.
Referenced by acceptL1().
|
private |
Expand wild-carded logical expressions, giving version postfixes priority.
Definition at line 555 of file GenericTriggerEventFlag.cc.
References hltConfig_, HLTConfigProvider::matched(), HLTConfigProvider::restoreVersion(), 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 606 of file GenericTriggerEventFlag.cc.
References configError_, dbLabel_, emptyKeyError_, edm::EventSetup::get(), reco_calib_source_client_cfg::labels, and verbose_.
Referenced by MuonRecoOneHLT::beginRun(), and initRun().
|
inline |
|
inline |
Definition at line 121 of file GenericTriggerEventFlag.h.
References hltDBKey_.
Referenced by MuonRecoOneHLT::beginRun().
void GenericTriggerEventFlag::initRun | ( | const edm::Run & | run, |
const edm::EventSetup & | setup | ||
) |
To be called from beginRun() methods.
Definition at line 125 of file GenericTriggerEventFlag.cc.
References edm::ESWatcher< T >::check(), configError_, edm::InputTag::encode(), expandLogicalExpression(), expressionsFromDB(), edm::EventSetup::get(), L1GtUtils::getL1GtRunCache(), gtDBKey_, gtLogicalExpressions_, hltConfig_, hltConfigInit_, hltDBKey_, hltInputTag_, hltLogicalExpressions_, hltLogicalExpressionsCache_, HLTConfigProvider::init(), l1DBKey_, l1Gt_, l1LogicalExpressions_, l1LogicalExpressionsCache_, onGt_, onHlt_, onL1_, edm::InputTag::process(), HLTConfigProvider::size(), HLTConfigProvider::triggerNames(), verbose_, and watchDB_.
Referenced by MonitorTrackResiduals::beginRun(), MuonRecoOneHLT::beginRun(), SiStripMonitorCluster::beginRun(), dEdxAnalyzer::beginRun(), TrackingMonitor::beginRun(), SiStripMonitorTrack::beginRun(), LogMessageMonitor::beginRun(), and TauTagValidation::beginRun().
|
inline |
|
private |
Checks for negated words.
Definition at line 591 of file GenericTriggerEventFlag.cc.
Referenced by acceptGtLogicalExpression(), acceptHltLogicalExpression(), and acceptL1LogicalExpression().
|
inline |
|
inline |
Definition at line 86 of file GenericTriggerEventFlag.h.
References on_.
Referenced by SiStripMonitorCluster::analyze(), dEdxAnalyzer::analyze(), MonitorTrackResiduals::analyze(), TrackingMonitor::analyze(), LogMessageMonitor::analyze(), SiStripMonitorTrack::analyze(), TauTagValidation::analyze(), MonitorTrackResiduals::beginRun(), MuonRecoOneHLT::beginRun(), SiStripMonitorCluster::beginRun(), dEdxAnalyzer::beginRun(), TrackingMonitor::beginRun(), SiStripMonitorTrack::beginRun(), LogMessageMonitor::beginRun(), and TauTagValidation::beginRun().
|
private |
Definition at line 44 of file GenericTriggerEventFlag.h.
Referenced by accept(), acceptDcs(), acceptGt(), acceptHlt(), acceptL1(), and GenericTriggerEventFlag().
|
private |
Definition at line 47 of file GenericTriggerEventFlag.h.
Referenced by acceptDcs(), and GenericTriggerEventFlag().
|
private |
Definition at line 51 of file GenericTriggerEventFlag.h.
Referenced by acceptGt(), and GenericTriggerEventFlag().
|
private |
Definition at line 63 of file GenericTriggerEventFlag.h.
Referenced by acceptHlt(), and GenericTriggerEventFlag().
|
private |
Definition at line 57 of file GenericTriggerEventFlag.h.
Referenced by acceptL1(), and GenericTriggerEventFlag().
|
private |
Definition at line 76 of file GenericTriggerEventFlag.h.
Referenced by expressionsFromDB(), and initRun().
|
private |
Definition at line 45 of file GenericTriggerEventFlag.h.
Referenced by expressionsFromDB(), and GenericTriggerEventFlag().
|
private |
Definition at line 48 of file GenericTriggerEventFlag.h.
Referenced by acceptDcs(), and GenericTriggerEventFlag().
|
private |
Definition at line 49 of file GenericTriggerEventFlag.h.
Referenced by acceptDcs(), and GenericTriggerEventFlag().
|
private |
Definition at line 77 of file GenericTriggerEventFlag.h.
Referenced by expressionsFromDB().
|
private |
Definition at line 50 of file GenericTriggerEventFlag.h.
Referenced by acceptDcs(), acceptDcsPartition(), acceptGtLogicalExpression(), acceptHlt(), and GenericTriggerEventFlag().
|
private |
Definition at line 56 of file GenericTriggerEventFlag.h.
Referenced by acceptGtLogicalExpression(), and GenericTriggerEventFlag().
|
private |
Definition at line 68 of file GenericTriggerEventFlag.h.
Referenced by acceptHlt(), acceptHltLogicalExpression(), and GenericTriggerEventFlag().
|
private |
Definition at line 62 of file GenericTriggerEventFlag.h.
Referenced by acceptL1LogicalExpression(), and GenericTriggerEventFlag().
|
private |
Definition at line 54 of file GenericTriggerEventFlag.h.
Referenced by GenericTriggerEventFlag(), gtDBKey(), and initRun().
|
private |
Definition at line 53 of file GenericTriggerEventFlag.h.
Referenced by acceptGtLogicalExpression(), and GenericTriggerEventFlag().
|
private |
Definition at line 52 of file GenericTriggerEventFlag.h.
Referenced by acceptGtLogicalExpression(), and GenericTriggerEventFlag().
|
private |
Definition at line 55 of file GenericTriggerEventFlag.h.
Referenced by acceptGt(), GenericTriggerEventFlag(), and initRun().
|
private |
Definition at line 41 of file GenericTriggerEventFlag.h.
Referenced by acceptHltLogicalExpression(), expandLogicalExpression(), and initRun().
|
private |
Definition at line 42 of file GenericTriggerEventFlag.h.
Referenced by acceptHlt(), and initRun().
|
private |
Definition at line 65 of file GenericTriggerEventFlag.h.
Referenced by GenericTriggerEventFlag(), hltDBKey(), and initRun().
|
private |
Definition at line 64 of file GenericTriggerEventFlag.h.
Referenced by acceptHlt(), acceptHltLogicalExpression(), GenericTriggerEventFlag(), and initRun().
|
private |
Definition at line 67 of file GenericTriggerEventFlag.h.
Referenced by acceptHlt(), and initRun().
|
private |
Definition at line 66 of file GenericTriggerEventFlag.h.
Referenced by GenericTriggerEventFlag(), and initRun().
|
private |
Definition at line 58 of file GenericTriggerEventFlag.h.
Referenced by acceptL1LogicalExpression(), and GenericTriggerEventFlag().
|
private |
Definition at line 59 of file GenericTriggerEventFlag.h.
Referenced by GenericTriggerEventFlag(), initRun(), and l1DBKey().
|
private |
Definition at line 40 of file GenericTriggerEventFlag.h.
Referenced by acceptL1(), acceptL1LogicalExpression(), and initRun().
|
private |
Definition at line 61 of file GenericTriggerEventFlag.h.
Referenced by acceptL1(), and initRun().
|
private |
Definition at line 60 of file GenericTriggerEventFlag.h.
Referenced by GenericTriggerEventFlag(), and initRun().
|
private |
Definition at line 70 of file GenericTriggerEventFlag.h.
Referenced by accept(), GenericTriggerEventFlag(), off(), on(), and ~GenericTriggerEventFlag().
|
private |
Definition at line 71 of file GenericTriggerEventFlag.h.
Referenced by acceptDcs(), and GenericTriggerEventFlag().
|
private |
Definition at line 72 of file GenericTriggerEventFlag.h.
Referenced by acceptGt(), GenericTriggerEventFlag(), and initRun().
|
private |
Definition at line 74 of file GenericTriggerEventFlag.h.
Referenced by acceptHlt(), GenericTriggerEventFlag(), and initRun().
|
private |
Definition at line 73 of file GenericTriggerEventFlag.h.
Referenced by acceptL1(), GenericTriggerEventFlag(), and initRun().
|
private |
Definition at line 46 of file GenericTriggerEventFlag.h.
Referenced by acceptDcs(), acceptDcsPartition(), acceptGtLogicalExpression(), acceptHlt(), acceptHltLogicalExpression(), acceptL1LogicalExpression(), expandLogicalExpression(), expressionsFromDB(), GenericTriggerEventFlag(), and initRun().
|
private |
Definition at line 39 of file GenericTriggerEventFlag.h.
Referenced by GenericTriggerEventFlag(), initRun(), and ~GenericTriggerEventFlag().