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_
 

Additional Inherited Members

- Public Types inherited from TriggerDQMBase
typedef dqm::legacy::DQMStore DQMStore
 
typedef dqm::legacy::MonitorElement MonitorElement
 

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 20 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().

20  {
21  std::string histname, histtitle;
22 
23  histname = "gammapt";
24  histtitle = "Gamma pT";
25  bookME(ibooker, gammaptME_, histname, histtitle, gammapt_variable_binning_);
26  setMETitle(gammaptME_, "Gamma p_{T} [GeV]", "events / [GeV]");
27 
28  histname = "mesonpt";
29  histtitle = "Meson pT";
30  bookME(ibooker, mesonptME_, histname, histtitle, mesonpt_variable_binning_);
31  setMETitle(mesonptME_, "Meson p_{T} [GeV]", "events / [GeV]");
32 
33  histname = "gammaeta";
34  histtitle = "Gamma eta";
35  bookME(ibooker, gammaetaME_, histname, histtitle, eta_binning_.nbins, eta_binning_.xmin, eta_binning_.xmax);
36  setMETitle(gammaetaME_, "Gamma #eta", "events");
37 
38  histname = "mesoneta";
39  histtitle = "Meson eta";
40  bookME(ibooker, mesonetaME_, histname, histtitle, eta_binning_.nbins, eta_binning_.xmin, eta_binning_.xmax);
41  setMETitle(mesonetaME_, "Meson #eta", "events");
42 
43  histname = "gammaetaVsLS";
44  histtitle = "Gamma eta vs LS";
45  bookME(ibooker,
47  histname,
48  histtitle,
54  setMETitle(gammaetaVsLS_, "LS", "Gamma #eta");
55 }
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 57 of file HMesonGammaDQM.cc.

References TriggerDQMBase::ObjME::denominator, HLT_2018_cff::eta1, HLT_2018_cff::eta2, dqm::impl::MonitorElement::Fill(), gammaetaME_, gammaetaVsLS_, gammaptME_, mesonetaME_, mesonptME_, TriggerDQMBase::ObjME::numerator, and DiDispStaMuonMonitor_cfi::pt.

Referenced by ObjMonitor::analyze().

60  {
61  // filling histograms (denominator)
62  if (!photons.empty()) {
63  double eta1 = photons[0].eta();
67  }
68  if (!mesons.empty()) {
69  double eta2 = mesons[0].Eta();
70  mesonptME_.denominator->Fill(mesons[0].Pt());
72  }
73 
74  // applying selection for numerator
75  if (passCond) {
76  if (!photons.empty()) {
77  double eta1 = photons[0].eta();
79  gammaetaME_.numerator->Fill(eta1);
81  }
82  if (!mesons.empty()) {
83  double eta2 = mesons[0].Eta();
84  mesonptME_.numerator->Fill(mesons[0].Pt());
85  mesonetaME_.numerator->Fill(eta2);
86  }
87  }
88 }
void Fill(long long x)
MonitorElement * denominator
MonitorElement * numerator
def ls(path, rec=False)
Definition: eostools.py:349
void HMesonGammaDQM::fillHmgDescription ( edm::ParameterSetDescription histoPSet)
static

Definition at line 90 of file HMesonGammaDQM.cc.

References edm::ParameterSetDescription::add(), TriggerDQMBase::fillHistoLSPSetDescription(), TriggerDQMBase::fillHistoPSetDescription(), ObjMonitor_cfi::hmgetaPSet, and LumiMonitor_cff::lsPSet.

Referenced by ObjMonitor::fillDescriptions().

90  {
92  fillHistoPSetDescription(hmgetaPSet);
93  histoPSet.add<edm::ParameterSetDescription>("hmgetaPSet", hmgetaPSet);
94 
95  std::vector<double> pt1bins = {0., 20., 40., 60., 80., 90., 100., 110., 120., 130., 140., 150., 160.,
96  180., 210., 240., 270., 300., 330., 360., 400., 450., 500., 750., 1000., 1500.};
97  histoPSet.add<std::vector<double> >("gammaptBinning", pt1bins);
98 
99  std::vector<double> pt2bins = {0., 20., 40., 45., 50., 55., 60., 65., 70., 80., 90., 100.,
100  110., 120., 150., 180., 210., 240., 270., 300., 350., 400., 1000.};
101  histoPSet.add<std::vector<double> >("mesonptBinning", pt2bins);
102 
105  histoPSet.add<edm::ParameterSetDescription>("hmglsPSet", lsPSet);
106 }
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  {
10  iConfig.getParameter<edm::ParameterSet>("histoPSet").getParameter<std::vector<double> >("gammaptBinning");
12  iConfig.getParameter<edm::ParameterSet>("histoPSet").getParameter<std::vector<double> >("mesonptBinning");
13 
14  eta_binning_ =
15  getHistoPSet(iConfig.getParameter<edm::ParameterSet>("histoPSet").getParameter<edm::ParameterSet>("hmgetaPSet"));
16  ls_binning_ =
17  getHistoPSet(iConfig.getParameter<edm::ParameterSet>("histoPSet").getParameter<edm::ParameterSet>("hmglsPSet"));
18 }
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 33 of file HMesonGammaDQM.h.

Referenced by bookHistograms(), and initialise().

ObjME HMesonGammaDQM::gammaetaME_
private

Definition at line 39 of file HMesonGammaDQM.h.

Referenced by bookHistograms(), and fillHistograms().

ObjME HMesonGammaDQM::gammaetaVsLS_
private

Definition at line 42 of file HMesonGammaDQM.h.

Referenced by bookHistograms(), and fillHistograms().

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

Definition at line 31 of file HMesonGammaDQM.h.

Referenced by bookHistograms(), and initialise().

ObjME HMesonGammaDQM::gammaptME_
private

Definition at line 37 of file HMesonGammaDQM.h.

Referenced by bookHistograms(), and fillHistograms().

MEbinning HMesonGammaDQM::ls_binning_
private

Definition at line 34 of file HMesonGammaDQM.h.

Referenced by bookHistograms(), and initialise().

ObjME HMesonGammaDQM::mesonetaME_
private

Definition at line 40 of file HMesonGammaDQM.h.

Referenced by bookHistograms(), and fillHistograms().

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

Definition at line 32 of file HMesonGammaDQM.h.

Referenced by bookHistograms(), and initialise().

ObjME HMesonGammaDQM::mesonptME_
private

Definition at line 38 of file HMesonGammaDQM.h.

Referenced by bookHistograms(), and fillHistograms().