Analysis Software
Documentation for sPHENIX simulation 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 <climits>
15 #include <iostream> // for cout, ostream
16 #include <map>
17 #include <utility> // for pair
18 
25 {
26  public:
27  using Map = std::multimap<TrkrDefs::cluskey, TrkrDefs::hitkey>;
28  using ConstIterator = Map::const_iterator;
29  using ConstRange = std::pair<Map::const_iterator, Map::const_iterator>;
30 
31  void Reset() override;
32 
38  virtual void addAssoc(TrkrDefs::cluskey ckey, unsigned int hidx) = 0;
39 
41  virtual Map* getClusterMap(TrkrDefs::hitsetkey) { return nullptr; }
42 
50 
51  virtual unsigned int size() const { return 0; }
52 
53  protected:
54  TrkrClusterHitAssoc() = default;
55 
56  private:
58 };
59 
60 #endif // TRACKBASE_TRKRCLUSTERHITASSOC_H