LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "SeedFinderAlgorithm.h"
Public Member Functions | |
SeedFinderAlgorithm (const fhicl::ParameterSet &pset) | |
void | reconfigure (fhicl::ParameterSet const &pset) |
std::vector< std::vector< recob::Seed > > | GetSeedsFromSortedHits (detinfo::DetectorClocksData const &clockData, detinfo::DetectorPropertiesData const &detProp, std::vector< std::vector< art::PtrVector< recob::Hit >>> const &SortedHits, std::vector< std::vector< art::PtrVector< recob::Hit >>> &HitsPerSeed, unsigned int StopAfter=0) const |
std::vector< recob::Seed > | GetSeedsFromUnSortedHits (detinfo::DetectorClocksData const &clockData, detinfo::DetectorPropertiesData const &detProp, art::PtrVector< recob::Hit > const &, std::vector< art::PtrVector< recob::Hit >> &, unsigned int StopAfter=0) const |
SpacePointAlg * | GetSpacePointAlg () const |
Private Member Functions | |
std::vector< recob::Seed > | FindSeeds (detinfo::DetectorClocksData const &clockData, detinfo::DetectorPropertiesData const &detProp, art::PtrVector< recob::Hit > const &HitsFlat, std::vector< art::PtrVector< recob::Hit >> &CataloguedHits, unsigned int StopAfter) const |
recob::Seed | FindSeedAtEnd (detinfo::DetectorPropertiesData const &detProp, 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) const |
void | GetCenterAndDirection (detinfo::DetectorPropertiesData const &detProp, art::PtrVector< recob::Hit > const &HitsFlat, std::vector< int > &HitsToUse, TVector3 &Center, TVector3 &Direction, std::vector< double > &ViewRMS, std::vector< int > &HitsPerView) const |
void | ConsolidateSeed (detinfo::DetectorPropertiesData const &detProp, recob::Seed &TheSeed, art::PtrVector< recob::Hit > const &, std::vector< char > &HitStatus, std::vector< std::vector< std::vector< int >>> &OrgHits, bool Extend) const |
void | GetHitDistAndProj (detinfo::DetectorPropertiesData const &detProp, recob::Seed const &ASeed, art::Ptr< recob::Hit > const &AHit, double &disp, double &s) const |
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 30 of file SeedFinderAlgorithm.h.
trkf::SeedFinderAlgorithm::SeedFinderAlgorithm | ( | const fhicl::ParameterSet & | pset | ) |
Definition at line 28 of file SeedFinderAlgorithm.cxx.
References reconfigure().
|
private |
Definition at line 931 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 375 of file SeedFinderAlgorithm.cxx.
References art::PtrVector< T >::at(), dir, larg4::dist(), fAllow2DSeeds, fHitResolution, fNChannels, fOccupancyCut, recob::Seed::GetDirection(), GetHitDistAndProj(), recob::Seed::GetPoint(), n, pt, recob::Seed::SetDirection(), recob::Seed::SetPoint(), recob::Seed::SetValidity(), and util::size().
Referenced by FindSeeds().
|
private |
Definition at line 648 of file SeedFinderAlgorithm.cxx.
References art::PtrVector< T >::begin(), util::counter(), art::PtrVector< T >::end(), fAllow2DSeeds, fInitSeedLength, fMaxViewRMS, fMinPointsInSeed, fSptalg, trkf::SpacePointAlg::getAssociatedHits(), GetCenterAndDirection(), and n.
Referenced by FindSeeds().
|
private |
Definition at line 62 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(), tca::Length(), trkf::SpacePointAlg::makeSpacePoints(), n, pt, art::PtrVector< T >::push_back(), r, recob::Seed::SetDirection(), recob::Seed::SetPoint(), recob::Seed::SetValidity(), art::PtrVector< T >::size(), and util::size().
Referenced by GetSeedsFromSortedHits(), and GetSeedsFromUnSortedHits().
|
private |
Definition at line 791 of file SeedFinderAlgorithm.cxx.
References art::PtrVector< T >::begin(), detinfo::DetectorPropertiesData::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 607 of file SeedFinderAlgorithm.cxx.
References detinfo::DetectorPropertiesData::ConvertTicksToX(), dir, recob::Seed::GetDirection(), recob::Seed::GetPoint(), recob::Hit::PeakTime(), recob::Hit::PeakTimeMinusRMS(), recob::Hit::PeakTimePlusRMS(), geo::PlaneID::Plane, pt, geo::GeometryCore::WireEndPoints(), and recob::Hit::WireID().
Referenced by ConsolidateSeed().
std::vector< std::vector< recob::Seed > > trkf::SeedFinderAlgorithm::GetSeedsFromSortedHits | ( | detinfo::DetectorClocksData const & | clockData, |
detinfo::DetectorPropertiesData const & | detProp, | ||
std::vector< std::vector< art::PtrVector< recob::Hit >>> const & | SortedHits, | ||
std::vector< std::vector< art::PtrVector< recob::Hit >>> & | HitsPerSeed, | ||
unsigned int | StopAfter = 0 |
||
) | const |
Definition at line 987 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 | ( | detinfo::DetectorClocksData const & | clockData, |
detinfo::DetectorPropertiesData const & | detProp, | ||
art::PtrVector< recob::Hit > const & | Hits, | ||
std::vector< art::PtrVector< recob::Hit >> & | HitCatalogue, | ||
unsigned int | StopAfter = 0 |
||
) | const |
Definition at line 975 of file SeedFinderAlgorithm.cxx.
References FindSeeds().
Referenced by trkf::Track3DKalmanHitAlg::makeTracks(), and trkf::SeedFinderModule::produce().
|
inline |
void trkf::SeedFinderAlgorithm::reconfigure | ( | fhicl::ParameterSet const & | pset | ) |
Definition at line 34 of file SeedFinderAlgorithm.cxx.
References CalculateGeometricalElements(), fAllow2DSeeds, fExtendSeeds, fHitResolution, fInitSeedLength, fLengthCut, fMaxViewRMS, fMinPointsInSeed, fOccupancyCut, fRefits, fSptalg, and fhicl::ParameterSet::get().
Referenced by SeedFinderAlgorithm().
|
private |
Definition at line 139 of file SeedFinderAlgorithm.h.
Referenced by ConsolidateSeed(), FindSeedAtEnd(), FindSeeds(), and reconfigure().
|
private |
Definition at line 137 of file SeedFinderAlgorithm.h.
Referenced by FindSeeds(), and reconfigure().
|
private |
Definition at line 131 of file SeedFinderAlgorithm.h.
Referenced by ConsolidateSeed(), and reconfigure().
|
private |
Definition at line 123 of file SeedFinderAlgorithm.h.
Referenced by FindSeedAtEnd(), and reconfigure().
|
private |
Definition at line 135 of file SeedFinderAlgorithm.h.
Referenced by FindSeeds(), and reconfigure().
|
private |
Definition at line 129 of file SeedFinderAlgorithm.h.
Referenced by FindSeedAtEnd(), FindSeeds(), and reconfigure().
|
private |
Definition at line 125 of file SeedFinderAlgorithm.h.
Referenced by FindSeedAtEnd(), FindSeeds(), and reconfigure().
|
private |
Definition at line 146 of file SeedFinderAlgorithm.h.
Referenced by CalculateGeometricalElements(), ConsolidateSeed(), and FindSeeds().
|
private |
Definition at line 133 of file SeedFinderAlgorithm.h.
Referenced by ConsolidateSeed(), and reconfigure().
|
private |
Definition at line 142 of file SeedFinderAlgorithm.h.
Referenced by CalculateGeometricalElements(), and GetCenterAndDirection().
|
private |
Definition at line 141 of file SeedFinderAlgorithm.h.
Referenced by CalculateGeometricalElements(), FindSeeds(), and GetCenterAndDirection().
|
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(), GetSeedsFromSortedHits(), and reconfigure().
|
private |
Definition at line 143 of file SeedFinderAlgorithm.h.
Referenced by CalculateGeometricalElements(), and GetCenterAndDirection().
|
private |
Definition at line 144 of file SeedFinderAlgorithm.h.
Referenced by CalculateGeometricalElements(), and GetCenterAndDirection().
|
private |
Definition at line 145 of file SeedFinderAlgorithm.h.
Referenced by CalculateGeometricalElements(), and GetCenterAndDirection().
|
private |
Definition at line 145 of file SeedFinderAlgorithm.h.
Referenced by CalculateGeometricalElements().
|
private |
Definition at line 145 of file SeedFinderAlgorithm.h.
Referenced by CalculateGeometricalElements().