CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 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

Definition at line 11 of file TriggerDQMBase.h.

Definition at line 10 of file TriggerDQMBase.h.

Constructor & Destructor Documentation

TriggerDQMBase::TriggerDQMBase ( )
default
virtual TriggerDQMBase::~TriggerDQMBase ( )
virtualdefault

Member Function Documentation

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 
)
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 dqm::implementation::IBooker::book1D(), TriggerDQMBase::ObjME::denominator, hlt_dqm_clientPB-live_cfg::nbins, TriggerDQMBase::ObjME::numerator, 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 }
tuple binning
Definition: pileupCalc.py:163
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:98
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(), TriggerDQMBase::ObjME::denominator, and TriggerDQMBase::ObjME::numerator.

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
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(), TriggerDQMBase::ObjME::denominator, and TriggerDQMBase::ObjME::numerator.

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
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(), TriggerDQMBase::ObjME::denominator, TriggerDQMBase::ObjME::numerator, 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
void TriggerDQMBase::fillHistoLSPSetDescription ( edm::ParameterSetDescription pset)
static
void TriggerDQMBase::fillHistoPSetDescription ( edm::ParameterSetDescription pset)
static
TriggerDQMBase::MEbinning TriggerDQMBase::getHistoLSPSet ( const edm::ParameterSet pset)
static

Definition at line 125 of file TriggerDQMBase.cc.

References edm::ParameterSet::getParameter().

125  {
127  pset.getParameter<uint32_t>("nbins"), 0., double(pset.getParameter<uint32_t>("nbins"))};
128 }
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
TriggerDQMBase::MEbinning TriggerDQMBase::getHistoPSet ( const edm::ParameterSet pset)
static

Definition at line 120 of file TriggerDQMBase.cc.

References edm::ParameterSet::getParameter().

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 }
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
void TriggerDQMBase::setMETitle ( ObjME me,
const std::string &  titleX,
const std::string &  titleY 
)