CMS 3D CMS Logo

List of all members | Classes | Public Types | Public Member Functions | Static Public Member Functions
TriggerDQMBase Class Reference

#include <TriggerDQMBase.h>

Inheritance diagram for TriggerDQMBase:
BPHMonitor BTagAndProbe BTVHLTOfflineSource::PathInfo DiDispStaMuonMonitor DiJetMonitor HMesonGammaDQM HTDQM HTMonitor JetDQM JetMonitor LepHTMonitor METDQM METMonitor METplusTrackMonitor MuonMonitor NoBPTXMonitor ObjMonitor ParticleNetJetTagMonitor PhotonMonitor RazorMonitor Tau3MuMonitor TopMonitor

Classes

struct  MEbinning
 
class  ObjME
 

Public Types

typedef dqm::legacy::DQMStore DQMStore
 
typedef dqm::legacy::MonitorElement MonitorElement
 

Public Member Functions

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 fillHistoLSPSetDescription (edm::ParameterSetDescription &pset)
 
static void fillHistoPSetDescription (edm::ParameterSetDescription &pset)
 
static MEbinning getHistoLSPSet (const edm::ParameterSet &pset)
 
static MEbinning getHistoPSet (const edm::ParameterSet &pset)
 

Detailed Description

Definition at line 8 of file TriggerDQMBase.h.

Member Typedef Documentation

◆ DQMStore

Definition at line 11 of file TriggerDQMBase.h.

◆ MonitorElement

Definition at line 10 of file TriggerDQMBase.h.

Constructor & Destructor Documentation

◆ TriggerDQMBase()

TriggerDQMBase::TriggerDQMBase ( )
default

◆ ~TriggerDQMBase()

virtual TriggerDQMBase::~TriggerDQMBase ( )
virtualdefault

Member Function Documentation

◆ bookME() [1/5]

