CMS 3D CMS Logo

METDQM.cc
Go to the documentation of this file.
2 
3 METDQM::METDQM() = default;
4 
5 METDQM::~METDQM() = default;
6 
7 void METDQM::initialise(const edm::ParameterSet& iConfig) {
9  iConfig.getParameter<edm::ParameterSet>("histoPSet").getParameter<std::vector<double> >("metBinning");
10  met_binning_ =
12  phi_binning_ =
14  ls_binning_ =
16 }
17 
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 }
49 
50 void METDQM::fillHistograms(const double& met, const double& phi, const int& ls, const bool passCond) {
51  // filling histograms (denominator)
55 
57 
58  // applying selection for numerator
59  if (passCond) {
60  // filling histograms (num_genTriggerEventFlag_)
65  }
66 }
67 
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 }
eostools.ls
def ls(path, rec=False)
Definition: eostools.py:349
METDQM::fillHistograms
void fillHistograms(const double &met, const double &phi, const int &ls, const bool passCond)
Definition: METDQM.cc:50
METDQM::fillMetDescription
static void fillMetDescription(edm::ParameterSetDescription &histoPSet)
Definition: METDQM.cc:68
METDQM::~METDQM
~METDQM() override
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
METDQM.h
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:36
PVValHelper::phi
Definition: PVValidationHelpers.h:68
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
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
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
dqm::implementation::IBooker
Definition: DQMStore.h:43
trigObjTnPSource_cfi.bins
bins
Definition: trigObjTnPSource_cfi.py:20
METDQM::metPhiME_
ObjME metPhiME_
Definition: METDQM.h:28
METDQM::METDQM
METDQM()
TriggerDQMBase::fillHistoLSPSetDescription
static void fillHistoLSPSetDescription(edm::ParameterSetDescription &pset)
Definition: TriggerDQMBase.cc:114
METDQM::initialise
void initialise(const edm::ParameterSet &iConfig)
Definition: METDQM.cc:7
METDQM::bookHistograms
void bookHistograms(DQMStore::IBooker &)
Definition: METDQM.cc:18