|
LDMX Software
|
Represents the truth information on beam electrons at the target. More...
#include <BeamElectronTruth.h>
Public Member Functions | |
| BeamElectronTruth ()=default | |
| Class constructor. | |
| virtual | ~BeamElectronTruth () |
| Class destructor. | |
| void | clear () |
| Clear the data in the object. | |
| void | setX (double x) |
| Set x coordinate of the found beam electron. | |
| void | setY (double y) |
| Set y_ coordinate of the found beam electron. | |
| void | setZ (double z) |
| Set z coordinate of the found beam electron. | |
| void | setXYZ (double x, double y, double z) |
| Set all three spatial coordinates at once. | |
| double | getX () |
| Get x coordinate of the beam electron. | |
| double | getY () |
| Get y_ coordinate of the beam electron. | |
| double | getZ () |
| Get z_ coordinate of the beam electron. | |
| void | setBinnedX (double x) |
| SetBinned x coordinate of the found beam electron. | |
| void | setBinnedY (double y) |
| SetBinned y coordinate of the found beam electron. | |
| void | setBinnedXY (double x, double y) |
| Set all three binned spatial coordinates at once. | |
| double | getBinnedX () |
| Get binned x coordinate of the beam electron. | |
| double | getBinnedY () |
| GetBinned y_ coordinate of the beam electron. | |
| void | setBarX (double x) |
| Set x bar number of the found beam electron. | |
| void | setBarY (double y) |
| Set y_ bar number of the found beam electron. | |
| void | setBarXY (double x, double y) |
| Set both bar number coordinates at once. | |
| double | getBarX () |
| Get x bar number of the found beam electron. | |
| double | getBarY () |
| Get y_ bar number of the found beam electron. | |
| void | setThreeMomentum (double px, double py, double pz) |
| Set the entire three-momentum at once. | |
| double | getPx () |
| Get px component of the beam electron momentum. | |
| double | getPy () |
| Get py component of the beam electron momentum. | |
| double | getPz () |
| Get pz component of the beam electron momentum. | |
| bool | operator< (BeamElectronTruth &rhs) |
| some sorting operator is mandatory sort on hit Z coordinate | |
Private Member Functions | |
| ClassDef (BeamElectronTruth, 2) | |
Private Attributes | |
| double | x_ {-999} |
| x-coordinate ("truth" resolution, but within merging tolerance) | |
| double | y_ {-999} |
| y-coordinate ("truth" resolution, but within merging tolerance) | |
| double | z_ {-9999} |
| z-coordinate ("truth" resolution, in practice, set to taget z-coord = 0 | |
| double | binned_x_ {-999} |
| x-coordinate (with TS resolution) | |
| double | binned_y_ {-999} |
| y-coordinate (with TS resolution) | |
| double | bar_x_ {-1} |
| TS vertical bar number overlapping with x-coordinate. | |
| double | bar_y_ {-1} |
| TS horizontal bar number overlapping with y-coordinate. | |
| double | px_ {-999} |
| momentum x-component | |
| double | py_ {-999} |
| momentum y-component | |
| double | pz_ {-999} |
| momentum z-component | |
Friends | |
| std::ostream & | operator<< (std::ostream &o, const BeamElectronTruth &d) |
| Print a description of this object. | |
Represents the truth information on beam electrons at the target.
Definition at line 24 of file BeamElectronTruth.h.
|
inlinevirtual |
| void ldmx::BeamElectronTruth::clear | ( | ) |
Clear the data in the object.
Definition at line 9 of file BeamElectronTruth.cxx.
References binned_x_, binned_y_, px_, py_, pz_, x_, y_, and z_.
|
inline |
Get x bar number of the found beam electron.
Definition at line 159 of file BeamElectronTruth.h.
References bar_x_.
Referenced by recon::BeamElectronLocator::produce().
|
inline |
Get y_ bar number of the found beam electron.
Definition at line 165 of file BeamElectronTruth.h.
References bar_y_.
Referenced by recon::BeamElectronLocator::produce().
|
inline |
Get binned x coordinate of the beam electron.
Definition at line 123 of file BeamElectronTruth.h.
References binned_x_.
|
inline |
GetBinned y_ coordinate of the beam electron.
Definition at line 129 of file BeamElectronTruth.h.
References binned_y_.
|
inline |
Get px component of the beam electron momentum.
Definition at line 181 of file BeamElectronTruth.h.
References px_.
|
inline |
Get py component of the beam electron momentum.
Definition at line 187 of file BeamElectronTruth.h.
References py_.
|
inline |
Get pz component of the beam electron momentum.
Definition at line 193 of file BeamElectronTruth.h.
References pz_.
|
inline |
Get x coordinate of the beam electron.
Definition at line 81 of file BeamElectronTruth.h.
References x_.
|
inline |
Get y_ coordinate of the beam electron.
Definition at line 87 of file BeamElectronTruth.h.
References y_.
|
inline |
Get z_ coordinate of the beam electron.
Definition at line 93 of file BeamElectronTruth.h.
References z_.
Referenced by operator<().
|
inline |
some sorting operator is mandatory sort on hit Z coordinate
Definition at line 199 of file BeamElectronTruth.h.
References getZ().
|
inline |
Set x bar number of the found beam electron.
| x | The x (vertical) bar number of the found beam electron. |
Definition at line 137 of file BeamElectronTruth.h.
References bar_x_.
Referenced by recon::BeamElectronLocator::produce().
|
inline |
|
inline |
Set y_ bar number of the found beam electron.
| y_ | The y_ (horizontal) bar number of the found beam electron. |
Definition at line 143 of file BeamElectronTruth.h.
References bar_y_.
Referenced by recon::BeamElectronLocator::produce().
|
inline |
SetBinned x coordinate of the found beam electron.
| x | The x coordinate of the found beam electron. |
Definition at line 101 of file BeamElectronTruth.h.
References binned_x_.
Referenced by recon::BeamElectronLocator::produce().
|
inline |
Set all three binned spatial coordinates at once.
| x | The binned x coordinate of the found beam electron. |
| y | The binned y coordinate of the found beam electron. |
Definition at line 114 of file BeamElectronTruth.h.
|
inline |
SetBinned y coordinate of the found beam electron.
| y | The y coordinate of the found beam electron. |
Definition at line 107 of file BeamElectronTruth.h.
References binned_y_.
Referenced by recon::BeamElectronLocator::produce().
| void ldmx::BeamElectronTruth::setThreeMomentum | ( | double | px, |
| double | py, | ||
| double | pz ) |
Set the entire three-momentum at once.
| px | The x component of the three-momentum |
| py | The y component of the three-momentum |
| pz | The z component of the three-momentum |
|
inline |
Set x coordinate of the found beam electron.
| x | The x coordinate of the found beam electron. |
Definition at line 50 of file BeamElectronTruth.h.
References x_.
|
inline |
Set all three spatial coordinates at once.
| x | The x coordinate of the found beam electron. |
| y | The y coordinate of the found beam electron. |
| z | The z coordinate of the found beam electron. |
Definition at line 71 of file BeamElectronTruth.h.
Referenced by recon::BeamElectronLocator::produce().
|
inline |
Set y_ coordinate of the found beam electron.
| y_ | The y_ coordinate of the found beam electron. |
Definition at line 56 of file BeamElectronTruth.h.
References y_.
|
inline |
Set z coordinate of the found beam electron.
| z | The z coordinate of the found beam electron. |
Definition at line 62 of file BeamElectronTruth.h.
References z_.
|
friend |
Print a description of this object.
Definition at line 19 of file BeamElectronTruth.cxx.
|
private |
TS vertical bar number overlapping with x-coordinate.
Definition at line 221 of file BeamElectronTruth.h.
Referenced by getBarX(), setBarX(), and setBarXY().
|
private |
TS horizontal bar number overlapping with y-coordinate.
Definition at line 224 of file BeamElectronTruth.h.
Referenced by getBarY(), setBarXY(), and setBarY().
|
private |
x-coordinate (with TS resolution)
Definition at line 215 of file BeamElectronTruth.h.
Referenced by clear(), getBinnedX(), setBinnedX(), and setBinnedXY().
|
private |
y-coordinate (with TS resolution)
Definition at line 218 of file BeamElectronTruth.h.
Referenced by clear(), getBinnedY(), setBinnedXY(), and setBinnedY().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |