Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RawHitSet.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file RawHitSet.h
1 #ifndef TRACKBASE_RAWHITSET_H
2 #define TRACKBASE_RAWHITSET_H
3 
10 #include "TrkrDefs.h"
11 
12 #include <phool/PHObject.h>
13 
14 #include <iostream>
15 #include <map>
16 #include <utility> // for pair
17 
19 class RawHit;
20 class RawHitTpc;
21 
30 class RawHitSet : public PHObject
31 {
32  public:
33  // iterator typedef
34  using Vector = std::vector<RawHit*>;
35  using VectorTpc2D = std::vector<std::vector<uint8_t>>;
36  using ConstIterator = Vector::const_iterator;
37  using ConstRange = std::pair<ConstIterator, ConstIterator>;
38 
40  void identify(std::ostream& /*os*/ = std::cout) const override
41  {
42  }
43 
44  void Reset() override
45  {
46  }
47 
52  virtual void setHitSetKey(const TrkrDefs::hitsetkey)
53  {
54  }
55 
61  {
62  return TrkrDefs::HITSETKEYMAX;
63  }
64 
73  virtual void addHit(RawHit*);
74  // virtual void addTpcHit(unsigned short phibin,RawHit*);
75  virtual void setTpcPhiBins(unsigned short phibins);
80  /* virtual void removeHit(TrkrDefs::hitkey)
81  {
82  }
83  */
91  /* virtual RawHit* getHit(const TrkrDefs::hitkey) const
92  {
93  return nullptr;
94  }
95  */
100  virtual ConstRange getHits() const;
101  // virtual ConstRange getTpcHits(unsigned short phibin) const;
106  // Get number of hits
107  virtual unsigned int size() const
108  {
109  return 0;
110  }
111  virtual unsigned int tpcphibins() const
112  {
113  return 0;
114  }
115  protected:
116 
118  RawHitSet() = default;
119 
120 private:
122 };
123 
124 #endif //TRACKBASE_RAWHITSET_H