#include <TriggerTools.h>
Classes | |
struct | Record |
Public Member Functions | |
void | addTriggerRecord (const std::string &name) |
void | addTriggerRecord (const std::string &name, const std::string &objName) |
void | initHLTObjects (const HLTConfigProvider &hltConfigProvider_) |
bool | pass () const |
bool | passObj (const double eta, const double phi) const |
void | readEvent (const edm::Event &iEvent) |
void | setDRMAX (const double _drMax) |
void | setTriggerEventToken (edm::EDGetTokenT< trigger::TriggerEvent > token) |
void | setTriggerResultsToken (edm::EDGetTokenT< edm::TriggerResults > token) |
TriggerTools () | |
~TriggerTools () | |
Private Member Functions | |
void | initPathNames (const std::vector< std::string > &triggerNames) |
Private Attributes | |
double | DRMAX = 0.1 |
edm::EDGetTokenT< trigger::TriggerEvent > | fHLTObjTag_token |
edm::EDGetTokenT< edm::TriggerResults > | fHLTTag_token |
edm::ParameterSetID | fTriggerNamesID |
edm::Handle< trigger::TriggerEvent > | hTrgEvt |
edm::Handle< edm::TriggerResults > | hTrgRes |
std::vector< Record > | records |
TriggerBits | triggerBits |
Definition at line 19 of file TriggerTools.h.
|
inline |
Definition at line 21 of file TriggerTools.h.
|
inline |
Definition at line 22 of file TriggerTools.h.
|
inline |
Definition at line 30 of file TriggerTools.h.
References TriggerTools::Record::hltPattern, Skims_PA_cff::name, and records.
Referenced by ZCounting::ZCounting(), and ZCountingElectrons::ZCountingElectrons().
|
inline |
Definition at line 35 of file TriggerTools.h.
References TriggerTools::Record::hltObjName, TriggerTools::Record::hltPattern, Skims_PA_cff::name, mkLumiAveragedPlots::objName, and records.
void TriggerTools::initHLTObjects | ( | const HLTConfigProvider & | hltConfigProvider_ | ) |
Definition at line 35 of file TriggerTools.cc.
References heavyIonCSV_trainingSettings::idx, initPathNames(), HLTConfigProvider::moduleEDMType(), HerwigMaxPtPartonFilter_cfi::moduleLabel, HLTConfigProvider::moduleLabels(), HLTConfigProvider::moduleType(), or, records, HLTConfigProvider::saveTags(), HLTConfigProvider::triggerIndex(), L1TEGammaOffline_cfi::triggerNames, and HLTConfigProvider::triggerNames().
Referenced by ZCountingElectrons::dqmBeginRun(), and ZCounting::dqmBeginRun().
|
private |
Definition at line 10 of file TriggerTools.cc.
References createfilelist::int, edm::is_glob(), match(), oniaPATMuonsWithTrigger_cff::matches, topSingleLeptonDQM_PU_cfi::pattern, records, edm::regexMatch(), AlCaHLTBitMon_QueryRunRegistry::string, and L1TEGammaOffline_cfi::triggerNames.
Referenced by initHLTObjects().
bool TriggerTools::pass | ( | ) | const |
Definition at line 121 of file TriggerTools.cc.
References triggerBits.
Referenced by ZCountingElectrons::analyze(), and ZCounting::analyze().
bool TriggerTools::passObj | ( | const double | eta, |
const double | phi | ||
) | const |
Definition at line 130 of file TriggerTools.cc.
References reco::deltaR(), DRMAX, trigger::TriggerObject::eta(), PVValHelper::eta, trigger::TriggerEvent::filterIndex(), trigger::TriggerEvent::filterKeys(), pdwgDoubleElectron_cfi::filterName, trigger::TriggerEvent::getObjects(), hTrgEvt, mps_fire::i, relativeConstraints::keys, phi, trigger::TriggerObject::phi(), records, trigger::TriggerEvent::sizeFilters(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by ZCountingElectrons::analyze(), and ZCounting::analyze().
void TriggerTools::readEvent | ( | const edm::Event & | iEvent | ) |
Definition at line 90 of file TriggerTools.cc.
References edm::HLTGlobalStatus::accept(), fHLTObjTag_token, fHLTTag_token, hTrgEvt, hTrgRes, mps_fire::i, iEvent, createfilelist::int, edm::HandleBase::isValid(), LogDebug, records, and triggerBits.
Referenced by ZCountingElectrons::analyze(), and ZCounting::analyze().
|
inline |
Definition at line 28 of file TriggerTools.h.
References DRMAX.
Referenced by ZCounting::ZCounting(), and ZCountingElectrons::ZCountingElectrons().
|
inline |
Definition at line 27 of file TriggerTools.h.
References fHLTObjTag_token, and unpackBuffers-CaloStage2::token.
Referenced by ZCounting::ZCounting(), and ZCountingElectrons::ZCountingElectrons().
|
inline |
Definition at line 26 of file TriggerTools.h.
References fHLTTag_token, and unpackBuffers-CaloStage2::token.
Referenced by ZCounting::ZCounting(), and ZCountingElectrons::ZCountingElectrons().
|
private |
Definition at line 70 of file TriggerTools.h.
Referenced by passObj(), and setDRMAX().
|
private |
Definition at line 57 of file TriggerTools.h.
Referenced by readEvent(), and setTriggerEventToken().
|
private |
Definition at line 56 of file TriggerTools.h.
Referenced by readEvent(), and setTriggerResultsToken().
|
private |
Definition at line 62 of file TriggerTools.h.
|
private |
Definition at line 60 of file TriggerTools.h.
Referenced by passObj(), and readEvent().
|
private |
Definition at line 59 of file TriggerTools.h.
Referenced by readEvent().
|
private |
Definition at line 54 of file TriggerTools.h.
Referenced by addTriggerRecord(), initHLTObjects(), initPathNames(), passObj(), and readEvent().
|
private |
Definition at line 67 of file TriggerTools.h.
Referenced by pass(), and readEvent().