29 #include "TDirectory.h" 48 std::vector<std::string>
stepLabels(
const std::vector<std::string> &);
81 hltProcessName_(
pset.getParameter<
string>(
"hltProcessName")),
82 hltPathsToCheck_(
pset.getParameter<
vstring>(
"hltPathsToCheck")),
83 triggerEventToken_(consumes(
edm::
InputTag(
"hltTriggerSummaryRAW"))),
84 genParticlesToken_(consumes(
pset.getParameter<
string>(
"genParticleLabel"))),
85 recoMuonsToken_(consumes(
pset.getParameter<
string>(
"recMuonLabel"))),
86 l1tMuonMatcherAlgo_(
pset, consumesCollector()) {}
90 vector<string>::iterator iter =
modules.begin();
93 if (iter->find(
"Filtered") == string::npos)
102 vector<string>
steps(1,
"All");
106 steps.push_back(
"L3TkIso");
108 steps.push_back(
"L2Iso");
109 }
else if ((
modules[
i].
find(
"pfecalIsoRhoFiltered") != string::npos)) {
111 steps.push_back(
"L3EcalIso");
113 steps.push_back(
"TkEcalIso");
114 }
else if ((
modules[
i].
find(
"pfhcalIsoRhoFiltered") != string::npos)) {
116 steps.push_back(
"L3HcalIso");
118 steps.push_back(
"TkHcalIso");
119 }
else if (
modules[
i].
find(
"TkFiltered") != string::npos) {
120 steps.push_back(
"Tk");
122 steps.push_back(
"L3");
124 steps.push_back(
"L2");
126 steps.push_back(
"L1");
128 return vector<string>();
132 return vector<string>();
140 LogError(
"HLTMuonVal") <<
"Initialization of HLTConfigProvider failed!!";
155 set<string>::iterator iPath;
157 string path = *iPath;
158 string shortpath =
path;
159 if (
path.rfind(
"_v") <
path.length())
160 shortpath =
path.substr(0,
path.rfind(
"_v"));
175 vector<HLTMuonPlotter>::iterator iter;
177 iter->beginRun(iBooker, iRun, iSetup);
182 vector<HLTMuonPlotter>::iterator iter;
184 iter->analyze(
iEvent, iSetup);
#define DEFINE_FWK_MODULE(type)
std::vector< std::string > stepLabels(const std::vector< std::string > &)
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_
const std::vector< std::string > & moduleLabels(unsigned int trigger) const
label(s) of module(s) on a trigger path
std::vector< std::string > moduleLabels(std::string)
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 &)