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 "
PhysicsTools/XGBoost/interface/XGBooster.h
"
6
7
#include <memory>
8
9
class
PhotonXGBoostEstimator
{
10
public
:
11
PhotonXGBoostEstimator
(
const
edm::FileInPath
&
weightsFile
,
int
best_ntree_limit);
12
13
float
computeMva
(
float
rawEnergyIn,
14
float
r9In,
15
float
sigmaIEtaIEtaIn,
16
float
etaWidthIn,
17
float
phiWidthIn,
18
float
s4In,
19
float
etaIn,
20
float
hOvrEIn,
21
float
ecalPFIsoIn)
const
;
22
23
private
:
24
std::unique_ptr<pat::XGBooster>
booster_
;
25
int
best_ntree_limit_
= -1;
26
};
27
28
#endif
PhotonXGBoostEstimator::booster_
std::unique_ptr< pat::XGBooster > booster_
Definition:
PhotonXGBoostEstimator.h:24
FileInPath.h
PhotonXGBoostEstimator::best_ntree_limit_
int best_ntree_limit_
Definition:
PhotonXGBoostEstimator.h:25
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:18
edm::FileInPath
Definition:
FileInPath.h:61
l1tPFClustersFromHGC3DClusters_cfi.weightsFile
weightsFile
Definition:
l1tPFClustersFromHGC3DClusters_cfi.py:20
XGBooster.h
PhotonXGBoostEstimator
Definition:
PhotonXGBoostEstimator.h:9
PhotonXGBoostEstimator::PhotonXGBoostEstimator
PhotonXGBoostEstimator(const edm::FileInPath &weightsFile, int best_ntree_limit)
Definition:
PhotonXGBoostEstimator.cc:3
Generated for CMSSW Reference Manual by
1.8.14