CMS 3D CMS Logo

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

#include <GoodSeedProducer.h>

Public Member Functions

 HeavyObjectCache (const edm::ParameterSet &conf)
 

Public Attributes

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

Private Attributes

float chikfred
 
float chiRatio
 
float chired
 
float dpt
 
float eP
 
float eta
 
float nhit
 
float pt
 
float trk_ecalDeta
 
float trk_ecalDphi
 

Static Private Attributes

static unsigned int kMaxWeights = 9
 

Detailed Description

Definition at line 56 of file GoodSeedProducer.h.

Constructor & Destructor Documentation

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

Definition at line 484 of file GoodSeedProducer.cc.

References createGBRForest(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), and HGCalRecHit_cfi::weights.

484  {
485  // mvas
486  const bool useTmva = conf.getUntrackedParameter<bool>("UseTMVA",false);
487 
488  if( useTmva ) {
489  std::array<edm::FileInPath,kMaxWeights> weights = {{ edm::FileInPath(conf.getParameter<string>("Weights1")),
490  edm::FileInPath(conf.getParameter<string>("Weights2")),
491  edm::FileInPath(conf.getParameter<string>("Weights3")),
492  edm::FileInPath(conf.getParameter<string>("Weights4")),
493  edm::FileInPath(conf.getParameter<string>("Weights5")),
494  edm::FileInPath(conf.getParameter<string>("Weights6")),
495  edm::FileInPath(conf.getParameter<string>("Weights7")),
496  edm::FileInPath(conf.getParameter<string>("Weights8")),
497  edm::FileInPath(conf.getParameter<string>("Weights9")) }};
498 
499  for(UInt_t j = 0; j < gbr.size(); ++j){
500  gbr[j] = createGBRForest( weights[j] );
501  }
502  }
503  }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
std::array< std::unique_ptr< const GBRForest >, kMaxWeights > gbr
std::unique_ptr< const GBRForest > createGBRForest(const std::string &weightsFile)

Member Data Documentation

float goodseedhelpers::HeavyObjectCache::chikfred
private

Definition at line 64 of file GoodSeedProducer.h.

float goodseedhelpers::HeavyObjectCache::chiRatio
private

Definition at line 63 of file GoodSeedProducer.h.

float goodseedhelpers::HeavyObjectCache::chired
private

Definition at line 63 of file GoodSeedProducer.h.

float goodseedhelpers::HeavyObjectCache::dpt
private

Definition at line 63 of file GoodSeedProducer.h.

float goodseedhelpers::HeavyObjectCache::eP
private

Definition at line 63 of file GoodSeedProducer.h.

float goodseedhelpers::HeavyObjectCache::eta
private

Definition at line 63 of file GoodSeedProducer.h.

Referenced by Particle.Particle::__str__(), Jet.Jet::jetID(), and Jet.Jet::puJetId().

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

Definition at line 60 of file GoodSeedProducer.h.

unsigned int goodseedhelpers::HeavyObjectCache::kMaxWeights = 9
staticprivate

Definition at line 57 of file GoodSeedProducer.h.

float goodseedhelpers::HeavyObjectCache::nhit
private

Definition at line 63 of file GoodSeedProducer.h.

float goodseedhelpers::HeavyObjectCache::pt
private
float goodseedhelpers::HeavyObjectCache::trk_ecalDeta
private

Definition at line 64 of file GoodSeedProducer.h.

float goodseedhelpers::HeavyObjectCache::trk_ecalDphi
private

Definition at line 64 of file GoodSeedProducer.h.