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 ()=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 setIh (float the_ih)
 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.
 
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.
 
int getTrackIndex () const
 Get the index of the track.
 
int getTrackType () const
 Get the type of the track.
 
int getPdgId () const
 Get the PDG ID of the track.
 

Private Member Functions

 ClassDef (TrackDeDxMassEstimate, 4)
 The ROOT class definition.
 

Private Attributes

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

Friends

std::ostream & operator<< (std::ostream &o, const TrackDeDxMassEstimate &d)
 Print out the object.
 

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.

Member Function Documentation

◆ 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 track_index_ = -1;
12 track_type_ = -1;
13 pdg_id_ = 0;
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 101 of file TrackDeDxMassEstimate.h.

101{ return the_ih_; }

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

107{ 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 95 of file TrackDeDxMassEstimate.h.

95{ return momentum_; }

◆ getPdgId()

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

Get the PDG ID of the track.

Returns
The DPG ID of the track.

Definition at line 125 of file TrackDeDxMassEstimate.h.

125{ return pdg_id_; }

◆ getTrackIndex()

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

Get the index of the track.

Returns
The index of the track.

Definition at line 113 of file TrackDeDxMassEstimate.h.

113{ 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 119 of file TrackDeDxMassEstimate.h.

119{ return track_type_; }

◆ setIh()

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

Set the Ih of the particle/track.

Parameters
the_ihThe Ih of the particle/track.

Definition at line 62 of file TrackDeDxMassEstimate.h.

62{ the_ih_ = the_ih; }

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

68{ 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 56 of file TrackDeDxMassEstimate.h.

56{ momentum_ = momentum; }

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

◆ setPdgId()

void ldmx::TrackDeDxMassEstimate::setPdgId ( int pdg_id)
inline

Set the PDG ID of the track.

Parameters
pdg_idThe PDG ID of the track.

Definition at line 89 of file TrackDeDxMassEstimate.h.

89{ pdg_id_ = pdg_id; }

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

74{ 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 83 of file TrackDeDxMassEstimate.h.

83{ track_type_ = track_type; }

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

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream & o,
const TrackDeDxMassEstimate & d )
friend

Print out the object.

Definition at line 16 of file TrackDeDxMassEstimate.cxx.

16 {
17 return o << "TrackDeDxMassEstimate { " << "Momentum: " << c.momentum_ << ", "
18 << "Ih: " << c.the_ih_ << ", " << "Mass: " << c.mass_ << ", "
19 << "Track Index: " << c.track_index_ << ", "
20 << "Track Type: " << c.track_type_ << " }" << "PDG ID: " << c.pdg_id_
21 << " }";
22}

Member Data Documentation

◆ mass_

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

Definition at line 135 of file TrackDeDxMassEstimate.h.

135{0.};

◆ momentum_

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

Definition at line 129 of file TrackDeDxMassEstimate.h.

129{0.};

◆ pdg_id_

int ldmx::TrackDeDxMassEstimate::pdg_id_ {0}
private

Definition at line 144 of file TrackDeDxMassEstimate.h.

144{0};

◆ the_ih_

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

Definition at line 132 of file TrackDeDxMassEstimate.h.

132{0.};

◆ track_index_

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

Definition at line 138 of file TrackDeDxMassEstimate.h.

138{-1};

◆ track_type_

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

Definition at line 141 of file TrackDeDxMassEstimate.h.

141{-1};

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