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 59 of file TotallyCheatTrackingAlg.h.
|
inline |
Constructor: accepts a configuration (currently unused).
Definition at line 65 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 28 of file TotallyCheatTrackingAlg.cxx.
|
inline |
Set up the algorithm (currently no operation).
Definition at line 69 of file TotallyCheatTrackingAlg.h.
1.8.5