CMS 3D CMS Logo

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 
13 
14 /*#define DECLARE_HISTS(TYPE) \
15 TH2F * ## TYPE ## _N_Pt; \
16 TH2F * ## TYPE ## _N_Eta; \
17 TH2F * ## TYPE ## _Eff_Pt; \
18 TH2F * ## TYPE ## _Eff_Eta; \
19 TH2F * ## TYPE ## _dR; \
20 TH2F * ## TYPE ## _dPt;
21 */
22 
24 public:
27 
30 
32  void Write();
33 
34  int NEvents;
35 
36  // enum Type{ IsoEG, NonIsoEG, CenJet, ForJet, TauJet, Muon, Number };
37  enum Type { Egamma, Jet, Tau, Muon, Number };
39 
40  // Each object has gen (pt, eta, phi, pdg), reco (pt, eta, phi, pdg)
41  // split by pdg (CenJet, ETM, ETT, ForJet, HTM, HTT, IsoEG, Mu, NoIsoEG,
42  // TauJet): 10 needs efficiency (by pt, eta), fake rate (by pt, eta), dR (by
43  // pt, (eta?))
50  /*DECLARE_HISTS(IsoEG)
51  DECLARE_HISTS(NonIsoEG)
52  DECLARE_HISTS(CenJet)
53  DECLARE_HISTS(ForJet)
54  DECLARE_HISTS(TauJet)
55  DECLARE_HISTS(Muon)*/
56 
58 
75 
76  // add the rest...
77  // TH2F *ETM_Delta, *ETT_Delta, *HTM_Delta, *HTT_Delta;
78 
79  void Fill(int, const reco::LeafCandidate *, const reco::LeafCandidate *);
80  void FillNumber(int, int);
81  // private:
82  // void NormalizeSlices(TH2F *Hist);
83 };
84 
85 #endif
L1ValidatorHists::dPt
MonitorElement * dPt[Type::Number]
Definition: L1ValidatorHists.h:72
L1ValidatorHists::dR
MonitorElement * dR[Type::Number]
Definition: L1ValidatorHists.h:71
L1ValidatorHists::Write
void Write()
Definition: L1ValidatorHists.cc:164
L1ValidatorHists::NEvents
int NEvents
Definition: L1ValidatorHists.h:34
L1ValidatorHists::Eff_Pt_Nomin
MonitorElement * Eff_Pt_Nomin[Type::Number]
Definition: L1ValidatorHists.h:61
L1ValidatorHists::L1ValidatorHists
L1ValidatorHists()
Definition: L1ValidatorHists.cc:15
L1ValidatorHists::TurnOn_30_Nomin
MonitorElement * TurnOn_30_Nomin[Type::Number]
Definition: L1ValidatorHists.h:70
DQMStore.h
dqm::legacy::MonitorElement
Definition: MonitorElement.h:462
HcalTBWriter_cfi.Number
Number
Definition: HcalTBWriter_cfi.py:19
L1ValidatorHists::Number
Definition: L1ValidatorHists.h:37
L1ValidatorHists::dPt_vs_Pt
MonitorElement * dPt_vs_Pt[Type::Number]
Definition: L1ValidatorHists.h:74
L1ValidatorHists::Type
Type
Definition: L1ValidatorHists.h:37
BTVHLTOfflineSource_cfi.dirname
dirname
Definition: BTVHLTOfflineSource_cfi.py:7
dqm::legacy::DQMStore
Definition: DQMStore.h:728
L1ValidatorHists::Name
std::string Name[4]
Definition: L1ValidatorHists.h:38
L1ValidatorHists::Eff_Pt
MonitorElement * Eff_Pt[Type::Number]
Definition: L1ValidatorHists.h:59
L1ValidatorHists::~L1ValidatorHists
~L1ValidatorHists()
Definition: L1ValidatorHists.cc:27
L1ValidatorHists::dR_vs_Pt
MonitorElement * dR_vs_Pt[Type::Number]
Definition: L1ValidatorHists.h:73
L1ValidatorHists::DQMStore
dqm::legacy::DQMStore DQMStore
Definition: L1ValidatorHists.h:25
LeafCandidate.h
L1ValidatorHists::Fill
void Fill(int, const reco::LeafCandidate *, const reco::LeafCandidate *)
Definition: L1ValidatorHists.cc:128
L1ValidatorHists::Eff_Eta_Denom
MonitorElement * Eff_Eta_Denom[Type::Number]
Definition: L1ValidatorHists.h:63
L1ValidatorHists::Eff_Eta
MonitorElement * Eff_Eta[Type::Number]
Definition: L1ValidatorHists.h:62
L1ValidatorHists::N
MonitorElement * N[Type::Number]
Definition: L1ValidatorHists.h:57
L1ValidatorHists::TurnOn_15
MonitorElement * TurnOn_15[Type::Number]
Definition: L1ValidatorHists.h:65
L1ValidatorHists::TurnOn_15_Denom
MonitorElement * TurnOn_15_Denom[Type::Number]
Definition: L1ValidatorHists.h:66
L1ValidatorHists::Muon
Definition: L1ValidatorHists.h:37
L1ValidatorHists::Egamma
Definition: L1ValidatorHists.h:37
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
L1ValidatorHists::Tau
Definition: L1ValidatorHists.h:37
L1ValidatorHists::FillNumber
void FillNumber(int, int)
Definition: L1ValidatorHists.cc:162
L1ValidatorHists::Eff_Pt_Denom
MonitorElement * Eff_Pt_Denom[Type::Number]
Definition: L1ValidatorHists.h:60
dqm::implementation::IBooker
Definition: DQMStore.h:43
L1ValidatorHists::Jet
Definition: L1ValidatorHists.h:37
reco::LeafCandidate
Definition: LeafCandidate.h:16
L1ValidatorHists::MonitorElement
dqm::legacy::MonitorElement MonitorElement
Definition: L1ValidatorHists.h:26
L1ValidatorHists::TurnOn_15_Nomin
MonitorElement * TurnOn_15_Nomin[Type::Number]
Definition: L1ValidatorHists.h:67
L1ValidatorHists
Definition: L1ValidatorHists.h:23
L1ValidatorHists::TurnOn_30_Denom
MonitorElement * TurnOn_30_Denom[Type::Number]
Definition: L1ValidatorHists.h:69
L1ValidatorHists::TurnOn_30
MonitorElement * TurnOn_30[Type::Number]
Definition: L1ValidatorHists.h:68
L1ValidatorHists::Book
void Book(DQMStore::IBooker &, std::string dirname)
Definition: L1ValidatorHists.cc:29
L1ValidatorHists::Eff_Eta_Nomin
MonitorElement * Eff_Eta_Nomin[Type::Number]
Definition: L1ValidatorHists.h:64