CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1ValidatorHists.h
Go to the documentation of this file.
1 #ifndef L1ValidatorHists_h
2 #define L1ValidatorHists_h
3 
4 #include "TH1F.h"
5 //#include <TH2F.h>
6 
7 //#include <DataFormats/HepMCCandidate/interface/GenParticle.h>
9 
10 #include <string>
11 
14 
15 /*#define DECLARE_HISTS(TYPE) \
16 TH2F * ## TYPE ## _N_Pt; \
17 TH2F * ## TYPE ## _N_Eta; \
18 TH2F * ## TYPE ## _Eff_Pt; \
19 TH2F * ## TYPE ## _Eff_Eta; \
20 TH2F * ## TYPE ## _dR; \
21 TH2F * ## TYPE ## _dPt;
22 */
23 
25  public:
28 
29  void Book(DQMStore::IBooker &);
30  void Write();
31 
32  int NEvents;
33 
36 
37  // Each object has gen (pt, eta, phi, pdg), reco (pt, eta, phi, pdg)
38  // split by pdg (CenJet, ETM, ETT, ForJet, HTM, HTT, IsoEG, Mu, NoIsoEG, TauJet): 10
39  // needs efficiency (by pt, eta), fake rate (by pt, eta), dR (by pt, (eta?))
45  /*DECLARE_HISTS(IsoEG)
46  DECLARE_HISTS(NonIsoEG)
47  DECLARE_HISTS(CenJet)
48  DECLARE_HISTS(ForJet)
49  DECLARE_HISTS(TauJet)
50  DECLARE_HISTS(Muon)*/
51 
52  MonitorElement *N[Type::Number];
53 
54  MonitorElement *Eff_Pt[Type::Number];
55  MonitorElement *Eff_Eta[Type::Number];
56  MonitorElement *TurnOn_15[Type::Number];
57  MonitorElement *TurnOn_30[Type::Number];
58  MonitorElement *dR[Type::Number];
59  MonitorElement *dPt[Type::Number];
60 
61  // add the rest...
62  //TH2F *ETM_Delta, *ETT_Delta, *HTM_Delta, *HTT_Delta;
63 
64  void Fill(int, const reco::LeafCandidate *, const reco::LeafCandidate *);
65  void FillNumber(int, int);
66 // private:
67 // void NormalizeSlices(TH2F *Hist);
68 };
69 
70 
71 #endif
void Fill(int, const reco::LeafCandidate *, const reco::LeafCandidate *)
MonitorElement * Eff_Eta[Type::Number]
MonitorElement * N[Type::Number]
std::string Name[6]
MonitorElement * TurnOn_15[Type::Number]
void FillNumber(int, int)
MonitorElement * dPt[Type::Number]
MonitorElement * TurnOn_30[Type::Number]
MonitorElement * dR[Type::Number]
void Book(DQMStore::IBooker &)
MonitorElement * Eff_Pt[Type::Number]