CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 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 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 ( )
default
HTDQM::~HTDQM ( )
overridedefault

Member Function Documentation

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

Definition at line 18 of file HTDQM.cc.

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

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 }
std::vector< double > ht_variable_binning_
Definition: HTDQM.h:20
ObjME htVsLS_
Definition: HTDQM.h:27
void setMETitle(ObjME &me, const std::string &titleX, const std::string &titleY)
MEbinning ht_binning_
Definition: HTDQM.h:22
std::vector< double > met_variable_binning_
Definition: HTDQM.h:21
ObjME htVsMET_
Definition: HTDQM.h:26
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)
MEbinning ls_binning_
Definition: HTDQM.h:23
ObjME htME_variableBinning_
Definition: HTDQM.h:25
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.

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

Referenced by ObjMonitor::analyze().

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 }
def ls
Definition: eostools.py:349
ObjME htVsLS_
Definition: HTDQM.h:27
void Fill(long long x)
MonitorElement * denominator
MonitorElement * numerator
ObjME htVsMET_
Definition: HTDQM.h:26
ObjME htME_variableBinning_
Definition: HTDQM.h:25
void HTDQM::fillHtDescription ( edm::ParameterSetDescription histoPSet)
static

Definition at line 69 of file HTDQM.cc.

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

Referenced by ObjMonitor::fillDescriptions().

69  {
72  histoPSet.add<edm::ParameterSetDescription>("htPSet", htPSet);
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 
84  histoPSet.add<edm::ParameterSetDescription>("htlsPSet", lsPSet);
85 }
static void fillHistoLSPSetDescription(edm::ParameterSetDescription &pset)
static void fillHistoPSetDescription(edm::ParameterSetDescription &pset)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void HTDQM::initialise ( const edm::ParameterSet iConfig)

Definition at line 7 of file HTDQM.cc.

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

Referenced by ObjMonitor::ObjMonitor().

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 }
std::vector< double > ht_variable_binning_
Definition: HTDQM.h:20
MEbinning ht_binning_
Definition: HTDQM.h:22
static MEbinning getHistoPSet(const edm::ParameterSet &pset)
std::vector< double > met_variable_binning_
Definition: HTDQM.h:21
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
MEbinning ls_binning_
Definition: HTDQM.h:23

Member Data Documentation

MEbinning HTDQM::ht_binning_
private

Definition at line 22 of file HTDQM.h.

Referenced by bookHistograms(), and initialise().

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

Definition at line 20 of file HTDQM.h.

Referenced by bookHistograms(), and initialise().

ObjME HTDQM::htME_variableBinning_
private

Definition at line 25 of file HTDQM.h.

Referenced by bookHistograms(), and fillHistograms().

ObjME HTDQM::htVsLS_
private

Definition at line 27 of file HTDQM.h.

Referenced by bookHistograms(), and fillHistograms().

ObjME HTDQM::htVsMET_
private

Definition at line 26 of file HTDQM.h.

Referenced by bookHistograms(), and fillHistograms().

MEbinning HTDQM::ls_binning_
private

Definition at line 23 of file HTDQM.h.

Referenced by bookHistograms(), and initialise().

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

Definition at line 21 of file HTDQM.h.

Referenced by bookHistograms(), and initialise().