RecoParticleFlow
PFTracking
src
ConvBremHeavyObjectCache.cc
Go to the documentation of this file.
1
#include "
CommonTools/MVAUtils/interface/GBRForestTools.h
"
2
#include "
FWCore/ParameterSet/interface/FileInPath.h
"
3
#include "
RecoParticleFlow/PFTracking/interface/ConvBremHeavyObjectCache.h
"
4
5
namespace
convbremhelpers
{
6
HeavyObjectCache::HeavyObjectCache
(
const
edm::ParameterSet
& conf) {
7
pfcalib_
= std::make_unique<PFEnergyCalibration>();
8
9
const
bool
useConvBremFinder_ = conf.
getParameter
<
bool
>(
"useConvBremFinder"
);
10
11
if
(useConvBremFinder_) {
12
gbrBarrelLowPt_
=
13
createGBRForest
(conf.
getParameter
<
edm::FileInPath
>(
"pf_convBremFinderID_mvaWeightFileBarrelLowPt"
));
14
gbrBarrelHighPt_
=
15
createGBRForest
(conf.
getParameter
<
edm::FileInPath
>(
"pf_convBremFinderID_mvaWeightFileBarrelHighPt"
));
16
gbrEndcapsLowPt_
=
17
createGBRForest
(conf.
getParameter
<
edm::FileInPath
>(
"pf_convBremFinderID_mvaWeightFileEndcapsLowPt"
));
18
gbrEndcapsHighPt_
=
19
createGBRForest
(conf.
getParameter
<
edm::FileInPath
>(
"pf_convBremFinderID_mvaWeightFileEndcapsHighPt"
));
20
}
21
}
22
}
// namespace convbremhelpers
convbremhelpers::HeavyObjectCache::pfcalib_
std::unique_ptr< const PFEnergyCalibration > pfcalib_
Definition:
ConvBremHeavyObjectCache.h:17
convbremhelpers::HeavyObjectCache::gbrEndcapsLowPt_
std::unique_ptr< const GBRForest > gbrEndcapsLowPt_
Definition:
ConvBremHeavyObjectCache.h:15
GBRForestTools.h
ConvBremHeavyObjectCache.h
createGBRForest
std::unique_ptr< const GBRForest > createGBRForest(const std::string &weightsFile)
Definition:
GBRForestTools.cc:257
FileInPath.h
edm::FileInPath
Definition:
FileInPath.h:64
convbremhelpers::HeavyObjectCache::HeavyObjectCache
HeavyObjectCache(const edm::ParameterSet &)
Definition:
ConvBremHeavyObjectCache.cc:6
edm::ParameterSet
Definition:
ParameterSet.h:47
convbremhelpers::HeavyObjectCache::gbrBarrelLowPt_
std::unique_ptr< const GBRForest > gbrBarrelLowPt_
Definition:
ConvBremHeavyObjectCache.h:13
convbremhelpers::HeavyObjectCache::gbrEndcapsHighPt_
std::unique_ptr< const GBRForest > gbrEndcapsHighPt_
Definition:
ConvBremHeavyObjectCache.h:16
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition:
ParameterSet.h:303
convbremhelpers::HeavyObjectCache::gbrBarrelHighPt_
std::unique_ptr< const GBRForest > gbrBarrelHighPt_
Definition:
ConvBremHeavyObjectCache.h:14
convbremhelpers
Definition:
ConvBremHeavyObjectCache.h:9
Generated for CMSSW Reference Manual by
1.8.16