LDMX Software
ldmx::PFCandidate Class Reference

Represents a reconstructed particle. More...

#include <PFCandidate.h>

Public Member Functions

bool operator< (const PFCandidate &rhs) const
 
void setPID (int x_)
 
void setPdgId (int x_)
 
void setCharge (int x_)
 
void setDeDxMassSquared (float x_)
 
void setDeDxIh (float x_)
 
void setDeDxNhits (int x_)
 
void setMass (float x_)
 
void setEnergy (float x_)
 
void setTargetPositionXYZ (float x_, float y_, float z_)
 
void setEcalPositionXYZ (float x_, float y_, float z_)
 
void setHcalPositionXYZ (float x_, float y_, float z_)
 
void setTrackPxPyPz (float x_, float y_, float z_)
 
void setTrackIndex (int x)
 
void setEcalIndex (int x)
 
void setHcalIndex (int x)
 
void setEcalEnergy (float x_)
 
void clearEcalHits ()
 
void clearHcalHits ()
 
void addEcalHits (const std::vector< unsigned int > &ids, const std::vector< float > &energies)
 
void addHcalHits (const std::vector< unsigned int > &ids, const std::vector< float > &energies)
 
void setEcalDepth (float x_)
 
void setEcalWidth (float x_)
 
void setEcalRawEnergy (float x_)
 
void setEcalClusterXYZ (float x_, float y_, float z_)
 
void setEcalClusterEXYZ (float x_, float y_, float z_)
 
void setEcalClusterDXDZ (float x_)
 
void setEcalClusterDYDZ (float x_)
 
void setEcalClusterEDXDZ (float x_)
 
void setEcalClusterEDYDZ (float x_)
 
void setHcalEnergy (float x_)
 
void setHcalRawEnergy (float x_)
 
void setHcalClusterXYZ (float x_, float y_, float z_)
 
void setHcalClusterEXYZ (float x_, float y_, float z_)
 
void setHcalClusterDXDZ (float x_)
 
void setHcalClusterDYDZ (float x_)
 
void setHcalClusterEDXDZ (float x_)
 
void setHcalClusterEDYDZ (float x_)
 
void setTruthEcalXYZ (double x_, double y_, double z_)
 
void setTruthPxPyPz (double x_, double y_, double z_)
 
void setTruthMass (double x_)
 
void setTruthEnergy (double x_)
 
void setTruthPdgId (int x_)
 
void setTruthTrackId (int x_)
 
int getPID () const
 
int getPdgId () const
 
int getCharge () const
 
float getDeDxMassSquared () const
 
float getDeDxIh () const
 
int getDeDxNhits () const
 
float getMass () const
 
float getEnergy () const
 
std::vector< float > getTargetPositionXYZ () const
 
std::vector< float > getEcalPositionXYZ () const
 
std::vector< float > getHcalPositionXYZ () const
 
int getTrackIndex () const
 
int getEcalIndex () const
 
int getHcalIndex () const
 
std::vector< float > getTrackPxPyPz () const
 
float getEcalEnergy () const
 
const std::vector< unsigned int > & getEcalHitIds () const
 
const std::vector< float > & getEcalHitEnergies () const
 
const std::vector< unsigned int > & getHcalHitIds () const
 
const std::vector< float > & getHcalHitEnergies () const
 
float getEcalDepth () const
 
float getEcalWidth () const
 
float getEcalRawEnergy () const
 
std::vector< float > getEcalClusterXYZ () const
 
std::vector< float > getEcalClusterEXYZ () const
 
float getEcalClusterDXDZ () const
 
float getEcalClusterDYDZ () const
 
float getEcalClusterEDXDZ () const
 
float getEcalClusterEDYDZ () const
 
float getHcalEnergy () const
 
float getHcalRawEnergy () const
 
std::vector< float > getHcalClusterXYZ () const
 
std::vector< float > getHcalClusterEXYZ () const
 
float getHcalClusterDXDZ () const
 
float getHcalClusterDYDZ () const
 
float getHcalClusterEDXDZ () const
 
float getHcalClusterEDYDZ () const
 
std::vector< double > const getTruthEcalXYZ ()
 
std::vector< double > const getTruthPxPyPz ()
 
double getTruthMass ()
 
double getTruthEnergy ()
 
int getTruthPdgId ()
 
int getTruthTrackId () const
 

Private Member Functions

 ClassDef (PFCandidate, 4)
 

Static Private Member Functions

static void addHits (std::vector< unsigned int > &ids, std::vector< float > &es, const std::vector< unsigned int > &new_ids, const std::vector< float > &new_es)
 

Private Attributes

int pid_ {0}
 
int pdg_id_ {0}
 
int charge_ {0}
 
float dedx_mass2_ {0}
 
float dedx_ih_ {0}
 
int dedx_nhits_ {0}
 
float mass_ {0}
 
float energy_ {0}
 
float pos_targ_x_ {0}
 
float pos_targ_y_ {0}
 
float pos_targ_z_ {0}
 
