CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Public Attributes
L1ValidatorHists Class Reference

#include <L1ValidatorHists.h>

Public Types

enum  Type {
  IsoEG, NonIsoEG, CenJet, ForJet,
  TauJet, Muon, Number
}
 

Public Member Functions

void Book (DQMStore::IBooker &)
 
void Fill (int, const reco::LeafCandidate *, const reco::LeafCandidate *)
 
void FillNumber (int, int)
 
 L1ValidatorHists ()
 
void Write ()
 
 ~L1ValidatorHists ()
 

Public Attributes

MonitorElementdPt [Type::Number]
 
MonitorElementdR [Type::Number]
 
MonitorElementEff_Eta [Type::Number]
 
MonitorElementEff_Pt [Type::Number]
 
MonitorElementN [Type::Number]
 
std::string Name [6]
 
int NEvents
 
MonitorElementTurnOn_15 [Type::Number]
 
MonitorElementTurnOn_30 [Type::Number]
 

Detailed Description

Definition at line 24 of file L1ValidatorHists.h.

Member Enumeration Documentation

Constructor & Destructor Documentation

L1ValidatorHists::L1ValidatorHists ( )

Definition at line 15 of file L1ValidatorHists.cc.

References Name.

15  {
16  Name[0]="IsoEG";
17  Name[1]="NonIsoEG";
18  Name[2]="CenJet";
19  Name[3]="ForJet";
20  Name[4]="TauJet";
21  Name[5]="Muon";
22 }
std::string Name[6]
L1ValidatorHists::~L1ValidatorHists ( )

Definition at line 23 of file L1ValidatorHists.cc.

23 {}

Member Function Documentation

void L1ValidatorHists::Book ( DQMStore::IBooker iBooker)

Definition at line 25 of file L1ValidatorHists.cc.

References DQMStore::IBooker::book1D(), dPt, dR, Eff_Eta, Eff_Pt, i, N, Name, NEvents, TurnOn_15, and TurnOn_30.

Referenced by L1Validator::bookHistograms().

25  {
26  NEvents=0;
27 
28  for(int i=0; i<Type::Number; i++){
29  N[i] = iBooker.book1D( (Name[i]+"_N").c_str(), (Name[i]+" Number").c_str(), 5, -0.5, 4.5);
30 
31  Eff_Pt[i] = iBooker.book1D( (Name[i]+"_Eff_Pt").c_str(), (Name[i]+" Efficiency").c_str(), 20, 0, 100);
32  Eff_Eta[i] = iBooker.book1D( (Name[i]+"_Eff_Eta").c_str(), (Name[i]+" Efficiency").c_str(), 20, -4, 4);
33  TurnOn_15[i] = iBooker.book1D( (Name[i]+"_TurnOn_15").c_str(), (Name[i]+" Turn On (15 GeV)").c_str(), 20, 0, 100);
34  TurnOn_30[i] = iBooker.book1D( (Name[i]+"_TurnOn_30").c_str(), (Name[i]+" Turn On (30 GeV)").c_str(), 20, 0, 100);
35  dR[i] = iBooker.book1D( (Name[i]+"_dR").c_str(), (Name[i]+" dR").c_str(), 20, 0, 1);
36  dPt[i] = iBooker.book1D( (Name[i]+"_dPt").c_str(), (Name[i]+" dPt").c_str(), 20, -1, 1);
37  }
38 
39 }
int i
Definition: DBlmapReader.cc:9
MonitorElement * Eff_Eta[Type::Number]
MonitorElement * N[Type::Number]
std::string Name[6]
MonitorElement * TurnOn_15[Type::Number]
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:115
MonitorElement * dPt[Type::Number]
MonitorElement * TurnOn_30[Type::Number]
MonitorElement * dR[Type::Number]
MonitorElement * Eff_Pt[Type::Number]
void L1ValidatorHists::Fill ( int  i,
const reco::LeafCandidate GenPart,
const reco::LeafCandidate RecoPart 
)

Definition at line 41 of file L1ValidatorHists.cc.

References reco::deltaR(), dPt, dR, Eff_Eta, Eff_Pt, reco::LeafCandidate::eta(), MonitorElement::Fill(), i, NULL, reco::LeafCandidate::phi(), reco::LeafCandidate::pt(), TurnOn_15, and TurnOn_30.

Referenced by L1Validator::analyze().

