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 BTVHLTOfflineSource::PathInfo DiDispStaMuonMonitor DiJetMonitor HMesonGammaDQM HTDQM HTMonitor JetDQM JetMonitor LepHTMonitor METDQM METMonitor METplusTrackMonitor MuonMonitor NoBPTXMonitor ObjMonitor 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 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 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 std::vector< double > &  binningX,
const bool  bookDen = true 
)

Definition at line 30 of file TriggerDQMBase.cc.

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 }

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

◆ 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 std::vector< double > &  binningY,
const bool  bookDen = true 
)

Definition at line 86 of file TriggerDQMBase.cc.

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 }

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.

◆ bookME() [3/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 
)

◆ 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 double  ymin,
const double  ymax,
const bool  bookDen = true 
)

Definition at line 47 of file TriggerDQMBase.cc.

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 }

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.

◆ bookME() [5/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.

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 }

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.

◆ 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.

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

References muonDTDigis_cfi::pset.

◆ getHistoPSet()

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

Definition at line 120 of file TriggerDQMBase.cc.

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

References muonDTDigis_cfi::pset.

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

◆ setMETitle()

void TriggerDQMBase::setMETitle ( ObjME me,
const std::string &  titleX,
const std::string &  titleY 
)
TriggerDQMBase::MEbinning
Definition: TriggerDQMBase.h:16
min
T min(T a, T b)
Definition: MathUtil.h:58
hlt_dqm_clientPB-live_cfg.nbinsX
nbinsX
Definition: hlt_dqm_clientPB-live_cfg.py:65
parallelization.uint
uint
Definition: parallelization.py:124
L1TOccupancyClient_cfi.ymax
ymax
Definition: L1TOccupancyClient_cfi.py:43
dqm::implementation::IBooker::bookProfile
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:322
LaserClient_cfi.nbins
nbins
Definition: LaserClient_cfi.py:51
hlt_dqm_clientPB-live_cfg.nbinsY
nbinsY
Definition: hlt_dqm_clientPB-live_cfg.py:69
listHistos.binning
binning
Definition: listHistos.py:43
SiStripPI::max
Definition: SiStripPayloadInspectorHelper.h:169
L1TOccupancyClient_cfi.ymin
ymin
Definition: L1TOccupancyClient_cfi.py:43
TrackerOfflineValidation_Dqm_cff.xmax
xmax
Definition: TrackerOfflineValidation_Dqm_cff.py:11
dqm::implementation::IBooker::book2D
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:177
TrackerOfflineValidation_Dqm_cff.xmin
xmin
Definition: TrackerOfflineValidation_Dqm_cff.py:10
hlt_dqm_clientPB-live_cfg.me
me
Definition: hlt_dqm_clientPB-live_cfg.py:61
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
dqm::implementation::IBooker::book1D
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:98