float pos_ecal_x_ {0}
 
float pos_ecal_y_ {0}
 
float pos_ecal_z_ {0}
 
float pos_hcal_x_ {0}
 
float pos_hcal_y_ {0}
 
float pos_hcal_z_ {0}
 
float track_px_ {0}
 
float track_py_ {0}
 
float track_pz_ {0}
 
float ecal_energy_ {0}
 
float ecal_depth_ {0}
 
std::vector< unsigned int > ecal_hit_ids_
 
std::vector< float > ecal_hit_energies_
 
std::vector< unsigned int > hcal_hit_ids_
 
std::vector< float > hcal_hit_energies_
 
float ecal_width_ {0}
 
float ecal_raw_energy_ {0}
 
float ecal_cluster_x_ {0}
 
float ecal_cluster_y_ {0}
 
float ecal_cluster_z_ {0}
 
float ecal_cluster_ex_ {0}
 
float ecal_cluster_ey_ {0}
 
float ecal_cluster_ez_ {0}
 
float ecal_cluster_dxdz_ {0}
 
float ecal_cluster_dydz_ {0}
 
float ecal_cluster_edxdz_ {0}
 
float ecal_cluster_edydz_ {0}
 
float hcal_energy_ {0}
 
float hcal_raw_energy_ {0}
 
float hcal_cluster_x_ {0}
 
float hcal_cluster_y_ {0}
 
float hcal_cluster_z_ {0}
 
float hcal_cluster_ex_ {0}
 
float hcal_cluster_ey_ {0}
 
float hcal_cluster_ez_ {0}
 
float hcal_cluster_dxdz_ {0}
 
float hcal_cluster_dydz_ {0}
 
float hcal_cluster_edxdz_ {0}
 
float hcal_cluster_edydz_ {0}
 
double truth_ecal_x_ {0}
 
double truth_ecal_y_ {0}
 
double truth_ecal_z_ {0}
 
double truth_px_ {0}
 
double truth_py_ {0}
 
double truth_pz_ {0}
 
double truth_mass_ {0}
 
double truth_energy_ {0}
 
int truth_pdg_id_ {0}
 
int truth_track_id_ {-1}
 
int track_idx_ {-1}
 
int ecal_idx_ {-1}
 
int hcal_idx_ {-1}
 

Friends

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

Detailed Description

Represents a reconstructed particle.

Definition at line 21 of file PFCandidate.h.

Constructor & Destructor Documentation

◆ ~PFCandidate()

virtual ldmx::PFCandidate::~PFCandidate ( )
inlinevirtual

Definition at line 24 of file PFCandidate.h.

24{}

Member Function Documentation

◆ addEcalHits()

void ldmx::PFCandidate::addEcalHits ( const std::vector< unsigned int > & ids,
const std::vector< float > & energies )
inline

Definition at line 85 of file PFCandidate.h.

86 {
87 addHits(ecal_hit_ids_, ecal_hit_energies_, ids, energies);
88 }

◆ addHcalHits()

void ldmx::PFCandidate::addHcalHits ( const std::vector< unsigned int > & ids,
const std::vector< float > & energies )
inline

Definition at line 89 of file PFCandidate.h.

90 {
91 addHits(hcal_hit_ids_, hcal_hit_energies_, ids, energies);
92 }

◆ addHits()

void ldmx::PFCandidate::addHits ( std::vector< unsigned int > & ids,
std::vector< float > & es,
const std::vector< unsigned int > & new_ids,
const std::vector< float > & new_es )
staticprivate

Definition at line 10 of file PFCandidate.cxx.

13 {
14 for (size_t k = 0; k < new_ids.size(); k++) {
15 float e = k < new_es.size() ? new_es[k] : 0.f;
16 auto it = std::find(ids.begin(), ids.end(), new_ids[k]);
17 if (it == ids.end()) {
18 ids.push_back(new_ids[k]);
19 es.push_back(e);
20 } else {
21 es[it - ids.begin()] += e;
22 }
23 }
24}

◆ clearEcalHits()

void ldmx::PFCandidate::clearEcalHits ( )
inline

Definition at line 77 of file PFCandidate.h.

77 {
78 ecal_hit_ids_.clear();
79 ecal_hit_energies_.clear();
80 }

◆ clearHcalHits()

void ldmx::PFCandidate::clearHcalHits ( )
inline

Definition at line 81 of file PFCandidate.h.

81 {
82 hcal_hit_ids_.clear();
83 hcal_hit_energies_.clear();
84 }

◆ getCharge()

int ldmx::PFCandidate::getCharge ( ) const
inline

Definition at line 150 of file PFCandidate.h.

150{ return charge_; }

◆ getDeDxIh()

float ldmx::PFCandidate::getDeDxIh ( ) const
inline

Definition at line 152 of file PFCandidate.h.

152{ return dedx_ih_; }

◆ getDeDxMassSquared()

float ldmx::PFCandidate::getDeDxMassSquared ( ) const
inline

