CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
METBenchmark.h
Go to the documentation of this file.
1 #ifndef RecoParticleFlow_Benchmark_METBenchmark_h
2 #define RecoParticleFlow_Benchmark_METBenchmark_h
3 
5 
7 
9 class METBenchmark : public Benchmark {
10 
11  public:
12 
14  virtual ~METBenchmark();
15 
17  void setup();
18 
20  template< class C>
21  void fill( const C& candidates);
22 
24  void fillOne( const reco::MET& candidate);
25 
26  protected:
27 
28  TH1F* pt_;
29  TH1F* px_;
30  TH1F* phi_;
31  TH1F* sumEt_;
32 
33 };
34 
35 template< class C>
36 void METBenchmark::fill(const C& candCollection) {
37 
38  for (unsigned int i = 0; i < candCollection.size(); ++i) {
39  const reco::MET& cand = candCollection[i];
40  fillOne(cand);
41  }
42 }
43 
44 #endif
TH1F * sumEt_
Definition: METBenchmark.h:31
int i
Definition: DBlmapReader.cc:9
abstract base class
Definition: Benchmark.h:20
void setup()
book histograms
Definition: METBenchmark.cc:22
virtual ~METBenchmark()
Definition: METBenchmark.cc:19
void fill(const C &candidates)
fill a collection
Definition: METBenchmark.h:36
To plot MET quantities.
Definition: METBenchmark.h:9
METBenchmark(Mode mode)
Definition: METBenchmark.h:13
Definition: MET.h:32
void fillOne(const reco::MET &candidate)
fill histograms with a given particle
Definition: METBenchmark.cc:48