Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TrkrClusterCrossingAssoc.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TrkrClusterCrossingAssoc.h
1 
7 #ifndef TRACKBASE_TRKRCLUSTERCROSSINGASSOC_H
8 #define TRACKBASE_TRKRCLUSTERCROSSINGASSOC_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, short int>;
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, short int hidx) = 0;
40 
41  virtual ConstRange getCrossings(TrkrDefs::cluskey) const = 0;
42 
43  virtual ConstRange getAll() const = 0;
44 
45  virtual unsigned int size() const {return 0;}
46 
47 protected:
48  TrkrClusterCrossingAssoc() = default;
49 
50 private:
51 
53 };
54 
55 #endif // TRACKBASE_TRKRCLUSTERCROSSINGASSOC_H