File indexing completed on 2021-02-14 12:54:51
0001 #ifndef TrackDeDxHits_H
0002 #define TrackDeDxHits_H
0003
0004 #include <cstdint>
0005 #include <vector>
0006
0007 namespace reco {
0008
0009
0010
0011 class DeDxHit {
0012 public:
0013 DeDxHit() {}
0014
0015 DeDxHit(float ch, float mom, float len, uint32_t rawDetId)
0016 : m_charge(ch), m_momentum(mom), m_pathLength(len), m_rawDetId(rawDetId) {}
0017
0018
0019 float charge() const { return m_charge; }
0020
0021
0022 float momentum() const { return m_momentum; }
0023
0024
0025 float pathLength() const { return m_pathLength; }
0026
0027
0028 uint32_t rawDetId() const { return m_rawDetId; }
0029
0030 bool operator<(const DeDxHit &other) const { return m_charge < other.m_charge; }
0031
0032 private:
0033
0034
0035 float m_charge;
0036 float m_momentum;
0037 float m_pathLength;
0038 uint32_t m_rawDetId;
0039 };
0040
0041 typedef std::vector<DeDxHit> DeDxHitCollection;
0042
0043 }
0044 #endif