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 | Print () const |
Print a description of this object. | |
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, 1) | |
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 = 0 | |
double | binnedX_ {-999} |
x coordinate (with TS resolution) | |
double | binnedY_ {-999} |
y coordinate (with TS resolution) | |
double | barX_ {-1} |
TS vertical bar number overlapping with x coordinate. | |
double | barY_ {-1} |
TS horizontal bar number overlapping with y coordinate. | |
double | px_ {-999} |
x momentum component | |
double | py_ {-999} |
y momentum component | |
double | pz_ {-999} |
z momentum component | |
Represents the truth information on beam electrons at the target.
Definition at line 24 of file BeamElectronTruth.h.
|
inlinevirtual |
|
inline |
Get x bar number of the found beam electron.
Definition at line 159 of file BeamElectronTruth.h.
References barX_.
Referenced by recon::BeamElectronLocator::produce().
|
inline |
Get y bar number of the found beam electron.
Definition at line 165 of file BeamElectronTruth.h.
References barY_.
Referenced by recon::BeamElectronLocator::produce().
|
inline |
Get binned x coordinate of the beam electron.
Definition at line 123 of file BeamElectronTruth.h.
References binnedX_.
|
inline |
GetBinned y coordinate of the beam electron.
Definition at line 129 of file BeamElectronTruth.h.
References binnedY_.
|
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 barX_.
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 barY_.
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 binnedX_.
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 binnedY_.
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_.
|
private |
TS vertical bar number overlapping with x coordinate.
Definition at line 220 of file BeamElectronTruth.h.
Referenced by getBarX(), setBarX(), and setBarXY().
|
private |
TS horizontal bar number overlapping with y coordinate.
Definition at line 223 of file BeamElectronTruth.h.
Referenced by getBarY(), setBarXY(), and setBarY().
|
private |
x coordinate (with TS resolution)
Definition at line 214 of file BeamElectronTruth.h.
Referenced by getBinnedX(), setBinnedX(), and setBinnedXY().
|
private |
y coordinate (with TS resolution)
Definition at line 217 of file BeamElectronTruth.h.
Referenced by getBinnedY(), setBinnedXY(), and setBinnedY().
|
private |
x momentum component
Definition at line 226 of file BeamElectronTruth.h.
Referenced by getPx().
|
private |
y momentum component
Definition at line 228 of file BeamElectronTruth.h.
Referenced by getPy().
|
private |
z momentum component
Definition at line 230 of file BeamElectronTruth.h.
Referenced by getPz().
|
private |
x coordinate ("truth" resolution, but within merging tolerance)
Definition at line 205 of file BeamElectronTruth.h.
|
private |
y coordinate ("truth" resolution, but within merging tolerance)
Definition at line 208 of file BeamElectronTruth.h.
|
private |
z coordinate ("truth" resolution, in practice, set to taget z = 0
Definition at line 211 of file BeamElectronTruth.h.