18 #include "nusimdata/SimulationBase/MCParticle.h"
28 (simb::MCParticle
const& mcParticle)
const
33 for (
auto const& pair: mcParticle.Trajectory()) {
40 return { { std::move(pos), std::move(mom),
true }, mcParticle.PdgCode() };
::geo::Point_t toPoint(Point const &p)
Convert the specified point into a geo::Point_t.
Algorithm to "reconstruct" trajectories from simulated particles.
::geo::Vector_t toVector(Vector const &v)
Convert the specified vector into a geo::Vector_t.
Pseudo-track object for TotallyCheatTracks example.
Utilities to extend the interface of geometry vectors.
lar::example::CheatTrack makeTrack(simb::MCParticle const &mcParticle) const
Returns a reconstructed track from the specified particle.
tracking::Positions_t Positions_t
Type of trajectory point list.
tracking::Momenta_t Momenta_t
Type of momentum list.
Vector rounded01(Vector const &v, Scalar tol)
Returns a vector with all components rounded if close to 0, -1 or +1.