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
METDQM Class Reference

#include <METDQM.h>

Inheritance diagram for METDQM:
TriggerDQMBase

Public Member Functions

void bookHistograms (DQMStore::IBooker &)
 
void fillHistograms (const double &met, const double &phi, const int &ls, const bool passCond)
 
void initialise (const edm::ParameterSet &iConfig)
 
 METDQM ()
 
 ~METDQM () 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 fillMetDescription (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 ls_binning_
 
MEbinning met_binning_
 
std::vector< double > met_variable_binning_
 
ObjME metME_
 
ObjME metME_variableBinning_
 
ObjME metPhiME_
 
ObjME metVsLS_
 
MEbinning phi_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 METDQM.h.

Constructor & Destructor Documentation

METDQM::METDQM ( )
default
METDQM::~METDQM ( )
overridedefault

Member Function Documentation

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

Definition at line 18 of file METDQM.cc.

References TriggerDQMBase::bookME(), ls_binning_, met_binning_, met_variable_binning_, metME_, metME_variableBinning_, metPhiME_, metVsLS_, TriggerDQMBase::MEbinning::nbins, phi_binning_, 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 = "met";
22  histtitle = "PFMET";
23  bookME(ibooker, metME_, histname, histtitle, met_binning_.nbins, met_binning_.xmin, met_binning_.xmax);
24  setMETitle(metME_, "PF MET [GeV]", "events / [GeV]");
25 
26  histname = "met_variable";
27  histtitle = "PFMET";
28  bookME(ibooker, metME_variableBinning_, histname, histtitle, met_variable_binning_);
29  setMETitle(metME_variableBinning_, "PF MET [GeV]", "events / [GeV]");
30 
31  histname = "metVsLS";
32  histtitle = "PFMET vs LS";
33  bookME(ibooker,
34  metVsLS_,
35  histname,
36  histtitle,
42  setMETitle(metVsLS_, "LS", "PF MET [GeV]");
43 
44  histname = "metPhi";
45  histtitle = "PFMET phi";
46  bookME(ibooker, metPhiME_, histname, histtitle, phi_binning_.nbins, phi_binning_.xmin, phi_binning_.xmax);
47  setMETitle(metPhiME_, "PF MET #phi", "events / 0.1 rad");
48 }
ObjME metME_
Definition: METDQM.h:25
MEbinning ls_binning_
Definition: METDQM.h:23
void setMETitle(ObjME &me, const std::string &titleX, const std::string &titleY)
MEbinning met_binning_
Definition: METDQM.h:21
MEbinning phi_binning_
Definition: METDQM.h:22
std::vector< double > met_variable_binning_
Definition: METDQM.h:20
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)
ObjME metME_variableBinning_
Definition: METDQM.h:26
ObjME metPhiME_
Definition: METDQM.h:28
ObjME metVsLS_
Definition: METDQM.h:27
void METDQM::fillHistograms ( const double &  met,
const double &  phi,
const int &  ls,
const bool  passCond 
)

Definition at line 50 of file METDQM.cc.

References TriggerDQMBase::ObjME::denominator, dqm::impl::MonitorElement::Fill(), metME_, metME_variableBinning_, metPhiME_, metVsLS_, and TriggerDQMBase::ObjME::numerator.

Referenced by ObjMonitor::analyze().

50  {
51  // filling histograms (denominator)
55 
57 
58  // applying selection for numerator
59  if (passCond) {
60  // filling histograms (num_genTriggerEventFlag_)
65  }
66 }
ObjME metME_
Definition: METDQM.h:25
def ls
Definition: eostools.py:349
void Fill(long long x)
MonitorElement * denominator
MonitorElement * numerator
ObjME metME_variableBinning_
Definition: METDQM.h:26
ObjME metPhiME_
Definition: METDQM.h:28
ObjME metVsLS_
Definition: METDQM.h:27
void METDQM::fillMetDescription ( edm::ParameterSetDescription histoPSet)
static

Definition at line 68 of file METDQM.cc.

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

Referenced by ObjMonitor::fillDescriptions().

68  {
70  fillHistoPSetDescription(metPSet);
71  histoPSet.add<edm::ParameterSetDescription>("metPSet", metPSet);
72 
73  std::vector<double> bins = {0., 20., 40., 60., 80., 90., 100., 110., 120., 130., 140., 150., 160.,
74  170., 180., 190., 200., 220., 240., 260., 280., 300., 350., 400., 450., 1000.};
75  histoPSet.add<std::vector<double> >("metBinning", bins);
76 
78  fillHistoPSetDescription(phiPSet);
79  histoPSet.add<edm::ParameterSetDescription>("phiPSet", phiPSet);
80 
83  histoPSet.add<edm::ParameterSetDescription>("lsPSet", lsPSet);
84 }
static void fillHistoLSPSetDescription(edm::ParameterSetDescription &pset)
static void fillHistoPSetDescription(edm::ParameterSetDescription &pset)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void METDQM::initialise ( const edm::ParameterSet iConfig)

Definition at line 7 of file METDQM.cc.

References TriggerDQMBase::getHistoPSet(), edm::ParameterSet::getParameter(), ls_binning_, met_binning_, met_variable_binning_, and phi_binning_.

Referenced by ObjMonitor::ObjMonitor().

7  {
9  iConfig.getParameter<edm::ParameterSet>("histoPSet").getParameter<std::vector<double> >("metBinning");
10  met_binning_ =
12  phi_binning_ =
14  ls_binning_ =
16 }
MEbinning ls_binning_
Definition: METDQM.h:23
static MEbinning getHistoPSet(const edm::ParameterSet &pset)
MEbinning met_binning_
Definition: METDQM.h:21
MEbinning phi_binning_
Definition: METDQM.h:22
std::vector< double > met_variable_binning_
Definition: METDQM.h:20
T getParameter(std::string const &) const
Definition: ParameterSet.h:303

Member Data Documentation

MEbinning METDQM::ls_binning_
private

Definition at line 23 of file METDQM.h.

Referenced by bookHistograms(), and initialise().

MEbinning METDQM::met_binning_
private

Definition at line 21 of file METDQM.h.

Referenced by bookHistograms(), and initialise().

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

Definition at line 20 of file METDQM.h.

Referenced by bookHistograms(), and initialise().

ObjME METDQM::metME_
private

Definition at line 25 of file METDQM.h.

Referenced by bookHistograms(), and fillHistograms().

ObjME METDQM::metME_variableBinning_
private

Definition at line 26 of file METDQM.h.

Referenced by bookHistograms(), and fillHistograms().

ObjME METDQM::metPhiME_
private

Definition at line 28 of file METDQM.h.

Referenced by bookHistograms(), and fillHistograms().

ObjME METDQM::metVsLS_
private

Definition at line 27 of file METDQM.h.

Referenced by bookHistograms(), and fillHistograms().

MEbinning METDQM::phi_binning_
private

Definition at line 22 of file METDQM.h.

Referenced by bookHistograms(), and initialise().