Definition at line 151 of file PFCandidate.h.

151{ return dedx_mass2_; }

◆ getDeDxNhits()

int ldmx::PFCandidate::getDeDxNhits ( ) const
inline

Definition at line 153 of file PFCandidate.h.

153{ return dedx_nhits_; }

◆ getEcalClusterDXDZ()

float ldmx::PFCandidate::getEcalClusterDXDZ ( ) const
inline

Definition at line 197 of file PFCandidate.h.

197{ return ecal_cluster_dxdz_; }

◆ getEcalClusterDYDZ()

float ldmx::PFCandidate::getEcalClusterDYDZ ( ) const
inline

Definition at line 198 of file PFCandidate.h.

198{ return ecal_cluster_dydz_; }

◆ getEcalClusterEDXDZ()

float ldmx::PFCandidate::getEcalClusterEDXDZ ( ) const
inline

Definition at line 199 of file PFCandidate.h.

199{ return ecal_cluster_edxdz_; }

◆ getEcalClusterEDYDZ()

float ldmx::PFCandidate::getEcalClusterEDYDZ ( ) const
inline

Definition at line 200 of file PFCandidate.h.

200{ return ecal_cluster_edydz_; }

◆ getEcalClusterEXYZ()

std::vector< float > ldmx::PFCandidate::getEcalClusterEXYZ ( ) const
inline

Definition at line 194 of file PFCandidate.h.

194 {
195 return {ecal_cluster_ex_, ecal_cluster_ey_, ecal_cluster_ez_};
196 }

◆ getEcalClusterXYZ()

std::vector< float > ldmx::PFCandidate::getEcalClusterXYZ ( ) const
inline

Definition at line 191 of file PFCandidate.h.

191 {
192 return {ecal_cluster_x_, ecal_cluster_y_, ecal_cluster_z_};
193 }

◆ getEcalDepth()

float ldmx::PFCandidate::getEcalDepth ( ) const
inline

Definition at line 188 of file PFCandidate.h.

188{ return ecal_depth_; }

◆ getEcalEnergy()

float ldmx::PFCandidate::getEcalEnergy ( ) const
inline

Definition at line 175 of file PFCandidate.h.

175{ return ecal_energy_; }

◆ getEcalHitEnergies()

const std::vector< float > & ldmx::PFCandidate::getEcalHitEnergies ( ) const
inline

Definition at line 179 of file PFCandidate.h.

179 {
180 return ecal_hit_energies_;
181 }

◆ getEcalHitIds()

const std::vector< unsigned int > & ldmx::PFCandidate::getEcalHitIds ( ) const
inline

Definition at line 176 of file PFCandidate.h.

176 {
177 return ecal_hit_ids_;
178 }

◆ getEcalIndex()

int ldmx::PFCandidate::getEcalIndex ( ) const
inline

Definition at line 168 of file PFCandidate.h.

168{ return ecal_idx_; }

◆ getEcalPositionXYZ()

std::vector< float > ldmx::PFCandidate::getEcalPositionXYZ ( ) const
inline

Definition at line 160 of file PFCandidate.h.

160 {
161 return {pos_ecal_x_, pos_ecal_y_, pos_ecal_z_};
162 }

◆ getEcalRawEnergy()

float ldmx::PFCandidate::getEcalRawEnergy ( ) const
inline

Definition at line 190 of file PFCandidate.h.

190{ return ecal_raw_energy_; }

◆ getEcalWidth()

float ldmx::PFCandidate::getEcalWidth ( ) const
inline

Definition at line 189 of file PFCandidate.h.

189{ return ecal_width_; }

◆ getEnergy()

float ldmx::PFCandidate::getEnergy ( ) const
inline

Definition at line 155 of file PFCandidate.h.

155{ return energy_; }

◆ getHcalClusterDXDZ()

float ldmx::PFCandidate::getHcalClusterDXDZ ( ) const
inline

Definition at line 210 of file PFCandidate.h.

210{ return hcal_cluster_dxdz_; }

◆ getHcalClusterDYDZ()

float ldmx::PFCandidate::getHcalClusterDYDZ ( ) const
inline

Definition at line 211 of file PFCandidate.h.

211{ return hcal_cluster_dydz_; }

◆ getHcalClusterEDXDZ()

float ldmx::PFCandidate::getHcalClusterEDXDZ ( ) const
inline

Definition at line 212 of file PFCandidate.h.

212{ return hcal_cluster_edxdz_; }

◆ getHcalClusterEDYDZ()

float ldmx::PFCandidate::getHcalClusterEDYDZ ( ) const
inline

Definition at line 213 of file PFCandidate.h.

213{ return hcal_cluster_edydz_; }

◆ getHcalClusterEXYZ()

std::vector< float > ldmx::PFCandidate::getHcalClusterEXYZ ( ) const
inline

Definition at line 207 of file PFCandidate.h.

207 {
208 return {hcal_cluster_ex_, hcal_cluster_ey_, hcal_cluster_ez_};
209 }

