LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "SeedFinderAlgorithm.h"
Public Member Functions | |
SeedFinderAlgorithm (const fhicl::ParameterSet &pset) | |
~SeedFinderAlgorithm () | |
void | reconfigure (fhicl::ParameterSet const &pset) |
std::vector< std::vector< recob::Seed > > | GetSeedsFromSortedHits (std::vector< std::vector< art::PtrVector< recob::Hit > > > const &SortedHits, std::vector< std::vector< art::PtrVector< recob::Hit > > > &HitsPerSeed, unsigned int StopAfter=0) |
std::vector< recob::Seed > | GetSeedsFromUnSortedHits (art::PtrVector< recob::Hit > const &, std::vector< art::PtrVector< recob::Hit > > &, unsigned int StopAfter=0) |
SpacePointAlg * | GetSpacePointAlg () const |
Private Member Functions | |
std::vector< recob::Seed > | FindSeeds (art::PtrVector< recob::Hit > const &HitsFlat, std::vector< art::PtrVector< recob::Hit > > &CataloguedHits, unsigned int StopAfter) |
recob::Seed | FindSeedAtEnd (std::vector< recob::SpacePoint > const &, std::vector< char > &, std::vector< int > &, art::PtrVector< recob::Hit > const &HitsFlat, std::vector< std::vector< std::vector< int > > > &OrgHits) |
size_t | CountHits (std::vector< recob::SpacePoint > const &Points) |
void | GetCenterAndDirection (art::PtrVector< recob::Hit > const &HitsFlat, std::vector< int > &HitsToUse, TVector3 &Center, TVector3 &Direction, std::vector< double > &ViewRMS, std::vector< int > &HitsPerView) |
void | ConsolidateSeed (recob::Seed &TheSeed, art::PtrVector< recob::Hit > const &, std::vector< char > &HitStatus, std::vector< std::vector< std::vector< int > > > &OrgHits, bool Extend) |
void | GetHitDistAndProj (recob::Seed const &ASeed, art::Ptr< recob::Hit > const &AHit, double &disp, double &s) |
void | CalculateGeometricalElements () |
Private Attributes | |
SpacePointAlg * | fSptalg |
double | fInitSeedLength |
int | fMinPointsInSeed |
int | fRefits |
std::vector< double > | fMaxViewRMS |
float | fHitResolution |
float | fOccupancyCut |
double | fLengthCut |
bool | fExtendSeeds |
bool | fAllow2DSeeds |
std::vector< double > | fPitches |
std::vector< TVector3 > | fPitchDir |
std::vector< TVector3 > | fWireDir |
std::vector< double > | fWireZeroOffset |
TVector3 | fXDir |
TVector3 | fYDir |
TVector3 | fZDir |
size_t | fNChannels |
Definition at line 27 of file SeedFinderAlgorithm.h.
trkf::SeedFinderAlgorithm::SeedFinderAlgorithm | ( | const fhicl::ParameterSet & | pset | ) |
Definition at line 39 of file SeedFinderAlgorithm.cxx.
References reconfigure().
trkf::SeedFinderAlgorithm::~SeedFinderAlgorithm | ( | ) |
Definition at line 48 of file SeedFinderAlgorithm.cxx.
|
private |
Definition at line 1083 of file SeedFinderAlgorithm.cxx.
References fNChannels, fPitchDir, fPitches, fWireDir, fWireZeroOffset, fXDir, fYDir, fZDir, geo::kU, geo::kV, geo::kW, n, geo::GeometryCore::Nchannels(), geo::GeometryCore::WireEndPoints(), and geo::GeometryCore::WirePitch().
Referenced by reconfigure().
|
private |
Definition at line 452 of file SeedFinderAlgorithm.cxx.
References art::PtrVector< T >::at(), dir, fAllow2DSeeds, fHitResolution, fNChannels, fOccupancyCut, recob::Seed::GetDirection(), GetHitDistAndProj(), recob::Seed::GetPoint(), n, pt, s, recob::Seed::SetDirection(), recob::Seed::SetPoint(), and recob::Seed::SetValidity().
Referenced by FindSeeds().
|
private |
|
private |
Definition at line 770 of file SeedFinderAlgorithm.cxx.
References art::PtrVector< T >::begin(), art::PtrVector< T >::end(), fAllow2DSeeds, fInitSeedLength, fMaxViewRMS, fMinPointsInSeed, fSptalg, trkf::SpacePointAlg::getAssociatedHits(), GetCenterAndDirection(), and n.
Referenced by FindSeeds().
|
private |
Definition at line 88 of file SeedFinderAlgorithm.cxx.
References art::PtrVector< T >::at(), art::PtrVector< T >::clear(), trkf::SpacePointAlg::clearHitMap(), ConsolidateSeed(), dir, fAllow2DSeeds, fExtendSeeds, FindSeedAtEnd(), fLengthCut, fMaxViewRMS, fMinPointsInSeed, fNChannels, fPitches, fRefits, fSptalg, trkf::SpacePointAlg::getAssociatedHits(), GetCenterAndDirection(), recob::Seed::GetDirection(), recob::Seed::GetLength(), recob::Seed::GetPoint(), recob::Seed::IsValid(), trkf::SpacePointAlg::makeSpacePoints(), n, pt, art::PtrVector< T >::push_back(), recob::Seed::SetDirection(), recob::Seed::SetPoint(), recob::Seed::SetValidity(), and art::PtrVector< T >::size().
Referenced by GetSeedsFromSortedHits(), and GetSeedsFromUnSortedHits().
|
private |
Definition at line 931 of file SeedFinderAlgorithm.cxx.
References art::PtrVector< T >::begin(), detinfo::DetectorProperties::ConvertTicksToX(), fPitchDir, fPitches, fWireDir, fWireZeroOffset, fXDir, geo::kU, geo::kV, geo::kW, art::errors::LogicError, n, geo::PlaneGeo::ViewName(), x, xx, and y.
Referenced by FindSeedAtEnd(), and FindSeeds().
|
private |
Definition at line 733 of file SeedFinderAlgorithm.cxx.
References detinfo::DetectorProperties::ConvertTicksToX(), dir, recob::Seed::GetDirection(), recob::Seed::GetPoint(), recob::Hit::PeakTime(), recob::Hit::PeakTimeMinusRMS(), recob::Hit::PeakTimePlusRMS(), geo::PlaneID::Plane, pt, geo::WireID::Wire, geo::GeometryCore::WireEndPoints(), and recob::Hit::WireID().
Referenced by ConsolidateSeed().
std::vector< std::vector< recob::Seed > > trkf::SeedFinderAlgorithm::GetSeedsFromSortedHits | ( | std::vector< std::vector< art::PtrVector< recob::Hit > > > const & | SortedHits, |
std::vector< std::vector< art::PtrVector< recob::Hit > > > & | HitsPerSeed, | ||
unsigned int | StopAfter = 0 |
||
) |
Definition at line 1148 of file SeedFinderAlgorithm.cxx.
References trkf::SpacePointAlg::enableU(), trkf::SpacePointAlg::enableV(), trkf::SpacePointAlg::enableW(), FindSeeds(), fSptalg, geo::kU, geo::kV, geo::kW, art::PtrVector< T >::push_back(), and lar::dump::vector().
Referenced by trkf::SeedFinderModule::produce().
std::vector< recob::Seed > trkf::SeedFinderAlgorithm::GetSeedsFromUnSortedHits | ( | art::PtrVector< recob::Hit > const & | Hits, |
std::vector< art::PtrVector< recob::Hit > > & | HitCatalogue, | ||
unsigned int | StopAfter = 0 |
||
) |
Definition at line 1134 of file SeedFinderAlgorithm.cxx.
References FindSeeds().
Referenced by trkf::BezierTrackerAlgorithm::MakeTracks(), trkf::Track3DKalmanHitAlg::makeTracks(), and trkf::SeedFinderModule::produce().
|
inline |
Definition at line 65 of file SeedFinderAlgorithm.h.
References s, and lar::dump::vector().
Referenced by trkf::BezierTrackerAlgorithm::MakeTracks().
void trkf::SeedFinderAlgorithm::reconfigure | ( | fhicl::ParameterSet const & | pset | ) |
Definition at line 53 of file SeedFinderAlgorithm.cxx.
References CalculateGeometricalElements(), fAllow2DSeeds, fExtendSeeds, fHitResolution, fInitSeedLength, fLengthCut, fMaxViewRMS, fMinPointsInSeed, fOccupancyCut, fRefits, fSptalg, and fhicl::ParameterSet::get().
Referenced by trkf::SeedFinderModule::reconfigure(), trkf::Track3DKalmanHitAlg::reconfigure(), and SeedFinderAlgorithm().
|
private |
Definition at line 131 of file SeedFinderAlgorithm.h.
Referenced by ConsolidateSeed(), FindSeedAtEnd(), FindSeeds(), and reconfigure().
|
private |
Definition at line 129 of file SeedFinderAlgorithm.h.
Referenced by FindSeeds(), and reconfigure().
|
private |
Definition at line 123 of file SeedFinderAlgorithm.h.
Referenced by ConsolidateSeed(), and reconfigure().
|
private |
Definition at line 115 of file SeedFinderAlgorithm.h.
Referenced by FindSeedAtEnd(), and reconfigure().
|
private |
Definition at line 127 of file SeedFinderAlgorithm.h.
Referenced by FindSeeds(), and reconfigure().
|
private |
Definition at line 121 of file SeedFinderAlgorithm.h.
Referenced by FindSeedAtEnd(), FindSeeds(), and reconfigure().
|
private |
Definition at line 117 of file SeedFinderAlgorithm.h.
Referenced by FindSeedAtEnd(), FindSeeds(), and reconfigure().
|
private |
Definition at line 139 of file SeedFinderAlgorithm.h.
Referenced by CalculateGeometricalElements(), ConsolidateSeed(), and FindSeeds().
|
private |
Definition at line 125 of file SeedFinderAlgorithm.h.
Referenced by ConsolidateSeed(), and reconfigure().
|
private |
Definition at line 135 of file SeedFinderAlgorithm.h.
Referenced by CalculateGeometricalElements(), and GetCenterAndDirection().
|
private |
Definition at line 134 of file SeedFinderAlgorithm.h.
Referenced by CalculateGeometricalElements(), FindSeeds(), and GetCenterAndDirection().
|
private |
Definition at line 119 of file SeedFinderAlgorithm.h.
Referenced by FindSeeds(), and reconfigure().
|
private |
Definition at line 113 of file SeedFinderAlgorithm.h.
Referenced by FindSeedAtEnd(), FindSeeds(), GetSeedsFromSortedHits(), and reconfigure().
|
private |
Definition at line 136 of file SeedFinderAlgorithm.h.
Referenced by CalculateGeometricalElements(), and GetCenterAndDirection().
|
private |
Definition at line 137 of file SeedFinderAlgorithm.h.
Referenced by CalculateGeometricalElements(), and GetCenterAndDirection().
|
private |
Definition at line 138 of file SeedFinderAlgorithm.h.
Referenced by CalculateGeometricalElements(), and GetCenterAndDirection().
|
private |
Definition at line 138 of file SeedFinderAlgorithm.h.
Referenced by CalculateGeometricalElements().
|
private |
Definition at line 138 of file SeedFinderAlgorithm.h.
Referenced by CalculateGeometricalElements().