CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Attributes
GBRForest2D Class Reference

#include <GBRForest2D.h>

Public Member Functions

 GBRForest2D ()
 
void GetResponse (const float *vector, double &x, double &y) const
 
void SetInitialResponse (double x, double y)
 
std::vector< GBRTree2D > & Trees ()
 
const std::vector< GBRTree2D > & Trees () const
 
 ~GBRForest2D ()
 

Protected Attributes

double fInitialResponseX
 
double fInitialResponseY
 
std::vector< GBRTree2DfTrees
 

Detailed Description

Definition at line 23 of file GBRForest2D.h.

Constructor & Destructor Documentation

GBRForest2D::GBRForest2D ( )
GBRForest2D::~GBRForest2D ( )
inline

Definition at line 28 of file GBRForest2D.h.

28 {}

Member Function Documentation

void GBRForest2D::GetResponse ( const float *  vector,
double &  x,
double &  y 
) const
inline

Definition at line 45 of file GBRForest2D.h.

References fInitialResponseX, fInitialResponseY, and fTrees.

45  {
48  double tx, ty;
49  for (std::vector<GBRTree2D>::const_iterator it=fTrees.begin(); it!=fTrees.end(); ++it) {
50  it->GetResponse(vector,tx,ty);
51  x += tx;
52  y += ty;
53  }
54  return;
55 }
double fInitialResponseX
Definition: GBRForest2D.h:38
double fInitialResponseY
Definition: GBRForest2D.h:39
std::vector< GBRTree2D > fTrees
Definition: GBRForest2D.h:40
Definition: DDAxes.h:10
void GBRForest2D::SetInitialResponse ( double  x,
double  y 
)
inline

Definition at line 32 of file GBRForest2D.h.

References fInitialResponseX, fInitialResponseY, x, and detailsBasic3DVector::y.

double fInitialResponseX
Definition: GBRForest2D.h:38
double fInitialResponseY
Definition: GBRForest2D.h:39
Definition: DDAxes.h:10
std::vector<GBRTree2D>& GBRForest2D::Trees ( )
inline

Definition at line 34 of file GBRForest2D.h.

References fTrees.

34 { return fTrees; }
std::vector< GBRTree2D > fTrees
Definition: GBRForest2D.h:40
const std::vector<GBRTree2D>& GBRForest2D::Trees ( ) const
inline

Definition at line 35 of file GBRForest2D.h.

References fTrees.

35 { return fTrees; }
std::vector< GBRTree2D > fTrees
Definition: GBRForest2D.h:40

Member Data Documentation

double GBRForest2D::fInitialResponseX
protected

Definition at line 38 of file GBRForest2D.h.

Referenced by GetResponse(), and SetInitialResponse().

double GBRForest2D::fInitialResponseY
protected

Definition at line 39 of file GBRForest2D.h.

Referenced by GetResponse(), and SetInitialResponse().

std::vector<GBRTree2D> GBRForest2D::fTrees
protected

Definition at line 40 of file GBRForest2D.h.

Referenced by GetResponse(), and Trees().