CMS 3D CMS Logo

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

◆ createGBRForest() [1/4]

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

◆ createGBRForest() [2/4]

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

Definition at line 271 of file GBRForestTools.cc.

References createGBRForest(), varNames, and pfClustersFromHGC3DClusters_cfi::weightsFile.

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

◆ createGBRForest() [3/4]

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, varNames, and pfClustersFromHGC3DClusters_cfi::weightsFile.

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[]

◆ createGBRForest() [4/4]

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(), varNames, and pfClustersFromHGC3DClusters_cfi::weightsFile.

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