All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | Private Attributes | List of all members
trkf::KHitBase Class Referenceabstract

#include <KHitBase.h>

Inheritance diagram for trkf::KHitBase:
trkf::KHit< 1 > trkf::KHit< N > trkf::KHitMulti trkf::KHitWireLine trkf::KHitWireX

Public Member Functions

 KHitBase ()
 Default constructor. More...
 
 KHitBase (const std::shared_ptr< const Surface > &psurf, int plane=-1)
 Initializing Constructor. More...
 
virtual ~KHitBase ()=default
 Destructor. More...
 
const std::shared_ptr< const
Surface > & 
getPredSurface () const
 Predition surface. More...
 
double getPredDistance () const
 Prediction distance. More...
 
const std::shared_ptr< const
Surface > & 
getMeasSurface () const
 Measurement surface. More...
 
int getMeasPlane () const
 Measurement plane index. More...
 
int getID () const
 Unique id. More...
 
void setMeasSurface (const std::shared_ptr< const Surface > &psurf)
 Measurement surface. More...
 
void setMeasPlane (int plane)
 Measurement plane. More...
 
virtual bool predict (const KETrack &tre, const Propagator &prop, const KTrack *ref=0) const =0
 Prediction method (return false if fail). More...
 
virtual double getChisq () const =0
 Return incremental chisquare. More...
 
virtual void update (KETrack &tre) const =0
 Update track method. More...
 
virtual std::ostream & Print (std::ostream &out, bool doTitle=true) const
 Printout. More...
 

Protected Attributes

std::shared_ptr< const SurfacefPredSurf
 Prediction surface. More...
 
double fPredDist
 Prediction distance. More...
 
int fID
 Unique id. More...
 

Private Attributes

std::shared_ptr< const SurfacefMeasSurf
 Measurement surface. More...
 
int fMeasPlane
 Measurement plane index. More...
 

Detailed Description

Definition at line 62 of file KHitBase.h.

Constructor & Destructor Documentation

trkf::KHitBase::KHitBase ( )

Default constructor.

Default Constructor.

Definition at line 18 of file KHitBase.cxx.

18 : fPredDist(0.), fID(0), fMeasPlane(-1) {}
int fID
Unique id.
Definition: KHitBase.h:147
double fPredDist
Prediction distance.
Definition: KHitBase.h:146
int fMeasPlane
Measurement plane index.
Definition: KHitBase.h:151
trkf::KHitBase::KHitBase ( const std::shared_ptr< const Surface > &  psurf,
int  plane = -1 
)

Initializing Constructor.

Initializing Constructor.

Arguments:

psurf - Measurement surface pointer.

Definition at line 26 of file KHitBase.cxx.

27  : fPredDist(0.), fID(0), fMeasSurf(psurf), fMeasPlane(plane)
28  {}
std::shared_ptr< const Surface > fMeasSurf
Measurement surface.
Definition: KHitBase.h:150
int fID
Unique id.
Definition: KHitBase.h:147
double fPredDist
Prediction distance.
Definition: KHitBase.h:146
int fMeasPlane
Measurement plane index.
Definition: KHitBase.h:151
virtual trkf::KHitBase::~KHitBase ( )
virtualdefault

Destructor.

Member Function Documentation

virtual double trkf::KHitBase::getChisq ( ) const
pure virtual

Return incremental chisquare.

Implemented in trkf::KHit< N >, trkf::KHit< 1 >, and trkf::KHitMulti.

int trkf::KHitBase::getID ( ) const
inline

Unique id.

Definition at line 105 of file KHitBase.h.

106  {
107  return fID;
108  }
int fID
Unique id.
Definition: KHitBase.h:147
int trkf::KHitBase::getMeasPlane ( ) const
inline

Measurement plane index.

Definition at line 98 of file KHitBase.h.

