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 
18 
19  myColl_ = consumes<View<MET>>(inputLabel_);
20  myMatchColl_ = consumes<View<MET>>(matchedInputLabel_);
21 }
22 
24  edm::Run const &iRun,
25  edm::EventSetup const &iSetup) {
26  BenchmarkAnalyzer::bookHistograms(ibooker, iRun, iSetup);
27  setup(ibooker);
28 }
29 
32  iEvent.getByToken(myColl_, collection);
33 
34  Handle<View<MET>> matchedCollection;
35  iEvent.getByToken(myMatchColl_, matchedCollection);
36 
37  fillOne((*collection)[0], (*matchedCollection)[0]);
38 }
MatchMETBenchmark::fillOne
void fillOne(const reco::MET &candidate, const reco::MET &matchedCandidate)
fill histograms with a given particle
Definition: MatchMETBenchmark.cc:106
Handle.h
Benchmark
abstract base class
Definition: Benchmark.h:19
MatchMETBenchmarkAnalyzer::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: MatchMETBenchmarkAnalyzer.cc:23
MatchMETBenchmarkAnalyzer::myMatchColl_
edm::EDGetTokenT< edm::View< reco::MET > > myMatchColl_
Definition: MatchMETBenchmarkAnalyzer.h:22
edm::Run
Definition: Run.h:45
edm
HLT enums.
Definition: AlignableModifier.h:19
MatchMETBenchmarkAnalyzer::MatchMETBenchmarkAnalyzer
MatchMETBenchmarkAnalyzer(const edm::ParameterSet &parameterSet)
Definition: MatchMETBenchmarkAnalyzer.cc:15
BenchmarkAnalyzer::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: BenchmarkAnalyzer.cc:28
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:46
BenchmarkAnalyzer::inputLabel_
edm::InputTag inputLabel_
input collection
Definition: BenchmarkAnalyzer.h:30
edm::Handle
Definition: AssociativeIterator.h:50
MatchMETBenchmark::setup
void setup(DQMStore::IBooker &b)
book histograms
Definition: MatchMETBenchmark.cc:15
edm::parameterSet
ParameterSet const & parameterSet(StableProvenance const &provenance, ProcessHistory const &history)
Definition: Provenance.cc:11
CandidateFwd.h
BenchmarkAnalyzer
abtract base class for benchmark analyzers
Definition: BenchmarkAnalyzer.h:14
MatchMETBenchmarkAnalyzer.h
MatchMETBenchmark
Definition: MatchMETBenchmark.h:13
MatchMETBenchmarkAnalyzer::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: MatchMETBenchmarkAnalyzer.cc:30
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
Benchmark::Mode
Mode
Definition: Benchmark.h:32
createfilelist.int
int
Definition: createfilelist.py:10
iEvent
int iEvent
Definition: GenABIO.cc:224
universalConfigTemplate.collection
collection
Definition: universalConfigTemplate.py:81
edm::EventSetup
Definition: EventSetup.h:58
MatchMETBenchmarkAnalyzer::myColl_
edm::EDGetTokenT< edm::View< reco::MET > > myColl_
Definition: MatchMETBenchmarkAnalyzer.h:21
InputTag.h
MET.h
std
Definition: JetResolutionObject.h:76
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
dqm::implementation::IBooker
Definition: DQMStore.h:43
ParameterSet.h
edm::Event
Definition: Event.h:73
MatchMETBenchmarkAnalyzer::matchedInputLabel_
edm::InputTag matchedInputLabel_
Definition: MatchMETBenchmarkAnalyzer.h:23
edm::InputTag
Definition: InputTag.h:15