◆ getHcalClusterXYZ()

std::vector< float > ldmx::PFCandidate::getHcalClusterXYZ ( ) const
inline

Definition at line 204 of file PFCandidate.h.

204 {
205 return {hcal_cluster_x_, hcal_cluster_y_, hcal_cluster_z_};
206 }

◆ getHcalEnergy()

float ldmx::PFCandidate::getHcalEnergy ( ) const
inline

Definition at line 202 of file PFCandidate.h.

202{ return hcal_energy_; }

◆ getHcalHitEnergies()

const std::vector< float > & ldmx::PFCandidate::getHcalHitEnergies ( ) const
inline

Definition at line 185 of file PFCandidate.h.

185 {
186 return hcal_hit_energies_;
187 }

◆ getHcalHitIds()

const std::vector< unsigned int > & ldmx::PFCandidate::getHcalHitIds ( ) const
inline

Definition at line 182 of file PFCandidate.h.

182 {
183 return hcal_hit_ids_;
184 }

◆ getHcalIndex()

int ldmx::PFCandidate::getHcalIndex ( ) const
inline

Definition at line 169 of file PFCandidate.h.

169{ return hcal_idx_; }

◆ getHcalPositionXYZ()

std::vector< float > ldmx::PFCandidate::getHcalPositionXYZ ( ) const
inline

Definition at line 163 of file PFCandidate.h.

163 {
164 return {pos_hcal_x_, pos_hcal_y_, pos_hcal_z_};
165 }

◆ getHcalRawEnergy()

float ldmx::PFCandidate::getHcalRawEnergy ( ) const
inline

Definition at line 203 of file PFCandidate.h.

203{ return hcal_raw_energy_; }

◆ getMass()

float ldmx::PFCandidate::getMass ( ) const
inline

Definition at line 154 of file PFCandidate.h.

154{ return mass_; }

◆ getPdgId()

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

Definition at line 149 of file PFCandidate.h.

149{ return pdg_id_; }

◆ getPID()

int ldmx::PFCandidate::getPID ( ) const
inline

Definition at line 148 of file PFCandidate.h.

148{ return pid_; }

◆ getTargetPositionXYZ()

std::vector< float > ldmx::PFCandidate::getTargetPositionXYZ ( ) const
inline

Definition at line 157 of file PFCandidate.h.

157 {
158 return {pos_targ_x_, pos_targ_y_, pos_targ_z_};
159 }

◆ getTrackIndex()

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

Definition at line 167 of file PFCandidate.h.

167{ return track_idx_; }

◆ getTrackPxPyPz()

std::vector< float > ldmx::PFCandidate::getTrackPxPyPz ( ) const
inline

Definition at line 171 of file PFCandidate.h.

171 {
172 return {track_px_, track_py_, track_pz_};
173 }

◆ getTruthEcalXYZ()

std::vector< double > const ldmx::PFCandidate::getTruthEcalXYZ ( )
inline

Definition at line 215 of file PFCandidate.h.

215 {
216 return {truth_ecal_x_, truth_ecal_y_, truth_ecal_z_};
217 }

◆ getTruthEnergy()

double ldmx::PFCandidate::getTruthEnergy ( )
inline

Definition at line 222 of file PFCandidate.h.

222{ return truth_energy_; }

◆ getTruthMass()

double ldmx::PFCandidate::getTruthMass ( )
inline

Definition at line 221 of file PFCandidate.h.

221{ return truth_mass_; }

◆ getTruthPdgId()

int ldmx::PFCandidate::getTruthPdgId ( )
inline

Definition at line 223 of file PFCandidate.h.

223{ return truth_pdg_id_; }

◆ getTruthPxPyPz()

std::vector< double > const ldmx::PFCandidate::getTruthPxPyPz ( )
inline

Definition at line 218 of file PFCandidate.h.

218 {
219 return {truth_px_, truth_py_, truth_pz_};
220 }

◆ getTruthTrackId()

int ldmx::PFCandidate::getTruthTrackId ( ) const
inline

Definition at line 224 of file PFCandidate.h.

224{ return truth_track_id_; }

◆ operator<()

bool ldmx::PFCandidate::operator< ( const PFCandidate & rhs) const
inline

Definition at line 28 of file PFCandidate.h.

28 {
29 return this->getEnergy() < rhs.getEnergy();
30 }

◆ setCharge()

void ldmx::PFCandidate::setCharge ( int x_)
inline

Definition at line 40 of file PFCandidate.h.

40{ charge_ = x_; }

◆ setDeDxIh()

void ldmx::PFCandidate::setDeDxIh ( float x_)
inline

Definition at line 43 of file PFCandidate.h.

43{ dedx_ih_ = x_; }

◆ setDeDxMassSquared()

void ldmx::PFCandidate::setDeDxMassSquared ( float x_)
inline

Definition at line 42 of file PFCandidate.h.

42{ dedx_mass2_ = x_; }

◆ setDeDxNhits()

