|
LDMX Software
|
Represents a track of trigger scintillator clusters. More...
#include <TrigScintTrack.h>
Public Member Functions | |
| TrigScintTrack () | |
| Class constructor. | |
| virtual | ~TrigScintTrack () |
| Class destructor. | |
| void | clear () |
| Reset the TrigScintTrack object. | |
| float | getCentroid () const |
| Get the detector ID centroid of the track. | |
| float | getCentroidX () const |
| Get the x centroid of the track. | |
| float | getCentroidY () const |
| Get the y centroid of the track. | |
| float | getCentroidZ () const |
| Get the z centroid of the track. | |
| float | getResidual () const |
| Get the detector ID residual of the track. | |
| float | getResidualX () const |
| Get the x residual of the track. | |
| float | getResidualY () const |
| Get the y residual of the track. | |
| float | getResidualZ () const |
| Get the z residual of the track. | |
| float | getPE () const |
| Get the (average) pe of the track. | |
| int | getNclusters () const |
| Get the number of clusters forming the track. | |
| float | getX () const |
| Get the x coordinate of the track. | |
| float | getY () const |
| Get the y coordinate of the track. | |
| float | getSigmaX () const |
| Get the uncertainty on the x coordinate of the track. | |
| float | getSigmaY () const |
| Get the uncertainty on the y coordinate of the track. | |
| std::vector< ldmx::TrigScintCluster > | getConstituents () const |
| Get the cluster constituents of the track. | |
| std::vector< double > | getMomentum () const |
| Get the XYZ momentum of the particle at the position at which the track took place [MeV]. | |
| float | getBeamEfrac () const |
| Get beam energy fraction of hit. | |
| void | setBeamEfrac (float e) |
| Set beam energy fraction of hit. | |
| void | setCentroid (float centroid) |
| Set the detector ID centroid of the track. | |
| void | setCentroidX (float centroid) |
| Set the x centroid of the track. | |
| void | setCentroidY (float centroid) |
| Set the y centroid of the track. | |
| void | setCentroidZ (float centroid) |
| Set the z centroid of the track. | |
| void | setResidual (float resid) |
| Set the detector ID residual of the track. | |
| void | setResidualX (float resid) |
| Set the x residual of the track. | |
| void | setResidualY (float resid) |
| Set the y residual of the track. | |
| void | setResidualZ (float resid) |
| Set the z residual of the track. | |
| void | setPE (float pe) |
| Set the average cluster pe of the track. | |
| void | setNclusters (uint nCl) |
| Set the number of clusters forming the track. | |
| void | addConstituent (TrigScintCluster cl) |
| Add a cluster to the list of track constituents. | |
| void | setPosition (const float x, const float y) |
| Set the position of the track [mm]. | |
| void | setSigmaXY (const float sx, const float sy) |
| Set the uncertainty on the position of the track [mm]. | |
| void | setSigmaX (const float sx) |
| Set the uncertainty on the position of the track [mm]. | |
| void | setSigmaY (const float sy) |
| Set the uncertainty on the position of the track [mm]. | |
| void | setMomentum (const float px, const float py, const float pz) |
| Set the momentum of the particle at the position at which the track took place [GeV]. | |
| bool | operator< (const TrigScintTrack &rhs) const |
| Sort by track residual. | |
Private Member Functions | |
| ClassDef (TrigScintTrack, 4) | |
| The ROOT class definition. | |
Private Attributes | |
| float | centroid_ {-1} |
| The detector centroid. | |
| float | centroid_x_ {-1} |
| The detector x coordinate centroid. | |
| float | centroid_y_ {-1} |
| The detector y coordinate centroid. | |
| float | centroid_z_ {-99999} |
| The detector z coordinate centroid. | |
| float | residual_ {0} |
| The detector residual. | |
| float | residual_x_ {0} |
| The x coordinate residual. | |
| float | residual_y_ {0} |
| The y coordinate residual. | |
| float | residual_z_ {0} |
| The z coordinate residual. | |
| int | n_clusters_ {0} |
| The number of clusters forming the track. | |
| std::vector< ldmx::TrigScintCluster > | constituents_ {0} |
| The list of clusters constituting the track. | |
| float | beam_efrac_ {0.} |
| The fraction of the energy deposited in the track constituents that was deposited by a beam electron. | |
| float | pe_ {0.} |
| The average pe count of the clusters making up the track. | |
| float | x_ {-99999.} |
| The X position. | |
| float | y_ {-99999.} |
| The Y position. | |
| float | sx_ {-9999.} |
| The uncertainty on the X position. | |
| float | sy_ {-9999.} |
| The uncertainty on the Y position. | |
| float | px_ {0} |
| The X momentum. | |
| float | py_ {0} |
| The Y momentum. | |
| float | pz_ {0} |
| The Z momentum. | |
| float | z_ {0} |
| The Z position. | |
Friends | |
| std::ostream & | operator<< (std::ostream &o, const TrigScintTrack &d) |
| Print a description of this object. | |
Represents a track of trigger scintillator clusters.
Definition at line 21 of file TrigScintTrack.h.
|
inline |
|
inlinevirtual |
|
inline |
Add a cluster to the list of track constituents.
Definition at line 203 of file TrigScintTrack.h.
References constituents_.
| void ldmx::TrigScintTrack::clear | ( | ) |
Reset the TrigScintTrack object.
Definition at line 11 of file TrigScintTrack.cxx.
|
inline |
Get beam energy fraction of hit.
Definition at line 143 of file TrigScintTrack.h.
References beam_efrac_.
|
inline |
Get the detector ID centroid of the track.
Definition at line 47 of file TrigScintTrack.h.
References centroid_.
Referenced by trigscint::TrigScintTrackProducer::produce().
|
inline |
Get the x centroid of the track.
Definition at line 53 of file TrigScintTrack.h.
References centroid_x_.
|
inline |
Get the y centroid of the track.
Definition at line 59 of file TrigScintTrack.h.
References centroid_y_.
|
inline |
Get the z centroid of the track.
Definition at line 65 of file TrigScintTrack.h.
References centroid_z_.
|
inline |
Get the cluster constituents of the track.
Definition at line 131 of file TrigScintTrack.h.
References constituents_.
Referenced by trigscint::TrigScintTrackProducer::produce().
|
inline |
Get the XYZ momentum of the particle at the position at which the track took place [MeV].
Definition at line 140 of file TrigScintTrack.h.
|
inline |
Get the number of clusters forming the track.
Definition at line 101 of file TrigScintTrack.h.
References n_clusters_.
|
inline |
Get the (average) pe of the track.
Definition at line 95 of file TrigScintTrack.h.
References pe_.
|
inline |
Get the detector ID residual of the track.
Definition at line 71 of file TrigScintTrack.h.
References residual_.
Referenced by operator<().
|
inline |
Get the x residual of the track.
Definition at line 77 of file TrigScintTrack.h.
References residual_x_.
|
inline |
Get the y residual of the track.
Definition at line 83 of file TrigScintTrack.h.
References residual_y_.
|
inline |
Get the z residual of the track.
Definition at line 89 of file TrigScintTrack.h.
References residual_z_.
|
inline |
Get the uncertainty on the x coordinate of the track.
Definition at line 119 of file TrigScintTrack.h.
References sx_.
|
inline |
Get the uncertainty on the y coordinate of the track.
Definition at line 125 of file TrigScintTrack.h.
References sy_.
|
inline |
Get the x coordinate of the track.
Definition at line 107 of file TrigScintTrack.h.
References x_.
|
inline |
Get the y coordinate of the track.
Definition at line 113 of file TrigScintTrack.h.
References y_.
|
inline |
Sort by track residual.
Definition at line 249 of file TrigScintTrack.h.
References getResidual().
|
inline |
Set beam energy fraction of hit.
Definition at line 148 of file TrigScintTrack.h.
References beam_efrac_.
|
inline |
Set the detector ID centroid of the track.
Definition at line 153 of file TrigScintTrack.h.
References centroid_.
|
inline |
Set the x centroid of the track.
Definition at line 158 of file TrigScintTrack.h.
References centroid_x_.
|
inline |
Set the y centroid of the track.
Definition at line 163 of file TrigScintTrack.h.
References centroid_y_.
|
inline |
Set the z centroid of the track.
Definition at line 168 of file TrigScintTrack.h.
References centroid_z_.
| void ldmx::TrigScintTrack::setMomentum | ( | const float | px, |
| const float | py, | ||
| const float | pz ) |
Set the momentum of the particle at the position at which the track took place [GeV].
| px | The X momentum. |
| py | The Y momentum. |
| pz | The Z momentum. |
|
inline |
Set the number of clusters forming the track.
Definition at line 198 of file TrigScintTrack.h.
References n_clusters_.
|
inline |
Set the average cluster pe of the track.
Definition at line 193 of file TrigScintTrack.h.
References pe_.
|
inline |
|
inline |
Set the detector ID residual of the track.
Definition at line 173 of file TrigScintTrack.h.
References residual_.
|
inline |
Set the x residual of the track.
Definition at line 178 of file TrigScintTrack.h.
References residual_x_.
|
inline |
Set the y residual of the track.
Definition at line 183 of file TrigScintTrack.h.
References residual_y_.
|
inline |
Set the z residual of the track.
Definition at line 188 of file TrigScintTrack.h.
References residual_z_.
|
inline |
Set the uncertainty on the position of the track [mm].
| x | The X position uncertainty. |
Definition at line 229 of file TrigScintTrack.h.
References sx_.
|
inline |
|
inline |
Set the uncertainty on the position of the track [mm].
| y | The Y position uncertainty. |
Definition at line 235 of file TrigScintTrack.h.
References sy_.
|
friend |
Print a description of this object.
Definition at line 16 of file TrigScintTrack.cxx.
|
private |
The fraction of the energy deposited in the track constituents that was deposited by a beam electron.
WARNING: this is a "truth" variable and will never be measureable in actual data.
Definition at line 310 of file TrigScintTrack.h.
Referenced by getBeamEfrac(), and setBeamEfrac().
|
private |
The detector centroid.
Definition at line 257 of file TrigScintTrack.h.
Referenced by clear(), getCentroid(), and setCentroid().
|
private |
The detector x coordinate centroid.
Definition at line 262 of file TrigScintTrack.h.
Referenced by getCentroidX(), and setCentroidX().
|
private |
The detector y coordinate centroid.
Definition at line 267 of file TrigScintTrack.h.
Referenced by getCentroidY(), and setCentroidY().
|
private |
The detector z coordinate centroid.
Definition at line 272 of file TrigScintTrack.h.
Referenced by getCentroidZ(), and setCentroidZ().
|
private |
The list of clusters constituting the track.
Definition at line 302 of file TrigScintTrack.h.
Referenced by addConstituent(), and getConstituents().
|
private |
The number of clusters forming the track.
Definition at line 297 of file TrigScintTrack.h.
Referenced by getNclusters(), and setNclusters().
|
private |
The average pe count of the clusters making up the track.
Definition at line 315 of file TrigScintTrack.h.
|
private |
The X momentum.
Definition at line 342 of file TrigScintTrack.h.
Referenced by getMomentum().
|
private |
The Y momentum.
Definition at line 347 of file TrigScintTrack.h.
Referenced by getMomentum().
|
private |
The Z momentum.
Definition at line 352 of file TrigScintTrack.h.
Referenced by getMomentum().
|
private |
The detector residual.
Definition at line 277 of file TrigScintTrack.h.
Referenced by clear(), getResidual(), and setResidual().
|
private |
The x coordinate residual.
Definition at line 282 of file TrigScintTrack.h.
Referenced by getResidualX(), and setResidualX().
|
private |
The y coordinate residual.
Definition at line 287 of file TrigScintTrack.h.
Referenced by getResidualY(), and setResidualY().
|
private |
The z coordinate residual.
Definition at line 292 of file TrigScintTrack.h.
Referenced by getResidualZ(), and setResidualZ().
|
private |
The uncertainty on the X position.
Definition at line 330 of file TrigScintTrack.h.
Referenced by getSigmaX(), setSigmaX(), and setSigmaXY().
|
private |
The uncertainty on the Y position.
Definition at line 335 of file TrigScintTrack.h.
Referenced by getSigmaY(), setSigmaXY(), and setSigmaY().
|
private |
The X position.
Definition at line 320 of file TrigScintTrack.h.
Referenced by getX(), and setPosition().
|
private |
The Y position.
Definition at line 325 of file TrigScintTrack.h.
Referenced by getY(), and setPosition().
|
private |