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 
11 class METBenchmark : public Benchmark {
12 
13  public:
14 
16  virtual ~METBenchmark();
17 
19  void setup(DQMStore::IBooker& b);
20 
22  template< class C>
23  void fill( const C& candidates);
24 
26  void fillOne( const reco::MET& candidate);
27 
28  protected:
29 
30  TH1F* pt_;
31  TH1F* pt2_;
32  TH1F* px_;
33  TH1F* py_;
34  TH1F* phi_;
35  TH1F* sumEt_;
36  TH1F* sumEt2_;
37  TH1F* etOverSumEt_;
39 
40 };
41 
42 template< class C>
43 void METBenchmark::fill(const C& candCollection) {
44 
45  for (unsigned int i = 0; i < candCollection.size(); ++i) {
46  const reco::MET& cand = candCollection[i];
47  fillOne(cand);
48  }
49 }
50 
51 #endif
TH1F * sumEt_
Definition: METBenchmark.h:35
TH1F * etOverSumEt_
Definition: METBenchmark.h:37
int i
Definition: DBlmapReader.cc:9
abstract base class
Definition: Benchmark.h:22
virtual ~METBenchmark()
Definition: METBenchmark.cc:20
void fill(const C &candidates)
fill a collection
Definition: METBenchmark.h:43
To plot MET quantities.
Definition: METBenchmark.h:11
METBenchmark(Mode mode)
Definition: METBenchmark.h:15
void setup(DQMStore::IBooker &b)
book histograms
Definition: METBenchmark.cc:23
Definition: MET.h:42
void fillOne(const reco::MET &candidate)
fill histograms with a given particle
Definition: METBenchmark.cc:64
double b
Definition: hdecay.h:120
TH1F * sumEt2_
Definition: METBenchmark.h:36
TH2F * mex_VS_sumEt_
Definition: METBenchmark.h:38