Public Member Functions | Private Attributes | List of all members
trkf::KHitTrack Class Reference

#include <KHitTrack.h>

Inheritance diagram for trkf::KHitTrack:
trkf::KFitTrack trkf::KETrack trkf::KTrack

Public Member Functions

 KHitTrack ()
 Default constructor. More...
 
 KHitTrack (const KFitTrack &trf, const std::shared_ptr< const KHitBase > &hit)
 Initializing constructor - KFitTrack + measurement. More...
 
 KHitTrack (const KETrack &tre)
 Initializing constructor - KETrack. More...
 
virtual ~KHitTrack ()
 Destructor. More...
 
const std::shared_ptr< const KHitBase > & getHit () const
 Measurement. More...
 
void setHit (const std::shared_ptr< const KHitBase > &hit)
 Set measurement. More...
 
virtual std::ostream & Print (std::ostream &out, bool doTitle=true) const
 Printout. More...
 
- Public Member Functions inherited from trkf::KFitTrack
 KFitTrack ()
 Default constructor. More...
 
 KFitTrack (const KETrack &tre, double s=0., double chisq=0., FitStatus stat=INVALID)
 Initializing constructor. More...
 
virtual ~KFitTrack ()
 Destructor. More...
 
double getPath () const
 Propagation distance. More...
 
double getChisq () const
 Fit chisquare. More...
 
FitStatus getStat () const
 Fit status. More...
 
void setPath (double path)
 Set propagation distance. More...
 
void setChisq (double chisq)
 Set chisquare. More...
 
void setStat (FitStatus stat)
 Set fit status. More...
 
bool combineFit (const KFitTrack &trf)
 Combine two tracks. More...
 
- Public Member Functions inherited from trkf::KETrack
 KETrack ()
 Default constructor. More...
 
 KETrack (const std::shared_ptr< const Surface > &psurf)
 Constructor - specify surface only. More...
 
 KETrack (const std::shared_ptr< const Surface > &psurf, const TrackVector &vec, const TrackError &err, Surface::TrackDirection dir=Surface::UNKNOWN, int pdg=0)
 Constructor - surface + track parameters + error matrix. More...
 
 KETrack (const KTrack &trk, const TrackError &err)
 Constructor - KTrack + error matrix. More...
 
virtual ~KETrack ()
 Destructor. More...
 
const TrackErrorgetError () const
 Track error matrix. More...
 
double PointingError () const
 Pointing error (radians). More...
 
TrackErrorgetError ()
 Modifiable error matrix. More...
 
void setError (const TrackError &err)
 Set error matrix. More...
 
std::optional< double > combineTrack (const KETrack &tre)
 Combine two tracks. More...
 
- Public Member Functions inherited from trkf::KTrack
 KTrack ()
 Enum. More...
 
 KTrack (const std::shared_ptr< const Surface > &psurf)
 Constructor - specify surface only. More...
 
 KTrack (std::shared_ptr< const Surface > psurf, const TrackVector &vec, Surface::TrackDirection dir=Surface::UNKNOWN, int pdg=0)
 Constructor - surface + track parameters. More...
 
virtual ~KTrack ()
 Destructor. More...
 
const std::shared_ptr< const Surface > & getSurface () const
 Surface. More...
 
const TrackVectorgetVector () const
 Track state vector. More...
 
Surface::TrackDirection getDirection () const
 Track direction. More...
 
int PdgCode () const
 Pdg code. More...
 
double Mass () const
 Based on pdg code. More...
 
TrackVectorgetVector ()
 Modifiable state vector. More...
 
void setSurface (const std::shared_ptr< const Surface > &psurf)
 Set surface. More...
 
void setVector (const TrackVector &vec)
 Set state vector. More...
 
void setDirection (Surface::TrackDirection dir)
 Set direction. More...
 
void setPdgCode (int pdg)
 Set pdg code. More...
 
bool isValid () const
 Test if track is valid. More...
 
void getPosition (double xyz[3]) const
 Get position of track. More...
 
void getMomentum (double mom[3]) const
 Get momentum vector of track. More...
 
double XLatitude () const
 Get x-latitude. More...
 
double XLongitude () const
 Get x-longitude. More...
 

Private Attributes

std::shared_ptr< const KHitBasefHit
 Measurement. More...
 

Additional Inherited Members

- Public Types inherited from trkf::KFitTrack
enum  FitStatus {
  INVALID, UNKNOWN, FORWARD, FORWARD_PREDICTED,
  BACKWARD, BACKWARD_PREDICTED, OPTIMAL, OPTIMAL_PREDICTED
}
 Fit status enum. More...
 

Detailed Description

Definition at line 34 of file KHitTrack.h.

Constructor & Destructor Documentation

trkf::KHitTrack::KHitTrack ( )

Default constructor.

Definition at line 16 of file KHitTrack.cxx.

17  {}
trkf::KHitTrack::KHitTrack ( const KFitTrack trf,
const std::shared_ptr< const KHitBase > &  hit 
)

Initializing constructor - KFitTrack + measurement.

Initializing constructor - KFitTrack + measurement.

Arguments:

trf - KFitTrack. hit - Measurement.

Definition at line 26 of file KHitTrack.cxx.

26  :
27  KFitTrack(trf),
28  fHit(hit)
29  {}
std::shared_ptr< const KHitBase > fHit
Measurement.
Definition: KHitTrack.h:68
Detector simulation of raw signals on wires.
KFitTrack()
Default constructor.
Definition: KFitTrack.cxx:17
trkf::KHitTrack::KHitTrack ( const KETrack tre)

Initializing constructor - KETrack.

Initializing constructor - KETrack.

Arguments:

tre - KETrack.

Definition at line 37 of file KHitTrack.cxx.

37  :
38  KFitTrack(tre)
39  {}
KFitTrack()
Default constructor.
Definition: KFitTrack.cxx:17
trkf::KHitTrack::~KHitTrack ( )
virtual

Destructor.

Definition at line 42 of file KHitTrack.cxx.

43  {}

Member Function Documentation

const std::shared_ptr<const KHitBase>& trkf::KHitTrack::getHit ( ) const
inline

Measurement.

Definition at line 53 of file KHitTrack.h.

53 {return fHit;}
std::shared_ptr< const KHitBase > fHit
Measurement.
Definition: KHitTrack.h:68
std::ostream & trkf::KHitTrack::Print ( std::ostream &  out,
bool  doTitle = true 
) const
virtual

Printout.

Reimplemented from trkf::KFitTrack.

Definition at line 46 of file KHitTrack.cxx.

47  {
48  if(doTitle)
49  out << "KHitTrack:\n";
50 
51  // Print base class.
52 
53  KFitTrack::Print(out, false);
54 
55  // Print information specific to this class.
56 
57  if(fHit.get() != 0)
58  out << " " << *fHit;
59  return out;
60  }
std::shared_ptr< const KHitBase > fHit
Measurement.
Definition: KHitTrack.h:68
virtual std::ostream & Print(std::ostream &out, bool doTitle=true) const
Printout.
Definition: KFitTrack.cxx:115
void trkf::KHitTrack::setHit ( const std::shared_ptr< const KHitBase > &  hit)
inline

Set measurement.

Definition at line 58 of file KHitTrack.h.

58 {fHit = hit;}
std::shared_ptr< const KHitBase > fHit
Measurement.
Definition: KHitTrack.h:68

Member Data Documentation

std::shared_ptr<const KHitBase> trkf::KHitTrack::fHit
private

Measurement.

Definition at line 68 of file KHitTrack.h.


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