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, 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

◆ HistDefs()

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

Definition at line 308 of file TrigObjTnPHistColl.cc.

References B2GTnPMonitor_cfi::histConfigs, 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 }
Definition: config.py:1
std::vector< float > massBins_

Member Function Documentation

◆ bookHists()

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, compare::hists, Skims_PA_cff::name, and runGCPTkAlMap::title.

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_
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79

◆ makePSetDescription()

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

Definition at line 316 of file TrigObjTnPHistColl.cc.

References submitPVResolutionJobs::desc, EgHLTOffHistBins_cfi::mass, and trigObjTnPSource_cfi::massBins.

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 }
static edm::ParameterSetDescription makePSetDescription()

Member Data Documentation

◆ histData_

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

Definition at line 197 of file TrigObjTnPHistColl.h.

Referenced by HistDefs().

◆ massBins_

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

Definition at line 198 of file TrigObjTnPHistColl.h.