LDMX Software
BeamElectronTruth.cxx
2
3// STL
4#include <iostream>
5
7
8namespace ldmx {
10 x_ = -999;
11 y_ = -999;
12 z_ = -999;
13 px_ = -999;
14 py_ = -999;
15 pz_ = -999;
16 binned_x_ = -999;
17 binned_y_ = -999;
18}
19std::ostream& operator<<(std::ostream& o, const BeamElectronTruth& c) {
20 return o << " { " << "(x_: " << c.x_ << ", y_: " << c.y_ << ", z_: " << c.z_
21 << "); (binned X: " << c.binned_x_ << ", binned Y: " << c.binned_y_
22 << "); (px: " << c.px_ << ", py: " << c.py_ << ", pz: " << c.pz_
23 << ")";
24}
25} // namespace ldmx
Class that represents the truth information about beam electron at the target.
Represents the truth information on beam electrons at the target.
double binned_x_
x-coordinate (with TS resolution)
double pz_
momentum z-component
void clear()
Clear the data in the object.
double px_
momentum x-component
double py_
momentum y-component
double binned_y_
y-coordinate (with TS resolution)
double z_
z-coordinate ("truth" resolution, in practice, set to taget z-coord = 0
double x_
x-coordinate ("truth" resolution, but within merging tolerance)
double y_
y-coordinate ("truth" resolution, but within merging tolerance)