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 26 of file LineTool.h.

Constructor & Destructor Documentation

◆ Line() [1/2]

DecayTreeFitter::Line::Line ( )
inline

Definition at line 28 of file LineTool.h.

28 {}

◆ Line() [2/2]

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

Definition at line 29 of file LineTool.h.

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

◆ ~Line()

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

Definition at line 30 of file LineTool.h.

30 {};

Member Function Documentation

◆ beginPoint()

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

Definition at line 32 of file LineTool.h.

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

32 { return m_p0; }

◆ direction()

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

Definition at line 33 of file LineTool.h.

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

33 { return m_v0; }

◆ fillStream()

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

Definition at line 38 of file LineTool.h.

Referenced by DecayTreeFitter::operator<<().

39  {
40  os << "\np0 (" << m_p0.x() << " " << m_p0.y() << " " << m_p0.z() << ") direction (" << m_v0.x() << " " << m_v0.y() << " " << m_v0.z() << ")\n" << std::endl;
41  return os;
42  }

◆ operator()()

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

Definition at line 35 of file LineTool.h.

References beginPoint(), and direction().

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

◆ position()

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

Definition at line 34 of file LineTool.h.

References beginPoint(), and direction().

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

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