LDMX Software
BeamElectronTruth.cxx
2
3// STL
4#include <iostream>
5
7
8 namespace ldmx {
10 x_ = -999;
11 y_ = -999;
12 z_ = -999;
13 px_ = -999;
14 py_ = -999;
15 pz_ = -999;
16 binnedX_ = -999;
17 binnedY_ = -999;
18 }
19
20 void BeamElectronTruth::Print() const {
21 std::cout << "BeamElectronTruth { "
22 << "(x: " << x_ << ", y: " << y_ << ", z: " << z_
23 << "); (binned X: " << binnedX_ << ", binned Y: " << binnedY_
24 << "); (px: " << px_ << ", py: " << py_ << ", pz: " << pz_ << ")"
25 << std::endl;
26 }
27} // 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 binnedX_
x coordinate (with TS resolution)
void Print() const
Print a description of this object.
double pz_
z momentum component
double binnedY_
y coordinate (with TS resolution)
double px_
x momentum component
double py_
y momentum component
double z_
z coordinate ("truth" resolution, in practice, set to taget z = 0
double x_
x coordinate ("truth" resolution, but within merging tolerance)
double y_
y coordinate ("truth" resolution, but within merging tolerance)
void Clear()
Clear the data in the object.