src
RecoEgamma
PhotonIdentification
interface
PhotonXGBoostEstimator.h
Go to the documentation of this file.
1
#ifndef ReciEgamma_PhotonIdentification_PhotonXGBoostEstimator_h
2
#define ReciEgamma_PhotonIdentification_PhotonXGBoostEstimator_h
3
4
#include "
FWCore/ParameterSet/interface/FileInPath.h
"
5
#include "xgboost/c_api.h"
6
7
class
PhotonXGBoostEstimator
{
8
public
:
9
PhotonXGBoostEstimator
(
const
edm::FileInPath
&
weightsFile
,
int
best_ntree_limit);
10
~PhotonXGBoostEstimator
();
11
12
float
computeMva
(
float
rawEnergyIn,
13
float
r9In,
14
float
sigmaIEtaIEtaIn,
15
float
etaWidthIn,
16
float
phiWidthIn,
17
float
s4In,
18
float
etaIn,
19
float
hOvrEIn,
20
float
ecalPFIsoIn)
const
;
21
22
private
:
23
BoosterHandle
booster_
;
24
int
best_ntree_limit_
= -1;
25
std::string
config_
;
26
};
27
28
#endif
PhotonXGBoostEstimator::~PhotonXGBoostEstimator
~PhotonXGBoostEstimator()
Definition:
PhotonXGBoostEstimator.cc:18
PhotonXGBoostEstimator::config_
std::string config_
Definition:
PhotonXGBoostEstimator.h:25
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
FileInPath.h
PhotonXGBoostEstimator::best_ntree_limit_
int best_ntree_limit_
Definition:
PhotonXGBoostEstimator.h:24
PhotonXGBoostEstimator::computeMva
float computeMva(float rawEnergyIn, float r9In, float sigmaIEtaIEtaIn, float etaWidthIn, float phiWidthIn, float s4In, float etaIn, float hOvrEIn, float ecalPFIsoIn) const
Definition:
PhotonXGBoostEstimator.cc:34
edm::FileInPath
Definition:
FileInPath.h:61
pfClustersFromHGC3DClusters_cfi.weightsFile
weightsFile
Definition:
pfClustersFromHGC3DClusters_cfi.py:29
PhotonXGBoostEstimator::booster_
BoosterHandle booster_
Definition:
PhotonXGBoostEstimator.h:23
PhotonXGBoostEstimator
Definition:
PhotonXGBoostEstimator.h:7
PhotonXGBoostEstimator::PhotonXGBoostEstimator
PhotonXGBoostEstimator(const edm::FileInPath &weightsFile, int best_ntree_limit)
Definition:
PhotonXGBoostEstimator.cc:4
Generated for CMSSW Reference Manual by
1.8.14