ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TrkrHitSetv1.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TrkrHitSetv1.h
1 #ifndef TRACKBASE_TRKRHITSETV1_H
2 #define TRACKBASE_TRKRHITSETV1_H
3 
10 #include "TrkrDefs.h"
11 #include "TrkrHitSet.h"
12 
13 #include <iostream>
14 #include <map>
15 #include <utility> // for pair
16 
17 // forward declaration
18 class TrkrHit;
19 
20 class TrkrHitSetv1 : public TrkrHitSet
21 {
22  public:
23  TrkrHitSetv1() = default;
24 
25  ~TrkrHitSetv1() override
26  {
28  }
29 
30  void identify(std::ostream& os = std::cout) const override;
31 
32  void Reset() override;
33 
34  void setHitSetKey(const TrkrDefs::hitsetkey key) override
35  {
36  m_hitSetKey = key;
37  }
38 
40  {
41  return m_hitSetKey;
42  }
43 
45 
46  void removeHit(TrkrDefs::hitkey) override;
47 
48  TrkrHit* getHit(const TrkrDefs::hitkey) const override;
49 
50  ConstRange getHits() const override;
51 
52  unsigned int size() const override
53  {
54  return m_hits.size();
55  }
56 
57  private:
59  TrkrDefs::hitsetkey m_hitSetKey = TrkrDefs::HITSETKEYMAX;
60 
63 
65 };
66 
67 #endif //TRACKBASE_TrkrHitSetv1_H