Provides a code based selection for trigger and DCS information in order to have no failing filters in the CMSSW path. More...
#include <TriggerHelper.h>
Public Member Functions | |
bool | accept (const edm::Event &event, const edm::EventSetup &setup) |
To be called from analyze/filter() methods. More... | |
void | initRun (const edm::Run &run, const edm::EventSetup &setup) |
To be called from beginedm::Run() methods. More... | |
bool | off () |
bool | on () |
template<typename T > | |
TriggerHelper (const edm::ParameterSet &config, edm::ConsumesCollector &&iC, T &module) | |
template<typename T > | |
TriggerHelper (const edm::ParameterSet &config, edm::ConsumesCollector &iC, T &module) | |
~TriggerHelper () | |
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, const edm::Handle< DCSRecord > &dcsRecord, bool useDCSRecord, int dcsPartition) const |
bool | acceptGt (const edm::Event &event) |
bool | acceptGtLogicalExpression (const edm::Handle< L1GlobalTriggerReadoutRecord > >ReadoutRecord, std::string gtLogicalExpression) |
Does this event fulfill this particular GT status bits' logical expression? More... | |
bool | acceptHlt (const edm::Event &event) |
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) |
std::vector< std::string > | expressionsFromDB (const std::string &key, const edm::EventSetup &setup) |
Reads and returns logical expressions from DB. More... | |
bool | negate (std::string &word) const |
Checks for negated words. More... | |
TriggerHelper (const edm::ParameterSet &config, edm::ConsumesCollector &iC) | |
To be called from the ED module's c'tor. More... | |
Provides a code based selection for trigger and DCS information in order to have no failing filters in the CMSSW path.
"DQM/TrackerCommon/interface/TriggerHelper.h" [...]
Definition at line 43 of file TriggerHelper.h.
TriggerHelper::TriggerHelper | ( | const edm::ParameterSet & | config, |
edm::ConsumesCollector && | iC, | ||
T & | module | ||
) |
Definition at line 134 of file TriggerHelper.h.
References alcaRecotriggerBitsToken_, gtInputTag_, and gtInputToken_.
TriggerHelper::TriggerHelper | ( | const edm::ParameterSet & | config, |
edm::ConsumesCollector & | iC, | ||
T & | module | ||
) |
Definition at line 142 of file TriggerHelper.h.
References DiMuonV_cfg::config, L1GtUtils::Event, l1DBKey_, l1Gt_, l1LogicalExpressions_, callgraph::module, and onL1_.
TriggerHelper::~TriggerHelper | ( | ) |
To be called from d'tors by 'delete'.
Definition at line 83 of file TriggerHelper.cc.
|
private |
To be called from the ED module's c'tor.
Definition at line 12 of file TriggerHelper.cc.
References andOr_, andOrDcs_, andOrGt_, andOrHlt_, andOrL1_, dcsInputTag_, dcsInputToken_, dcsPartitions_, dcsRecordInputTag_, dcsRecordToken_, errorReplyDcs_, errorReplyGt_, errorReplyHlt_, errorReplyL1_, gtDBKey_, gtLogicalExpressions_, hltDBKey_, hltInputTag_, hltInputToken_, hltLogicalExpressions_, l1DBKey_, l1LogicalExpressions_, edm::ConsumesCollector::mayConsume(), on_, onDcs_, onGt_, onHlt_, onL1_, AlCaHLTBitMon_QueryRunRegistry::string, and watchDB_.
bool TriggerHelper::accept | ( | const edm::Event & | event, |
const edm::EventSetup & | setup | ||
) |
To be called from analyze/filter() methods.
Definition at line 129 of file TriggerHelper.cc.
References acceptDcs(), acceptGt(), acceptHlt(), acceptL1(), andOr_, on_, and singleTopDQM_cfi::setup.
Referenced by esMonitoring.FDJsonServer::handle_accept().
|
private |
Definition at line 139 of file TriggerHelper.cc.
References acceptDcsPartition(), andOr_, andOrDcs_, dcsInputTag_, dcsInputToken_, dcsPartitions_, DQMOffline_cff::dcsRecord, dcsRecordInputTag_, dcsRecordToken_, edm::InputTag::encode(), errorReplyDcs_, edm::HandleBase::isValid(), and onDcs_.
Referenced by accept().
|
private |
Definition at line 200 of file TriggerHelper.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, and DcsStatus::TOB.
Referenced by acceptDcs().
|
private |
Does this event fulfill the configured GT status logical expression combination?
Definition at line 298 of file TriggerHelper.cc.
References acceptGtLogicalExpression(), andOr_, andOrGt_, errorReplyGt_, gtInputToken_, gtLogicalExpressions_, edm::HandleBase::isValid(), and onGt_.
Referenced by accept().
|
private |
Does this event fulfill this particular GT status bits' logical expression?
Definition at line 333 of file TriggerHelper.cc.
References errorReplyDcs_, errorReplyGt_, L1GtLogicParser::expressionResult(), L1GlobalTriggerReadoutRecord::gtFdlWord(), negate(), L1GtLogicParser::operandTokenVector(), L1GtFdlWord::physicsDeclared(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by acceptGt().
|
private |
Was this event accepted by the configured HLT logical expression combination?
Definition at line 444 of file TriggerHelper.cc.
References acceptHltLogicalExpression(), andOr_, andOrHlt_, edm::InputTag::encode(), errorReplyHlt_, hltConfigInit_, hltInputTag_, hltInputToken_, hltLogicalExpressions_, edm::HandleBase::isValid(), and onHlt_.
Referenced by accept().
|
private |
Was this event accepted by this particular HLT paths' logical expression?
Definition at line 484 of file TriggerHelper.cc.
References edm::HLTGlobalStatus::accept(), edm::HLTGlobalStatus::error(), errorReplyHlt_, L1GtLogicParser::expressionResult(), hltConfig_, hltInputTag_, negate(), L1GtLogicParser::operandTokenVector(), edm::InputTag::process(), HLTConfigProvider::size(), AlCaHLTBitMon_QueryRunRegistry::string, and HLTConfigProvider::triggerIndex().
Referenced by acceptHlt().
|
private |
Was this event accepted by the configured L1 logical expression combination?
Definition at line 372 of file TriggerHelper.cc.
References acceptL1LogicalExpression(), andOr_, andOrL1_, l1Gt_, l1LogicalExpressions_, onL1_, and singleTopDQM_cfi::setup.
Referenced by accept().
|
private |
Was this event accepted by this particular L1 algorithms' logical expression?
Definition at line 401 of file TriggerHelper.cc.
References relativeConstraints::error, errorReplyL1_, L1GtLogicParser::expressionResult(), l1Gt_, negate(), L1GtLogicParser::operandTokenVector(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by acceptL1().
|
private |
Reads and returns logical expressions from DB.
Definition at line 528 of file TriggerHelper.cc.
References alcaRecotriggerBitsToken_, configError_, AlCaRecoTriggerBits::decompose(), submitPVResolutionJobs::key, AlCaRecoTriggerBits::m_alcarecoToTrig, and singleTopDQM_cfi::setup.
Referenced by initRun().
void TriggerHelper::initRun | ( | const edm::Run & | run, |
const edm::EventSetup & | setup | ||
) |
To be called from beginedm::Run() methods.
Definition at line 89 of file TriggerHelper.cc.
References edm::ESWatcher< T >::check(), configError_, edm::InputTag::encode(), expressionsFromDB(), gtDBKey_, gtLogicalExpressions_, hltConfig_, hltConfigInit_, hltDBKey_, hltInputTag_, hltLogicalExpressions_, HLTConfigProvider::init(), l1DBKey_, l1LogicalExpressions_, onGt_, onHlt_, onL1_, edm::InputTag::process(), writedatasetfile::run, singleTopDQM_cfi::setup, HLTConfigProvider::size(), and watchDB_.
|
private |
Checks for negated words.
Definition at line 541 of file TriggerHelper.cc.
Referenced by acceptGtLogicalExpression(), acceptHltLogicalExpression(), and acceptL1LogicalExpression().
|
inline |
|
inline |
|
private |
Definition at line 66 of file TriggerHelper.h.
Referenced by expressionsFromDB(), and TriggerHelper().
|
private |
Definition at line 50 of file TriggerHelper.h.
Referenced by accept(), acceptDcs(), acceptGt(), acceptHlt(), acceptL1(), and TriggerHelper().
|
private |
Definition at line 51 of file TriggerHelper.h.
Referenced by acceptDcs(), and TriggerHelper().
|
private |
Definition at line 58 of file TriggerHelper.h.
Referenced by acceptGt(), and TriggerHelper().
|
private |
Definition at line 69 of file TriggerHelper.h.
Referenced by acceptHlt(), and TriggerHelper().
|
private |
Definition at line 64 of file TriggerHelper.h.
Referenced by acceptL1(), and TriggerHelper().
|
private |
Definition at line 82 of file TriggerHelper.h.
Referenced by expressionsFromDB(), and initRun().
|
private |
Definition at line 52 of file TriggerHelper.h.
Referenced by acceptDcs(), and TriggerHelper().
|
private |
Definition at line 54 of file TriggerHelper.h.
Referenced by acceptDcs(), and TriggerHelper().
|
private |
Definition at line 56 of file TriggerHelper.h.
Referenced by acceptDcs(), and TriggerHelper().
|
private |
Definition at line 53 of file TriggerHelper.h.
Referenced by acceptDcs(), and TriggerHelper().
|
private |
Definition at line 55 of file TriggerHelper.h.
Referenced by acceptDcs(), and TriggerHelper().
|
private |
Definition at line 57 of file TriggerHelper.h.
Referenced by acceptDcs(), acceptDcsPartition(), acceptGtLogicalExpression(), and TriggerHelper().
|
private |
Definition at line 63 of file TriggerHelper.h.
Referenced by acceptGt(), acceptGtLogicalExpression(), and TriggerHelper().
|
private |
Definition at line 74 of file TriggerHelper.h.
Referenced by acceptHlt(), acceptHltLogicalExpression(), and TriggerHelper().
|
private |
Definition at line 68 of file TriggerHelper.h.
Referenced by acceptL1LogicalExpression(), and TriggerHelper().
|
private |
Definition at line 61 of file TriggerHelper.h.
Referenced by initRun(), and TriggerHelper().
|
private |
Definition at line 59 of file TriggerHelper.h.
Referenced by TriggerHelper().
|
private |
Definition at line 60 of file TriggerHelper.h.
Referenced by acceptGt(), and TriggerHelper().
|
private |
Definition at line 62 of file TriggerHelper.h.
Referenced by acceptGt(), initRun(), and TriggerHelper().
|
private |
Definition at line 47 of file TriggerHelper.h.
Referenced by acceptHltLogicalExpression(), and initRun().
|
private |
Definition at line 48 of file TriggerHelper.h.
Referenced by acceptHlt(), and initRun().
|
private |
Definition at line 72 of file TriggerHelper.h.
Referenced by initRun(), and TriggerHelper().
|
private |
Definition at line 70 of file TriggerHelper.h.
Referenced by acceptHlt(), acceptHltLogicalExpression(), initRun(), and TriggerHelper().
|
private |
Definition at line 71 of file TriggerHelper.h.
Referenced by acceptHlt(), and TriggerHelper().
|
private |
Definition at line 73 of file TriggerHelper.h.
Referenced by acceptHlt(), initRun(), and TriggerHelper().
|
private |
Definition at line 65 of file TriggerHelper.h.
Referenced by initRun(), and TriggerHelper().
|
private |
Definition at line 46 of file TriggerHelper.h.
Referenced by acceptL1(), acceptL1LogicalExpression(), and TriggerHelper().
|
private |
Definition at line 67 of file TriggerHelper.h.
Referenced by acceptL1(), initRun(), and TriggerHelper().
|
private |
Definition at line 76 of file TriggerHelper.h.
Referenced by accept(), off(), on(), TriggerHelper(), and ~TriggerHelper().
|
private |
Definition at line 77 of file TriggerHelper.h.
Referenced by acceptDcs(), and TriggerHelper().
|
private |
Definition at line 78 of file TriggerHelper.h.
Referenced by acceptGt(), initRun(), and TriggerHelper().
|
private |
Definition at line 80 of file TriggerHelper.h.
Referenced by acceptHlt(), initRun(), and TriggerHelper().
|
private |
Definition at line 79 of file TriggerHelper.h.
Referenced by acceptL1(), initRun(), and TriggerHelper().
|
private |
Definition at line 45 of file TriggerHelper.h.
Referenced by initRun(), TriggerHelper(), and ~TriggerHelper().