PandaRoot
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::ostream & fillStream (std::ostream &os) const
 

Detailed Description

Definition at line 38 of file LineTool.h.

Constructor & Destructor Documentation

◆ Line() [1/2]

DecayTreeFitter::Line::Line ( )
inline

Definition at line 40 of file LineTool.h.

40 {}

◆ Line() [2/2]

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

Definition at line 41 of file LineTool.h.

41 : m_p0(p0), m_v0(v0) {}

◆ ~Line()

virtual DecayTreeFitter::Line::~Line ( )
inlinevirtual

Definition at line 42 of file LineTool.h.

42 {};

Member Function Documentation

◆ beginPoint()

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

Definition at line 44 of file LineTool.h.

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

44 { return m_p0; }

◆ direction()

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

Definition at line 45 of file LineTool.h.

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

45 { return m_v0; }

◆ fillStream()

std::ostream& DecayTreeFitter::Line::fillStream ( std::ostream &  os) const
inline

Definition at line 50 of file LineTool.h.

Referenced by DecayTreeFitter::operator<<().

51  {
52  os << "\np0 (" << m_p0.x() << " " << m_p0.y() << " " << m_p0.z() << ") direction (" << m_v0.x() << " " << m_v0.y() << " " << m_v0.z() << ")\n" << std::endl;
53  return os;
54  }

◆ operator()()

TVector3 DecayTreeFitter::Line::operator() ( const double  mu) const
inline

Definition at line 47 of file LineTool.h.

References beginPoint(), and direction().

47 { return beginPoint() + direction() * (float)mu; }
const TVector3 & beginPoint() const
Definition: LineTool.h:44
const TVector3 & direction() const
Definition: LineTool.h:45

◆ position()

TVector3 DecayTreeFitter::Line::position ( const double  mu) const
inline

Definition at line 46 of file LineTool.h.

References beginPoint(), and direction().

46 { return beginPoint() + direction() * (float)mu; }
const TVector3 & beginPoint() const
Definition: LineTool.h:44
const TVector3 & direction() const
Definition: LineTool.h:45

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