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

static constexpr 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 645 of file GoodSeedProducer.cc.

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

645  {
646  // mvas
647  const bool useTmva = conf.getUntrackedParameter<bool>("UseTMVA", false);
648 
649  if (useTmva) {
650  std::array<edm::FileInPath, kMaxWeights> weights = {{edm::FileInPath(conf.getParameter<string>("Weights1")),
651  edm::FileInPath(conf.getParameter<string>("Weights2")),
652  edm::FileInPath(conf.getParameter<string>("Weights3")),
653  edm::FileInPath(conf.getParameter<string>("Weights4")),
654  edm::FileInPath(conf.getParameter<string>("Weights5")),
655  edm::FileInPath(conf.getParameter<string>("Weights6")),
656  edm::FileInPath(conf.getParameter<string>("Weights7")),
657  edm::FileInPath(conf.getParameter<string>("Weights8")),
658  edm::FileInPath(conf.getParameter<string>("Weights9"))}};
659 
660  for (UInt_t j = 0; j < gbr.size(); ++j) {
662  }
663  }
664  }
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
std::array< std::unique_ptr< const GBRForest >, kMaxWeights > gbr
T getUntrackedParameter(std::string const &, T const &) const
std::unique_ptr< const GBRForest > createGBRForest(const std::string &weightsFile)

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 unsigned int goodseedhelpers::HeavyObjectCache::kMaxWeights = 9
static

Definition at line 62 of file GoodSeedProducer.cc.