#include <GBRForest.h>
Public Member Functions | |
GBRForest () | |
GBRForest (const TMVA::MethodBDT *bdt) | |
double | GetResponse (const float *vector) const |
std::vector< GBRTree > & | Trees () |
virtual | ~GBRForest () |
Protected Attributes | |
double | fInitialResponse |
std::vector< GBRTree > | fTrees |
Definition at line 27 of file GBRForest.h.
GBRForest::GBRForest | ( | ) |
GBRForest::GBRForest | ( | const TMVA::MethodBDT * | bdt | ) | [explicit] |
virtual GBRForest::~GBRForest | ( | ) | [virtual] |
double GBRForest::GetResponse | ( | const float * | vector | ) | const [inline] |
Definition at line 46 of file GBRForest.h.
References fInitialResponse, and fTrees.
Referenced by EGEnergyCorrector::CorrectedEnergyWithError(), PFPhotonAlgo::EvaluateGCorrMVA(), PFPhotonAlgo::EvaluateLCorrMVA(), and PFPhotonAlgo::EvaluateResMVA().
{ double response = fInitialResponse; for (std::vector<GBRTree>::const_iterator it=fTrees.begin(); it!=fTrees.end(); ++it) { response += it->GetResponse(vector); } return response; }
std::vector<GBRTree>& GBRForest::Trees | ( | ) | [inline] |
double GBRForest::fInitialResponse [protected] |
Definition at line 40 of file GBRForest.h.
Referenced by GetResponse().
std::vector<GBRTree> GBRForest::fTrees [protected] |
Definition at line 41 of file GBRForest.h.
Referenced by GetResponse(), and Trees().