CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
HMesonGammaDQM Class Reference

#include <HMesonGammaDQM.h>

Inheritance diagram for HMesonGammaDQM:
TriggerDQMBase

Public Member Functions

void bookHistograms (DQMStore::IBooker &)
 
void fillHistograms (const reco::PhotonCollection &photons, std::vector< TLorentzVector > mesons, const int &ls, const bool passCond)
 
 HMesonGammaDQM ()
 
void initialise (const edm::ParameterSet &iConfig)
 
 ~HMesonGammaDQM () override
 
- Public Member Functions inherited from TriggerDQMBase
void bookME (DQMStore::IBooker &, ObjME &me, const std::string &histname, const std::string &histtitle, unsigned nbins, double xmin, double xmax)
 
void bookME (DQMStore::IBooker &, ObjME &me, const std::string &histname, const std::string &histtitle, const std::vector< double > &binningX)
 
void bookME (DQMStore::IBooker &, ObjME &me, const std::string &histname, const std::string &histtitle, unsigned nbinsX, double xmin, double xmax, double ymin, double ymax)
 
void bookME (DQMStore::IBooker &, ObjME &me, const std::string &histname, const std::string &histtitle, unsigned nbinsX, double xmin, double xmax, unsigned nbinsY, double ymin, double ymax)
 
void bookME (DQMStore::IBooker &, ObjME &me, const std::string &histname, const std::string &histtitle, const std::vector< double > &binningX, const std::vector< double > &binningY)
 
void setMETitle (ObjME &me, const std::string &titleX, const std::string &titleY)
 
 TriggerDQMBase ()=default
 
virtual ~TriggerDQMBase ()=default
 

Static Public Member Functions

static void fillHmgDescription (edm::ParameterSetDescription &histoPSet)
 
- Static Public Member Functions inherited from TriggerDQMBase
static void fillHistoLSPSetDescription (edm::ParameterSetDescription &pset)
 
static void fillHistoPSetDescription (edm::ParameterSetDescription &pset)
 
static MEbinning getHistoLSPSet (const edm::ParameterSet &pset)
 
static MEbinning getHistoPSet (const edm::ParameterSet &pset)
 

Private Attributes

MEbinning eta_binning_
 
ObjME gammaetaME_
 
ObjME gammaetaVsLS_
 
std::vector< double > gammapt_variable_binning_
 
ObjME gammaptME_
 
MEbinning ls_binning_
 
ObjME mesonetaME_
 
std::vector< double > mesonpt_variable_binning_
 
ObjME mesonptME_
 

Detailed Description

Definition at line 17 of file HMesonGammaDQM.h.

Constructor & Destructor Documentation

HMesonGammaDQM::HMesonGammaDQM ( )
default
HMesonGammaDQM::~HMesonGammaDQM ( )
overridedefault

Member Function Documentation

void HMesonGammaDQM::bookHistograms ( DQMStore::IBooker ibooker)

Definition at line 18 of file HMesonGammaDQM.cc.

References TriggerDQMBase::bookME(), eta_binning_, gammaetaME_, gammaetaVsLS_, gammapt_variable_binning_, gammaptME_, ls_binning_, mesonetaME_, mesonpt_variable_binning_, mesonptME_, TriggerDQMBase::MEbinning::nbins, TriggerDQMBase::setMETitle(), AlCaHLTBitMon_QueryRunRegistry::string, TriggerDQMBase::MEbinning::xmax, and TriggerDQMBase::MEbinning::xmin.

Referenced by ObjMonitor::bookHistograms().

19 {
20 
21  std::string histname, histtitle;
22 
23  histname = "gammapt"; histtitle = "Gamma pT";
24  bookME(ibooker,gammaptME_,histname,histtitle,gammapt_variable_binning_);
25  setMETitle(gammaptME_,"Gamma p_{T} [GeV]","events / [GeV]");
26 
27  histname = "mesonpt"; histtitle = "Meson pT";
28  bookME(ibooker,mesonptME_,histname,histtitle,mesonpt_variable_binning_);
29  setMETitle(mesonptME_,"Meson p_{T} [GeV]","events / [GeV]");
30 
31  histname = "gammaeta"; histtitle = "Gamma eta";
33  setMETitle(gammaetaME_,"Gamma #eta","events");
34 
35  histname = "mesoneta"; histtitle = "Meson eta";
37  setMETitle(mesonetaME_,"Meson #eta","events");
38 
39  histname = "gammaetaVsLS"; histtitle = "Gamma eta vs LS";
41  setMETitle(gammaetaVsLS_,"LS","Gamma #eta");
42 
43 }
MEbinning ls_binning_
std::vector< double > mesonpt_variable_binning_
MEbinning eta_binning_
void setMETitle(ObjME &me, const std::string &titleX, const std::string &titleY)
std::vector< double > gammapt_variable_binning_
void bookME(DQMStore::IBooker &, ObjME &me, const std::string &histname, const std::string &histtitle, unsigned nbins, double xmin, double xmax)
void HMesonGammaDQM::fillHistograms ( const reco::PhotonCollection photons,
std::vector< TLorentzVector >  mesons,
const int &  ls,
const bool  passCond 
)

Definition at line 45 of file HMesonGammaDQM.cc.

References TriggerDQMBase::ObjME::denominator, HcalObjRepresent::Fill(), gammaetaME_, gammaetaVsLS_, gammaptME_, mesonetaME_, mesonptME_, TriggerDQMBase::ObjME::numerator, EnergyCorrector::pt, and reco::tau::disc::Pt().

