CMS 3D CMS Logo

DeDxHit.h
Go to the documentation of this file.
1 #ifndef TrackDeDxHits_H
2 #define TrackDeDxHits_H
3 #include <vector>
4 
5 namespace reco
6 {
10 class DeDxHit
11 {
12 
13 public:
14  DeDxHit() {}
15 
16  DeDxHit(float ch, float mom, float len, uint32_t rawDetId):
17  m_charge(ch),
18  m_momentum(mom),
19  m_pathLength(len),
20  m_rawDetId(rawDetId){
21  }
22 
24  float charge() const {
25  return m_charge;
26  }
27 
29  float momentum() const {
30  return m_momentum;
31  }
32 
34  float pathLength() const {
35  return m_pathLength;
36  }
37 
39  uint32_t rawDetId() const {
40  return m_rawDetId;
41  }
42 
43  bool operator< (const DeDxHit &other) const {
44  return m_charge < other.m_charge;
45  }
46 
47 private:
48  // Those data members should be "compressed" once usage
49  // of ROOT/reflex precision specifier will be available in CMSSW
50  float m_charge;
51  float m_momentum;
52  float m_pathLength;
53  uint32_t m_rawDetId;
54 };
55 
56 typedef std::vector<DeDxHit> DeDxHitCollection;
57 
58 } // namespace reco
59 #endif
60 
float charge() const
Return the angle and thick normalized, calibrated energy release.
Definition: DeDxHit.h:24
float m_pathLength
Definition: DeDxHit.h:52
std::vector< DeDxHit > DeDxHitCollection
Definition: DeDxHit.h:56
uint32_t rawDetId() const
Return the rawDetId.
Definition: DeDxHit.h:39
float m_momentum
Definition: DeDxHit.h:51
float momentum() const
Return the momentum of the trajectory at the interaction point.
Definition: DeDxHit.h:29
float pathLength() const
Return the path length.
Definition: DeDxHit.h:34
DeDxHit(float ch, float mom, float len, uint32_t rawDetId)
Definition: DeDxHit.h:16
uint32_t m_rawDetId
Definition: DeDxHit.h:53
fixed size matrix
bool operator<(const DeDxHit &other) const
Definition: DeDxHit.h:43
float m_charge
Definition: DeDxHit.h:50