34 std::vector<std::string> &moduleLabels,
35 std::vector<std::string> &stepLabels)
const;
56 hltProcessName_(
pset.getParameter<
std::
string>(
"hltProcessName")),
58 triggerEventToken_(consumes(
edm::
InputTag(
"hltTriggerSummaryRAW"))),
59 genParticlesToken_(consumes(
pset.getParameter<
std::
string>(
"genParticleLabel"))),
60 recoMuonsToken_(consumes(
pset.getParameter<
std::
string>(
"recMuonLabel"))),
61 l1tMuonMatcherAlgo_(
pset, consumesCollector()) {}
64 std::vector<std::string> &moduleLabels,
65 std::vector<std::string> &stepLabels)
const {
69 moduleLabels.reserve(hltFilters.size());
72 stepLabels.reserve(hltFilters.size() + 1);
74 for (
auto const &
module : hltFilters) {
75 if (
module.find(
"Filtered") == std::string::npos)
79 if (step_label.empty()
or std::find(stepLabels.begin(), stepLabels.end(), step_label) != stepLabels.end())
82 moduleLabels.emplace_back(
module);
83 stepLabels.emplace_back(step_label);
86 if (stepLabels.empty()) {
90 if (stepLabels[0] !=
"L1" and
std::find(stepLabels.begin(), stepLabels.end(),
"L1") != stepLabels.end()) {
92 wrn <<
"Unsupported list of 'step' labels (the label 'L1' is present, but is not the first one): stepLabels=(";
93 for (
auto const &
foo : stepLabels)
102 stepLabels.insert(stepLabels.begin(),
"All");
106 if (
module.find(
"IsoFiltered") != std::string::npos) {
107 return (
module.find(
"L3") != std::string::npos) ?
"L3TkIso" :
"L2Iso";
108 }
else if (
module.find(
"pfecalIsoRhoFiltered") != std::string::npos) {
109 if (
module.find(
"L3") != std::string::npos)
111 else if (
module.find(
"TkFiltered") != std::string::npos)
113 }
else if (
module.find(
"pfhcalIsoRhoFiltered") != std::string::npos) {
114 if (
module.find(
"L3") != std::string::npos)
116 else if (
module.find(
"TkFiltered") != std::string::npos)
118 }
else if (
module.find(
"TkFiltered") != std::string::npos)
120 else if (
module.find(
"L3") != std::string::npos)
122 else if (
module.find(
"L2") != std::string::npos)
124 else if (
module.find(
"L1") != std::string::npos)
134 edm::LogError(
"HLTMuonVal") <<
"Initialization of HLTConfigProvider failed!!";
149 std::set<std::string>::iterator iPath;
153 if (
path.rfind(
"_v") <
path.length())
154 shortpath =
path.substr(0,
path.rfind(
"_v"));
156 std::vector<std::string>
labels;
157 std::vector<std::string>
steps;
171 analyzer.beginRun(iBooker, iRun, iSetup);
void fillLabels(std::string const &path, std::vector< std::string > &moduleLabels, std::vector< std::string > &stepLabels) const
edm::EDGetTokenT< reco::MuonCollection > const recoMuonsToken_
HLTMuonPlotter::L1MuonMatcherAlgoForDQM const l1tMuonMatcherAlgo_
std::vector< HLTMuonPlotter > analyzers_
Log< level::Error, false > LogError
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
std::vector< std::string > hltPathsToCheck_
void analyze(const edm::Event &, const edm::EventSetup &) override
edm::EDGetTokenT< trigger::TriggerEventWithRefs > const triggerEventToken_
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
#define DEFINE_FWK_MODULE(type)
std::string stepLabel(std::string const &moduleLabel) const
HLTConfigProvider hltConfig_
edm::EDGetTokenT< reco::GenParticleCollection > const genParticlesToken_
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d'tor
const std::vector< std::string > & triggerNames() const
names of trigger paths
std::string hltProcessName_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
HLTMuonValidator(const edm::ParameterSet &)
const std::vector< std::string > & saveTagsModules(unsigned int trigger) const