13 using namespace trigger;
24 string hltProcessName = pset.
getParameter<
string>(
"hltProcessName");
36 bsToken_ = iC.consumes<
BeamSpot>(inputTags.getParameter<
InputTag>(
"beamSpot"));
45 const std::vector<std::string>&
labels)
58 vector<HLTMuonMatchAndPlot>::iterator iter = plotters_.begin();
59 vector<HLTMuonMatchAndPlot>::iterator
end = plotters_.end();
61 for (; iter !=
end; ++iter)
63 iter->beginRun(iBooker, iRun, iSetup);
73 vector<HLTMuonMatchAndPlot>::iterator iter = plotters_.begin();
74 vector<HLTMuonMatchAndPlot>::iterator
end = plotters_.end();
76 for (; iter !=
end; ++iter)
78 iter->endRun(iRun, iSetup);
90 iEvent.
getByToken(trigSummaryToken_, triggerSummary);
94 LogError(
"HLTMuonMatchAndPlot")<<
"Missing triggerSummary collection" << endl;
99 iEvent.
getByToken(trigResultsToken_, triggerResults);
103 LogError(
"HLTMuonMatchAndPlot")<<
"Missing triggerResults collection" << endl;
112 LogError(
"HLTMuonMatchAndPlot")<<
"Missing muon collection " << endl;
121 LogError(
"HLTMuonMatchAndPlot")<<
"Missing beam spot collection " << endl;
130 LogError(
"HLTMuonMatchAndPlot")<<
"Missing vertices collection " << endl;
135 vector<HLTMuonMatchAndPlot>::iterator iter = plotters_.begin();
136 vector<HLTMuonMatchAndPlot>::iterator
end = plotters_.end();
138 for (; iter !=
end; ++iter)
140 iter->analyze(allMuons, beamSpot, vertices, triggerSummary, triggerResults);
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
tuple path
else: Piece not in the list, fine.
static std::string const triggerResults
void analyze(const edm::Event &, const edm::EventSetup &)
void addPlotter(const edm::ParameterSet &, std::string, const std::vector< std::string > &)
Add a HLTMuonMatchAndPlot for a given path.
void beginRun(DQMStore::IBooker &, const edm::Run &, const edm::EventSetup &)