#include <GBRForest.h>
Public Member Functions | |
GBRForest () | |
GBRForest (const TMVA::MethodBDT *bdt) | |
double | GetClassifier (const float *vector) const |
double | GetResponse (const float *vector) const |
void | SetInitialResponse (double response) |
std::vector< GBRTree > & | Trees () |
const std::vector< GBRTree > & | Trees () const |
virtual | ~GBRForest () |
Protected Attributes | |
double | fInitialResponse |
std::vector< GBRTree > | fTrees |
Definition at line 28 of file GBRForest.h.
GBRForest::GBRForest | ( | ) |
GBRForest::GBRForest | ( | const TMVA::MethodBDT * | bdt | ) | [explicit] |
virtual GBRForest::~GBRForest | ( | ) | [virtual] |
double GBRForest::GetClassifier | ( | const float * | vector | ) | const [inline] |
Definition at line 60 of file GBRForest.h.
References create_public_lumi_plots::exp, and GetResponse().
{ double response = GetResponse(vector); return 2.0/(1.0+exp(-2.0*response))-1; //MVA output between -1 and 1 }
double GBRForest::GetResponse | ( | const float * | vector | ) | const [inline] |
Definition at line 51 of file GBRForest.h.
References fInitialResponse, and fTrees.
Referenced by EpCombinationTool::combine(), EGEnergyCorrector::CorrectedEnergyWithError(), EGEnergyCorrector::CorrectedEnergyWithErrorV3(), PFPhotonAlgo::EvaluateGCorrMVA(), PFPhotonAlgo::EvaluateLCorrMVA(), PFPhotonAlgo::EvaluateResMVA(), GetClassifier(), ggPFClusters::LocalEnergyCorrection(), ElectronEnergyRegressionEvaluate::regressionUncertaintyNoTrkVar(), ElectronEnergyRegressionEvaluate::regressionUncertaintyNoTrkVarV1(), ElectronEnergyRegressionEvaluate::regressionUncertaintyWithSubClusters(), ElectronEnergyRegressionEvaluate::regressionUncertaintyWithTrkVar(), ElectronEnergyRegressionEvaluate::regressionUncertaintyWithTrkVarV1(), ElectronEnergyRegressionEvaluate::regressionUncertaintyWithTrkVarV2(), ElectronEnergyRegressionEvaluate::regressionValueNoTrkVar(), ElectronEnergyRegressionEvaluate::regressionValueNoTrkVarV1(), ElectronEnergyRegressionEvaluate::regressionValueWithSubClusters(), ElectronEnergyRegressionEvaluate::regressionValueWithTrkVar(), ElectronEnergyRegressionEvaluate::regressionValueWithTrkVarV1(), and ElectronEnergyRegressionEvaluate::regressionValueWithTrkVarV2().
{ double response = fInitialResponse; for (std::vector<GBRTree>::const_iterator it=fTrees.begin(); it!=fTrees.end(); ++it) { response += it->GetResponse(vector); } return response; }
void GBRForest::SetInitialResponse | ( | double | response | ) | [inline] |
Definition at line 39 of file GBRForest.h.
References fInitialResponse.
{ fInitialResponse = response; }
std::vector<GBRTree>& GBRForest::Trees | ( | ) | [inline] |
const std::vector<GBRTree>& GBRForest::Trees | ( | ) | const [inline] |
double GBRForest::fInitialResponse [protected] |
Definition at line 45 of file GBRForest.h.
Referenced by GetResponse(), and SetInitialResponse().
std::vector<GBRTree> GBRForest::fTrees [protected] |
Definition at line 46 of file GBRForest.h.
Referenced by GetResponse(), and Trees().