Represents the estimated mass of a particle using tracker dE/dx information.
More...
#include <TrackDeDxMassEstimate.h>
|
|
| TrackDeDxMassEstimate ()=default |
| | Class constructor.
|
| |
|
virtual | ~TrackDeDxMassEstimate ()=default |
| | Class destructor.
|
| |
| void | clear () |
| | Clear the data in the object.
|
| |
| void | setMomentum (float momentum) |
| | Set the momentum of the particle/track.
|
| |
| void | setNhits (int nhits) |
| | Set the number of hits used in the dEdx calculation.
|
| |
| void | setIh (float the_ih) |
| | Set the Ih of the particle/track.
|
| |
| void | setMass (float mass) |
| | Set the estimated mass of the particle/track.
|
| |
| void | setMassSquared (float mass_squared) |
| | Set the estimated mass squared of the particle/track.
|
| |
| void | setTrackIndex (int track_index) |
| | Set the index of the track.
|
| |
| void | setTrackType (int track_type) |
| | Set the type of the track.
|
| |
| void | setPdgId (int pdg_id) |
| | Set the PDG ID of the track.
|
| |
| float | getMomentum () const |
| | Get the momentum of the particle/track.
|
| |
| float | getIh () const |
| | Get the Ih of the particle/track.
|
| |
| float | getMass () const |
| | Get the estimated mass of the particle/track.
|
| |
| float | getMassSquared () const |
| | Get the estimated mass squared of the particle/track.
|
| |
| int | getTrackIndex () const |
| | Get the index of the track.
|
| |
| int | getTrackType () const |
| | Get the type of the track.
|
| |
| int | getNhits () const |
| | Get the number of hits on the track.
|
| |
| int | getPdgId () const |
| | Get the PDG ID of the track.
|
| |
Represents the estimated mass of a particle using tracker dE/dx information.
- Note
- This class represents the estimated mass information from a tracker including mass, track index_, and the track type
Definition at line 29 of file TrackDeDxMassEstimate.h.
◆ clear()
| void ldmx::TrackDeDxMassEstimate::clear |
( |
| ) |
|
Clear the data in the object.
Definition at line 7 of file TrackDeDxMassEstimate.cxx.
7 {
8 the_ih_ = -1.0;
9 momentum_ = 9999.0;
10 mass_ = 0.;
11 mass_squared_ = 0.;
12 track_index_ = -1;
13 track_type_ = -1;
14 pdg_id_ = 0;
15}
◆ getIh()
| float ldmx::TrackDeDxMassEstimate::getIh |
( |
| ) |
const |
|
inline |
◆ getMass()
| float ldmx::TrackDeDxMassEstimate::getMass |
( |
| ) |
const |
|
inline |
Get the estimated mass of the particle/track.
- Returns
- The estimated mass of the particle/track.
Definition at line 119 of file TrackDeDxMassEstimate.h.
◆ getMassSquared()
| float ldmx::TrackDeDxMassEstimate::getMassSquared |
( |
| ) |
const |
|
inline |
Get the estimated mass squared of the particle/track.
- Returns
- The estimated mass squared of the particle/track.
Definition at line 125 of file TrackDeDxMassEstimate.h.
125{ return mass_squared_; }
◆ getMomentum()
| float ldmx::TrackDeDxMassEstimate::getMomentum |
( |
| ) |
const |
|
inline |
Get the momentum of the particle/track.
- Returns
- The momentum of the particle/track.
Definition at line 107 of file TrackDeDxMassEstimate.h.
◆ getNhits()
| int ldmx::TrackDeDxMassEstimate::getNhits |
( |
| ) |
const |
|
inline |
Get the number of hits on the track.
- Returns
- The number of hits on the track.
Definition at line 143 of file TrackDeDxMassEstimate.h.
◆ getPdgId()
| int ldmx::TrackDeDxMassEstimate::getPdgId |
( |
| ) |
const |
|
inline |
◆ getTrackIndex()
| int ldmx::TrackDeDxMassEstimate::getTrackIndex |
( |
| ) |
const |
|
inline |
Get the index of the track.
- Returns
- The index of the track.
Definition at line 131 of file TrackDeDxMassEstimate.h.
131{ return track_index_; }
◆ getTrackType()
| int ldmx::TrackDeDxMassEstimate::getTrackType |
( |
| ) |
const |
|
inline |
Get the type of the track.
- Returns
- The type of the track.
Definition at line 137 of file TrackDeDxMassEstimate.h.
137{ return track_type_; }
◆ setIh()
| void ldmx::TrackDeDxMassEstimate::setIh |
( |
float | the_ih | ) |
|
|
inline |
◆ setMass()
| void ldmx::TrackDeDxMassEstimate::setMass |
( |
float | mass | ) |
|
|
inline |
◆ setMassSquared()
| void ldmx::TrackDeDxMassEstimate::setMassSquared |
( |
float | mass_squared | ) |
|
|
inline |
◆ setMomentum()
| void ldmx::TrackDeDxMassEstimate::setMomentum |
( |
float | momentum | ) |
|
|
inline |
◆ setNhits()
| void ldmx::TrackDeDxMassEstimate::setNhits |
( |
int | nhits | ) |
|
|
inline |
◆ setPdgId()
| void ldmx::TrackDeDxMassEstimate::setPdgId |
( |
int | pdg_id | ) |
|
|
inline |
◆ setTrackIndex()
| void ldmx::TrackDeDxMassEstimate::setTrackIndex |
( |
int | track_index | ) |
|
|
inline |
◆ setTrackType()
| void ldmx::TrackDeDxMassEstimate::setTrackType |
( |
int | track_type | ) |
|
|
inline |
◆ operator<<
Print out the object.
Definition at line 17 of file TrackDeDxMassEstimate.cxx.
17 {
18 return o << "TrackDeDxMassEstimate { " << "Momentum: " << c.momentum_ << ", "
19 << "Ih: " << c.the_ih_ << ", " << "Mass: " << c.mass_ << ", "
20 << "Mass squared: " << c.mass_squared_ << ", "
21 << "Track Index: " << c.track_index_ << ", "
22 << "Track Type: " << c.track_type_ << " }" << "PDG ID: " << c.pdg_id_
23 << " }";
24}
◆ mass_
| float ldmx::TrackDeDxMassEstimate::mass_ {0.} |
|
private |
◆ mass_squared_
| float ldmx::TrackDeDxMassEstimate::mass_squared_ {0.} |
|
private |
◆ momentum_
| float ldmx::TrackDeDxMassEstimate::momentum_ {0.} |
|
private |
◆ n_hits_
| int ldmx::TrackDeDxMassEstimate::n_hits_ {0} |
|
private |
◆ pdg_id_
| int ldmx::TrackDeDxMassEstimate::pdg_id_ {0} |
|
private |
◆ the_ih_
| float ldmx::TrackDeDxMassEstimate::the_ih_ {0.} |
|
private |
◆ track_index_
| int ldmx::TrackDeDxMassEstimate::track_index_ {-1} |
|
private |
◆ track_type_
| int ldmx::TrackDeDxMassEstimate::track_type_ {-1} |
|
private |
The documentation for this class was generated from the following files: