CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
TrigObjTnPHistColl::HistDefs::Data Class Reference

Public Member Functions

dqm::reco::MonitorElementbook (DQMStore::IBooker &iBooker, const std::string &name, const std::string &title, const std::vector< float > &massBins) const
 
 Data (const edm::ParameterSet &config)
 
const HistFillerfiller () const
 

Static Public Member Functions

static edm::ParameterSetDescription makePSetDescription ()
 

Private Attributes

std::vector< float > bins_
 
HistFiller histFiller_
 
std::string nameSuffex_
 
std::string titleSuffex_
 

Detailed Description

Definition at line 172 of file TrigObjTnPHistColl.h.

Constructor & Destructor Documentation

◆ Data()

TrigObjTnPHistColl::HistDefs::Data::Data ( const edm::ParameterSet config)
explicit

Definition at line 337 of file TrigObjTnPHistColl.cc.

338  : histFiller_(config.getParameter<edm::ParameterSet>("filler")),
339  bins_(convertToFloat(config.getParameter<std::vector<double>>("bins"))),
340  nameSuffex_(config.getParameter<std::string>("nameSuffex")),
341  titleSuffex_(config.getParameter<std::string>("titleSuffex")) {}
Definition: config.py:1

Member Function Documentation

◆ book()

dqm::reco::MonitorElement * TrigObjTnPHistColl::HistDefs::Data::book ( DQMStore::IBooker iBooker,
const std::string &  name,
const std::string &  title,
const std::vector< float > &  massBins 
) const

Definition at line 352 of file TrigObjTnPHistColl.cc.

References dqm::implementation::IBooker::book2D(), trigObjTnPSource_cfi::massBins, Skims_PA_cff::name, and runGCPTkAlMap::title.

355  {
356  return iBooker.book2D((name + nameSuffex_).c_str(),
357  (title + titleSuffex_).c_str(),
358  bins_.size() - 1,
359  bins_.data(),
360  massBins.size() - 1,
361  massBins.data());
362 }
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

◆ filler()

const HistFiller& TrigObjTnPHistColl::HistDefs::Data::filler ( ) const
inline

Definition at line 180 of file TrigObjTnPHistColl.h.

References histFiller_.

◆ makePSetDescription()

edm::ParameterSetDescription TrigObjTnPHistColl::HistDefs::Data::makePSetDescription ( )
static

Definition at line 343 of file TrigObjTnPHistColl.cc.

References submitPVResolutionJobs::desc, TrigObjTnPHistColl::HistFiller::makePSetDescription(), and AlCaHLTBitMon_QueryRunRegistry::string.

343  {
346  desc.add<std::vector<double>>("bins", {-2.5, -1.5, 0, 1.5, 2.5});
347  desc.add<std::string>("nameSuffex", "_eta");
348  desc.add<std::string>("titleSuffex", ";#eta;mass [GeV]");
349  return desc;
350 }
static edm::ParameterSetDescription makePSetDescription()

Member Data Documentation

◆ bins_

std::vector<float> TrigObjTnPHistColl::HistDefs::Data::bins_
private

Definition at line 184 of file TrigObjTnPHistColl.h.

◆ histFiller_

HistFiller TrigObjTnPHistColl::HistDefs::Data::histFiller_
private

Definition at line 183 of file TrigObjTnPHistColl.h.

Referenced by filler().

◆ nameSuffex_

std::string TrigObjTnPHistColl::HistDefs::Data::nameSuffex_
private

Definition at line 185 of file TrigObjTnPHistColl.h.

◆ titleSuffex_

std::string TrigObjTnPHistColl::HistDefs::Data::titleSuffex_
private

Definition at line 186 of file TrigObjTnPHistColl.h.