File indexing completed on 2025-08-06 08:18:10
0001 #ifndef TRACKBASE_RAWHITSET_H
0002 #define TRACKBASE_RAWHITSET_H
0003
0004
0005
0006
0007
0008
0009
0010 #include "TrkrDefs.h"
0011
0012 #include <phool/PHObject.h>
0013
0014 #include <iostream>
0015 #include <map>
0016 #include <utility> // for pair
0017
0018
0019 class RawHit;
0020 class RawHitTpc;
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030 class RawHitSet : public PHObject
0031 {
0032 public:
0033
0034 using Vector = std::vector<RawHit*>;
0035 using VectorTpc2D = std::vector<std::vector<uint8_t>>;
0036 using ConstIterator = Vector::const_iterator;
0037 using ConstRange = std::pair<ConstIterator, ConstIterator>;
0038 using ConstVecIterator = std::vector<std::vector<uint8_t>>::iterator;
0039
0040
0041 void identify(std::ostream& = std::cout) const override
0042 {
0043 }
0044
0045 void Reset() override
0046 {
0047 }
0048
0049
0050
0051
0052
0053 virtual void setHitSetKey(const TrkrDefs::hitsetkey)
0054 {
0055 }
0056
0057
0058
0059
0060
0061 virtual TrkrDefs::hitsetkey getHitSetKey() const
0062 {
0063 return TrkrDefs::HITSETKEYMAX;
0064 }
0065
0066
0067
0068
0069
0070
0071
0072
0073
0074 virtual void addHit(RawHit*);
0075
0076 virtual void setTpcPhiBins(unsigned short phibins);
0077
0078
0079
0080
0081
0082
0083
0084
0085
0086
0087
0088
0089
0090
0091
0092
0093
0094
0095
0096
0097
0098 virtual ConstVecIterator getHits(int phibin);
0099
0100 virtual unsigned int size(int ) const { return 0; }
0101
0102
0103
0104
0105
0106 virtual ConstRange getHits() const;
0107
0108
0109
0110
0111
0112
0113 virtual unsigned int size() const
0114 {
0115 return 0;
0116 }
0117 virtual unsigned int tpcphibins() const
0118 {
0119 return 0;
0120 }
0121
0122 protected:
0123
0124 RawHitSet() = default;
0125
0126 private:
0127 ClassDefOverride(RawHitSet, 1);
0128 };
0129
0130 #endif