CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes | Private Member Functions | Friends
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
 

Protected Attributes

double fInitialResponseX = 0.0
 
double fInitialResponseY = 0.0
 
std::vector< GBRTree2DfTrees
 

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 GBRForest2D.h.

Constructor & Destructor Documentation

◆ GBRForest2D()

GBRForest2D::GBRForest2D ( )
inline

Definition at line 27 of file GBRForest2D.h.

27 {}

Member Function Documentation

◆ GetResponse()

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

Definition at line 48 of file GBRForest2D.h.

References fInitialResponseX, fInitialResponseY, fTrees, trackerHitRTTI::vector, x, and y.

48  {
51  double tx, ty;
52  for (std::vector<GBRTree2D>::const_iterator it = fTrees.begin(); it != fTrees.end(); ++it) {
53  it->GetResponse(vector, tx, ty);
54  x += tx;
55  y += ty;
56  }
57  return;
58 }
double fInitialResponseX
Definition: GBRForest2D.h:40
double fInitialResponseY
Definition: GBRForest2D.h:41
std::vector< GBRTree2D > fTrees
Definition: GBRForest2D.h:42

◆ serialize()

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

◆ SetInitialResponse()

void GBRForest2D::SetInitialResponse ( double  x,
double  y 
)
inline

Definition at line 31 of file GBRForest2D.h.

References fInitialResponseX, fInitialResponseY, x, and y.

31  {
34  }
double fInitialResponseX
Definition: GBRForest2D.h:40
double fInitialResponseY
Definition: GBRForest2D.h:41

◆ Trees() [1/2]

std::vector<GBRTree2D>& GBRForest2D::Trees ( )
inline

Definition at line 36 of file GBRForest2D.h.

References fTrees.

36 { return fTrees; }
std::vector< GBRTree2D > fTrees
Definition: GBRForest2D.h:42

◆ Trees() [2/2]

const std::vector<GBRTree2D>& GBRForest2D::Trees ( ) const
inline

Definition at line 37 of file GBRForest2D.h.

References fTrees.

37 { return fTrees; }
std::vector< GBRTree2D > fTrees
Definition: GBRForest2D.h:42

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 44 of file GBRForest2D.h.

◆ cond::serialization::access

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

Definition at line 44 of file GBRForest2D.h.

Member Data Documentation

◆ fInitialResponseX

double GBRForest2D::fInitialResponseX = 0.0
protected

Definition at line 40 of file GBRForest2D.h.

Referenced by GetResponse(), and SetInitialResponse().

◆ fInitialResponseY

double GBRForest2D::fInitialResponseY = 0.0
protected

Definition at line 41 of file GBRForest2D.h.

Referenced by GetResponse(), and SetInitialResponse().

◆ fTrees

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

Definition at line 42 of file GBRForest2D.h.

Referenced by GetResponse(), and Trees().