99  {
100  return fMeasPlane;
101  }
int fMeasPlane
Measurement plane index.
Definition: KHitBase.h:151
const std::shared_ptr<const Surface>& trkf::KHitBase::getMeasSurface ( ) const
inline

Measurement surface.

Definition at line 91 of file KHitBase.h.

92  {
93  return fMeasSurf;
94  }
std::shared_ptr< const Surface > fMeasSurf
Measurement surface.
Definition: KHitBase.h:150
double trkf::KHitBase::getPredDistance ( ) const
inline

Prediction distance.

Definition at line 84 of file KHitBase.h.

85  {
86  return fPredDist;
87  }
double fPredDist
Prediction distance.
Definition: KHitBase.h:146
const std::shared_ptr<const Surface>& trkf::KHitBase::getPredSurface ( ) const
inline

Predition surface.

Definition at line 77 of file KHitBase.h.

78  {
79  return fPredSurf;
80  }
std::shared_ptr< const Surface > fPredSurf
Prediction surface.
Definition: KHitBase.h:145
virtual bool trkf::KHitBase::predict ( const KETrack tre,
const Propagator prop,
const KTrack ref = 0 
) const
pure virtual

Prediction method (return false if fail).

Implemented in trkf::KHit< N >, trkf::KHit< 1 >, and trkf::KHitMulti.

std::ostream & trkf::KHitBase::Print ( std::ostream &  out,
bool  doTitle = true 
) const
virtual

Printout.

Reimplemented in trkf::KHit< N >, trkf::KHit< 1 >, and trkf::KHitMulti.

Definition at line 32 of file KHitBase.cxx.

33  {
34  if (doTitle) out << "KHitBase:\n";
35  out << " Measurement Surface: " << *fMeasSurf << "\n";
36  out << " Measurement Plane: " << fMeasPlane << "\n";
37  if (fPredSurf.get() != 0) {
38  out << " Prediction Surface: " << *fPredSurf << "\n";
39  out << " Prediction Distance: " << fPredDist << "\n";
40  }
41  return out;
42  }
std::shared_ptr< const Surface > fMeasSurf
Measurement surface.
Definition: KHitBase.h:150
std::shared_ptr< const Surface > fPredSurf
Prediction surface.
Definition: KHitBase.h:145
double fPredDist
Prediction distance.
Definition: KHitBase.h:146
int fMeasPlane
Measurement plane index.
Definition: KHitBase.h:151
void trkf::KHitBase::setMeasPlane ( int  plane)
inline

Measurement plane.

Definition at line 121 of file KHitBase.h.

122  {
123  fMeasPlane = plane;
124  }
int fMeasPlane
Measurement plane index.
Definition: KHitBase.h:151
void trkf::KHitBase::setMeasSurface ( const std::shared_ptr< const Surface > &  psurf)
inline

Measurement surface.

Definition at line 114 of file KHitBase.h.

115  {
116  fMeasSurf = psurf;
117  }
std::shared_ptr< const Surface > fMeasSurf
Measurement surface.
Definition: KHitBase.h:150
virtual void trkf::KHitBase::update ( KETrack tre) const
pure virtual

Update track method.

Implemented in trkf::KHit< N >, trkf::KHit< 1 >, and trkf::KHitMulti.

Member Data Documentation

int trkf::KHitBase::fID
protected

Unique id.

Definition at line 147 of file KHitBase.h.

int trkf::KHitBase::fMeasPlane
private

Measurement plane index.

Definition at line 151 of file KHitBase.h.

std::shared_ptr<const Surface> trkf::KHitBase::fMeasSurf
private

Measurement surface.

Definition at line 150 of file KHitBase.h.

double trkf::KHitBase::fPredDist
mutableprotected

Prediction distance.

Definition at line 146 of file KHitBase.h.

std::shared_ptr<const Surface> trkf::KHitBase::fPredSurf
mutableprotected

Prediction surface.

Definition at line 145 of file KHitBase.h.


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