CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
GBRForestTools.cc File Reference
#include "CommonTools/MVAUtils/interface/GBRForestTools.h"
#include "CommonTools/MVAUtils/interface/TMVAZipReader.h"
#include "FWCore/ParameterSet/interface/FileInPath.h"
#include "FWCore/Utilities/interface/Exception.h"
#include "TFile.h"
#include <cstdio>
#include <cstdlib>
#include <RVersion.h>
#include <cmath>
#include <tinyxml2.h>
#include <filesystem>

Go to the source code of this file.

Functions

std::unique_ptr< const GBRForestcreateGBRForest (const std::string &weightsFile)
 
std::unique_ptr< const GBRForestcreateGBRForest (const edm::FileInPath &weightsFile)
 
std::unique_ptr< const GBRForestcreateGBRForest (const std::string &weightsFile, std::vector< std::string > &varNames)
 
std::unique_ptr< const GBRForestcreateGBRForest (const edm::FileInPath &weightsFile, std::vector< std::string > &varNames)
 

Function Documentation

std::unique_ptr<const GBRForest> createGBRForest ( const std::string &  weightsFile)
std::unique_ptr<const GBRForest> createGBRForest ( const edm::FileInPath weightsFile)

Definition at line 271 of file GBRForestTools.cc.

References createGBRForest(), edm::FileInPath::fullPath(), and varNames.

271  {
272  std::vector<std::string> varNames;
273  return createGBRForest(weightsFile.fullPath(), varNames);
274 }
constexpr char const * varNames[]
std::string fullPath() const
Definition: FileInPath.cc:161
std::unique_ptr< const GBRForest > createGBRForest(const std::string &weightsFile)
std::unique_ptr<const GBRForest> createGBRForest ( const std::string &  weightsFile,
std::vector< std::string > &  varNames 
)

Definition at line 277 of file GBRForestTools.cc.

References edm::FileInPath::fullPath(), init, and varNames.

277  {
278  std::unique_ptr<GBRForest> gbrForest;
279 
280  if (weightsFile[0] == '/') {
281  gbrForest = init(weightsFile, varNames);
282  } else {
283  edm::FileInPath weightsFileEdm(weightsFile);
284  gbrForest = init(weightsFileEdm.fullPath(), varNames);
285  }
286  return gbrForest;
287 }
int init
Definition: HydjetWrapper.h:64
constexpr char const * varNames[]
std::unique_ptr<const GBRForest> createGBRForest ( const edm::FileInPath weightsFile,
std::vector< std::string > &  varNames 
)

Definition at line 289 of file GBRForestTools.cc.

References createGBRForest(), edm::FileInPath::fullPath(), and varNames.

290  {
291  return createGBRForest(weightsFile.fullPath(), varNames);
292 }
constexpr char const * varNames[]
std::string fullPath() const
Definition: FileInPath.cc:161
std::unique_ptr< const GBRForest > createGBRForest(const std::string &weightsFile)