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 581 of file GoodSeedProducer.cc.

581  {
582  // mvas
583  const bool useTmva = conf.getUntrackedParameter<bool>("UseTMVA", false);
584 
585  if (useTmva) {
586  std::array<edm::FileInPath, kMaxWeights> weights = {{edm::FileInPath(conf.getParameter<string>("Weights1")),
587  edm::FileInPath(conf.getParameter<string>("Weights2")),
588  edm::FileInPath(conf.getParameter<string>("Weights3")),
589  edm::FileInPath(conf.getParameter<string>("Weights4")),
590  edm::FileInPath(conf.getParameter<string>("Weights5")),
591  edm::FileInPath(conf.getParameter<string>("Weights6")),
592  edm::FileInPath(conf.getParameter<string>("Weights7")),
593  edm::FileInPath(conf.getParameter<string>("Weights8")),
594  edm::FileInPath(conf.getParameter<string>("Weights9"))}};
595 
596  for (UInt_t j = 0; j < gbr.size(); ++j) {
598  }
599  }
600  }

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:244
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:95855
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