LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "KHitContainer.h"
Public Member Functions | |
virtual | ~KHitContainer ()=default |
virtual void | fill (detinfo::DetectorPropertiesData const &clock_data, const art::PtrVector< recob::Hit > &hits, int only_plane)=0 |
const std::list< KHitGroup > & | getSorted () const |
const std::list< KHitGroup > & | getUnsorted () const |
const std::list< KHitGroup > & | getUnused () const |
std::list< KHitGroup > & | getSorted () |
Sorted list. More... | |
std::list< KHitGroup > & | getUnsorted () |
Unsorted list. More... | |
std::list< KHitGroup > & | getUnused () |
Unused list. More... | |
void | clear () |
Clear all lists. More... | |
void | reset () |
Move all objects to unsorted list (from sorted and unused lists). More... | |
void | sort (const KTrack &trk, bool addUnsorted, const Propagator &prop, Propagator::PropDirection dir=Propagator::UNKNOWN) |
(Re)sort objects in unsorted and sorted lists. More... | |
unsigned int | getPreferredPlane () const |
Return the plane with the most KHitGroups in the unsorted list. More... | |
Private Attributes | |
std::list< KHitGroup > | fSorted |
Sorted KHitGroup objects. More... | |
std::list< KHitGroup > | fUnsorted |
Unsorted KHitGroup objects. More... | |
std::list< KHitGroup > | fUnused |
Unused KHitGroup objects. More... | |
Definition at line 61 of file KHitContainer.h.
|
virtualdefault |
void trkf::KHitContainer::clear | ( | ) |
Clear all lists.
Definition at line 20 of file KHitContainer.cxx.
References fSorted, fUnsorted, and fUnused.
|
pure virtual |
unsigned int trkf::KHitContainer::getPreferredPlane | ( | ) | const |
Return the plane with the most KHitGroups in the unsorted list.
Definition at line 94 of file KHitContainer.cxx.
References fUnsorted, and trkf::KHitGroup::getPlane().
|
inline |
Definition at line 69 of file KHitContainer.h.
Referenced by trkf::KalmanFilterAlg::buildTrack(), and trkf::KalmanFilterAlg::extendTrack().
|
inline |
Sorted list.
Definition at line 75 of file KHitContainer.h.
|
inline |
Definition at line 70 of file KHitContainer.h.
Referenced by trkf::KalmanFilterAlg::buildTrack(), trkf::KalmanFilterAlg::extendTrack(), trkf::KHitContainerWireLine::fill(), and trkf::KHitContainerWireX::fill().
|
inline |
Unsorted list.
Definition at line 76 of file KHitContainer.h.
|
inline |
Definition at line 71 of file KHitContainer.h.
Referenced by trkf::KalmanFilterAlg::buildTrack(), and trkf::KalmanFilterAlg::extendTrack().
|
inline |
Unused list.
Definition at line 77 of file KHitContainer.h.
References clear(), dir, and lar_content::UNKNOWN.
void trkf::KHitContainer::reset | ( | ) |
Move all objects to unsorted list (from sorted and unused lists).
Definition at line 28 of file KHitContainer.cxx.
References fSorted, fUnsorted, and fUnused.
void trkf::KHitContainer::sort | ( | const KTrack & | trk, |
bool | addUnsorted, | ||
const Propagator & | prop, | ||
Propagator::PropDirection | dir = Propagator::UNKNOWN |
||
) |
(Re)sort objects in unsorted and sorted lists.
(Re)sort objects in unsorted and sorted lists.
Arguments:
trk - Track to be propagated. addUnsorted - If true, include unsorted objects in sort. prop - Propagator. dir - Propagation direction.
Definition at line 43 of file KHitContainer.cxx.
References larg4::dist(), fSorted, fUnsorted, trkf::KHitGroup::getSurface(), trkf::KHitGroup::setPath(), and trkf::Propagator::vec_prop().
Referenced by trkf::KalmanFilterAlg::buildTrack(), and trkf::KalmanFilterAlg::extendTrack().
|
private |
|
private |
Unsorted KHitGroup objects.
Definition at line 98 of file KHitContainer.h.
Referenced by clear(), getPreferredPlane(), reset(), and sort().
|
private |
Unused KHitGroup objects.
Definition at line 99 of file KHitContainer.h.