LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "StitchAlg.h"
Public Member Functions | |
StitchAlg (fhicl::ParameterSet const &pset) | |
virtual | ~StitchAlg () |
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) |
void | GetTracks (std::vector< recob::Track > &t) |
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 27 of file StitchAlg.h.
trkf::StitchAlg::StitchAlg | ( | fhicl::ParameterSet const & | pset | ) |
Definition at line 36 of file StitchAlg.cxx.
References art::Handle< T >::clear(), ftListHandle, ftNo, and reconfigure().
|
inlinevirtual |
bool trkf::StitchAlg::CommonComponentStitch | ( | ) |
Definition at line 493 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 54 of file StitchAlg.cxx.
References recob::Track::End(), recob::Track::EndDirection(), fCosAngTol, fh, fHT, fSepTol, ft, ftListHandle, fTrackComposite, fTrackVec, art::DataViewImpl::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 261 of file StitchAlg.cxx.
References e, fHT, ftNo, fTrackVec, geo::kZ, and pt.
Referenced by CommonComponentStitch(), and WalkStitch().
|
inline |
Definition at line 42 of file StitchAlg.h.
Referenced by trkf::TrackStitcher::produce().
|
inline |
void trkf::StitchAlg::reconfigure | ( | fhicl::ParameterSet const & | pset | ) |
Definition at line 46 of file StitchAlg.cxx.
References fCosAngTol, fSepTol, and fhicl::ParameterSet::get().
Referenced by trkf::TrackStitcher::reconfigure(), and StitchAlg().
void trkf::StitchAlg::WalkStitch | ( | ) |
Definition at line 338 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 52 of file StitchAlg.h.
Referenced by FindHeadsAndTails(), and reconfigure().
|
private |
Definition at line 49 of file StitchAlg.h.
Referenced by FindHeadsAndTails(), and WalkStitch().
|
private |
Definition at line 58 of file StitchAlg.h.
Referenced by CommonComponentStitch(), FindHeadsAndTails(), FirstStitch(), and WalkStitch().
|
private |
Definition at line 53 of file StitchAlg.h.
Referenced by FindHeadsAndTails(), and reconfigure().
|
private |
Definition at line 50 of file StitchAlg.h.
Referenced by FindHeadsAndTails(), and WalkStitch().
art::Handle< std::vector< recob::Track > > trkf::StitchAlg::ftListHandle |
Definition at line 43 of file StitchAlg.h.
Referenced by FindHeadsAndTails(), trkf::TrackStitcher::produce(), StitchAlg(), and WalkStitch().
|
private |
Definition at line 51 of file StitchAlg.h.
Referenced by FirstStitch(), and StitchAlg().
|
private |
Definition at line 56 of file StitchAlg.h.
Referenced by CommonComponentStitch(), FindHeadsAndTails(), and WalkStitch().
|
private |
Definition at line 57 of file StitchAlg.h.
Referenced by CommonComponentStitch(), FindHeadsAndTails(), FirstStitch(), and WalkStitch().