CMS 3D CMS Logo

CandidateBenchmark.h
Go to the documentation of this file.
1 #ifndef RecoParticleFlow_Benchmark_CandidateBenchmark_h
2 #define RecoParticleFlow_Benchmark_CandidateBenchmark_h
3 
5 
8 
10 class CandidateBenchmark : public Benchmark {
11 public:
13  ~CandidateBenchmark() override;
14 
16  void setup(DQMStore::IBooker &b);
18 
19  template <class C>
20  void fill(const C &candidates);
21 
23  void fillOne(const reco::Candidate &candidate);
24 
25 protected:
26  TH1F *pt_;
27  TH1F *eta_;
28  TH1F *phi_;
29  TH1F *charge_;
31  TH1F *pdgId_;
32 
34 };
35 
36 template <class C>
37 void CandidateBenchmark::fill(const C &candCollection) {
38  for (unsigned int i = 0; i < candCollection.size(); i++) {
39  const reco::Candidate &cand = candCollection[i];
40  fillOne(cand);
41  }
42 }
43 
44 #endif
To plot Candidate quantities.
void fillOne(const reco::Candidate &candidate)
fill histograms with a given particle
abstract base class
Definition: Benchmark.h:19
void fill(const C &candidates)
ParameterSet const & parameterSet(StableProvenance const &provenance, ProcessHistory const &history)
Definition: Provenance.cc:11
TH1F * pdgId_
COLIN add this histo.
double b
Definition: hdecay.h:120
void setup(DQMStore::IBooker &b)
book histograms
~CandidateBenchmark() override