EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SvtxTrackMap.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file SvtxTrackMap.h
1 #ifndef TRACKBASEHISTORIC_SVTXTRACKMAP_H
2 #define TRACKBASEHISTORIC_SVTXTRACKMAP_H
3 
4 #include "SvtxTrack.h"
5 
6 #include <phool/PHObject.h>
7 
8 #include <iostream>
9 #include <map>
10 
11 class SvtxTrackMap : public PHObject
12 {
13  public:
14  typedef std::map<unsigned int, SvtxTrack*> TrackMap;
15  typedef std::map<unsigned int, SvtxTrack*>::const_iterator ConstIter;
16  typedef std::map<unsigned int, SvtxTrack*>::iterator Iter;
17 
18  ~SvtxTrackMap() override {}
19 
20  void identify(std::ostream& os = std::cout) const override
21  {
22  os << "SvtxTrackMap base class" << std::endl;
23  }
24  int isValid() const override { return 0; }
25  PHObject* CloneMe() const override { return nullptr; }
26 
27  virtual bool empty() const { return true; }
28  virtual size_t size() const { return 0; }
29  virtual size_t count(unsigned int /*idkey*/) const { return 0; }
30  virtual void clear() {}
31 
32  virtual const SvtxTrack* get(unsigned int /*idkey*/) const { return nullptr; }
33  virtual SvtxTrack* get(unsigned int /*idkey*/) { return nullptr; }
34  virtual SvtxTrack* insert(const SvtxTrack* /*cluster*/) { return nullptr; }
35  virtual size_t erase(unsigned int /*idkey*/) { return 0; }
36 
37  virtual ConstIter begin() const;
38  virtual ConstIter find(unsigned int idkey) const;
39  virtual ConstIter end() const;
40 
41  virtual Iter begin();
42  virtual Iter find(unsigned int idkey);
43  virtual Iter end();
44 
45  protected:
47 
48  private:
50 };
51 
52 #endif