31 #include "TDirectory.h"
33 #include "boost/tuple/tuple.hpp"
60 std::vector<std::string>
stepLabels(
const std::vector<std::string>&);
85 using namespace trigger;
96 hltProcessName_(pset.getParameter<
string>(
"hltProcessName")),
97 hltPathsToCheck_(pset.getParameter<
vstring>(
"hltPathsToCheck"))
110 vector<string>::iterator
iter = modules.begin();
112 while (iter != modules.end())
113 if (iter->find(
"Filtered") == string::npos)
114 iter = modules.erase(iter);
126 vector<string>
steps(1,
"All");
127 for (
size_t i = 0;
i < modules.size();
i++) {
128 if (modules[
i].
find(
"IsoFiltered") != string::npos) {
129 if (modules[
i].
find(
"L3") != string::npos)
130 steps.push_back(
"L3Iso");
132 steps.push_back(
"L2Iso");
134 else if (modules[
i].
find(
"L3") != string::npos)
135 steps.push_back(
"L3");
136 else if (modules[
i].
find(
"L2") != string::npos)
137 steps.push_back(
"L2");
138 else if (modules[
i].
find(
"L1") != string::npos)
139 steps.push_back(
"L1");
141 return vector<string>();
143 if (steps.size() < 2 || steps[1] !=
"L1")
144 return vector<string>();
158 LogError(
"HLTMuonVal") <<
"Initialization of HLTConfigProvider failed!!";
173 set<string>::iterator iPath;
174 for (iPath = hltPaths.begin(); iPath != hltPaths.end(); iPath++) {
176 string path = * iPath;
177 string shortpath =
path;
178 if (path.rfind(
"_v") < path.length())
179 shortpath = path.substr(0, path.rfind(
"_v"));
184 if (labels.size() > 0 && steps.size() > 0) {
200 vector<HLTMuonPlotter>::iterator
iter;
202 iter->beginRun(iBooker, iRun, iSetup);
214 vector<HLTMuonPlotter>::iterator
iter;
216 iter->analyze(iEvent, iSetup);
#define DEFINE_FWK_MODULE(type)
std::vector< std::string > stepLabels(const std::vector< std::string > &)
const std::vector< std::string > & triggerNames() const
names of trigger paths
std::vector< HLTMuonPlotter > analyzers_
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
std::vector< std::string > hltPathsToCheck_
boost::tuple< edm::EDGetTokenT< trigger::TriggerEventWithRefs >, edm::EDGetTokenT< reco::GenParticleCollection >, edm::EDGetTokenT< reco::MuonCollection > > myTokens_
static boost::tuple< edm::EDGetTokenT< trigger::TriggerEventWithRefs >, edm::EDGetTokenT< reco::GenParticleCollection >, edm::EDGetTokenT< reco::MuonCollection > > getTokens(const edm::ParameterSet &, edm::ConsumesCollector &&)
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
tuple path
else: Piece not in the list, fine.
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
std::vector< std::string > moduleLabels(std::string)
const std::vector< std::string > & moduleLabels(unsigned int trigger) const
label(s) of module(s) on a trigger path
virtual void endRun(const edm::Run &, const edm::EventSetup &) override
HLTConfigProvider hltConfig_
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d'tor
std::string hltProcessName_
virtual void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
virtual void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
HLTMuonValidator(const edm::ParameterSet &)