CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Static Public Attributes
goodseedhelpers::HeavyObjectCache Struct Reference

Public Member Functions

 HeavyObjectCache (const edm::ParameterSet &conf)
 

Public Attributes

std::array< std::unique_ptr< const GBRForest >, kMaxWeightsgbr
 

Static Public Attributes

constexpr static unsigned int kMaxWeights = 9
 

Detailed Description

Definition at line 61 of file GoodSeedProducer.cc.

Constructor & Destructor Documentation

◆ HeavyObjectCache()

goodseedhelpers::HeavyObjectCache::HeavyObjectCache ( const edm::ParameterSet conf)

Definition at line 596 of file GoodSeedProducer.cc.

596  {
597  // mvas
598  const bool useTmva = conf.getUntrackedParameter<bool>("UseTMVA", false);
599 
600  if (useTmva) {
601  std::array<edm::FileInPath, kMaxWeights> weights = {{edm::FileInPath(conf.getParameter<string>("Weights1")),
602  edm::FileInPath(conf.getParameter<string>("Weights2")),
603  edm::FileInPath(conf.getParameter<string>("Weights3")),
604  edm::FileInPath(conf.getParameter<string>("Weights4")),
605  edm::FileInPath(conf.getParameter<string>("Weights5")),
606  edm::FileInPath(conf.getParameter<string>("Weights6")),
607  edm::FileInPath(conf.getParameter<string>("Weights7")),
608  edm::FileInPath(conf.getParameter<string>("Weights8")),
609  edm::FileInPath(conf.getParameter<string>("Weights9"))}};
610 
611  for (UInt_t j = 0; j < gbr.size(); ++j) {
613  }
614  }
615  }

References createGBRForest(), gbr, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), dqmiolumiharvest::j, and HLT_FULL_cff::weights.

Member Data Documentation

◆ gbr

std::array<std::unique_ptr<const GBRForest>, kMaxWeights> goodseedhelpers::HeavyObjectCache::gbr

Definition at line 64 of file GoodSeedProducer.cc.

Referenced by HeavyObjectCache().

◆ kMaxWeights

constexpr static unsigned int goodseedhelpers::HeavyObjectCache::kMaxWeights = 9
staticconstexpr

Definition at line 62 of file GoodSeedProducer.cc.

createGBRForest
std::unique_ptr< const GBRForest > createGBRForest(const std::string &weightsFile)
Definition: GBRForestTools.cc:257
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
edm::FileInPath
Definition: FileInPath.h:64
HLT_FULL_cff.weights
weights
Definition: HLT_FULL_cff.py:99166
goodseedhelpers::HeavyObjectCache::gbr
std::array< std::unique_ptr< const GBRForest >, kMaxWeights > gbr
Definition: GoodSeedProducer.cc:64
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66