#include <KGTrack.h>
Public Member Functions | |
KGTrack (int prefplane) | |
int | getPrefPlane () const |
const std::multimap< double, KHitTrack > & | getTrackMap () const |
KHitTrack collection, indexed by path distance. More... | |
size_t | numHits () const |
Number of measurements in track. More... | |
const KHitTrack & | startTrack () const |
Track at start point. More... | |
const KHitTrack & | endTrack () const |
Track at end point. More... | |
bool | isValid () const |
Validity flag. More... | |
std::multimap< double, KHitTrack > & | getTrackMap () |
Modifiable KHitTrack collection, indexed by path distance. More... | |
KHitTrack & | startTrack () |
Modifiable track at start point. More... | |
KHitTrack & | endTrack () |
Modifiable track at end point. More... | |
void | addTrack (const KHitTrack &trh) |
Add track. More... | |
void | recalibrate () |
Recalibrate track map. More... | |
void | clear () |
Clear track collection. More... | |
void | fillTrack (detinfo::DetectorPropertiesData const &detProp, recob::Track &track, int id) const |
Fill a recob::Track. More... | |
void | fillHits (art::PtrVector< recob::Hit > &hits, std::vector< unsigned int > &hittpindex) const |
Fill a PtrVector of Hits. More... | |
const std::multimap< double, KHitTrack > | TrackMap () const |
std::ostream & | Print (std::ostream &out) const |
Printout. More... | |
Private Attributes | |
int | fPrefPlane |
Preferred plane. More... | |
std::multimap< double, KHitTrack > | fTrackMap |
KHitTrack collection, indexed by path distance. More... | |
trkf::KGTrack::KGTrack | ( | int | prefplane | ) |
Definition at line 27 of file KGTrack.cxx.
void trkf::KGTrack::addTrack | ( | const KHitTrack & | trh | ) |
Add track.
Definition at line 81 of file KGTrack.cxx.
|
inline |
Clear track collection.
Definition at line 107 of file KGTrack.h.
const KHitTrack & trkf::KGTrack::endTrack | ( | ) | const |
Track at end point.
Throw exception if track is not valid.
Definition at line 42 of file KGTrack.cxx.
KHitTrack & trkf::KGTrack::endTrack | ( | ) |
Modifiable track at end point.
Throw exception if track is not valid.
Definition at line 68 of file KGTrack.cxx.
void trkf::KGTrack::fillHits | ( | art::PtrVector< recob::Hit > & | hits, |
std::vector< unsigned int > & | hittpindex | ||
) | const |
Fill a PtrVector of Hits.
Fill a PtrVector of Hits.
Arguments:
hits - Hit vector to fill.
Definition at line 224 of file KGTrack.cxx.
void trkf::KGTrack::fillTrack | ( | detinfo::DetectorPropertiesData const & | detProp, |
recob::Track & | track, | ||
int | id | ||
) | const |
Fill a recob::Track.
Fill a recob::Track.
Arguments:
track - Track to fill.
Definition at line 126 of file KGTrack.cxx.
|
inline |
KHitTrack collection, indexed by path distance.
Definition at line 59 of file KGTrack.h.
|
inline |
Modifiable KHitTrack collection, indexed by path distance.
Definition at line 88 of file KGTrack.h.
|
inline |
Validity flag.
Definition at line 79 of file KGTrack.h.
|
inline |
Number of measurements in track.
Definition at line 66 of file KGTrack.h.
std::ostream & trkf::KGTrack::Print | ( | std::ostream & | out | ) | const |
Printout.
Printout
Definition at line 259 of file KGTrack.cxx.
void trkf::KGTrack::recalibrate | ( | ) |
Recalibrate track map.
Recalibrate track map.
Loop over contents of track map. Copy each KHitTrack into a new multimap track map. Offset the distance stored in the KHitTracks such that the minimum distance is zero. Also update multimap keys to agree with distance stored in track.
Definition at line 94 of file KGTrack.cxx.
const KHitTrack & trkf::KGTrack::startTrack | ( | ) | const |
Track at start point.
Definition at line 31 of file KGTrack.cxx.
KHitTrack & trkf::KGTrack::startTrack | ( | ) |
Modifiable track at start point.
Throw exception if track is not valid.
Definition at line 55 of file KGTrack.cxx.
|
inline |
Definition at line 123 of file KGTrack.h.
|
private |