CMS 3D CMS Logo

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

#include <HTDQM.h>

Inheritance diagram for HTDQM:
TriggerDQMBase

Public Member Functions

void bookHistograms (DQMStore::IBooker &)
 
void fillHistograms (const std::vector< reco::PFJet > &htjets, const double &met, const int &ls, const bool passCond)
 
 HTDQM ()
 
void initialise (const edm::ParameterSet &iConfig)
 
 ~HTDQM () 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 fillHtDescription (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 ht_binning_
 
std::vector< double > ht_variable_binning_
 
ObjME htME_variableBinning_
 
ObjME htVsLS_
 
ObjME htVsMET_
 
MEbinning ls_binning_
 
std::vector< double > met_variable_binning_
 

Additional Inherited Members

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

Detailed Description

Definition at line 9 of file HTDQM.h.

Constructor & Destructor Documentation

◆ HTDQM()

HTDQM::HTDQM ( )
default

◆ ~HTDQM()

HTDQM::~HTDQM ( )
overridedefault

Member Function Documentation

◆ bookHistograms()

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

Definition at line 18 of file HTDQM.cc.

18  {
19  std::string histname, histtitle;
20 
21  histname = "ht_variable";
22  histtitle = "PFHT";
23  bookME(ibooker, htME_variableBinning_, histname, histtitle, ht_variable_binning_);
24  setMETitle(htME_variableBinning_, "PF HT [GeV]", "events / [GeV]");
25 
26  histname = "htVsMET";
27  histtitle = "PFHT vs PFMET";
28  bookME(ibooker, htVsMET_, histname, histtitle, met_variable_binning_, ht_variable_binning_);
29  setMETitle(htVsMET_, "PF MET [GeV]", "PF HT [GeV]");
30 
31  histname = "htVsLS";
32  histtitle = "PFHT vs LS";
33  bookME(ibooker,
34  htVsLS_,
35  histname,
36  histtitle,
42  setMETitle(htVsLS_, "LS", "PF HT [GeV]");
43 }

References TriggerDQMBase::bookME(), ht_binning_, ht_variable_binning_, htME_variableBinning_, htVsLS_, htVsMET_, ls_binning_, met_variable_binning_, TriggerDQMBase::MEbinning::nbins, TriggerDQMBase::setMETitle(), AlCaHLTBitMon_QueryRunRegistry::string, TriggerDQMBase::MEbinning::xmax, and TriggerDQMBase::MEbinning::xmin.

Referenced by ObjMonitor::bookHistograms().

◆ fillHistograms()

void HTDQM::fillHistograms ( const std::vector< reco::PFJet > &  htjets,
const double &  met,
const int &  ls,
const bool  passCond 
)

Definition at line 45 of file HTDQM.cc.

48  {
49  // filling histograms (denominator)
50  double htSum = 0;
51  for (auto const& htjet : htjets) {
52  htSum += htjet.pt();
53  }
54 
56 
57  htVsMET_.denominator->Fill(met, htSum);
58  htVsLS_.denominator->Fill(ls, htSum);
59 
60  // applying selection for numerator
61  if (passCond) {
62  // filling histograms (num_genTriggerEventFlag_)
64  htVsMET_.numerator->Fill(met, htSum);
65  htVsLS_.numerator->Fill(ls, htSum);
66  }
67 }

References TriggerDQMBase::ObjME::denominator, dqm::impl::MonitorElement::Fill(), htME_variableBinning_, htVsLS_, htVsMET_, eostools::ls(), BTaggingMonitor_cfi::met, and TriggerDQMBase::ObjME::numerator.

Referenced by ObjMonitor::analyze().

◆ fillHtDescription()

void HTDQM::fillHtDescription ( edm::ParameterSetDescription histoPSet)
static

Definition at line 69 of file HTDQM.cc.

69  {
73 
74  std::vector<double> bins = {0., 50., 100., 150., 200., 250., 300., 350., 400., 450., 500.,
75  550., 600., 650., 700., 750., 800., 900., 1000., 1200., 1500., 2000.};
76  histoPSet.add<std::vector<double> >("htBinning", bins);
77 
78  std::vector<double> metbins = {0., 20., 40., 60., 80., 100., 120., 140., 160., 180., 200., 220.,
79  240., 260., 280., 300., 320., 340., 360., 380., 400., 450., 500., 1000.};
80  histoPSet.add<std::vector<double> >("metBinning2", metbins);
81 
85 }

References trigObjTnPSource_cfi::bins, TriggerDQMBase::fillHistoLSPSetDescription(), TriggerDQMBase::fillHistoPSetDescription(), LumiMonitor_cff::histoPSet, BTaggingMonitor_cfi::htPSet, and LumiMonitor_cff::lsPSet.

Referenced by ObjMonitor::fillDescriptions().

◆ initialise()

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

Definition at line 7 of file HTDQM.cc.

7  {
9  iConfig.getParameter<edm::ParameterSet>("histoPSet").getParameter<std::vector<double> >("htBinning");
11  iConfig.getParameter<edm::ParameterSet>("histoPSet").getParameter<std::vector<double> >("metBinning2");
12  ht_binning_ =
14  ls_binning_ =
15  getHistoPSet(iConfig.getParameter<edm::ParameterSet>("histoPSet").getParameter<edm::ParameterSet>("htlsPSet"));
16 }

References TriggerDQMBase::getHistoPSet(), edm::ParameterSet::getParameter(), ht_binning_, ht_variable_binning_, ls_binning_, and met_variable_binning_.

Referenced by ObjMonitor::ObjMonitor().

Member Data Documentation

◆ ht_binning_

MEbinning HTDQM::ht_binning_
private

Definition at line 22 of file HTDQM.h.

Referenced by bookHistograms(), and initialise().

◆ ht_variable_binning_

std::vector<double> HTDQM::ht_variable_binning_
private

Definition at line 20 of file HTDQM.h.

Referenced by bookHistograms(), and initialise().

◆ htME_variableBinning_

ObjME HTDQM::htME_variableBinning_
private

Definition at line 25 of file HTDQM.h.

Referenced by bookHistograms(), and fillHistograms().

◆ htVsLS_

ObjME HTDQM::htVsLS_
private

Definition at line 27 of file HTDQM.h.

Referenced by bookHistograms(), and fillHistograms().

◆ htVsMET_

ObjME HTDQM::htVsMET_
private

Definition at line 26 of file HTDQM.h.

Referenced by bookHistograms(), and fillHistograms().

◆ ls_binning_

MEbinning HTDQM::ls_binning_
private

Definition at line 23 of file HTDQM.h.

Referenced by bookHistograms(), and initialise().

◆ met_variable_binning_

std::vector<double> HTDQM::met_variable_binning_
private

Definition at line 21 of file HTDQM.h.

Referenced by bookHistograms(), and initialise().

eostools.ls
def ls(path, rec=False)
Definition: eostools.py:349
HTDQM::htVsLS_
ObjME htVsLS_
Definition: HTDQM.h:27
HTDQM::htME_variableBinning_
ObjME htME_variableBinning_
Definition: HTDQM.h:25
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
TriggerDQMBase::ObjME::numerator
MonitorElement * numerator
Definition: TriggerDQMBase.h:27
BTaggingMonitor_cfi.met
met
Definition: BTaggingMonitor_cfi.py:84
BTaggingMonitor_cfi.htPSet
htPSet
Definition: BTaggingMonitor_cfi.py:35
HTDQM::ht_variable_binning_
std::vector< double > ht_variable_binning_
Definition: HTDQM.h:20
LumiMonitor_cff.lsPSet
lsPSet
Definition: LumiMonitor_cff.py:33
HTDQM::met_variable_binning_
std::vector< double > met_variable_binning_
Definition: HTDQM.h:21
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
HTDQM::ht_binning_
MEbinning ht_binning_
Definition: HTDQM.h:22
dqm::impl::MonitorElement::Fill
void Fill(long long x)
Definition: MonitorElement.h:290
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
HTDQM::htVsMET_
ObjME htVsMET_
Definition: HTDQM.h:26
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
TriggerDQMBase::fillHistoPSetDescription
static void fillHistoPSetDescription(edm::ParameterSetDescription &pset)
Definition: TriggerDQMBase.cc:108
edm::ParameterSet
Definition: ParameterSet.h:36
LumiMonitor_cff.histoPSet
histoPSet
Definition: LumiMonitor_cff.py:12
TriggerDQMBase::getHistoPSet
static MEbinning getHistoPSet(const edm::ParameterSet &pset)
Definition: TriggerDQMBase.cc:120
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
HTDQM::ls_binning_
MEbinning ls_binning_
Definition: HTDQM.h:23
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
trigObjTnPSource_cfi.bins
bins
Definition: trigObjTnPSource_cfi.py:20
TriggerDQMBase::fillHistoLSPSetDescription
static void fillHistoLSPSetDescription(edm::ParameterSetDescription &pset)
Definition: TriggerDQMBase.cc:114