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  void Book();
29  void Normalize();
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  TH1F *N_Pt[Type::Number];
54  TH1F *N_Eta[Type::Number];
55  MonitorElement *Eff_Pt[Type::Number];
56  MonitorElement *Eff_Eta[Type::Number];
57  MonitorElement *TurnOn_15[Type::Number];
58  MonitorElement *TurnOn_30[Type::Number];
59  MonitorElement *dR[Type::Number];
60  MonitorElement *dPt[Type::Number];
61 
62  // add the rest...
63  //TH2F *ETM_Delta, *ETT_Delta, *HTM_Delta, *HTT_Delta;
64 
66 
67  void Fill(int, const reco::LeafCandidate *, const reco::LeafCandidate *);
68  void FillNumber(int, int);
69 // private:
70 // void NormalizeSlices(TH2F *Hist);
71 };
72 
73 
74 #endif
void Fill(int, const reco::LeafCandidate *, const reco::LeafCandidate *)
TH1F * N_Pt[Type::Number]
MonitorElement * Eff_Eta[Type::Number]
MonitorElement * N[Type::Number]
std::string Name[6]
TH1F * N_Eta[Type::Number]
MonitorElement * TurnOn_15[Type::Number]
void FillNumber(int, int)
L1ValidatorHists(DQMStore *dbe)
MonitorElement * dPt[Type::Number]
MonitorElement * TurnOn_30[Type::Number]
MonitorElement * dR[Type::Number]
MonitorElement * Eff_Pt[Type::Number]