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 setIh(float the_ih) { the_ih_ = the_ih; }
63
68 void setMass(float mass) { mass_ = mass; }
69
74 void setTrackIndex(int track_index) { track_index_ = track_index; }
75
83 void setTrackType(int track_type) { track_type_ = track_type; }
84
89 void setPdgId(int pdg_id) { pdg_id_ = pdg_id; }
90
95 float getMomentum() const { return momentum_; }
96
101 float getIh() const { return the_ih_; }
102
107 float getMass() const { return mass_; }
108
113 int getTrackIndex() const { return track_index_; }
114
119 int getTrackType() const { return track_type_; }
120
125 int getPdgId() const { return pdg_id_; }
126
127 private:
128 /* The momentum of the particle/track */
129 float momentum_{0.};
130
131 /* The Ih of the particle/track */
132 float the_ih_{0.};
133
134 /* The estimated mass of the particle/track */
135 float mass_{0.};
136
137 /* The index of the track */
138 int track_index_{-1};
139
140 /* The type of the track */
141 int track_type_{-1};
142
143 /* PDG ID of the track*/
144 int pdg_id_{0};
145
150};
151} // namespace ldmx
152
153#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.
ClassDef(TrackDeDxMassEstimate, 4)
The ROOT class definition.
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.