ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TrkrClusterHitAssoc.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TrkrClusterHitAssoc.h
1 
7 #ifndef TRACKBASE_TRKRCLUSTERHITASSOC_H
8 #define TRACKBASE_TRKRCLUSTERHITASSOC_H
9 
10 #include "TrkrDefs.h"
11 
12 #include <phool/PHObject.h>
13 
14 #include <iostream> // for cout, ostream
15 #include <map>
16 #include <utility> // for pair
17 #include <climits>
18 
25 {
26 public:
27 
28  using Map = std::multimap<TrkrDefs::cluskey, TrkrDefs::hitkey>;
29  using ConstIterator = Map::const_iterator;
30  using ConstRange = std::pair<Map::const_iterator, Map::const_iterator>;
31 
32  void Reset() override;
33 
39  virtual void addAssoc(TrkrDefs::cluskey ckey, unsigned int hidx) = 0;
40 
42  virtual Map* getClusterMap(TrkrDefs::hitsetkey) {return nullptr;}
43 
51 
52  virtual unsigned int size() const {return 0;}
53 
54 protected:
55  TrkrClusterHitAssoc() = default;
56 
57 private:
58 
60 };
61 
62 #endif // TRACKBASE_TRKRCLUSTERHITASSOC_H