void ldmx::PFCandidate::setDeDxNhits ( int x_)
inline

Definition at line 44 of file PFCandidate.h.

44{ dedx_nhits_ = x_; }

◆ setEcalClusterDXDZ()

void ldmx::PFCandidate::setEcalClusterDXDZ ( float x_)
inline

Definition at line 108 of file PFCandidate.h.

108{ ecal_cluster_dxdz_ = x_; }

◆ setEcalClusterDYDZ()

void ldmx::PFCandidate::setEcalClusterDYDZ ( float x_)
inline

Definition at line 109 of file PFCandidate.h.

109{ ecal_cluster_dydz_ = x_; }

◆ setEcalClusterEDXDZ()

void ldmx::PFCandidate::setEcalClusterEDXDZ ( float x_)
inline

Definition at line 110 of file PFCandidate.h.

110{ ecal_cluster_edxdz_ = x_; }

◆ setEcalClusterEDYDZ()

void ldmx::PFCandidate::setEcalClusterEDYDZ ( float x_)
inline

Definition at line 111 of file PFCandidate.h.

111{ ecal_cluster_edydz_ = x_; }

◆ setEcalClusterEXYZ()

void ldmx::PFCandidate::setEcalClusterEXYZ ( float x_,
float y_,
float z_ )
inline

Definition at line 103 of file PFCandidate.h.

103 {
104 ecal_cluster_ex_ = x_;
105 ecal_cluster_ey_ = y_;
106 ecal_cluster_ez_ = z_;
107 }

◆ setEcalClusterXYZ()

void ldmx::PFCandidate::setEcalClusterXYZ ( float x_,
float y_,
float z_ )
inline

Definition at line 98 of file PFCandidate.h.

98 {
99 ecal_cluster_x_ = x_;
100 ecal_cluster_y_ = y_;
101 ecal_cluster_z_ = z_;
102 }

◆ setEcalDepth()

void ldmx::PFCandidate::setEcalDepth ( float x_)
inline

Definition at line 94 of file PFCandidate.h.

94{ ecal_depth_ = x_; }

◆ setEcalEnergy()

void ldmx::PFCandidate::setEcalEnergy ( float x_)
inline

Definition at line 74 of file PFCandidate.h.

74{ ecal_energy_ = x_; }

◆ setEcalIndex()

void ldmx::PFCandidate::setEcalIndex ( int x)
inline

Definition at line 71 of file PFCandidate.h.

71{ ecal_idx_ = x; }

◆ setEcalPositionXYZ()

void ldmx::PFCandidate::setEcalPositionXYZ ( float x_,
float y_,
float z_ )
inline

Definition at line 54 of file PFCandidate.h.

54 {
55 pos_ecal_x_ = x_;
56 pos_ecal_y_ = y_;
57 pos_ecal_z_ = z_;
58 }

◆ setEcalRawEnergy()

void ldmx::PFCandidate::setEcalRawEnergy ( float x_)
inline

Definition at line 97 of file PFCandidate.h.

97{ ecal_raw_energy_ = x_; }

◆ setEcalWidth()

void ldmx::PFCandidate::setEcalWidth ( float x_)
inline

Definition at line 96 of file PFCandidate.h.

96{ ecal_width_ = x_; }

◆ setEnergy()

void ldmx::PFCandidate::setEnergy ( float x_)
inline

Definition at line 47 of file PFCandidate.h.

47{ energy_ = x_; }

◆ setHcalClusterDXDZ()

void ldmx::PFCandidate::setHcalClusterDXDZ ( float x_)
inline

Definition at line 125 of file PFCandidate.h.

125{ hcal_cluster_dxdz_ = x_; }

◆ setHcalClusterDYDZ()

void ldmx::PFCandidate::setHcalClusterDYDZ ( float x_)
inline

Definition at line 126 of file PFCandidate.h.

126{ hcal_cluster_dydz_ = x_; }

◆ setHcalClusterEDXDZ()

void ldmx::PFCandidate::setHcalClusterEDXDZ ( float x_)
inline

Definition at line 127 of file PFCandidate.h.

127{ hcal_cluster_edxdz_ = x_; }

◆ setHcalClusterEDYDZ()

void ldmx::PFCandidate::setHcalClusterEDYDZ ( float x_)
inline

Definition at line 128 of file PFCandidate.h.

128{ hcal_cluster_edydz_ = x_; }

◆ setHcalClusterEXYZ()

void ldmx::PFCandidate::setHcalClusterEXYZ ( float x_,
float y_,
float z_ )
inline

Definition at line 120 of file PFCandidate.h.

120 {
121 hcal_cluster_ex_ = x_;
122 hcal_cluster_ey_ = y_;
123 hcal_cluster_ez_ = z_;
124 }

◆ setHcalClusterXYZ()

void ldmx::PFCandidate::setHcalClusterXYZ ( float x_,
float y_,
float z_ )
inline

Definition at line 115 of file PFCandidate.h.

