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 
18  : BenchmarkAnalyzer(parameterSet), METBenchmark((Benchmark::Mode)parameterSet.getParameter<int>("mode")) {
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 }
T getParameter(std::string const &) const
METBenchmarkAnalyzer(const edm::ParameterSet &parameterSet)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:525
abstract base class
Definition: Benchmark.h:19
edm::EDGetTokenT< edm::View< reco::MET > > myColl_
void fill(const C &candidates)
fill a collection
Definition: METBenchmark.h:39
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
edm::InputTag inputLabel_
input collection
To plot MET quantities.
Definition: METBenchmark.h:11
int iEvent
Definition: GenABIO.cc:224
void setup(DQMStore::IBooker &b)
book histograms
Definition: METBenchmark.cc:16
void analyze(const edm::Event &, const edm::EventSetup &) override
void setRange(float ptMin, float ptMax, float etaMin, float etaMax, float phiMin, float phiMax)
Definition: Benchmark.h:41
fixed size matrix
HLT enums.
abtract base class for benchmark analyzers
ParameterSet const & parameterSet(Provenance const &provenance)
Definition: Provenance.cc:11
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: Run.h:45