Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:26:41

0001 #include "CommonTools/MVAUtils/interface/GBRForestTools.h"
0002 #include "FWCore/ParameterSet/interface/FileInPath.h"
0003 #include "RecoParticleFlow/PFTracking/interface/ConvBremHeavyObjectCache.h"
0004 
0005 namespace convbremhelpers {
0006   HeavyObjectCache::HeavyObjectCache(const edm::ParameterSet& conf) {
0007     pfcalib_ = std::make_unique<PFEnergyCalibration>();
0008 
0009     const bool useConvBremFinder_ = conf.getParameter<bool>("useConvBremFinder");
0010 
0011     if (useConvBremFinder_) {
0012       gbrBarrelLowPt_ =
0013           createGBRForest(conf.getParameter<edm::FileInPath>("pf_convBremFinderID_mvaWeightFileBarrelLowPt"));
0014       gbrBarrelHighPt_ =
0015           createGBRForest(conf.getParameter<edm::FileInPath>("pf_convBremFinderID_mvaWeightFileBarrelHighPt"));
0016       gbrEndcapsLowPt_ =
0017           createGBRForest(conf.getParameter<edm::FileInPath>("pf_convBremFinderID_mvaWeightFileEndcapsLowPt"));
0018       gbrEndcapsHighPt_ =
0019           createGBRForest(conf.getParameter<edm::FileInPath>("pf_convBremFinderID_mvaWeightFileEndcapsHighPt"));
0020     }
0021   }
0022 }  // namespace convbremhelpers