FairRoot/PandaRoot
Public Member Functions | Private Member Functions | Private Attributes | List of all members
DecayTreeFitter::Line Class Reference

#include <LineTool.h>

Public Member Functions

 Line ()
 
 Line (const TVector3 &p0, const TVector3 &v0)
 
virtual ~Line ()
 
const TVector3 & beginPoint () const
 
const TVector3 & direction () const
 
TVector3 position (const double mu) const
 
TVector3 operator() (const double mu) const
 
std::ostreamfillStream (std::ostream &os) const
 

Private Member Functions

 ClassDef (Line, 1)
 

Private Attributes

TVector3 m_p0
 
TVector3 m_v0
 

Detailed Description

Definition at line 27 of file LineTool.h.

Constructor & Destructor Documentation

DecayTreeFitter::Line::Line ( )
inline

Definition at line 30 of file LineTool.h.

30 {}
DecayTreeFitter::Line::Line ( const TVector3 &  p0,
const TVector3 &  v0 
)
inline

Definition at line 31 of file LineTool.h.

31 : m_p0 ( p0 ) , m_v0 ( v0 ) {}
virtual DecayTreeFitter::Line::~Line ( )
inlinevirtual

Definition at line 32 of file LineTool.h.

32 {};

Member Function Documentation

const TVector3& DecayTreeFitter::Line::beginPoint ( ) const
inline

Definition at line 34 of file LineTool.h.

References m_p0.

Referenced by DecayTreeFitter::closestPointParams(), operator()(), and position().

34 { return m_p0 ; }
DecayTreeFitter::Line::ClassDef ( Line  ,
 
)
private
const TVector3& DecayTreeFitter::Line::direction ( ) const
inline

Definition at line 35 of file LineTool.h.

References m_v0.

Referenced by DecayTreeFitter::closestPointParams(), operator()(), and position().

35 { return m_v0 ; }
std::ostream& DecayTreeFitter::Line::fillStream ( std::ostream os) const
inline

Definition at line 41 of file LineTool.h.

References m_p0, and m_v0.

42  {
43  os << "\np0 ("
44  << m_p0.x() << " " << m_p0.y() << " " << m_p0.z()
45  << ") direction ("
46  << m_v0.x()<< " " << m_v0.y() << " " << m_v0.z() << ")\n"
47  << std::endl;
48  return os;
49  }
TVector3 DecayTreeFitter::Line::operator() ( const double  mu) const
inline

Definition at line 38 of file LineTool.h.

References beginPoint(), and direction().

39  { return beginPoint() + direction() * (float)mu ; }
const TVector3 & direction() const
Definition: LineTool.h:35
const TVector3 & beginPoint() const
Definition: LineTool.h:34
TVector3 DecayTreeFitter::Line::position ( const double  mu) const
inline

Definition at line 36 of file LineTool.h.

References beginPoint(), and direction().

37  { return beginPoint() + direction() * (float)mu ; }
const TVector3 & direction() const
Definition: LineTool.h:35
const TVector3 & beginPoint() const
Definition: LineTool.h:34

Member Data Documentation

TVector3 DecayTreeFitter::Line::m_p0
private

Definition at line 51 of file LineTool.h.

Referenced by beginPoint(), and fillStream().

TVector3 DecayTreeFitter::Line::m_v0
private

Definition at line 52 of file LineTool.h.

Referenced by direction(), and fillStream().


The documentation for this class was generated from the following file: