CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes | Private Member Functions | Friends
GBRForest Class Reference

#include <GBRForest.h>

Public Member Functions

 GBRForest ()
 
double GetAdaBoostClassifier (const float *vector) const
 
double GetClassifier (const float *vector) const
 
double GetGradBoostClassifier (const float *vector) const
 
double GetResponse (const float *vector) const
 
void SetInitialResponse (double response)
 
std::vector< GBRTree > & Trees ()
 
const std::vector< GBRTree > & Trees () const
 

Protected Attributes

double fInitialResponse
 
std::vector< GBRTreefTrees
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

Detailed Description

Definition at line 25 of file GBRForest.h.

Constructor & Destructor Documentation

◆ GBRForest()

GBRForest::GBRForest ( )

Member Function Documentation

◆ GetAdaBoostClassifier()

double GBRForest::GetAdaBoostClassifier ( const float *  vector) const
inline

Definition at line 31 of file GBRForest.h.

31 { return GetResponse(vector); }

References GetResponse(), and trackerHitRTTI::vector.

◆ GetClassifier()

double GBRForest::GetClassifier ( const float *  vector) const
inline

◆ GetGradBoostClassifier()

double GBRForest::GetGradBoostClassifier ( const float *  vector) const
inline

Definition at line 58 of file GBRForest.h.

58  {
59  double response = GetResponse(vector);
60  return 2.0 / (1.0 + exp(-2.0 * response)) - 1; //MVA output between -1 and 1
61 }

References JetChargeProducer_cfi::exp, GetResponse(), and trackerHitRTTI::vector.

Referenced by GetClassifier().

◆ GetResponse()

double GBRForest::GetResponse ( const float *  vector) const
inline

◆ serialize()

template<class Archive >
void GBRForest::serialize ( Archive &  ar,
const unsigned int  version 
)
private

◆ SetInitialResponse()

void GBRForest::SetInitialResponse ( double  response)
inline

Definition at line 36 of file GBRForest.h.

36 { fInitialResponse = response; }

References fInitialResponse.

◆ Trees() [1/2]

std::vector<GBRTree>& GBRForest::Trees ( )
inline

Definition at line 38 of file GBRForest.h.

38 { return fTrees; }

References fTrees.

◆ Trees() [2/2]

const std::vector<GBRTree>& GBRForest::Trees ( ) const
inline

Definition at line 39 of file GBRForest.h.

39 { return fTrees; }

References fTrees.

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 45 of file GBRForest.h.

◆ cond::serialization::access

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 45 of file GBRForest.h.

Member Data Documentation

◆ fInitialResponse

double GBRForest::fInitialResponse
protected

Definition at line 42 of file GBRForest.h.

Referenced by GetResponse(), and SetInitialResponse().

◆ fTrees

std::vector<GBRTree> GBRForest::fTrees
protected

Definition at line 43 of file GBRForest.h.

Referenced by GetResponse(), and Trees().

GBRForest::GetGradBoostClassifier
double GetGradBoostClassifier(const float *vector) const
Definition: GBRForest.h:58
GBRForest::GetResponse
double GetResponse(const float *vector) const
Definition: GBRForest.h:49
GBRForest::fTrees
std::vector< GBRTree > fTrees
Definition: GBRForest.h:43
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
JetChargeProducer_cfi.exp
exp
Definition: JetChargeProducer_cfi.py:6
GBRForest::fInitialResponse
double fInitialResponse
Definition: GBRForest.h:42