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 
12  public:
13 
14 
16  virtual ~CandidateBenchmark();
17 
19  void setup(DQMStore::IBooker& b);
21 
22  template< class C>
23  void fill( const C& candidates);
24 
26  void fillOne( const reco::Candidate& candidate);
27 
28  protected:
29 
30 
31  TH1F* pt_;
32  TH1F* eta_;
33  TH1F* phi_;
34  TH1F* charge_;
36  TH1F* pdgId_;
37 
39 };
40 
41 template< class C>
42 void CandidateBenchmark::fill(const C& candCollection) {
43 
44  for (unsigned int i = 0; i < candCollection.size(); i++) {
45  const reco::Candidate& cand = candCollection[i];
46  fillOne(cand);
47  }
48 }
49 
50 
51 #endif
int i
Definition: DBlmapReader.cc:9
To plot Candidate quantities.
void fillOne(const reco::Candidate &candidate)
fill histograms with a given particle
abstract base class
Definition: Benchmark.h:22
void fill(const C &candidates)
TH1F * pdgId_
COLIN add this histo.
double b
Definition: hdecay.h:120
void setup(DQMStore::IBooker &b)
book histograms
ParameterSet const & parameterSet(Provenance const &provenance)
Definition: Provenance.cc:11