Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SvtxTrackCaloClusterMap.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file SvtxTrackCaloClusterMap.h
1 #ifndef TRACKBASEHISTORIC_SVTXTRACKCALOCLUSTERMAP_H
2 #define TRACKBASEHISTORIC_SVTXTRACKCALOCLUSTERMAP_H
3 
4 #include <calobase/RawCluster.h>
5 #include "SvtxTrack.h"
6 
7 #include <phool/PHObject.h>
8 
9 #include <iostream>
10 #include <map>
11 
13 {
14  public:
15  typedef std::map<SvtxTrack*, std::vector<RawCluster*>> Map;
16  typedef std::map<SvtxTrack*, std::vector<RawCluster*>>::const_iterator ConstIter;
17  typedef std::map<SvtxTrack*, std::vector<RawCluster*>>::iterator Iter;
18 
20 
21  void identify(std::ostream& os = std::cout) const override
22  {
23  os << "SvtxTrackCaloClusterMap base class" << std::endl;
24  }
25  int isValid() const override { return 0; }
26  PHObject* CloneMe() const override { return nullptr; }
27 
28  virtual bool empty() const { return true; }
29  virtual size_t size() const { return 0; }
30  virtual void clear() {}
31 
32  virtual const std::vector<RawCluster*> get(SvtxTrack*) const
33  {
34  std::vector<RawCluster*> dum;
35  return dum;
36  }
37  virtual std::vector<RawCluster*> get(SvtxTrack*)
38  {
39  std::vector<RawCluster*> dum;
40  return dum;
41  }
42  virtual std::vector<RawCluster*> insert(SvtxTrack*, std::vector<RawCluster*>)
43  {
44  std::vector<RawCluster*> dummy;
45  return dummy;
46  }
47  virtual std::vector<RawCluster*> insert(SvtxTrack*, RawCluster*)
48  {
49  std::vector<RawCluster*> dummy;
50  return dummy;
51  }
52  virtual size_t erase(SvtxTrack*) { return 0; }
53 
54  virtual ConstIter begin() const;
55  virtual ConstIter find(SvtxTrack*) const;
56  virtual ConstIter end() const;
57 
58  virtual Iter begin();
59  virtual Iter find(SvtxTrack*);
60  virtual Iter end();
61 
62  protected:
64 
65  private:
67 };
68 
69 #endif