LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
KHitContainer.h
Go to the documentation of this file.
1 
45 #ifndef KHITCONTAINER_H
46 #define KHITCONTAINER_H
47 
53 #include <list>
54 
55 namespace detinfo {
56  class DetectorPropertiesData;
57 }
58 
59 namespace trkf {
60 
61  class KHitContainer {
62  public:
63  virtual ~KHitContainer() = default;
64 
65  virtual void fill(detinfo::DetectorPropertiesData const& clock_data,
67  int only_plane) = 0;
68 
69  const std::list<KHitGroup>& getSorted() const { return fSorted; }
70  const std::list<KHitGroup>& getUnsorted() const { return fUnsorted; }
71  const std::list<KHitGroup>& getUnused() const { return fUnused; }
72 
73  // Non-const Accessors.
74 
75  std::list<KHitGroup>& getSorted() { return fSorted; }
76  std::list<KHitGroup>& getUnsorted() { return fUnsorted; }
77  std::list<KHitGroup>& getUnused() { return fUnused; }
78 
80  void clear();
81 
83  void reset();
84 
86  void sort(const KTrack& trk,
87  bool addUnsorted,
88  const Propagator& prop,
90 
92  unsigned int getPreferredPlane() const;
93 
94  private:
95  // Attributes.
96 
97  std::list<KHitGroup> fSorted;
98  std::list<KHitGroup> fUnsorted;
99  std::list<KHitGroup> fUnused;
100  };
101 }
102 
103 #endif
const std::list< KHitGroup > & getUnused() const
Definition: KHitContainer.h:71
Declaration of signal hit object.
std::list< KHitGroup > & getUnused()
Unused list.
Definition: KHitContainer.h:77
std::list< KHitGroup > fUnused
Unused KHitGroup objects.
Definition: KHitContainer.h:99
void hits()
Definition: readHits.C:15
const std::list< KHitGroup > & getUnsorted() const
Definition: KHitContainer.h:70
void fill(const art::PtrVector< recob::Hit > &hits, int only_plane)
std::list< KHitGroup > fUnsorted
Unsorted KHitGroup objects.
Definition: KHitContainer.h:98
Base class for Kalman filter track propagator.
General LArSoft Utilities.
A collection of measurements on the same surface.
std::list< KHitGroup > & getSorted()
Sorted list.
Definition: KHitContainer.h:75
TDirectory * dir
Definition: macro.C:5
std::list< KHitGroup > fSorted
Sorted KHitGroup objects.
Definition: KHitContainer.h:97
Basic Kalman filter track class, without error.
std::list< KHitGroup > & getUnsorted()
Unsorted list.
Definition: KHitContainer.h:76
vec_iX clear()
PropDirection
Propagation direction enum.
Definition: Propagator.h:94
const std::list< KHitGroup > & getSorted() const
Definition: KHitContainer.h:69