LDMX Software
ldmx::TrackDeDxMassEstimate Class Reference

Represents the estimated mass of a particle using tracker dE/dx information. More...

#include <TrackDeDxMassEstimate.h>

Public Member Functions

 TrackDeDxMassEstimate ()
 Class constructor.
 
virtual ~TrackDeDxMassEstimate ()=default
 Class destructor.
 
void Clear ()
 Clear the data in the object.
 
void Print () const
 Print out the object.
 
void setMomentum (float momentum)
 Set the momentum 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 setTrackIndex (int track_index)
 Set the index of the track.
 
void setTrackType (int track_type)
 Set the type 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.
 
int getTrackIndex () const
 Get the index of the track.
 
int getTrackType () const
 Get the type of the track.
 

Private Member Functions

 ClassDef (TrackDeDxMassEstimate, 2)
 The ROOT class definition.
 

Private Attributes

float momentum_ {0.}
 
float theIh_ {0.}
 
float mass_ {0.}
 
int track_index_ {-1}
 
int track_type_ {-1}
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ TrackDeDxMassEstimate()

ldmx::TrackDeDxMassEstimate::TrackDeDxMassEstimate ( )

Class constructor.

Definition at line 6 of file TrackDeDxMassEstimate.cxx.

6{}

Member Function Documentation

◆ Clear()

void ldmx::TrackDeDxMassEstimate::Clear ( )

Clear the data in the object.

Definition at line 8 of file TrackDeDxMassEstimate.cxx.

8 {
9 theIh_ = -1.0;
10 momentum_ = 9999.0;
11 mass_ = 0.;
12 track_index_ = -1;
13 track_type_ = -1;
14}

◆ getIh()

float ldmx::TrackDeDxMassEstimate::getIh ( ) const
inline

Get the Ih of the particle/track.

Returns
The Ih of the particle/track.

Definition at line 94 of file TrackDeDxMassEstimate.h.

94{ return theIh_; }

◆ 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 100 of file TrackDeDxMassEstimate.h.

100{ return mass_; }

◆ getMomentum()

float ldmx::TrackDeDxMassEstimate::getMomentum ( ) const
inline

Get the momentum of the particle/track.

Returns
The momentum of the particle/track.

Definition at line 88 of file TrackDeDxMassEstimate.h.

88{ return momentum_; }

◆ getTrackIndex()

int ldmx::TrackDeDxMassEstimate::getTrackIndex ( ) const
inline

Get the index of the track.

Returns
The index of the track.

Definition at line 106 of file TrackDeDxMassEstimate.h.

106{ 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 112 of file TrackDeDxMassEstimate.h.

112{ return track_type_; }

◆ Print()

void ldmx::TrackDeDxMassEstimate::Print ( ) const

Print out the object.

Definition at line 16 of file TrackDeDxMassEstimate.cxx.

16 {
17 std::cout << "TrackDeDxMassEstimate { "
18 << "Momentum: " << momentum_ << ", "
19 << "Ih: " << theIh_ << ", "
20 << "Mass: " << mass_ << ", "
21 << "Track Index: " << track_index_ << ", "
22 << "Track Type: " << track_type_ << " }" << std::endl;
23}

◆ setIh()

void ldmx::TrackDeDxMassEstimate::setIh ( float theIh)
inline

Set the Ih of the particle/track.

Parameters
theIhThe Ih of the particle/track.

Definition at line 61 of file TrackDeDxMassEstimate.h.

61{ theIh_ = theIh; }

Referenced by recon::TrackDeDxMassEstimator::produce().

◆ setMass()

void ldmx::TrackDeDxMassEstimate::setMass ( float mass)
inline

Set the estimated mass of the particle/track.

Parameters
massThe estimated mass of the particle/track.

Definition at line 67 of file TrackDeDxMassEstimate.h.

67{ mass_ = mass; }

Referenced by recon::TrackDeDxMassEstimator::produce().

◆ setMomentum()

void ldmx::TrackDeDxMassEstimate::setMomentum ( float momentum)
inline

Set the momentum of the particle/track.

Parameters
momentumThe momentum of the particle/track.

Definition at line 55 of file TrackDeDxMassEstimate.h.

55{ momentum_ = momentum; }

Referenced by recon::TrackDeDxMassEstimator::produce().

◆ setTrackIndex()

void ldmx::TrackDeDxMassEstimate::setTrackIndex ( int track_index)
inline

Set the index of the track.

Parameters
track_indexThe index of the track.

Definition at line 73 of file TrackDeDxMassEstimate.h.

73{ track_index_ = track_index; }

Referenced by recon::TrackDeDxMassEstimator::produce().

◆ setTrackType()

void ldmx::TrackDeDxMassEstimate::setTrackType ( int track_type)
inline

Set the type of the track.

Parameters
track_typeThe type of the track. 1: tagger track, 2: recoil track Possibly consider truth with 0 and ECAL with 3

Definition at line 82 of file TrackDeDxMassEstimate.h.

82{ track_type_ = track_type; }

Referenced by recon::TrackDeDxMassEstimator::produce().

Member Data Documentation

◆ mass_

float ldmx::TrackDeDxMassEstimate::mass_ {0.}
private

Definition at line 122 of file TrackDeDxMassEstimate.h.

122{0.};

◆ momentum_

float ldmx::TrackDeDxMassEstimate::momentum_ {0.}
private

Definition at line 116 of file TrackDeDxMassEstimate.h.

116{0.};

◆ theIh_

float ldmx::TrackDeDxMassEstimate::theIh_ {0.}
private

Definition at line 119 of file TrackDeDxMassEstimate.h.

119{0.};

◆ track_index_

int ldmx::TrackDeDxMassEstimate::track_index_ {-1}
private

Definition at line 125 of file TrackDeDxMassEstimate.h.

125{-1};

◆ track_type_

int ldmx::TrackDeDxMassEstimate::track_type_ {-1}
private

Definition at line 128 of file TrackDeDxMassEstimate.h.

128{-1};

The documentation for this class was generated from the following files: