CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
cms::DDSpecPar Struct Reference

#include <DDSpecParRegistry.h>

Public Member Functions

double dblValue (const std::string &) const
 
bool hasPath (const std::string &path) const
 
bool hasValue (const std::string &key) const
 
std::string_view strValue (const std::string &) const
 
template<typename T >
T value (const std::string &) const
 

Public Attributes

std::string_view name
 
DDVectorsMap numpars
 
DDPaths paths
 
DDPartSelectionMap spars
 

Detailed Description

Definition at line 14 of file DDSpecParRegistry.h.

Member Function Documentation

◆ dblValue()

double DDSpecPar::dblValue ( const std::string &  ) const

Definition at line 91 of file DDSpecparRegistry.cc.

91  {
92  auto const& item = numpars.find(key);
93  if (item == end(numpars))
94  return 0;
95  return *begin(item->second);
96 }

References begin, end, B2GTnPMonitor_cfi::item, and crabWrapper::key.

◆ hasPath()

bool DDSpecPar::hasPath ( const std::string &  path) const

Definition at line 24 of file DDSpecparRegistry.cc.

24  {
26  if (result != end(paths))
27  return true;
28  else
29  return false;
30 }

References begin, end, spr::find(), castor_dqm_sourceclient_file_cfg::path, Skims_PA_cff::paths, and mps_fire::result.

◆ hasValue()

bool DDSpecPar::hasValue ( const std::string &  key) const

Definition at line 17 of file DDSpecparRegistry.cc.

17  {
18  if (numpars.find(key) != end(numpars))
19  return true;
20  else
21  return false;
22 }

References end, and crabWrapper::key.

Referenced by DDG4ProductionCuts::setProdCuts().

◆ strValue()

string_view DDSpecPar::strValue ( const std::string &  ) const

Definition at line 10 of file DDSpecparRegistry.cc.

10  {
11  auto const& item = spars.find(key);
12  if (item == end(spars))
13  return string_view();
14  return *begin(item->second);
15 }

References begin, end, B2GTnPMonitor_cfi::item, and crabWrapper::key.

Referenced by MTDParametersFromDD::build(), cms::DDFilteredView::getString(), and DDG4ProductionCuts::setProdCuts().

◆ value()

template<typename T >
T cms::DDSpecPar::value ( const std::string &  ) const

Member Data Documentation

◆ name

std::string_view cms::DDSpecPar::name

Definition at line 26 of file DDSpecParRegistry.h.

Referenced by ElectronMVAID.ElectronMVAID::__call__(), FWLite.ElectronMVAID::__call__(), dirstructure.Directory::__create_pie_image(), DisplayManager.DisplayManager::__del__(), dqm_interfaces.DirID::__eq__(), BeautifulSoup.Tag::__eq__(), dirstructure.Directory::__get_full_path(), dirstructure.Comparison::__get_img_name(), dataset.Dataset::__getDataType(), dataset.Dataset::__getFileInfoList(), dirstructure.Comparison::__make_image(), core.autovars.NTupleVariable::__repr__(), core.autovars.NTupleObjectType::__repr__(), core.autovars.NTupleObject::__repr__(), core.autovars.NTupleCollection::__repr__(), dirstructure.Directory::__repr__(), dqm_interfaces.DirID::__repr__(), dirstructure.Comparison::__repr__(), config.Service::__setattr__(), config.CFG::__str__(), counter.Counter::__str__(), average.Average::__str__(), BeautifulSoup.Tag::__str__(), BeautifulSoup.SoupStrainer::__str__(), FWLite.WorkingPoints::_reformat_cut_definitions(), core.autovars.NTupleObjectType::addSubObjects(), core.autovars.NTupleObjectType::addVariables(), core.autovars.NTupleObjectType::allVars(), dataset.CMSDataset::buildListOfFiles(), dataset.LocalDataset::buildListOfFiles(), dataset.CMSDataset::buildListOfFilesDBS(), dirstructure.Directory::calcStats(), validation.Sample::digest(), python.rootplot.utilities.Hist::divide(), python.rootplot.utilities.Hist::divide_wilson(), DisplayManager.DisplayManager::Draw(), TreeCrawler.Package::dump(), core.autovars.NTupleVariable::fillBranch(), core.autovars.NTupleObject::fillBranches(), core.autovars.NTupleCollection::fillBranchesScalar(), core.autovars.NTupleCollection::fillBranchesVector(), core.autovars.NTupleCollection::get_cpp_declaration(), core.autovars.NTupleCollection::get_cpp_wrapper_class(), core.autovars.NTupleCollection::get_py_wrapper_class(), utils.StatisticalTest::get_status(), production_tasks.Task::getname(), dataset.CMSDataset::getPrimaryDatasetEntries(), dataset.PrivateDataset::getPrimaryDatasetEntries(), VIDSelectorBase.VIDSelectorBase::initialize(), personalPlayback.Applet::log(), core.autovars.NTupleVariable::makeBranch(), core.autovars.NTupleObject::makeBranches(), core.autovars.NTupleCollection::makeBranchesScalar(), core.autovars.NTupleCollection::makeBranchesVector(), dirstructure.Directory::print_report(), dataset.BaseDataset::printInfo(), dataset.Dataset::printInfo(), production_tasks.MonitorJobs::run(), BeautifulSoup.SoupStrainer::searchTag(), python.rootplot.utilities.Hist::TGraph(), python.rootplot.utilities.Hist::TH1F(), counter.Counter::write(), and average.Average::write().

◆ numpars

DDVectorsMap cms::DDSpecPar::numpars

Definition at line 25 of file DDSpecParRegistry.h.

◆ paths

DDPaths cms::DDSpecPar::paths

◆ spars

DDPartSelectionMap cms::DDSpecPar::spars

Definition at line 24 of file DDSpecParRegistry.h.

spr::find
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
end
#define end
Definition: vmac.h:39
B2GTnPMonitor_cfi.item
item
Definition: B2GTnPMonitor_cfi.py:147
cms::DDSpecPar::spars
DDPartSelectionMap spars
Definition: DDSpecParRegistry.h:24
cms::DDSpecPar::paths
DDPaths paths
Definition: DDSpecParRegistry.h:23
cms::DDSpecPar::numpars
DDVectorsMap numpars
Definition: DDSpecParRegistry.h:25
mps_fire.result
result
Definition: mps_fire.py:303
castor_dqm_sourceclient_file_cfg.path
path
Definition: castor_dqm_sourceclient_file_cfg.py:37
crabWrapper.key
key
Definition: crabWrapper.py:19
begin
#define begin
Definition: vmac.h:32