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 338 of file TrigObjTnPHistColl.cc.

339  : histFiller_(config.getParameter<edm::ParameterSet>("filler")),
340  bins_(convertToFloat(config.getParameter<std::vector<double>>("bins"))),
341  nameSuffex_(config.getParameter<std::string>("nameSuffex")),
342  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 353 of file TrigObjTnPHistColl.cc.

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

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

◆ 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 344 of file TrigObjTnPHistColl.cc.

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

344  {
347  desc.add<std::vector<double>>("bins", {-2.5, -1.5, 0, 1.5, 2.5});
348  desc.add<std::string>("nameSuffex", "_eta");
349  desc.add<std::string>("titleSuffex", ";#eta;mass [GeV]");
350  return desc;
351 }
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.