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 std::vector< double > &binningX, 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 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 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 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.

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 }

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

◆ 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.

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 }

References TriggerDQMBase::ObjME::denominator, HLT_FULL_cff::eta1, HLT_FULL_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().

◆ fillHmgDescription()

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

Definition at line 89 of file HMesonGammaDQM.cc.

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 }

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

Referenced by ObjMonitor::fillDescriptions().

◆ initialise()

void HMesonGammaDQM::initialise ( const edm::ParameterSet iConfig)

Definition at line 8 of file HMesonGammaDQM.cc.

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 }

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

Referenced by ObjMonitor::ObjMonitor().

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

HMesonGammaDQM::gammaetaVsLS_
ObjME gammaetaVsLS_
Definition: HMesonGammaDQM.h:42
eostools.ls
def ls(path, rec=False)
Definition: eostools.py:349
HMesonGammaDQM::gammaetaME_
ObjME gammaetaME_
Definition: HMesonGammaDQM.h:40
DiDispStaMuonMonitor_cfi.pt
pt
Definition: DiDispStaMuonMonitor_cfi.py:39
HMesonGammaDQM::mesonpt_variable_binning_
std::vector< double > mesonpt_variable_binning_
Definition: HMesonGammaDQM.h:32
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
ObjMonitor_cfi.hmgetaPSet
hmgetaPSet
Definition: ObjMonitor_cfi.py:46
HMesonGammaDQM::mesonptME_
ObjME mesonptME_
Definition: HMesonGammaDQM.h:39
TriggerDQMBase::ObjME::numerator
MonitorElement * numerator
Definition: TriggerDQMBase.h:27
HMesonGammaDQM::mesonetaME_
ObjME mesonetaME_
Definition: HMesonGammaDQM.h:41
LumiMonitor_cff.lsPSet
lsPSet
Definition: LumiMonitor_cff.py:33
TriggerDQMBase::setMETitle
void setMETitle(ObjME &me, const std::string &titleX, const std::string &titleY)
Definition: TriggerDQMBase.cc:3
TriggerDQMBase::MEbinning::xmax
double xmax
Definition: TriggerDQMBase.h:19
dqm::impl::MonitorElement::Fill
void Fill(long long x)
Definition: MonitorElement.h:290
HLT_FULL_cff.eta2
eta2
Definition: HLT_FULL_cff.py:9542
TriggerDQMBase::bookME
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)
Definition: TriggerDQMBase.cc:15
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HLT_FULL_cff.eta1
eta1
Definition: HLT_FULL_cff.py:9541
TriggerDQMBase::fillHistoPSetDescription
static void fillHistoPSetDescription(edm::ParameterSetDescription &pset)
Definition: TriggerDQMBase.cc:108
edm::ParameterSet
Definition: ParameterSet.h:47
HMesonGammaDQM::eta_binning_
MEbinning eta_binning_
Definition: HMesonGammaDQM.h:34
HMesonGammaDQM::gammaptME_
ObjME gammaptME_
Definition: HMesonGammaDQM.h:38
LumiMonitor_cff.histoPSet
histoPSet
Definition: LumiMonitor_cff.py:12
BPHMonitor_cfi.photons
photons
Definition: BPHMonitor_cfi.py:91
HMesonGammaDQM::gammapt_variable_binning_
std::vector< double > gammapt_variable_binning_
Definition: HMesonGammaDQM.h:31
TriggerDQMBase::getHistoPSet
static MEbinning getHistoPSet(const edm::ParameterSet &pset)
Definition: TriggerDQMBase.cc:120
TriggerDQMBase::ObjME::denominator
MonitorElement * denominator
Definition: TriggerDQMBase.h:28
TriggerDQMBase::MEbinning::nbins
uint nbins
Definition: TriggerDQMBase.h:17
TriggerDQMBase::MEbinning::xmin
double xmin
Definition: TriggerDQMBase.h:18
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
HMesonGammaDQM::ls_binning_
MEbinning ls_binning_
Definition: HMesonGammaDQM.h:35
TriggerDQMBase::fillHistoLSPSetDescription
static void fillHistoLSPSetDescription(edm::ParameterSetDescription &pset)
Definition: TriggerDQMBase.cc:114