CMS 3D CMS Logo

Public Member Functions | Protected Attributes

GBRForest Class Reference

#include <GBRForest.h>

List of all members.

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< GBRTreefTrees

Detailed Description

Definition at line 27 of file GBRForest.h.


Constructor & Destructor Documentation

GBRForest::GBRForest ( )
GBRForest::GBRForest ( const TMVA::MethodBDT *  bdt) [explicit]
virtual GBRForest::~GBRForest ( ) [virtual]

Member Function Documentation

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]

Definition at line 37 of file GBRForest.h.

References fTrees.

{ return fTrees; }

Member Data Documentation

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().