115 {
116 hcal_cluster_x_ = x_;
117 hcal_cluster_y_ = y_;
118 hcal_cluster_z_ = z_;
119 }

◆ setHcalEnergy()

void ldmx::PFCandidate::setHcalEnergy ( float x_)
inline

Definition at line 113 of file PFCandidate.h.

113{ hcal_energy_ = x_; }

◆ setHcalIndex()

void ldmx::PFCandidate::setHcalIndex ( int x)
inline

Definition at line 72 of file PFCandidate.h.

72{ hcal_idx_ = x; }

◆ setHcalPositionXYZ()

void ldmx::PFCandidate::setHcalPositionXYZ ( float x_,
float y_,
float z_ )
inline

Definition at line 59 of file PFCandidate.h.

59 {
60 pos_hcal_x_ = x_;
61 pos_hcal_y_ = y_;
62 pos_hcal_z_ = z_;
63 }

◆ setHcalRawEnergy()

void ldmx::PFCandidate::setHcalRawEnergy ( float x_)
inline

Definition at line 114 of file PFCandidate.h.

114{ hcal_raw_energy_ = x_; }

◆ setMass()

void ldmx::PFCandidate::setMass ( float x_)
inline

Definition at line 46 of file PFCandidate.h.

46{ mass_ = x_; }

◆ setPdgId()

void ldmx::PFCandidate::setPdgId ( int x_)
inline

Definition at line 39 of file PFCandidate.h.

39{ pdg_id_ = x_; }

◆ setPID()

void ldmx::PFCandidate::setPID ( int x_)
inline

Definition at line 36 of file PFCandidate.h.

36{ pid_ = x_; }

◆ setTargetPositionXYZ()

void ldmx::PFCandidate::setTargetPositionXYZ ( float x_,
float y_,
float z_ )
inline

Definition at line 49 of file PFCandidate.h.

49 {
50 pos_targ_x_ = x_;
51 pos_targ_y_ = y_;
52 pos_targ_z_ = z_;
53 }

◆ setTrackIndex()

void ldmx::PFCandidate::setTrackIndex ( int x)
inline

Definition at line 70 of file PFCandidate.h.

70{ track_idx_ = x; }

◆ setTrackPxPyPz()

void ldmx::PFCandidate::setTrackPxPyPz ( float x_,
float y_,
float z_ )
inline

Definition at line 64 of file PFCandidate.h.

64 {
65 track_px_ = x_;
66 track_py_ = y_;
67 track_pz_ = z_;
68 }

◆ setTruthEcalXYZ()

void ldmx::PFCandidate::setTruthEcalXYZ ( double x_,
double y_,
double z_ )
inline

Definition at line 130 of file PFCandidate.h.

130 {
131 truth_ecal_x_ = x_;
132 truth_ecal_y_ = y_;
133 truth_ecal_z_ = z_;
134 }

◆ setTruthEnergy()

void ldmx::PFCandidate::setTruthEnergy ( double x_)
inline

Definition at line 141 of file PFCandidate.h.

141{ truth_energy_ = x_; }

◆ setTruthMass()

void ldmx::PFCandidate::setTruthMass ( double x_)
inline

Definition at line 140 of file PFCandidate.h.

140{ truth_mass_ = x_; }

◆ setTruthPdgId()

void ldmx::PFCandidate::setTruthPdgId ( int x_)
inline

Definition at line 142 of file PFCandidate.h.

142{ truth_pdg_id_ = x_; }

◆ setTruthPxPyPz()

void ldmx::PFCandidate::setTruthPxPyPz ( double x_,
double y_,
double z_ )
inline

Definition at line 135 of file PFCandidate.h.

135 {
136 truth_px_ = x_;
137 truth_py_ = y_;
138 truth_pz_ = z_;
139 }

◆ setTruthTrackId()

void ldmx::PFCandidate::setTruthTrackId ( int x_)
inline

Definition at line 143 of file PFCandidate.h.

143{ truth_track_id_ = x_; }

Friends And Related Symbol Documentation

◆ operator<<

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

Definition at line 26 of file PFCandidate.cxx.

26 {
27 return o << "PFCandidate ( " << "id: " << c.pid_ << ", pdg: " << c.pdg_id_
28 << "), " << "Pxyz: (" << c.track_px_ << ", " << c.track_py_ << ", "
29 << c.track_pz_ << ") MeV/c, " << "Ecal energy: " << c.ecal_energy_
30 << " MeV, "
31 << "Hcal energy: " << c.hcal_energy_ << " MeV, ";
32}

Member Data Documentation

◆ charge_

int ldmx::PFCandidate::charge_ {0}
private

Definition at line 231 of file PFCandidate.h.

231{0};

◆ dedx_ih_

float ldmx::PFCandidate::dedx_ih_ {0}
private

Definition at line 234 of file PFCandidate.h.

234{0};

◆ dedx_mass2_

float ldmx::PFCandidate::dedx_mass2_ {0}
private

Definition at line 233 of file PFCandidate.h.

233{0};

