|
|
Go to the documentation of this file.
29 #include "TDirectory.h"
48 std::vector<std::string>
stepLabels(
const std::vector<std::string> &);
58 std::tuple<edm::EDGetTokenT<trigger::TriggerEventWithRefs>,
79 hltProcessName_(
pset.getParameter<
string>(
"hltProcessName")),
80 hltPathsToCheck_(
pset.getParameter<
vstring>(
"hltPathsToCheck")) {
86 vector<string>::iterator iter =
modules.begin();
89 if (iter->find(
"Filtered") == string::npos)
98 vector<string>
steps(1,
"All");
102 steps.push_back(
"L3TkIso");
104 steps.push_back(
"L2Iso");
105 }
else if ((
modules[
i].
find(
"pfecalIsoRhoFiltered") != string::npos)) {
107 steps.push_back(
"L3EcalIso");
109 steps.push_back(
"TkEcalIso");
110 }
else if ((
modules[
i].
find(
"pfhcalIsoRhoFiltered") != string::npos)) {
112 steps.push_back(
"L3HcalIso");
114 steps.push_back(
"TkHcalIso");
115 }
else if (
modules[
i].
find(
"TkFiltered") != string::npos) {
116 steps.push_back(
"Tk");
118 steps.push_back(
"L3");
120 steps.push_back(
"L2");
122 steps.push_back(
"L1");
124 return vector<string>();
128 return vector<string>();
136 LogError(
"HLTMuonVal") <<
"Initialization of HLTConfigProvider failed!!";
151 set<string>::iterator iPath;
153 string path = *iPath;
154 string shortpath =
path;
155 if (
path.rfind(
"_v") <
path.length())
156 shortpath =
path.substr(0,
path.rfind(
"_v"));
170 vector<HLTMuonPlotter>::iterator iter;
172 iter->beginRun(iBooker, iRun, iSetup);
177 vector<HLTMuonPlotter>::iterator iter;
179 iter->analyze(
iEvent, iSetup);
std::tuple< edm::EDGetTokenT< trigger::TriggerEventWithRefs >, edm::EDGetTokenT< reco::GenParticleCollection >, edm::EDGetTokenT< reco::MuonCollection > > myTokens_
std::string hltProcessName_
std::vector< std::string > hltPathsToCheck_
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
HLTMuonValidator(const edm::ParameterSet &)
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
const std::vector< std::string > & moduleLabels(unsigned int trigger) const
label(s) of module(s) on a trigger path
static std::tuple< edm::EDGetTokenT< trigger::TriggerEventWithRefs >, edm::EDGetTokenT< reco::GenParticleCollection >, edm::EDGetTokenT< reco::MuonCollection > > getTokens(const edm::ParameterSet &, edm::ConsumesCollector &&)
#define DEFINE_FWK_MODULE(type)
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
void analyze(const edm::Event &, const edm::EventSetup &) override
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d'tor
std::vector< HLTMuonPlotter > analyzers_
const std::vector< std::string > & triggerNames() const
names of trigger paths
std::vector< std::string > stepLabels(const std::vector< std::string > &)
HLTConfigProvider hltConfig_
std::vector< std::string > moduleLabels(std::string)