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

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

354  {
355  return iBooker.book2D((name + nameSuffex_).c_str(),
356  (title + titleSuffex_).c_str(),
357  bins_.size() - 1,
358  bins_.data(),
359  massBins.size() - 1,
360  massBins.data());
361 }

References dqm::implementation::IBooker::book2D(), trigObjTnPSource_cfi::massBins, Skims_PA_cff::name, and overlapproblemtsosanalyzer_cfi::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 342 of file TrigObjTnPHistColl.cc.

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

References edm::ParameterSetDescription::add(), 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
edm::ParameterSetDescription::add
ParameterDescriptionBase * add(U const &iLabel, T const &value)
Definition: ParameterSetDescription.h:95
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:36
TrigObjTnPHistColl::HistFiller::makePSetDescription
static edm::ParameterSetDescription makePSetDescription()
Definition: TrigObjTnPHistColl.cc:293
overlapproblemtsosanalyzer_cfi.title
title
Definition: overlapproblemtsosanalyzer_cfi.py:7
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