◆ dedx_nhits_

int ldmx::PFCandidate::dedx_nhits_ {0}
private

Definition at line 235 of file PFCandidate.h.

235{0};

◆ ecal_cluster_dxdz_

float ldmx::PFCandidate::ecal_cluster_dxdz_ {0}
private

Definition at line 278 of file PFCandidate.h.

278{0};

◆ ecal_cluster_dydz_

float ldmx::PFCandidate::ecal_cluster_dydz_ {0}
private

Definition at line 279 of file PFCandidate.h.

279{0};

◆ ecal_cluster_edxdz_

float ldmx::PFCandidate::ecal_cluster_edxdz_ {0}
private

Definition at line 280 of file PFCandidate.h.

280{0};

◆ ecal_cluster_edydz_

float ldmx::PFCandidate::ecal_cluster_edydz_ {0}
private

Definition at line 281 of file PFCandidate.h.

281{0};

◆ ecal_cluster_ex_

float ldmx::PFCandidate::ecal_cluster_ex_ {0}
private

Definition at line 275 of file PFCandidate.h.

275{0};

◆ ecal_cluster_ey_

float ldmx::PFCandidate::ecal_cluster_ey_ {0}
private

Definition at line 276 of file PFCandidate.h.

276{0};

◆ ecal_cluster_ez_

float ldmx::PFCandidate::ecal_cluster_ez_ {0}
private

Definition at line 277 of file PFCandidate.h.

277{0};

◆ ecal_cluster_x_

float ldmx::PFCandidate::ecal_cluster_x_ {0}
private

Definition at line 272 of file PFCandidate.h.

272{0};

◆ ecal_cluster_y_

float ldmx::PFCandidate::ecal_cluster_y_ {0}
private

Definition at line 273 of file PFCandidate.h.

273{0};

◆ ecal_cluster_z_

float ldmx::PFCandidate::ecal_cluster_z_ {0}
private

Definition at line 274 of file PFCandidate.h.

274{0};

◆ ecal_depth_

float ldmx::PFCandidate::ecal_depth_ {0}
private

Definition at line 259 of file PFCandidate.h.

259{0};

◆ ecal_energy_

float ldmx::PFCandidate::ecal_energy_ {0}
private

Definition at line 258 of file PFCandidate.h.

258{0};

◆ ecal_hit_energies_

std::vector<float> ldmx::PFCandidate::ecal_hit_energies_
private

Definition at line 262 of file PFCandidate.h.

◆ ecal_hit_ids_

std::vector<unsigned int> ldmx::PFCandidate::ecal_hit_ids_
private

Definition at line 261 of file PFCandidate.h.

◆ ecal_idx_

int ldmx::PFCandidate::ecal_idx_ {-1}
private

Definition at line 311 of file PFCandidate.h.

311{-1};

◆ ecal_raw_energy_

float ldmx::PFCandidate::ecal_raw_energy_ {0}
private

Definition at line 271 of file PFCandidate.h.

271{0};

◆ ecal_width_

float ldmx::PFCandidate::ecal_width_ {0}
private

Definition at line 270 of file PFCandidate.h.

270{0};

◆ energy_

float ldmx::PFCandidate::energy_ {0}
private

Definition at line 237 of file PFCandidate.h.

237{0};

◆ hcal_cluster_dxdz_

float ldmx::PFCandidate::hcal_cluster_dxdz_ {0}
private

Definition at line 292 of file PFCandidate.h.

292{0};

◆ hcal_cluster_dydz_

float ldmx::PFCandidate::hcal_cluster_dydz_ {0}
private

Definition at line 293 of file PFCandidate.h.

293{0};

◆ hcal_cluster_edxdz_

float ldmx::PFCandidate::hcal_cluster_edxdz_ {0}
private

Definition at line 294 of file PFCandidate.h.

294{0};

◆ hcal_cluster_edydz_

float ldmx::PFCandidate::hcal_cluster_edydz_ {0}
private

Definition at line 295 of file PFCandidate.h.

295{0};

◆ hcal_cluster_ex_

float ldmx::PFCandidate::hcal_cluster_ex_ {0}
private

Definition at line 289 of file PFCandidate.h.

289{0};

◆ hcal_cluster_ey_

float ldmx::PFCandidate::hcal_cluster_ey_ {0}
private

Definition at line 290 of file PFCandidate.h.

290{0};

◆ hcal_cluster_ez_

float ldmx::PFCandidate::hcal_cluster_ez_ {0}
private

Definition at line 291 of file PFCandidate.h.

291{0};

◆ hcal_cluster_x_

float ldmx::PFCandidate::hcal_cluster_x_ {0}
private

Definition at line 286 of file PFCandidate.h.

286{0};

◆ hcal_cluster_y_

float ldmx::PFCandidate::hcal_cluster_y_ {0}
private

Definition at line 287 of file PFCandidate.h.

287{0};

◆ hcal_cluster_z_

float ldmx::PFCandidate::hcal_cluster_z_ {0}
private

