26 string hltProcessName = pset.
getParameter<
string>(
"hltProcessName");
38 bsToken_ = iC.consumes<
BeamSpot>(inputTags.getParameter<
InputTag>(
"beamSpot"));
60 auto iter = plotters_.begin();
61 auto end = plotters_.end();
63 for (; iter !=
end; ++iter)
65 iter->beginRun(iBooker, iRun, iSetup);
75 auto iter = plotters_.begin();
76 auto end = plotters_.end();
78 for (; iter !=
end; ++iter)
80 iter->endRun(iRun, iSetup);
92 iEvent.
getByToken(trigSummaryToken_, triggerSummary);
96 LogError(
"HLTMuonMatchAndPlot")<<
"Missing triggerSummary collection" << endl;
101 iEvent.
getByToken(trigResultsToken_, triggerResults);
106 LogError(
"HLTMuonMatchAndPlot")<<
"Missing triggerResults collection" << endl;
115 LogError(
"HLTMuonMatchAndPlot")<<
"Missing muon collection " << endl;
124 LogError(
"HLTMuonMatchAndPlot")<<
"Missing beam spot collection " << endl;
133 LogError(
"HLTMuonMatchAndPlot")<<
"Missing vertices collection " << endl;
138 auto iter = plotters_.begin();
139 auto end = plotters_.end();
141 for (; iter !=
end; ++iter)
143 iter->analyze(allMuons, beamSpot, vertices, triggerSummary, triggerResults, trigNames);
T getParameter(std::string const &) const
void endRun(const edm::Run &, const edm::EventSetup &)
HLTMuonMatchAndPlotContainer(edm::ConsumesCollector &&, const edm::ParameterSet &)
Constructor.
The single EDProduct to be saved for each event (AOD case)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< Vertex > VertexCollection
collection of Vertex objects
std::vector< Muon > MuonCollection
collection of Muon objects
static std::string const triggerResults
void analyze(const edm::Event &, const edm::EventSetup &)
static const char *const trigNames[]
void beginRun(DQMStore::IBooker &, const edm::Run &, const edm::EventSetup &)
void addPlotter(const edm::ParameterSet &, std::string, std::string, bool)
Add a HLTMuonMatchAndPlot for a given path.
edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const override