CMS 3D CMS Logo

Functions
GBRForestTools.h File Reference
#include "CondFormats/GBRForest/interface/GBRForest.h"
#include "FWCore/ParameterSet/interface/FileInPath.h"
#include <memory>

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 275 of file GBRForestTools.cc.

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

275  {
276  std::vector<std::string> varNames;
277  return createGBRForest(weightsFile.fullPath(), varNames);
278 }
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 281 of file GBRForestTools.cc.

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

281  {
282  std::unique_ptr<GBRForest> gbrForest;
283 
284  if (weightsFile[0] == '/') {
285  gbrForest = init(weightsFile, varNames);
286  } else {
287  edm::FileInPath weightsFileEdm(weightsFile);
288  gbrForest = init(weightsFileEdm.fullPath(), varNames);
289  }
290  return gbrForest;
291 }
int init
Definition: HydjetWrapper.h:66
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 293 of file GBRForestTools.cc.

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

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