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.

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 }

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

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 }

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

◆ makePSetDescription()

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

Definition at line 316 of file TrigObjTnPHistColl.cc.

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 }

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:343
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