CMS 3D CMS Logo

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

#include <TrigObjTnPHistColl.h>

Classes

class  Data
 

Public Member Functions

std::vector< std::pair< HistFiller, ConcurrentMonitorElement > > bookHists (DQMStore::ConcurrentBooker &iBooker, const std::string &name, const std::string &title) const
 
 HistDefs (const edm::ParameterSet &config)
 

Static Public Member Functions

static edm::ParameterSetDescription makePSetDescription ()
 

Private Attributes

std::vector< DatahistData_
 
std::vector< float > massBins_
 

Detailed Description

Definition at line 162 of file TrigObjTnPHistColl.h.

Constructor & Destructor Documentation

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

Definition at line 307 of file TrigObjTnPHistColl.cc.

References edm::ParameterSet::getParameter(), and histData_.

307  :
308  massBins_(convertToFloat(config.getParameter<std::vector<double> >("massBins")))
309 {
310  const auto histConfigs = config.getParameter<std::vector<edm::ParameterSet> >("configs");
311  for(const auto& histConfig : histConfigs){
312  histData_.emplace_back(Data(histConfig));
313  }
314 }
T getParameter(std::string const &) const
std::vector< float > massBins_

Member Function Documentation

std::vector< std::pair< TrigObjTnPHistColl::HistFiller, ConcurrentMonitorElement > > TrigObjTnPHistColl::HistDefs::bookHists ( DQMStore::ConcurrentBooker iBooker,
const std::string &  name,
const std::string &  title 
) const

Definition at line 326 of file TrigObjTnPHistColl.cc.

References data, histData_, compare::hists, and massBins_.

Referenced by TrigObjTnPHistColl::HistColl::bookHists().

327 {
328  std::vector<std::pair<HistFiller,ConcurrentMonitorElement> > hists;
329  for(const auto& data : histData_){
330  hists.push_back({data.filler(),data.book(iBooker,name,title,massBins_)});
331  }
332  return hists;
333 }
std::vector< float > massBins_
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
edm::ParameterSetDescription TrigObjTnPHistColl::HistDefs::makePSetDescription ( )
static

Definition at line 316 of file TrigObjTnPHistColl.cc.

References edm::ParameterSetDescription::add(), edm::ParameterSetDescription::addVPSet(), TrigObjTnPHistColl::HistDefs::Data::makePSetDescription(), and ResonanceBuilder::mass.

Referenced by TrigObjTnPHistColl::makePSetDescription().

317 {
319  desc.addVPSet("configs",Data::makePSetDescription(),std::vector<edm::ParameterSet>());
320  std::vector<double> massBins;
321  for(float mass = 60;mass<=120;mass+=1) massBins.push_back(mass);
322  desc.add<std::vector<double>>("massBins",massBins);
323  return desc;
324 }
ParameterDescriptionBase * addVPSet(U const &iLabel, ParameterSetDescription const &validator, std::vector< ParameterSet > const &defaults)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static edm::ParameterSetDescription makePSetDescription()

Member Data Documentation

std::vector<Data> TrigObjTnPHistColl::HistDefs::histData_
private

Definition at line 181 of file TrigObjTnPHistColl.h.

Referenced by bookHists(), and HistDefs().

std::vector<float> TrigObjTnPHistColl::HistDefs::massBins_
private

Definition at line 182 of file TrigObjTnPHistColl.h.

Referenced by bookHists().