void TriggerDQMBase::bookME ( DQMStore::IBooker 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 at line 15 of file TriggerDQMBase.cc.

References dqm::implementation::IBooker::book1D(), SiStripPI::max, hlt_dqm_clientPB-live_cfg::me, SiStripPI::min, and LaserClient_cfi::nbins.

Referenced by HTDQM::bookHistograms(), METDQM::bookHistograms(), JetDQM::bookHistograms(), HMesonGammaDQM::bookHistograms(), DiDispStaMuonMonitor::bookHistograms(), NoBPTXMonitor::bookHistograms(), METplusTrackMonitor::bookHistograms(), MuonMonitor::bookHistograms(), METMonitor::bookHistograms(), DiJetMonitor::bookHistograms(), PhotonMonitor::bookHistograms(), TopMonitor::bookHistograms(), RazorMonitor::bookHistograms(), HTMonitor::bookHistograms(), BTagAndProbe::bookHistograms(), BPHMonitor::bookHistograms(), ParticleNetJetTagMonitor::bookHistograms(), and JetMonitor::bookMESub().

22  {
23  me.numerator = ibooker.book1D(histname + "_numerator", histtitle + " (numerator)", nbins, min, max);
24 
25  if (bookDen) {
26  me.denominator = ibooker.book1D(histname + "_denominator", histtitle + " (denominator)", nbins, min, max);
27  }
28 }
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:98

◆ bookME() [2/5]

void TriggerDQMBase::bookME ( DQMStore::IBooker ibooker,
ObjME me,
const std::string &  histname,
const std::string &  histtitle,
const std::vector< double > &  binningX,
const bool  bookDen = true 
)

Definition at line 30 of file TriggerDQMBase.cc.

References pileupCalc::binning, dqm::implementation::IBooker::book1D(), hlt_dqm_clientPB-live_cfg::me, LaserClient_cfi::nbins, and parallelization::uint.

35  {
36  uint nbins = binning.size() - 1;
37  std::vector<float> fbinning(binning.begin(), binning.end());
38  float* arr = &fbinning[0];
39 
40  me.numerator = ibooker.book1D(histname + "_numerator", histtitle + " (numerator)", nbins, arr);
41 
42  if (bookDen) {
43  me.denominator = ibooker.book1D(histname + "_denominator", histtitle + " (denominator)", nbins, arr);
44  }
45 }
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:98

◆ bookME() [3/5]

void TriggerDQMBase::bookME ( DQMStore::IBooker 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 
)

Definition at line 47 of file TriggerDQMBase.cc.

References dqm::implementation::IBooker::bookProfile(), hlt_dqm_clientPB-live_cfg::me, hlt_dqm_clientPB-live_cfg::nbinsX, TrackerOfflineValidation_Dqm_cff::xmax, TrackerOfflineValidation_Dqm_cff::xmin, L1TOccupancyClient_cfi::ymax, and L1TOccupancyClient_cfi::ymin.

56  {
57  me.numerator =
58  ibooker.bookProfile(histname + "_numerator", histtitle + " (numerator)", nbinsX, xmin, xmax, ymin, ymax);
59 
60  if (bookDen) {
61  me.denominator =
62  ibooker.bookProfile(histname + "_denominator", histtitle + " (denominator)", nbinsX, xmin, xmax, ymin, ymax);
63  }
64 }
MonitorElement * bookProfile(TString const &name, TString const &title, int nchX, double lowX, double highX, int, double lowY, double highY, char const *option="s", FUNC onbooking=NOOP())
Definition: DQMStore.h:399

◆ bookME() [4/5]

void TriggerDQMBase::bookME ( DQMStore::IBooker 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 
)

Definition at line 66 of file TriggerDQMBase.cc.

References dqm::implementation::IBooker::book2D(), hlt_dqm_clientPB-live_cfg::me, hlt_dqm_clientPB-live_cfg::nbinsX, hlt_dqm_clientPB-live_cfg::nbinsY, TrackerOfflineValidation_Dqm_cff::xmax, TrackerOfflineValidation_Dqm_cff::xmin, L1TOccupancyClient_cfi::ymax, and L1TOccupancyClient_cfi::ymin.

76  {
77  me.numerator =
78  ibooker.book2D(histname + "_numerator", histtitle + " (numerator)", nbinsX, xmin, xmax, nbinsY, ymin, ymax);
79 
80  if (bookDen) {
81  me.denominator =
82  ibooker.book2D(histname + "_denominator", histtitle + " (denominator)", nbinsX, xmin, xmax, nbinsY, ymin, ymax);
83  }
84 }
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
Definition: DQMStore.h:212

◆ bookME() [5/5]

void TriggerDQMBase::bookME ( DQMStore::IBooker 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 
)

Definition at line 86 of file TriggerDQMBase.cc.

References dqm::implementation::IBooker::book2D(), hlt_dqm_clientPB-live_cfg::me, hlt_dqm_clientPB-live_cfg::nbinsX, hlt_dqm_clientPB-live_cfg::nbinsY, and parallelization::uint.

92  {
93  uint nbinsX = binningX.size() - 1;
94  std::vector<float> fbinningX(binningX.begin(), binningX.end());
95  float* arrX = &fbinningX[0];
96  uint nbinsY = binningY.size() - 1;
97  std::vector<float> fbinningY(binningY.begin(), binningY.end());
98  float* arrY = &fbinningY[0];
99 
100  me.numerator = ibooker.book2D(histname + "_numerator", histtitle + " (numerator)", nbinsX, arrX, nbinsY, arrY);
101 
102  if (bookDen) {
103  me.denominator =
104  ibooker.book2D(histname + "_denominator", histtitle + " (denominator)", nbinsX, arrX, nbinsY, arrY);
105  }
106 }
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
Definition: DQMStore.h:212

◆ fillHistoLSPSetDescription()

void TriggerDQMBase::fillHistoLSPSetDescription ( edm::ParameterSetDescription pset)
static

◆ fillHistoPSetDescription()

void TriggerDQMBase::fillHistoPSetDescription ( edm::ParameterSetDescription pset)
static

◆ getHistoLSPSet()

TriggerDQMBase::MEbinning TriggerDQMBase::getHistoLSPSet ( const edm::ParameterSet pset)
static

Definition at line 125 of file TriggerDQMBase.cc.

References muonDTDigis_cfi::pset.

125  {
127  pset.getParameter<uint32_t>("nbins"), 0., double(pset.getParameter<uint32_t>("nbins"))};
128 }

◆ getHistoPSet()

TriggerDQMBase::MEbinning TriggerDQMBase::getHistoPSet ( const edm::ParameterSet pset)
static

Definition at line 120 of file TriggerDQMBase.cc.

References muonDTDigis_cfi::pset.

Referenced by HTDQM::initialise(), METDQM::initialise(), JetDQM::initialise(), and HMesonGammaDQM::initialise().

120  {
122  pset.getParameter<uint32_t>("nbins"), pset.getParameter<double>("xmin"), pset.getParameter<double>("xmax")};
123 }

◆ setMETitle()

void TriggerDQMBase::setMETitle ( ObjME me,
const std::string &  titleX,
const std::string &  titleY 
)