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 
17 
19  BenchmarkAnalyzer(parameterSet),
20  METBenchmark( (Benchmark::Mode) parameterSet.getParameter<int>("mode") )
21 {
22 
23  setRange( parameterSet.getParameter<double>("ptMin"),
24  parameterSet.getParameter<double>("ptMax"),
25  -0.1, 0.1, // range in eta for MET.
26  parameterSet.getParameter<double>("phiMin"),
27  parameterSet.getParameter<double>("phiMax") );
28 
29  myColl_ = consumes< View<MET> >(inputLabel_);
30 
31 }
32 
33 
35  edm::Run const & iRun,
36  edm::EventSetup const & iSetup )
37 {
38  BenchmarkAnalyzer::bookHistograms(ibooker, iRun, iSetup);
39  setup(ibooker);
40 }
41 
42 void
44  const edm::EventSetup& iSetup) {
45 
47  iEvent.getByToken(myColl_, collection);
48 
49  fill( *collection );
50 }
51 
T getParameter(std::string const &) const
METBenchmarkAnalyzer(const edm::ParameterSet &parameterSet)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:508
abstract base class
Definition: Benchmark.h:22
void fill(const C &candidates)
fill a collection
Definition: METBenchmark.h:43
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:230
void setup(DQMStore::IBooker &b)
book histograms
Definition: METBenchmark.cc:23
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:51
fixed size matrix
HLT enums.
abtract base class for benchmark analyzers
edm::EDGetTokenT< edm::View< reco::MET > > myColl_
ParameterSet const & parameterSet(Provenance const &provenance)
Definition: Provenance.cc:11
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: Run.h:43