CMS 3D CMS Logo

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, 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 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_
 

Detailed Description

Definition at line 11 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 16 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().

17 {
18 
19  std::string histname, histtitle;
20 
21  histname = "ht_variable"; histtitle = "PFHT";
22  bookME(ibooker,htME_variableBinning_,histname,histtitle,ht_variable_binning_);
23  setMETitle(htME_variableBinning_,"PF HT [GeV]","events / [GeV]");
24 
25  histname = "htVsMET"; histtitle = "PFHT vs PFMET";
26  bookME(ibooker,htVsMET_,histname,histtitle,met_variable_binning_,ht_variable_binning_);
27  setMETitle(htVsMET_,"PF MET [GeV]","PF HT [GeV]");
28 
29  histname = "htVsLS"; histtitle = "PFHT vs LS";
31  setMETitle(htVsLS_,"LS","PF HT [GeV]");
32 
33 }
std::vector< double > ht_variable_binning_
Definition: HTDQM.h:28
ObjME htVsLS_
Definition: HTDQM.h:35
void setMETitle(ObjME &me, const std::string &titleX, const std::string &titleY)
MEbinning ht_binning_
Definition: HTDQM.h:30
std::vector< double > met_variable_binning_
Definition: HTDQM.h:29
ObjME htVsMET_
Definition: HTDQM.h:34
MEbinning ls_binning_
Definition: HTDQM.h:31
void bookME(DQMStore::IBooker &, ObjME &me, const std::string &histname, const std::string &histtitle, unsigned nbins, double xmin, double xmax)
ObjME htME_variableBinning_
Definition: HTDQM.h:33
void HTDQM::fillHistograms ( const std::vector< reco::PFJet > &  htjets,
const double &  met,
const int &  ls,
const bool  passCond 
)

Definition at line 35 of file HTDQM.cc.

References TriggerDQMBase::ObjME::denominator, HcalObjRepresent::Fill(), htME_variableBinning_, htVsLS_, htVsMET_, and TriggerDQMBase::ObjME::numerator.

Referenced by ObjMonitor::analyze().

38  {
39 
40  // filling histograms (denominator)
41  double htSum = 0;
42  for (auto const & htjet : htjets){
43  htSum += htjet.pt();
44  }
45 
47 
48  htVsMET_.denominator -> Fill(met, htSum);
49  htVsLS_.denominator -> Fill(ls, htSum);
50 
51  // applying selection for numerator
52  if (passCond){
53  // filling histograms (num_genTriggerEventFlag_)
55  htVsMET_.numerator -> Fill(met, htSum);
56  htVsLS_.numerator -> Fill(ls, htSum);
57  }
58 
59 }
MonitorElement * numerator
ObjME htVsLS_
Definition: HTDQM.h:35
MonitorElement * denominator
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
ObjME htVsMET_
Definition: HTDQM.h:34
def ls(path, rec=False)
Definition: eostools.py:349
met
===> hadronic RAZOR
ObjME htME_variableBinning_
Definition: HTDQM.h:33
void HTDQM::fillHtDescription ( edm::ParameterSetDescription histoPSet)
static

Definition at line 61 of file HTDQM.cc.

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

Referenced by ObjMonitor::fillDescriptions().

61  {
62 
65  histoPSet.add<edm::ParameterSetDescription>("htPSet", htPSet);
66 
67  std::vector<double> bins = {0.,50.,100.,150.,200.,250.,300.,350.,400.,450.,500.,550.,600.,650.,700.,750.,800.,900.,1000.,1200.,1500.,2000.};
68  histoPSet.add<std::vector<double> >("htBinning", bins);
69 
70  std::vector<double> metbins = {0.,20.,40.,60.,80.,100.,120.,140.,160.,180.,200.,220.,240.,260.,280.,300.,320.,340.,360.,380.,400.,450.,500.,1000.};
71  histoPSet.add<std::vector<double> >("metBinning2", metbins);
72 
75  histoPSet.add<edm::ParameterSetDescription>("htlsPSet", lsPSet);
76 
77 }
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  {
8 
9  ht_variable_binning_ = iConfig.getParameter<edm::ParameterSet>("histoPSet").getParameter<std::vector<double> >("htBinning");
10  met_variable_binning_ = iConfig.getParameter<edm::ParameterSet>("histoPSet").getParameter<std::vector<double> >("metBinning2");
13 
14 }
T getParameter(std::string const &) const
std::vector< double > ht_variable_binning_
Definition: HTDQM.h:28
MEbinning ht_binning_
Definition: HTDQM.h:30
static MEbinning getHistoPSet(const edm::ParameterSet &pset)
std::vector< double > met_variable_binning_
Definition: HTDQM.h:29
MEbinning ls_binning_
Definition: HTDQM.h:31

Member Data Documentation

MEbinning HTDQM::ht_binning_
private

Definition at line 30 of file HTDQM.h.

Referenced by bookHistograms(), and initialise().

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

Definition at line 28 of file HTDQM.h.

Referenced by bookHistograms(), and initialise().

ObjME HTDQM::htME_variableBinning_
private

Definition at line 33 of file HTDQM.h.

Referenced by bookHistograms(), and fillHistograms().

ObjME HTDQM::htVsLS_
private

Definition at line 35 of file HTDQM.h.

Referenced by bookHistograms(), and fillHistograms().

ObjME HTDQM::htVsMET_
private

Definition at line 34 of file HTDQM.h.

Referenced by bookHistograms(), and fillHistograms().

MEbinning HTDQM::ls_binning_
private

Definition at line 31 of file HTDQM.h.

Referenced by bookHistograms(), and initialise().

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

Definition at line 29 of file HTDQM.h.

Referenced by bookHistograms(), and initialise().