CMS 3D CMS Logo

PFEGammaHeavyObjectCache.h
Go to the documentation of this file.
1 #ifndef __RecoParticleFlow_PFProducer_pfEGHelpersHeavyObjectCache_h__
2 #define __RecoParticleFlow_PFProducer_pfEGHelpersHeavyObjectCache_h__
3 
6 #include <memory>
7 
8 namespace pfEGHelpers {
10  public:
12  : gbrEle_ (createGBRForest(conf.getParameter<edm::FileInPath>("pf_electronID_mvaWeightFile")))
13  , gbrSingleLeg_ (createGBRForest(conf.getParameter<edm::FileInPath>("pf_convID_mvaWeightFile")))
14  {}
15 
16  const std::unique_ptr<const GBRForest> gbrEle_;
17  const std::unique_ptr<const GBRForest> gbrSingleLeg_;
18  };
19 }
20 
21 #endif // __RecoParticleFlow_PFProducer_pfEGHelpersHeavyObjectCache_h__
HeavyObjectCache(const edm::ParameterSet &conf)
HLT enums.
const std::unique_ptr< const GBRForest > gbrEle_
std::unique_ptr< const GBRForest > createGBRForest(const std::string &weightsFile)
const std::unique_ptr< const GBRForest > gbrSingleLeg_