CMS 3D CMS Logo

CandidateBenchmarkAnalyzer.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  parameterSet.getParameter<double>("etaMin"),
22  parameterSet.getParameter<double>("etaMax"),
23  parameterSet.getParameter<double>("phiMin"),
24  parameterSet.getParameter<double>("phiMax"));
25 
26  myColl_ = consumes<View<Candidate>>(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
CandidateBenchmark::fill
void fill(const C &candidates)
Definition: CandidateBenchmark.h:37
CandidateBenchmarkAnalyzer::CandidateBenchmarkAnalyzer
CandidateBenchmarkAnalyzer(const edm::ParameterSet &parameterSet)
Definition: CandidateBenchmarkAnalyzer.cc:17
edm::Run
Definition: Run.h:45
edm
HLT enums.
Definition: AlignableModifier.h:19
CandidateBenchmarkAnalyzer.h
BenchmarkAnalyzer::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: BenchmarkAnalyzer.cc:28
DQMStore.h
CandidateBenchmark
To plot Candidate quantities.
Definition: CandidateBenchmark.h:10
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
CandidateBenchmark::setup
void setup(DQMStore::IBooker &b)
book histograms
Definition: CandidateBenchmark.cc:24
CandidateFwd.h
BenchmarkAnalyzer
abtract base class for benchmark analyzers
Definition: BenchmarkAnalyzer.h:14
edm::ParameterSet
Definition: ParameterSet.h:36
Event.h
Benchmark::Mode
Mode
Definition: Benchmark.h:32
CandidateBenchmarkAnalyzer::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: CandidateBenchmarkAnalyzer.cc:29
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:57
InputTag.h
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
std
Definition: JetResolutionObject.h:76
CandidateBenchmarkAnalyzer::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: CandidateBenchmarkAnalyzer.cc:36
edm::parameterSet
ParameterSet const & parameterSet(Provenance const &provenance, ProcessHistory const &history)
Definition: Provenance.cc:11
dqm::implementation::IBooker
Definition: DQMStore.h:43
Candidate.h
ParameterSet.h
edm::Event
Definition: Event.h:73
CandidateBenchmarkAnalyzer::myColl_
edm::EDGetTokenT< edm::View< reco::Candidate > > myColl_
Definition: CandidateBenchmarkAnalyzer.h:21