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

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

References B2GTnPMonitor_cfi::histConfigs, and histData_.

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

328  {
329  std::vector<std::pair<HistFiller, dqm::reco::MonitorElement*>> hists;
330  for (const auto& data : histData_) {
331  hists.push_back({data.filler(), data.book(iBooker, name, title, massBins_)});
332  }
333  return hists;
334 }

References data, compare::hists, Skims_PA_cff::name, and runGCPTkAlMap::title.

◆ makePSetDescription()

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

Definition at line 315 of file TrigObjTnPHistColl.cc.

315  {
317  desc.addVPSet("configs", Data::makePSetDescription(), std::vector<edm::ParameterSet>());
318  std::vector<double> massBins;
319  for (float mass = 60; mass <= 120; mass += 1)
320  massBins.push_back(mass);
321  desc.add<std::vector<double>>("massBins", massBins);
322  return desc;
323 }

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

Referenced by TrigObjTnPHistColl::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.

runGCPTkAlMap.title
string title
Definition: runGCPTkAlMap.py:94
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
TrigObjTnPHistColl::HistDefs::massBins_
std::vector< float > massBins_
Definition: TrigObjTnPHistColl.h:198
TrigObjTnPHistColl::HistDefs::Data::makePSetDescription
static edm::ParameterSetDescription makePSetDescription()
Definition: TrigObjTnPHistColl.cc:342
compare.hists
hists
Definition: compare.py:319
B2GTnPMonitor_cfi.histConfigs
histConfigs
Definition: B2GTnPMonitor_cfi.py:126
config
Definition: config.py:1
TrigObjTnPHistColl::HistDefs::histData_
std::vector< Data > histData_
Definition: TrigObjTnPHistColl.h:197
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
EgHLTOffHistBins_cfi.mass
mass
Definition: EgHLTOffHistBins_cfi.py:34
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
trigObjTnPSource_cfi.massBins
massBins
Definition: trigObjTnPSource_cfi.py:74