CMS 3D CMS Logo

PhotonXGBoostEstimator.h
Go to the documentation of this file.
1 #ifndef ReciEgamma_PhotonIdentification_PhotonXGBoostEstimator_h
2 #define ReciEgamma_PhotonIdentification_PhotonXGBoostEstimator_h
3 
5 #include "xgboost/c_api.h"
6 
8 public:
9  PhotonXGBoostEstimator(const edm::FileInPath& weightsFile, int best_ntree_limit);
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_;
26 };
27 
28 #endif
float computeMva(float rawEnergyIn, float r9In, float sigmaIEtaIEtaIn, float etaWidthIn, float phiWidthIn, float s4In, float etaIn, float hOvrEIn, float ecalPFIsoIn) const
PhotonXGBoostEstimator(const edm::FileInPath &weightsFile, int best_ntree_limit)