File indexing completed on 2025-12-16 09:20:34
0001 #ifndef TRACKRECO_TPCSEEDTRACKMAP_H
0002 #define TRACKRECO_TPCSEEDTRACKMAP_H
0003
0004 #include "TrkrDefs.h"
0005
0006 #include <phool/PHObject.h>
0007
0008 #include <map>
0009 #include <memory>
0010 #include <vector>
0011
0012 class TpcSeedTrackMap : public PHObject
0013 {
0014 public:
0015 using Map = std::multimap<unsigned int, unsigned int>;
0016 using ConstIterator = Map::const_iterator;
0017 using ConstRange = std::pair<Map::const_iterator, Map::const_iterator>;
0018
0019 void Reset() override;
0020
0021 virtual void addAssoc(unsigned int tpc_key, unsigned int track_key) = 0;
0022
0023 virtual ConstRange getAssocTracks(unsigned int) = 0;
0024
0025 virtual ConstRange getAll() = 0;
0026
0027 virtual unsigned int size() = 0;
0028
0029 protected:
0030 TpcSeedTrackMap() = default;
0031
0032 private:
0033 ClassDefOverride(TpcSeedTrackMap, 1);
0034 };
0035
0036 #endif