CMS 3D CMS Logo

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 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 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::METDQM ( )
default

◆ ~METDQM()

METDQM::~METDQM ( )
overridedefault

Member Function Documentation

◆ bookHistograms()

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

Definition at line 18 of file METDQM.cc.

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 }

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

◆ fillHistograms()

void METDQM::fillHistograms ( const double &  met,
const double &  phi,
const int &  ls,
const bool  passCond 
)

Definition at line 50 of file METDQM.cc.

50  {
51  // filling histograms (denominator)
55 
57 
58  // applying selection for numerator
59  if (passCond) {
60  // filling histograms (num_genTriggerEventFlag_)
65  }
66 }

References TriggerDQMBase::ObjME::denominator, dqm::impl::MonitorElement::Fill(), eostools::ls(), BTaggingMonitor_cfi::met, metME_, metME_variableBinning_, metPhiME_, metVsLS_, TriggerDQMBase::ObjME::numerator, and phi.

Referenced by ObjMonitor::analyze().

◆ fillMetDescription()

void METDQM::fillMetDescription ( edm::ParameterSetDescription histoPSet)
static

Definition at line 68 of file METDQM.cc.

68  {
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 
80 
84 }

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

Referenced by ObjMonitor::fillDescriptions().

◆ initialise()

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

Definition at line 7 of file METDQM.cc.

7  {
9  iConfig.getParameter<edm::ParameterSet>("histoPSet").getParameter<std::vector<double> >("metBinning");
10  met_binning_ =
12  phi_binning_ =
14  ls_binning_ =
16 }

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

Referenced by ObjMonitor::ObjMonitor().

Member Data Documentation

◆ ls_binning_

MEbinning METDQM::ls_binning_
private

Definition at line 23 of file METDQM.h.

Referenced by bookHistograms(), and initialise().

◆ met_binning_

MEbinning METDQM::met_binning_
private

Definition at line 21 of file METDQM.h.

Referenced by bookHistograms(), and initialise().

◆ met_variable_binning_

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

Definition at line 20 of file METDQM.h.

Referenced by bookHistograms(), and initialise().

◆ metME_

ObjME METDQM::metME_
private

Definition at line 25 of file METDQM.h.

Referenced by bookHistograms(), and fillHistograms().

◆ metME_variableBinning_

ObjME METDQM::metME_variableBinning_
private

Definition at line 26 of file METDQM.h.

Referenced by bookHistograms(), and fillHistograms().

◆ metPhiME_

ObjME METDQM::metPhiME_
private

Definition at line 28 of file METDQM.h.

Referenced by bookHistograms(), and fillHistograms().

◆ metVsLS_

ObjME METDQM::metVsLS_
private

Definition at line 27 of file METDQM.h.

Referenced by bookHistograms(), and fillHistograms().

◆ phi_binning_

MEbinning METDQM::phi_binning_
private

Definition at line 22 of file METDQM.h.

Referenced by bookHistograms(), and initialise().

eostools.ls
def ls(path, rec=False)
Definition: eostools.py:349
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
TriggerDQMBase::ObjME::numerator
MonitorElement * numerator
Definition: TriggerDQMBase.h:27
BTaggingMonitor_cfi.met
met
Definition: BTaggingMonitor_cfi.py:84
LumiMonitor_cff.lsPSet
lsPSet
Definition: LumiMonitor_cff.py:33
METDQM::met_binning_
MEbinning met_binning_
Definition: METDQM.h:21
METDQM::phi_binning_
MEbinning phi_binning_
Definition: METDQM.h:22
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
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
METDQM::metVsLS_
ObjME metVsLS_
Definition: METDQM.h:27
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:47
METDQM::met_variable_binning_
std::vector< double > met_variable_binning_
Definition: METDQM.h:20
BTaggingMonitor_cfi.metPSet
metPSet
Definition: BTaggingMonitor_cfi.py:12
LumiMonitor_cff.histoPSet
histoPSet
Definition: LumiMonitor_cff.py:12
METDQM::metME_variableBinning_
ObjME metME_variableBinning_
Definition: METDQM.h:26
TriggerDQMBase::getHistoPSet
static MEbinning getHistoPSet(const edm::ParameterSet &pset)
Definition: TriggerDQMBase.cc:120
DDAxes::phi
METDQM::metME_
ObjME metME_
Definition: METDQM.h:25
TriggerDQMBase::ObjME::denominator
MonitorElement * denominator
Definition: TriggerDQMBase.h:28
BPHMonitor_cff.phiPSet
phiPSet
Definition: BPHMonitor_cff.py:631
METDQM::ls_binning_
MEbinning ls_binning_
Definition: METDQM.h:23
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
trigObjTnPSource_cfi.bins
bins
Definition: trigObjTnPSource_cfi.py:20
METDQM::metPhiME_
ObjME metPhiME_
Definition: METDQM.h:28
TriggerDQMBase::fillHistoLSPSetDescription
static void fillHistoLSPSetDescription(edm::ParameterSetDescription &pset)
Definition: TriggerDQMBase.cc:114