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 void Print() const;
50
55 void setMomentum(float momentum) { momentum_ = momentum; }
56
61 void setIh(float theIh) { theIh_ = theIh; }
62
67 void setMass(float mass) { mass_ = mass; }
68
73 void setTrackIndex(int track_index) { track_index_ = track_index; }
74
82 void setTrackType(int track_type) { track_type_ = track_type; }
83
88 float getMomentum() const { return momentum_; }
89
94 float getIh() const { return theIh_; }
95
100 float getMass() const { return mass_; }
101
106 int getTrackIndex() const { return track_index_; }
107
112 int getTrackType() const { return track_type_; }
113
114 private:
115 /* The momentum of the particle/track */
116 float momentum_{0.};
117
118 /* The Ih of the particle/track */
119 float theIh_{0.};
120
121 /* The estimated mass of the particle/track */
122 float mass_{0.};
123
124 /* The index of the track */
125 int track_index_{-1};
126
127 /* The type of the track */
128 int track_type_{-1};
129
134};
135} // namespace ldmx
136
137#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.
ClassDef(TrackDeDxMassEstimate, 2)
The ROOT class definition.
void Clear()
Clear the data in the object.
int getTrackIndex() const
Get the index of the track.
TrackDeDxMassEstimate()
Class constructor.
virtual ~TrackDeDxMassEstimate()=default
Class destructor.
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 setIh(float theIh)
Set the Ih of the particle/track.
void setMass(float mass)
Set the estimated mass of the particle/track.
void Print() const
Print out the object.
void setTrackIndex(int track_index)
Set the index of the track.
float getMomentum() const
Get the momentum of the particle/track.