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, unsigned nbins, double xmin, double xmax)
 
void bookME (DQMStore::IBooker &, ObjME &me, const std::string &histname, const std::string &histtitle, const std::vector< double > &binningX)
 
void bookME (DQMStore::IBooker &, ObjME &me, const std::string &histname, const std::string &histtitle, unsigned nbinsX, double xmin, double xmax, double ymin, double ymax)
 
void bookME (DQMStore::IBooker &, ObjME &me, const std::string &histname, const std::string &histtitle, unsigned nbinsX, double xmin, double xmax, unsigned nbinsY, double ymin, double ymax)
 
void bookME (DQMStore::IBooker &, ObjME &me, const std::string &histname, const std::string &histtitle, const std::vector< double > &binningX, const std::vector< double > &binningY)
 
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_
 

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

17 {
18 
19  std::string histname, histtitle;
20 
21  histname = "met"; histtitle = "PFMET";
22  bookME(ibooker,metME_,histname,histtitle,met_binning_.nbins,met_binning_.xmin, met_binning_.xmax);
23  setMETitle(metME_,"PF MET [GeV]","events / [GeV]");
24 
25  histname = "met_variable"; histtitle = "PFMET";
26  bookME(ibooker,metME_variableBinning_,histname,histtitle,met_variable_binning_);
27  setMETitle(metME_variableBinning_,"PF MET [GeV]","events / [GeV]");
28 
29  histname = "metVsLS"; histtitle = "PFMET vs LS";
31  setMETitle(metVsLS_,"LS","PF MET [GeV]");
32 
33  histname = "metPhi"; histtitle = "PFMET phi";
34  bookME(ibooker,metPhiME_,histname,histtitle, phi_binning_.nbins, phi_binning_.xmin, phi_binning_.xmax);
35  setMETitle(metPhiME_,"PF MET #phi","events / 0.1 rad");
36 
37 }
ObjME metME_
Definition: METDQM.h:31
MEbinning ls_binning_
Definition: METDQM.h:29
void setMETitle(ObjME &me, const std::string &titleX, const std::string &titleY)
MEbinning met_binning_
Definition: METDQM.h:27
MEbinning phi_binning_
Definition: METDQM.h:28
std::vector< double > met_variable_binning_
Definition: METDQM.h:26
ObjME metME_variableBinning_
Definition: METDQM.h:32
ObjME metPhiME_
Definition: METDQM.h:34
void bookME(DQMStore::IBooker &, ObjME &me, const std::string &histname, const std::string &histtitle, unsigned nbins, double xmin, double xmax)
ObjME metVsLS_
Definition: METDQM.h:33
void METDQM::fillHistograms ( const double &  met,
const double &  phi,
const int &  ls,
const bool  passCond 
)

Definition at line 39 of file METDQM.cc.

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

Referenced by ObjMonitor::analyze().

42  {
43 
44  // filling histograms (denominator)
48 
50 
51  // applying selection for numerator
52  if (passCond){
53  // filling histograms (num_genTriggerEventFlag_)
58  }
59 
60 }
MonitorElement * numerator
ObjME metME_
Definition: METDQM.h:31
MonitorElement * denominator
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
def ls(path, rec=False)
Definition: eostools.py:348
met
===> hadronic RAZOR
ObjME metME_variableBinning_
Definition: METDQM.h:32
ObjME metPhiME_
Definition: METDQM.h:34
ObjME metVsLS_
Definition: METDQM.h:33
void METDQM::fillMetDescription ( edm::ParameterSetDescription histoPSet)
static

Definition at line 62 of file METDQM.cc.

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

Referenced by ObjMonitor::fillDescriptions().

62  {
63 
65  fillHistoPSetDescription(metPSet);
66  histoPSet.add<edm::ParameterSetDescription>("metPSet", metPSet);
67 
68  std::vector<double> bins = {0.,20.,40.,60.,80.,90.,100.,110.,120.,130.,140.,150.,160.,170.,180.,190.,200.,220.,240.,260.,280.,300.,350.,400.,450.,1000.};
69  histoPSet.add<std::vector<double> >("metBinning", bins);
70 
72  fillHistoPSetDescription(phiPSet);
73  histoPSet.add<edm::ParameterSetDescription>("phiPSet", phiPSet);
74 
77  histoPSet.add<edm::ParameterSetDescription>("lsPSet", lsPSet);
78 
79 }
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  {
8 
9  met_variable_binning_ = iConfig.getParameter<edm::ParameterSet>("histoPSet").getParameter<std::vector<double> >("metBinning");
13 
14 }
T getParameter(std::string const &) const
MEbinning ls_binning_
Definition: METDQM.h:29
static MEbinning getHistoPSet(const edm::ParameterSet &pset)
MEbinning met_binning_
Definition: METDQM.h:27
MEbinning phi_binning_
Definition: METDQM.h:28
std::vector< double > met_variable_binning_
Definition: METDQM.h:26

Member Data Documentation

MEbinning METDQM::ls_binning_
private

Definition at line 29 of file METDQM.h.

Referenced by bookHistograms(), and initialise().

MEbinning METDQM::met_binning_
private

Definition at line 27 of file METDQM.h.

Referenced by bookHistograms(), and initialise().

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

Definition at line 26 of file METDQM.h.

Referenced by bookHistograms(), and initialise().

ObjME METDQM::metME_
private

Definition at line 31 of file METDQM.h.

Referenced by bookHistograms(), and fillHistograms().

ObjME METDQM::metME_variableBinning_
private

Definition at line 32 of file METDQM.h.

Referenced by bookHistograms(), and fillHistograms().

ObjME METDQM::metPhiME_
private

Definition at line 34 of file METDQM.h.

Referenced by bookHistograms(), and fillHistograms().

ObjME METDQM::metVsLS_
private

Definition at line 33 of file METDQM.h.

Referenced by bookHistograms(), and fillHistograms().

MEbinning METDQM::phi_binning_
private

Definition at line 28 of file METDQM.h.

Referenced by bookHistograms(), and initialise().