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

ConcurrentMonitorElement book (DQMStore::ConcurrentBooker &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 164 of file TrigObjTnPHistColl.h.

Constructor & Destructor Documentation

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

Definition at line 335 of file TrigObjTnPHistColl.cc.

335  :
336  histFiller_(config.getParameter<edm::ParameterSet>("filler")),
337  bins_(convertToFloat(config.getParameter<std::vector<double> >("bins"))),
338  nameSuffex_(config.getParameter<std::string>("nameSuffex")),
339  titleSuffex_(config.getParameter<std::string>("titleSuffex"))
340 {
341 
342 }
T getParameter(std::string const &) const

Member Function Documentation

ConcurrentMonitorElement TrigObjTnPHistColl::HistDefs::Data::book ( DQMStore::ConcurrentBooker iBooker,
const std::string &  name,
const std::string &  title,
const std::vector< float > &  massBins 
) const

Definition at line 354 of file TrigObjTnPHistColl.cc.

References bins_, DQMStore::ConcurrentBooker::book2D(), nameSuffex_, and titleSuffex_.

357 {
358  return iBooker.book2D((name+nameSuffex_).c_str(),(title+titleSuffex_).c_str(),
359  bins_.size()-1,bins_.data(),massBins.size()-1,massBins.data());
360 }
ConcurrentMonitorElement book2D(Args &&...args)
Definition: DQMStore.h:244
const HistFiller& TrigObjTnPHistColl::HistDefs::Data::filler ( ) const
inline

Definition at line 169 of file TrigObjTnPHistColl.h.

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

Definition at line 344 of file TrigObjTnPHistColl.cc.

References edm::ParameterSetDescription::add(), TrigObjTnPHistColl::HistFiller::makePSetDescription(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by TrigObjTnPHistColl::HistDefs::makePSetDescription().

345 {
348  desc.add<std::vector<double> >("bins",{-2.5,-1.5,0,1.5,2.5});
349  desc.add<std::string>("nameSuffex","_eta");
350  desc.add<std::string>("titleSuffex",";#eta;mass [GeV]");
351  return desc;
352 }
static edm::ParameterSetDescription makePSetDescription()
ParameterDescriptionBase * add(U const &iLabel, T const &value)

Member Data Documentation

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

Definition at line 172 of file TrigObjTnPHistColl.h.

Referenced by book().

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

Definition at line 171 of file TrigObjTnPHistColl.h.

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

Definition at line 173 of file TrigObjTnPHistColl.h.

Referenced by book().

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

Definition at line 174 of file TrigObjTnPHistColl.h.

Referenced by book().