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, const 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, const uint nbins, const double xmin, const double xmax, const bool bookDen=true)
 
void bookME (DQMStore::IBooker &, ObjME &me, const std::string &histname, const std::string &histtitle, const std::vector< double > &binningX, const bool bookDen=true)
 
void bookME (DQMStore::IBooker &, ObjME &me, const std::string &histname, const std::string &histtitle, const uint nbinsX, const double xmin, const double xmax, const double ymin, const double ymax, const bool bookDen=true)
 
void bookME (DQMStore::IBooker &, ObjME &me, const std::string &histname, const std::string &histtitle, const uint nbinsX, const double xmin, const double xmax, const uint nbinsY, const double ymin, const double ymax, const bool bookDen=true)
 
void bookME (DQMStore::IBooker &, ObjME &me, const std::string &histname, const std::string &histtitle, const std::vector< double > &binningX, const std::vector< double > &binningY, const bool bookDen=true)
 
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::HMesonGammaDQM ( )
default

◆ ~HMesonGammaDQM()

HMesonGammaDQM::~HMesonGammaDQM ( )
overridedefault

Member Function Documentation

◆ bookHistograms()

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

Definition at line 19 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  std::string histname, histtitle;
21 
22  histname = "gammapt";
23  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";
28  histtitle = "Meson pT";
29  bookME(ibooker, mesonptME_, histname, histtitle, mesonpt_variable_binning_);
30  setMETitle(mesonptME_, "Meson p_{T} [GeV]", "events / [GeV]");
31 
32  histname = "gammaeta";
33  histtitle = "Gamma eta";
34  bookME(ibooker, gammaetaME_, histname, histtitle, eta_binning_.nbins, eta_binning_.xmin, eta_binning_.xmax);
35  setMETitle(gammaetaME_, "Gamma #eta", "events");
36 
37  histname = "mesoneta";
38  histtitle = "Meson eta";
39  bookME(ibooker, mesonetaME_, histname, histtitle, eta_binning_.nbins, eta_binning_.xmin, eta_binning_.xmax);
40  setMETitle(mesonetaME_, "Meson #eta", "events");
41 
42  histname = "gammaetaVsLS";
43  histtitle = "Gamma eta vs LS";
44  bookME(ibooker,
46  histname,
47  histtitle,
53  setMETitle(gammaetaVsLS_, "LS", "Gamma #eta");
54 }
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, const uint nbins, const double xmin, const double xmax, const bool bookDen=true)

◆ fillHistograms()

void HMesonGammaDQM::fillHistograms ( const reco::PhotonCollection photons,
const std::vector< TLorentzVector > &  mesons,
const int  ls,
const bool  passCond 
)

Definition at line 56 of file HMesonGammaDQM.cc.

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

Referenced by ObjMonitor::analyze().

59  {
60  // filling histograms (denominator)
61  if (!photons.empty()) {
62  double eta1 = photons[0].eta();
66  }
67  if (!mesons.empty()) {
68  double eta2 = mesons[0].Eta();
69  mesonptME_.denominator->Fill(mesons[0].Pt());
71  }
72 
73  // applying selection for numerator
74  if (passCond) {
75  if (!photons.empty()) {
76  double eta1 = photons[0].eta();
80  }
81  if (!mesons.empty()) {
82  double eta2 = mesons[0].Eta();
83  mesonptME_.numerator->Fill(mesons[0].Pt());
85  }
86  }
87 }
void Fill(long long x)
MonitorElement * denominator
MonitorElement * numerator
def ls(path, rec=False)
Definition: eostools.py:349

◆ fillHmgDescription()

void HMesonGammaDQM::fillHmgDescription ( edm::ParameterSetDescription histoPSet)
static

Definition at line 89 of file HMesonGammaDQM.cc.

References TriggerDQMBase::fillHistoLSPSetDescription(), TriggerDQMBase::fillHistoPSetDescription(), V0Monitor_cff::histoPSet, ObjMonitor_cfi::hmgetaPSet, and V0Monitor_cfi::lsPSet.

Referenced by ObjMonitor::fillDescriptions().

89  {
93 
94  std::vector<double> pt1bins = {0., 20., 40., 60., 80., 90., 100., 110., 120., 130., 140., 150., 160.,
95  180., 210., 240., 270., 300., 330., 360., 400., 450., 500., 750., 1000., 1500.};
96  histoPSet.add<std::vector<double> >("gammaptBinning", pt1bins);
97 
98  std::vector<double> pt2bins = {0., 20., 40., 45., 50., 55., 60., 65., 70., 80., 90., 100.,
99  110., 120., 150., 180., 210., 240., 270., 300., 350., 400., 1000.};
100  histoPSet.add<std::vector<double> >("mesonptBinning", pt2bins);
101 
104  histoPSet.add<edm::ParameterSetDescription>("hmglsPSet", lsPSet);
105 }
static void fillHistoLSPSetDescription(edm::ParameterSetDescription &pset)
static void fillHistoPSetDescription(edm::ParameterSetDescription &pset)

◆ initialise()

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  eta_binning_ =
14  getHistoPSet(iConfig.getParameter<edm::ParameterSet>("histoPSet").getParameter<edm::ParameterSet>("hmgetaPSet"));
15  ls_binning_ =
16  getHistoPSet(iConfig.getParameter<edm::ParameterSet>("histoPSet").getParameter<edm::ParameterSet>("hmglsPSet"));
17 }
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
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

◆ eta_binning_

MEbinning HMesonGammaDQM::eta_binning_
private

Definition at line 34 of file HMesonGammaDQM.h.

Referenced by bookHistograms(), and initialise().

◆ gammaetaME_

ObjME HMesonGammaDQM::gammaetaME_
private

Definition at line 40 of file HMesonGammaDQM.h.

Referenced by bookHistograms(), and fillHistograms().

◆ gammaetaVsLS_

ObjME HMesonGammaDQM::gammaetaVsLS_
private

Definition at line 42 of file HMesonGammaDQM.h.

Referenced by bookHistograms(), and fillHistograms().

◆ gammapt_variable_binning_

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

Definition at line 31 of file HMesonGammaDQM.h.

Referenced by bookHistograms(), and initialise().

◆ gammaptME_

ObjME HMesonGammaDQM::gammaptME_
private

Definition at line 38 of file HMesonGammaDQM.h.

Referenced by bookHistograms(), and fillHistograms().

◆ ls_binning_

MEbinning HMesonGammaDQM::ls_binning_
private

Definition at line 35 of file HMesonGammaDQM.h.

Referenced by bookHistograms(), and initialise().

◆ mesonetaME_

ObjME HMesonGammaDQM::mesonetaME_
private

Definition at line 41 of file HMesonGammaDQM.h.

Referenced by bookHistograms(), and fillHistograms().

◆ mesonpt_variable_binning_

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

Definition at line 32 of file HMesonGammaDQM.h.

Referenced by bookHistograms(), and initialise().

◆ mesonptME_

ObjME HMesonGammaDQM::mesonptME_
private

Definition at line 39 of file HMesonGammaDQM.h.

Referenced by bookHistograms(), and fillHistograms().