LDMX Software
TrackDeDxMassEstimate.h
Go to the documentation of this file.
1
8#ifndef RECON_TRACKDEDXMASSESTIMATE_H_
9#define RECON_TRACKDEDXMASSESTIMATE_H_
10
11#include <iostream>
12
13// ROOT
14#include "TObject.h" //For ClassDef
15
16// LDMX
17// #include "Event/Track.h"
18// #include "Event/Measurement.h"
19
20namespace ldmx {
30 public:
35
39 virtual ~TrackDeDxMassEstimate() = default;
40
44 void clear();
45
49 friend std::ostream &operator<<(std::ostream &o,
50 const TrackDeDxMassEstimate &d);
51
56 void setMomentum(float momentum) { momentum_ = momentum; }
57
62 void setNhits(float nhits) { n_hits_ = nhits; }
63
68 void setIh(float the_ih) { the_ih_ = the_ih; }
69
74 void setMass(float mass) { mass_ = mass; }
75
80 void setTrackIndex(int track_index) { track_index_ = track_index; }
81
89 void setTrackType(int track_type) { track_type_ = track_type; }
90
95 void setPdgId(int pdg_id) { pdg_id_ = pdg_id; }
96
101 float getMomentum() const { return momentum_; }
102
107 float getIh() const { return the_ih_; }
108
113 float getMass() const { return mass_; }
114
119 int getTrackIndex() const { return track_index_; }
120
125 int getTrackType() const { return track_type_; }
126
131 int getPdgId() const { return pdg_id_; }
132
133 private:
134 /* The momentum of the particle/track */
135 float momentum_{0.};
136
137 /* The number of hits used in the dEdx calculation */
138 float n_hits_{0.};
139
140 /* The Ih of the particle/track */
141 float the_ih_{0.};
142
143 /* The estimated mass of the particle/track */
144 float mass_{0.};
145
146 /* The index of the track */
147 int track_index_{-1};
148
149 /* The type of the track */
150 int track_type_{-1};
151
152 /* PDG ID of the track*/
153 int pdg_id_{0};
154
159};
160} // namespace ldmx
161
162#endif // RECON_TRACKDEDXMASSESTIMATE_H_
Represents the estimated mass of a particle using tracker dE/dx information.
void setTrackType(int track_type)
Set the type of the track.
float getIh() const
Get the Ih of the particle/track.
void clear()
Clear the data in the object.
int getPdgId() const
Get the PDG ID of the track.
void setPdgId(int pdg_id)
Set the PDG ID of the track.
int getTrackIndex() const
Get the index of the track.
virtual ~TrackDeDxMassEstimate()=default
Class destructor.
friend std::ostream & operator<<(std::ostream &o, const TrackDeDxMassEstimate &d)
Print out the object.
void setIh(float the_ih)
Set the Ih of the particle/track.
TrackDeDxMassEstimate()=default
Class constructor.
void setMomentum(float momentum)
Set the momentum of the particle/track.
int getTrackType() const
Get the type of the track.
float getMass() const
Get the estimated mass of the particle/track.
void setNhits(float nhits)
Set the number of hits used in the dEdx calculation.
void setMass(float mass)
Set the estimated mass of the particle/track.
void setTrackIndex(int track_index)
Set the index of the track.
float getMomentum() const
Get the momentum of the particle/track.
ClassDef(TrackDeDxMassEstimate, 5)
The ROOT class definition.