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