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")) {}

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.

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 }

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

◆ filler()

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

Definition at line 180 of file TrigObjTnPHistColl.h.

180 { return histFiller_; }

References histFiller_.

◆ makePSetDescription()

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

Definition at line 343 of file TrigObjTnPHistColl.cc.

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 }

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

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.

TrigObjTnPHistColl::HistDefs::Data::nameSuffex_
std::string nameSuffex_
Definition: TrigObjTnPHistColl.h:185
runGCPTkAlMap.title
string title
Definition: runGCPTkAlMap.py:94
TrigObjTnPHistColl::HistDefs::Data::titleSuffex_
std::string titleSuffex_
Definition: TrigObjTnPHistColl.h:186
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
TrigObjTnPHistColl::HistDefs::Data::histFiller_
HistFiller histFiller_
Definition: TrigObjTnPHistColl.h:183
config
Definition: config.py:1
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition: ParameterSet.h:47
TrigObjTnPHistColl::HistFiller::makePSetDescription
static edm::ParameterSetDescription makePSetDescription()
Definition: TrigObjTnPHistColl.cc:294
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
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
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
TrigObjTnPHistColl::HistDefs::Data::bins_
std::vector< float > bins_
Definition: TrigObjTnPHistColl.h:184
trigObjTnPSource_cfi.massBins
massBins
Definition: trigObjTnPSource_cfi.py:74