CMS 3D CMS Logo

Functions
GBRForestTools.h File Reference
#include "CondFormats/EgammaObjects/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 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 249 of file GBRForestTools.cc.

249  {
250  std::vector<std::string> varNames;
251  return createGBRForest(weightsFile.fullPath(), varNames);
252 }

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

268  {
269  return createGBRForest(weightsFile.fullPath(), varNames);
270 }

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

255  {
256  std::unique_ptr<GBRForest> gbrForest;
257 
258  if (weightsFile[0] == '/') {
259  gbrForest = init(weightsFile, varNames);
260  } else {
261  edm::FileInPath weightsFileEdm(weightsFile);
262  gbrForest = init(weightsFileEdm.fullPath(), varNames);
263  }
264  return gbrForest;
265 }

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:64
varNames
constexpr const char * varNames[]
Definition: PulseShapeFitOOTPileupCorrection.cc:108
createGBRForest
std::unique_ptr< const GBRForest > createGBRForest(const std::string &weightsFile)
Definition: GBRForestTools.cc:244