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 edm::FileInPath &weightsFile)
 
std::unique_ptr< const GBRForestcreateGBRForest (const edm::FileInPath &weightsFile, std::vector< std::string > &varNames)
 
std::unique_ptr< const GBRForestcreateGBRForest (const std::string &weightsFile)
 
std::unique_ptr< const GBRForestcreateGBRForest (const std::string &weightsFile, std::vector< std::string > &varNames)
 

Function Documentation

◆ createGBRForest() [1/4]

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

Definition at line 262 of file GBRForestTools.cc.

262  {
263  std::vector<std::string> varNames;
264  return createGBRForest(weightsFile.fullPath(), varNames);
265 }

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

◆ createGBRForest() [2/4]

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

Definition at line 280 of file GBRForestTools.cc.

281  {
282  return createGBRForest(weightsFile.fullPath(), varNames);
283 }

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

◆ createGBRForest() [3/4]

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

◆ createGBRForest() [4/4]

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

Definition at line 268 of file GBRForestTools.cc.

268  {
269  std::unique_ptr<GBRForest> gbrForest;
270 
271  if (weightsFile[0] == '/') {
272  gbrForest = init(weightsFile, varNames);
273  } else {
274  edm::FileInPath weightsFileEdm(weightsFile);
275  gbrForest = init(weightsFileEdm.fullPath(), varNames);
276  }
277  return gbrForest;
278 }

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

init
int init
Definition: HydjetWrapper.h:64
pfClustersFromHGC3DClusters_cfi.weightsFile
weightsFile
Definition: pfClustersFromHGC3DClusters_cfi.py:19
edm::FileInPath
Definition: FileInPath.h:61
varNames
constexpr const char * varNames[]
Definition: PulseShapeFitOOTPileupCorrection.cc:110
createGBRForest
std::unique_ptr< const GBRForest > createGBRForest(const std::string &weightsFile)
Definition: GBRForestTools.cc:257