LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "StitchAlg.h"
Public Member Functions | |
StitchAlg (fhicl::ParameterSet const &pset) | |
void | reconfigure (fhicl::ParameterSet const &pset) |
void | FindHeadsAndTails (const art::Event &e, const std::string &t) |
void | FirstStitch (const std::vector< art::PtrVector< recob::Track >>::iterator itvvArg, const std::vector< recob::Track >::iterator itvArg) |
void | WalkStitch () |
bool | CommonComponentStitch () |
void | GetTrackComposites (std::vector< art::PtrVector< recob::Track >> &c) const |
void | GetTracks (std::vector< recob::Track > &t) const |
Public Attributes | |
art::Handle< std::vector< recob::Track > > | ftListHandle |
Private Attributes | |
std::vector< std::tuple< std::string, int, int, double, double > > | fh |
std::vector< std::tuple< std::string, int, int, double, double > > | ft |
int | ftNo |
double | fCosAngTol |
double | fSepTol |
std::vector< art::PtrVector< recob::Track > > | fTrackComposite |
std::vector< recob::Track > | fTrackVec |
std::vector< std::vector< std::string > > | fHT |
Definition at line 30 of file StitchAlg.h.
trkf::StitchAlg::StitchAlg | ( | fhicl::ParameterSet const & | pset | ) |
Definition at line 26 of file StitchAlg.cxx.
References art::Handle< T >::clear(), ftListHandle, ftNo, and reconfigure().
bool trkf::StitchAlg::CommonComponentStitch | ( | ) |
Definition at line 472 of file StitchAlg.cxx.
References art::PtrVector< T >::erase(), fHT, FirstStitch(), fTrackComposite, and fTrackVec.
Referenced by trkf::TrackStitcher::produce().
void trkf::StitchAlg::FindHeadsAndTails | ( | const art::Event & | e, |
const std::string & | t | ||
) |
Definition at line 43 of file StitchAlg.cxx.
References util::abs(), recob::Track::End(), recob::Track::EndDirection(), fCosAngTol, fh, fHT, fSepTol, ft, ftListHandle, fTrackComposite, fTrackVec, art::ProductRetriever::getByLabel(), recob::Track::Vertex(), and recob::Track::VertexDirection().
Referenced by trkf::TrackStitcher::produce().
void trkf::StitchAlg::FirstStitch | ( | const std::vector< art::PtrVector< recob::Track >>::iterator | itvvArg, |
const std::vector< recob::Track >::iterator | itvArg | ||
) |
TODO: sort according to spacepoint distance separation. As is, we're not sure we're not forming a stitched track with a (some) jump(s) and a reversal(s) of direction in it.
Definition at line 259 of file StitchAlg.cxx.
References e, fHT, ftNo, fTrackVec, and pt.
Referenced by CommonComponentStitch(), and WalkStitch().
|
inline |
Definition at line 43 of file StitchAlg.h.
Referenced by trkf::TrackStitcher::produce().
|
inline |
void trkf::StitchAlg::reconfigure | ( | fhicl::ParameterSet const & | pset | ) |
Definition at line 36 of file StitchAlg.cxx.
References fCosAngTol, fSepTol, and fhicl::ParameterSet::get().
Referenced by StitchAlg().
void trkf::StitchAlg::WalkStitch | ( | ) |
Definition at line 334 of file StitchAlg.cxx.
References art::PtrVector< T >::begin(), art::PtrVector< T >::clear(), art::PtrVector< T >::end(), art::PtrVector< T >::erase(), fh, fHT, FirstStitch(), ft, ftListHandle, fTrackComposite, fTrackVec, art::PtrVector< T >::insert(), art::PtrVector< T >::push_back(), and art::PtrVector< T >::size().
Referenced by trkf::TrackStitcher::produce().
|
private |
Definition at line 55 of file StitchAlg.h.
Referenced by FindHeadsAndTails(), and reconfigure().
|
private |
Definition at line 52 of file StitchAlg.h.
Referenced by FindHeadsAndTails(), and WalkStitch().
|
private |
Definition at line 60 of file StitchAlg.h.
Referenced by CommonComponentStitch(), FindHeadsAndTails(), FirstStitch(), and WalkStitch().
|
private |
Definition at line 56 of file StitchAlg.h.
Referenced by FindHeadsAndTails(), and reconfigure().
|
private |
Definition at line 53 of file StitchAlg.h.
Referenced by FindHeadsAndTails(), and WalkStitch().
art::Handle<std::vector<recob::Track> > trkf::StitchAlg::ftListHandle |
Definition at line 49 of file StitchAlg.h.
Referenced by FindHeadsAndTails(), trkf::TrackStitcher::produce(), StitchAlg(), and WalkStitch().
|
private |
Definition at line 54 of file StitchAlg.h.
Referenced by FirstStitch(), and StitchAlg().
|
private |
Definition at line 58 of file StitchAlg.h.
Referenced by CommonComponentStitch(), FindHeadsAndTails(), and WalkStitch().
|
private |
Definition at line 59 of file StitchAlg.h.
Referenced by CommonComponentStitch(), FindHeadsAndTails(), FirstStitch(), and WalkStitch().