Skip to content
Snippets Groups Projects
Commit 33d71195 authored by Ziyue Zhang's avatar Ziyue Zhang
Browse files

WIP: Try out Dummy

parent 5b218f40
Branches
No related tags found
No related merge requests found
...@@ -83,9 +83,10 @@ namespace util { ...@@ -83,9 +83,10 @@ namespace util {
std::vector<ROOT::Math::PxPyPzMVector> momenta{parts.size()}; std::vector<ROOT::Math::PxPyPzMVector> momenta{parts.size()};
// transform our raw tracker info into proper 4-momenta // transform our raw tracker info into proper 4-momenta
std::transform(parts.begin(), parts.end(), momenta.begin(), [](const auto& part) { std::transform(parts.begin(), parts.end(), momenta.begin(), [](const auto& part) {
const double px = part.p.x(); eic::VectorXYZ p = part.p;
const double py = part.p.y(); const double px = 0.;
const double pz = part.p.z(); const double py = 0.;
const double pz = 0.;
const double mass = 0.; const double mass = 0.;
return ROOT::Math::PxPyPzMVector{px, py, pz, mass}; return ROOT::Math::PxPyPzMVector{px, py, pz, mass};
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment