CMS 3D CMS Logo

METBenchmarkAnalyzer.cc
Go to the documentation of this file.
2 
7 
10 
12 
13 using namespace reco;
14 using namespace edm;
15 using namespace std;
16 
19  setRange(parameterSet.getParameter<double>("ptMin"),
20  parameterSet.getParameter<double>("ptMax"),
21  -0.1,
22  0.1, // range in eta for MET.
23  parameterSet.getParameter<double>("phiMin"),
24  parameterSet.getParameter<double>("phiMax"));
25 
26  myColl_ = consumes<View<MET>>(inputLabel_);
27 }
28 
30  edm::Run const &iRun,
31  edm::EventSetup const &iSetup) {
32  BenchmarkAnalyzer::bookHistograms(ibooker, iRun, iSetup);
33  setup(ibooker);
34 }
35 
38  iEvent.getByToken(myColl_, collection);
39 
40  fill(*collection);
41 }
Handle.h
Benchmark
abstract base class
Definition: Benchmark.h:19
METBenchmarkAnalyzer::myColl_
edm::EDGetTokenT< edm::View< reco::MET > > myColl_
Definition: METBenchmarkAnalyzer.h:21
edm::Run
Definition: Run.h:45
METBenchmark
To plot MET quantities.
Definition: METBenchmark.h:11
edm
HLT enums.
Definition: AlignableModifier.h:19
METBenchmark::fill
void fill(const C &candidates)
fill a collection
Definition: METBenchmark.h:39
BenchmarkAnalyzer::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: BenchmarkAnalyzer.cc:28
DQMStore.h
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
BenchmarkAnalyzer::inputLabel_
edm::InputTag inputLabel_
input collection
Definition: BenchmarkAnalyzer.h:30
Benchmark::setRange
void setRange(float ptMin, float ptMax, float etaMin, float etaMax, float phiMin, float phiMax)
Definition: Benchmark.h:41
edm::Handle
Definition: AssociativeIterator.h:50
METBenchmarkAnalyzer::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: METBenchmarkAnalyzer.cc:36
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
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
METBenchmarkAnalyzer::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: METBenchmarkAnalyzer.cc:29
InputTag.h
MET.h
std
Definition: JetResolutionObject.h:76
METBenchmarkAnalyzer.h
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
METBenchmark::setup
void setup(DQMStore::IBooker &b)
book histograms
Definition: METBenchmark.cc:16
METBenchmarkAnalyzer::METBenchmarkAnalyzer
METBenchmarkAnalyzer(const edm::ParameterSet &parameterSet)
Definition: METBenchmarkAnalyzer.cc:17