LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
Reconstructs tracks from simulated particles. More...
#include "TotallyCheatTrackingAlg.h"
Classes | |
struct | Config |
Public Member Functions | |
TotallyCheatTrackingAlg (Config const &) | |
Constructor: accepts a configuration (currently unused). More... | |
void | setup () |
Set up the algorithm (currently no operation). More... | |
lar::example::CheatTrack | makeTrack (simb::MCParticle const &mcParticle) const |
Returns a reconstructed track from the specified particle. More... | |
Reconstructs tracks from simulated particles.
This totally cheating tracking algorithm will return one lar::example::CheatTrack
object for each simb::MCParticle
inserted. The information of the track will perfectly reflect the content of the simulated particle trajectory.
recob::Track
.Example of usage: ----------------------------------------------------------------—{.cpp} lar::example::TotallyCheatTrackingAlg cheaterAlg({}); cheaterAlg.setup();
std::vector<lar::example::CheatTrack> tracks; for (auto const& mcParticle: mcParticles)
(assuming mcParticles
a collection of simb::MCParticle
).
Currently, none.
Currently none.
Definition at line 66 of file TotallyCheatTrackingAlg.h.
|
inline |
Constructor: accepts a configuration (currently unused).
Definition at line 72 of file TotallyCheatTrackingAlg.h.
lar::example::CheatTrack lar::example::TotallyCheatTrackingAlg::makeTrack | ( | simb::MCParticle const & | mcParticle | ) | const |
Returns a reconstructed track from the specified particle.
mcParticle | the simulated particle to be reconstructed |
lar::example::CheatTrack
trackThe reconstucted track has one trajectory point per trajectory point of the input particle.
Definition at line 25 of file TotallyCheatTrackingAlg.cxx.
References e, simb::MCParticle::PdgCode(), geo::vect::rounded01(), geo::vect::toPoint(), geo::vect::toVector(), and simb::MCParticle::Trajectory().
Referenced by lar::example::TotallyCheatTracker::produce(), and setup().
|
inline |
Set up the algorithm (currently no operation).
Definition at line 76 of file TotallyCheatTrackingAlg.h.
References makeTrack().
Referenced by lar::example::TotallyCheatTracker::produce().