2 #include "TMVA/Reader.h"
3 #include "TMVA/MethodBDT.h"
6 namespace convbremhelpers {
11 const bool useConvBremFinder_ = conf.
getParameter<
bool>(
"useConvBremFinder");
13 if(useConvBremFinder_) {
14 const std::string& mvaWeightFileConvBremBarrelLowPt =
16 const std::string mvaWeightFileConvBremBarrelHighPt =
18 const std::string mvaWeightFileConvBremEndcapsLowPt =
20 const std::string mvaWeightFileConvBremEndcapsHighPt =
23 const std::string path_mvaWeightFileConvBremBarrelLowPt =
25 const std::string path_mvaWeightFileConvBremBarrelHighPt =
27 const std::string path_mvaWeightFileConvBremEndcapsLowPt =
29 const std::string path_mvaWeightFileConvBremEndcapsHighPt =
41 TMVA::Reader
reader(
"!Color:Silent");
42 reader.AddVariable(
"kftrack_secR",&
secR);
43 reader.AddVariable(
"kftrack_sTIP",&
sTIP);
44 reader.AddVariable(
"kftrack_nHITS1",&
nHITS1);
45 reader.AddVariable(
"kftrack_Epout",&
Epout);
46 reader.AddVariable(
"kftrack_detaBremKF",&
detaBremKF);
47 reader.AddVariable(
"kftrack_ptRatioGsfKF",&
ptRatioGsfKF);
48 std::unique_ptr<TMVA::IMethod>
temp( reader.BookMVA(
"BDT", weights.c_str()) );
49 return std::unique_ptr<const GBRForest>(
new GBRForest( dynamic_cast<TMVA::MethodBDT*>( reader.FindMVA(
"BDT") ) ) );
T getParameter(std::string const &) const
std::unique_ptr< const GBRForest > setupMVA(const std::string &)
std::unique_ptr< const GBRForest > gbrEndcapsHighPt_
std::unique_ptr< const GBRForest > gbrEndcapsLowPt_
std::unique_ptr< const GBRForest > gbrBarrelLowPt_
HeavyObjectCache(const edm::ParameterSet &)
std::unique_ptr< const PFEnergyCalibration > pfcalib_
std::unique_ptr< const GBRForest > gbrBarrelHighPt_