CMS 3D CMS Logo

MatchMETBenchmarkAnalyzer.cc
Go to the documentation of this file.
2 
7 
10 
11 using namespace reco;
12 using namespace edm;
13 using namespace std;
14 
16  BenchmarkAnalyzer(parameterSet),
17  MatchMETBenchmark( (Benchmark::Mode) parameterSet.getParameter<int>("mode") )
18 {
19  matchedInputLabel_ = parameterSet.getParameter<edm::InputTag>("MatchCollection");
20 
21  myColl_ = consumes< View<MET> >(inputLabel_);
22  myMatchColl_ = consumes< View<MET> >(matchedInputLabel_);
23 
24 }
25 
26 
28  edm::Run const & iRun,
29  edm::EventSetup const & iSetup )
30 {
31  BenchmarkAnalyzer::bookHistograms(ibooker, iRun, iSetup);
32  setup(ibooker);
33 }
34 
36  const edm::EventSetup& iSetup) {
37 
39  iEvent.getByToken(myColl_, collection);
40 
41  Handle< View<MET> > matchedCollection;
42  iEvent.getByToken(myMatchColl_, matchedCollection);
43 
44  fillOne( (*collection)[0] , (*matchedCollection)[0]);
45 }
46 
T getParameter(std::string const &) const
edm::EDGetTokenT< edm::View< reco::MET > > myColl_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:460
void setup(DQMStore::IBooker &b)
book histograms
abstract base class
Definition: Benchmark.h:22
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
void fillOne(const reco::MET &candidate, const reco::MET &matchedCandidate)
fill histograms with a given particle
edm::InputTag inputLabel_
input collection
edm::EDGetTokenT< edm::View< reco::MET > > myMatchColl_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
int iEvent
Definition: GenABIO.cc:230
MatchMETBenchmarkAnalyzer(const edm::ParameterSet &parameterSet)
fixed size matrix
HLT enums.
abtract base class for benchmark analyzers
void analyze(const edm::Event &, const edm::EventSetup &) override
ParameterSet const & parameterSet(Provenance const &provenance)
Definition: Provenance.cc:11
Definition: Run.h:42