Definition at line 288 of file PFCandidate.h.

288{0};

◆ hcal_energy_

float ldmx::PFCandidate::hcal_energy_ {0}
private

Definition at line 284 of file PFCandidate.h.

284{0};

◆ hcal_hit_energies_

std::vector<float> ldmx::PFCandidate::hcal_hit_energies_
private

Definition at line 264 of file PFCandidate.h.

◆ hcal_hit_ids_

std::vector<unsigned int> ldmx::PFCandidate::hcal_hit_ids_
private

Definition at line 263 of file PFCandidate.h.

◆ hcal_idx_

int ldmx::PFCandidate::hcal_idx_ {-1}
private

Definition at line 312 of file PFCandidate.h.

312{-1};

◆ hcal_raw_energy_

float ldmx::PFCandidate::hcal_raw_energy_ {0}
private

Definition at line 285 of file PFCandidate.h.

285{0};

◆ mass_

float ldmx::PFCandidate::mass_ {0}
private

Definition at line 236 of file PFCandidate.h.

236{0};

◆ pdg_id_

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

Definition at line 230 of file PFCandidate.h.

230{0};

◆ pid_

int ldmx::PFCandidate::pid_ {0}
private

Definition at line 228 of file PFCandidate.h.

228{0};

◆ pos_ecal_x_

float ldmx::PFCandidate::pos_ecal_x_ {0}
private

Definition at line 244 of file PFCandidate.h.

244{0};

◆ pos_ecal_y_

float ldmx::PFCandidate::pos_ecal_y_ {0}
private

Definition at line 245 of file PFCandidate.h.

245{0};

◆ pos_ecal_z_

float ldmx::PFCandidate::pos_ecal_z_ {0}
private

Definition at line 246 of file PFCandidate.h.

246{0};

◆ pos_hcal_x_

float ldmx::PFCandidate::pos_hcal_x_ {0}
private

Definition at line 248 of file PFCandidate.h.

248{0};

◆ pos_hcal_y_

float ldmx::PFCandidate::pos_hcal_y_ {0}
private

Definition at line 249 of file PFCandidate.h.

249{0};

◆ pos_hcal_z_

float ldmx::PFCandidate::pos_hcal_z_ {0}
private

Definition at line 250 of file PFCandidate.h.

250{0};

◆ pos_targ_x_

float ldmx::PFCandidate::pos_targ_x_ {0}
private

Definition at line 240 of file PFCandidate.h.

240{0};

◆ pos_targ_y_

float ldmx::PFCandidate::pos_targ_y_ {0}
private

Definition at line 241 of file PFCandidate.h.

241{0};

◆ pos_targ_z_

float ldmx::PFCandidate::pos_targ_z_ {0}
private

Definition at line 242 of file PFCandidate.h.

242{0};

◆ track_idx_

int ldmx::PFCandidate::track_idx_ {-1}
private

Definition at line 310 of file PFCandidate.h.

310{-1};

◆ track_px_

float ldmx::PFCandidate::track_px_ {0}
private

Definition at line 253 of file PFCandidate.h.

253{0};

◆ track_py_

float ldmx::PFCandidate::track_py_ {0}
private

Definition at line 254 of file PFCandidate.h.

254{0};

◆ track_pz_

float ldmx::PFCandidate::track_pz_ {0}
private

Definition at line 255 of file PFCandidate.h.

255{0};

◆ truth_ecal_x_

double ldmx::PFCandidate::truth_ecal_x_ {0}
private

Definition at line 298 of file PFCandidate.h.

298{0};

◆ truth_ecal_y_

double ldmx::PFCandidate::truth_ecal_y_ {0}
private

Definition at line 299 of file PFCandidate.h.

299{0};

◆ truth_ecal_z_

double ldmx::PFCandidate::truth_ecal_z_ {0}
private

Definition at line 300 of file PFCandidate.h.

300{0};

◆ truth_energy_

double ldmx::PFCandidate::truth_energy_ {0}
private

Definition at line 305 of file PFCandidate.h.

305{0};

◆ truth_mass_

double ldmx::PFCandidate::truth_mass_ {0}
private

Definition at line 304 of file PFCandidate.h.

304{0};

◆ truth_pdg_id_

int ldmx::PFCandidate::truth_pdg_id_ {0}
private

Definition at line 306 of file PFCandidate.h.

306{0};

◆ truth_px_

double ldmx::PFCandidate::truth_px_ {0}
private

Definition at line 301 of file PFCandidate.h.

301{0};

◆ truth_py_

double ldmx::PFCandidate::truth_py_ {0}
private

Definition at line 302 of file PFCandidate.h.

302{0};

◆ truth_pz_

double ldmx::PFCandidate::truth_pz_ {0}
private

Definition at line 303 of file PFCandidate.h.

303{0};

◆ truth_track_id_

int ldmx::PFCandidate::truth_track_id_ {-1}
private

Definition at line 307 of file PFCandidate.h.

307{-1};

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