CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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,
dqm::reco::MonitorElement * > > 
bookHists (DQMStore::IBooker &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 170 of file TrigObjTnPHistColl.h.

Constructor & Destructor Documentation

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

Definition at line 308 of file TrigObjTnPHistColl.cc.

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

309  : massBins_(convertToFloat(config.getParameter<std::vector<double>>("massBins"))) {
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 }
std::vector< float > massBins_
T getParameter(std::string const &) const
Definition: ParameterSet.h:303

Member Function Documentation

std::vector< std::pair< TrigObjTnPHistColl::HistFiller, dqm::reco::MonitorElement * > > TrigObjTnPHistColl::HistDefs::bookHists ( DQMStore::IBooker iBooker,
const std::string &  name,
const std::string &  title 
) const

Definition at line 327 of file TrigObjTnPHistColl.cc.

References data, and compare::hists.

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

329  {
330  std::vector<std::pair<HistFiller, dqm::reco::MonitorElement*>> hists;
331  for (const auto& data : histData_) {
332  hists.push_back({data.filler(), data.book(iBooker, name, title, massBins_)});
333  }
334  return hists;
335 }
std::vector< float > massBins_
list hists
Definition: compare.py:318
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
edm::ParameterSetDescription TrigObjTnPHistColl::HistDefs::makePSetDescription ( )
static

Definition at line 316 of file TrigObjTnPHistColl.cc.

References edm::ParameterSetDescription::add(), edm::ParameterSetDescription::addVPSet(), submitPVResolutionJobs::desc, and ResonanceBuilder::mass.

Referenced by TrigObjTnPHistColl::makePSetDescription().

316  {
318  desc.addVPSet("configs", Data::makePSetDescription(), std::vector<edm::ParameterSet>());
319  std::vector<double> massBins;
320  for (float mass = 60; mass <= 120; mass += 1)
321  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 197 of file TrigObjTnPHistColl.h.

Referenced by HistDefs().

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

Definition at line 198 of file TrigObjTnPHistColl.h.