Referenced by ObjMonitor::analyze().

48  {
49 
50  // filling histograms (denominator)
51  if (!photons.empty()){
52  double eta1 = photons[0].eta();
54  gammaetaME_.denominator -> Fill(eta1);
55  gammaetaVsLS_.denominator -> Fill(ls, eta1);
56  }
57  if (!mesons.empty()){
58  double eta2 = mesons[0].Eta();
59  mesonptME_.denominator -> Fill(mesons[0].Pt());
60  mesonetaME_.denominator -> Fill(eta2);
61  }
62 
63 
64  // applying selection for numerator
65  if (passCond){
66  if (!photons.empty()){
67  double eta1 = photons[0].eta();
69  gammaetaME_.numerator -> Fill(eta1);
70  gammaetaVsLS_.numerator -> Fill(ls, eta1);
71  }
72  if (!mesons.empty()){
73  double eta2 = mesons[0].Eta();
74  mesonptME_.numerator -> Fill(mesons[0].Pt());
75  mesonetaME_.numerator -> Fill(eta2);
76  }
77  }
78 
79 }
MonitorElement * numerator
MonitorElement * denominator
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
def ls(path, rec=False)
Definition: eostools.py:349
void HMesonGammaDQM::fillHmgDescription ( edm::ParameterSetDescription histoPSet)
static

Definition at line 81 of file HMesonGammaDQM.cc.

References edm::ParameterSetDescription::add(), TriggerDQMBase::fillHistoLSPSetDescription(), and TriggerDQMBase::fillHistoPSetDescription().

Referenced by ObjMonitor::fillDescriptions().

81  {
82 
84  fillHistoPSetDescription(hmgetaPSet);
85  histoPSet.add<edm::ParameterSetDescription>("hmgetaPSet", hmgetaPSet);
86 
87  std::vector<double> pt1bins = {0.,20.,40.,60.,80.,90.,100.,110.,120.,130.,140.,150.,160.,180.,210.,240.,270.,300.,330.,360.,400.,450.,500.,750.,1000.,1500.};
88  histoPSet.add<std::vector<double> >("gammaptBinning", pt1bins);
89 
90  std::vector<double> pt2bins = {0.,20.,40.,45.,50.,55.,60.,65.,70.,80.,90.,100.,110.,120.,150.,180.,210.,240.,270.,300.,350.,400.,1000.};
91  histoPSet.add<std::vector<double> >("mesonptBinning", pt2bins);
92 
95  histoPSet.add<edm::ParameterSetDescription>("hmglsPSet", lsPSet);
96 
97 }
static void fillHistoLSPSetDescription(edm::ParameterSetDescription &pset)
static void fillHistoPSetDescription(edm::ParameterSetDescription &pset)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void HMesonGammaDQM::initialise ( const edm::ParameterSet iConfig)

Definition at line 8 of file HMesonGammaDQM.cc.

References eta_binning_, gammapt_variable_binning_, TriggerDQMBase::getHistoPSet(), edm::ParameterSet::getParameter(), ls_binning_, and mesonpt_variable_binning_.

Referenced by ObjMonitor::ObjMonitor().

8  {
9 
10  gammapt_variable_binning_ = iConfig.getParameter<edm::ParameterSet>("histoPSet").getParameter<std::vector<double> >("gammaptBinning");
11  mesonpt_variable_binning_ = iConfig.getParameter<edm::ParameterSet>("histoPSet").getParameter<std::vector<double> >("mesonptBinning");
12 
15 
16 }
T getParameter(std::string const &) const
MEbinning ls_binning_
std::vector< double > mesonpt_variable_binning_
MEbinning eta_binning_
static MEbinning getHistoPSet(const edm::ParameterSet &pset)
std::vector< double > gammapt_variable_binning_

Member Data Documentation

MEbinning HMesonGammaDQM::eta_binning_
private

Definition at line 35 of file HMesonGammaDQM.h.

Referenced by bookHistograms(), and initialise().

ObjME HMesonGammaDQM::gammaetaME_
private

Definition at line 41 of file HMesonGammaDQM.h.

Referenced by bookHistograms(), and fillHistograms().

ObjME HMesonGammaDQM::gammaetaVsLS_
private

Definition at line 44 of file HMesonGammaDQM.h.

Referenced by bookHistograms(), and fillHistograms().

std::vector<double> HMesonGammaDQM::gammapt_variable_binning_
private

Definition at line 33 of file HMesonGammaDQM.h.

Referenced by bookHistograms(), and initialise().

ObjME HMesonGammaDQM::gammaptME_
private

Definition at line 39 of file HMesonGammaDQM.h.

Referenced by bookHistograms(), and fillHistograms().

MEbinning HMesonGammaDQM::ls_binning_
private

Definition at line 36 of file HMesonGammaDQM.h.

Referenced by bookHistograms(), and initialise().

ObjME HMesonGammaDQM::mesonetaME_
private

Definition at line 42 of file HMesonGammaDQM.h.

Referenced by bookHistograms(), and fillHistograms().

std::vector<double> HMesonGammaDQM::mesonpt_variable_binning_
private

Definition at line 34 of file HMesonGammaDQM.h.

Referenced by bookHistograms(), and initialise().

ObjME HMesonGammaDQM::mesonptME_
private

Definition at line 40 of file HMesonGammaDQM.h.

Referenced by bookHistograms(), and fillHistograms().