15 using namespace trigger;
24 string hltProcessName = pset.
getParameter<
string>(
"hltProcessName");
36 bsToken_ = iC.consumes<
BeamSpot>(inputTags.getParameter<
InputTag>(
"beamSpot"));
52 auto iter = plotters_.begin();
53 auto end = plotters_.end();
55 for (; iter !=
end; ++iter) {
56 iter->beginRun(iBooker, iRun, iSetup);
61 auto iter = plotters_.begin();
62 auto end = plotters_.end();
64 for (; iter !=
end; ++iter) {
65 iter->endRun(iRun, iSetup);
72 iEvent.
getByToken(trigSummaryToken_, triggerSummary);
74 if (!triggerSummary.
isValid()) {
75 LogError(
"HLTMuonMatchAndPlot") <<
"Missing triggerSummary collection" << endl;
80 iEvent.
getByToken(trigResultsToken_, triggerResults);
83 if (!triggerResults.
isValid()) {
84 LogError(
"HLTMuonMatchAndPlot") <<
"Missing triggerResults collection" << endl;
92 LogError(
"HLTMuonMatchAndPlot") <<
"Missing muon collection " << endl;
100 LogError(
"HLTMuonMatchAndPlot") <<
"Missing beam spot collection " << endl;
108 LogError(
"HLTMuonMatchAndPlot") <<
"Missing vertices collection " << endl;
112 auto iter = plotters_.begin();
113 auto end = plotters_.end();
115 for (; iter !=
end; ++iter) {
116 iter->analyze(allMuons, beamSpot, vertices, triggerSummary, triggerResults, trigNames);
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
Log< level::Error, false > LogError
std::vector< Muon > MuonCollection
collection of Muon objects
edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const override
static std::string const triggerResults
void analyze(const edm::Event &, const edm::EventSetup &)
static const char *const trigNames[]
T getParameter(std::string const &) const
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.