Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SvtxPHG4ParticleMap.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file SvtxPHG4ParticleMap.h
1 #ifndef TRACKBASEHISTORIC_SVTXPHG4PARTICLEMAP_H
2 #define TRACKBASEHISTORIC_SVTXPHG4PARTICLEMAP_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<int>> WeightedTruthTrackMap;
15  typedef std::map<unsigned int, WeightedTruthTrackMap> Map;
16  typedef std::map<unsigned int, WeightedTruthTrackMap>::const_iterator ConstIter;
17  typedef std::map<unsigned int, WeightedTruthTrackMap>::iterator Iter;
18 
19  ~SvtxPHG4ParticleMap() override {}
20 
21  void identify(std::ostream& os = std::cout) const override
22  {
23  os << "SvtxPHG4ParticleMap 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  virtual bool empty() const { return true; }
30  virtual std::size_t size() const { return 0; }
31  virtual std::size_t count(const unsigned int) const { return 0; }
32  virtual void clear() {}
33 
34  virtual bool processed() const { return false; }
35  virtual void setProcessed(const bool) {}
36 
37  virtual const WeightedTruthTrackMap & get(const unsigned int) const;
38  virtual WeightedTruthTrackMap & get(const unsigned int);
39  virtual WeightedTruthTrackMap insert(const unsigned int, const WeightedTruthTrackMap);
40  virtual std::size_t erase(const unsigned int) { return 0; }
41 
42  virtual ConstIter begin() const;
43  virtual ConstIter find(const unsigned int) const;
44  virtual ConstIter end() const;
45 
46  virtual Iter begin();
47  virtual Iter find(const unsigned int);
48  virtual Iter end();
49 
50  protected:
52 
53  private:
55 
56 };
57 
58 #endif