41  {
42  if(RecoPart==NULL) return;
43 
44  Eff_Pt[i]->Fill(GenPart->pt());
45  if(RecoPart->pt()>15) TurnOn_15[i]->Fill(GenPart->pt());
46  if(RecoPart->pt()>30) TurnOn_30[i]->Fill(GenPart->pt());
47  Eff_Eta[i]->Fill(GenPart->eta());
48  dR[i]->Fill(reco::deltaR(GenPart->eta(), GenPart->phi(), RecoPart->eta(), RecoPart->phi()));
49  dPt[i]->Fill( (RecoPart->pt()-GenPart->pt()) / GenPart->pt() );
50 }
void Fill(int, const reco::LeafCandidate *, const reco::LeafCandidate *)
int i
Definition: DBlmapReader.cc:9
MonitorElement * Eff_Eta[Type::Number]
MonitorElement * TurnOn_15[Type::Number]
#define NULL
Definition: scimark2.h:8
double deltaR(const T1 &t1, const T2 &t2)
Definition: deltaR.h:48
virtual double eta() const
momentum pseudorapidity
virtual double pt() const
transverse momentum
void Fill(long long x)
MonitorElement * dPt[Type::Number]
MonitorElement * TurnOn_30[Type::Number]
MonitorElement * dR[Type::Number]
virtual double phi() const
momentum azimuthal angle
MonitorElement * Eff_Pt[Type::Number]
void L1ValidatorHists::FillNumber ( int  i,
int  Number 
)

Definition at line 52 of file L1ValidatorHists.cc.

References MonitorElement::Fill(), i, and N.

Referenced by L1Validator::analyze().

52  {
53  N[i]->Fill(Number);
54 }
int i
Definition: DBlmapReader.cc:9
MonitorElement * N[Type::Number]
void Fill(long long x)
void L1ValidatorHists::Write ( )

Definition at line 56 of file L1ValidatorHists.cc.

References dPt, dR, Eff_Eta, Eff_Pt, MonitorElement::getTH1(), i, N, TurnOn_15, and TurnOn_30.

56  {
57  for(int i=0; i<Type::Number; i++){
58  N[i]->getTH1()->Write();
59  Eff_Pt[i]->getTH1()->Write();
60  Eff_Eta[i]->getTH1()->Write();
61  TurnOn_15[i]->getTH1()->Write();
62  TurnOn_30[i]->getTH1()->Write();
63  dR[i]->getTH1()->Write();
64  dPt[i]->getTH1()->Write();
65  }
66 }
int i
Definition: DBlmapReader.cc:9
MonitorElement * Eff_Eta[Type::Number]
MonitorElement * N[Type::Number]
MonitorElement * TurnOn_15[Type::Number]
MonitorElement * dPt[Type::Number]
TH1 * getTH1(void) const
MonitorElement * TurnOn_30[Type::Number]
MonitorElement * dR[Type::Number]
MonitorElement * Eff_Pt[Type::Number]

Member Data Documentation

MonitorElement* L1ValidatorHists::dPt[Type::Number]

Definition at line 59 of file L1ValidatorHists.h.

Referenced by Book(), Fill(), and Write().

MonitorElement* L1ValidatorHists::dR[Type::Number]

Definition at line 58 of file L1ValidatorHists.h.

Referenced by Book(), Fill(), and Write().

MonitorElement* L1ValidatorHists::Eff_Eta[Type::Number]

Definition at line 55 of file L1ValidatorHists.h.

Referenced by Book(), Fill(), and Write().

MonitorElement* L1ValidatorHists::Eff_Pt[Type::Number]

Definition at line 54 of file L1ValidatorHists.h.

Referenced by Book(), Fill(), and Write().

MonitorElement* L1ValidatorHists::N[Type::Number]

TH2F *IsoEG_N_Pt_Eta, *IsoEG_Eff_Pt, *IsoEG_Eff_Eta, *IsoEG_dR_Pt, *IsoEG_dPt_Pt; TH2F *NonIsoEG_N_Pt_Eta, *NonIsoEG_Eff_Pt, *NonIsoEG_Eff_Eta, *NonIsoEG_dR_Pt, *NonIsoEG_dPt_Pt; TH2F *CenJet_N_Pt_Eta, *CenJet_Eff_Pt, *CenJet_Eff_Eta, *CenJet_dR_Pt, *CenJet_dPt_Pt; TH2F *Muon_N_Pt_Eta, *Muon_Eff_Pt, *Muon_Eff_Eta, *Muon_dR_Pt, *Muon_dPt_Pt;

Definition at line 52 of file L1ValidatorHists.h.

Referenced by Book(), FillNumber(), and Write().

std::string L1ValidatorHists::Name[6]

Definition at line 35 of file L1ValidatorHists.h.

Referenced by Book(), and L1ValidatorHists().

int L1ValidatorHists::NEvents

Definition at line 32 of file L1ValidatorHists.h.

Referenced by L1Validator::analyze(), and Book().

MonitorElement* L1ValidatorHists::TurnOn_15[Type::Number]

Definition at line 56 of file L1ValidatorHists.h.

Referenced by Book(), Fill(), and Write().

MonitorElement* L1ValidatorHists::TurnOn_30[Type::Number]

Definition at line 57 of file L1ValidatorHists.h.

Referenced by Book(), Fill(), and Write().