LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "BezierTrack.h"
Public Member Functions | |
BezierTrack (int id, const recob::Trajectory &traj) | |
BezierTrack (const recob::Track &track) | |
BezierTrack (std::vector< TVector3 > const &Pos, std::vector< TVector3 > const &Dir, std::vector< std::vector< double > > const &dQdx, int id) | |
BezierTrack (std::vector< recob::Seed > const &) | |
int | NSegments () const |
double | GetLength () const |
double | GetRMSCurvature () const |
double | GetTotalCharge (unsigned int View) const |
double | GetViewdQdx (unsigned int View) const |
TVector3 | GetTrackPointV (double s) const |
TVector3 | GetTrackDirectionV (double s) const |
void | GetTrackPoint (double s, double *xyz) const |
void | GetTrackDirection (double s, double *xyz) const |
void | FillTrackVectors (std::vector< TVector3 > &xyzVector, std::vector< TVector3 > &dirVector, double const ds=0.1) const |
double | GetCurvature (double s) const |
double | GetdQdx (double s, unsigned int View) const |
void | GetProjectedPointUVWX (double s, double *uvw, double *x, int c, int t) const |
void | GetProjectedPointUVWT (double s, double *uvw, double *ticks, int c, int t) const |
void | GetClosestApproach (recob::Hit const &hit, double &s, double &Distance) const |
void | GetClosestApproach (art::Ptr< recob::Hit > const &hit, double &s, double &Distance) const |
void | GetClosestApproach (recob::SpacePoint *sp, double &s, double &Distance) const |
void | GetClosestApproach (recob::Seed const &seed, double &s, double &Distance) const |
void | GetClosestApproach (TVector3 vec, double &s, double &Distance) const |
void | GetClosestApproach (uint32_t w, int p, int t, int c, float x, double &s, double &Distance) const |
double | GetTrackPitch (geo::View_t view, double s, double WirePitch, unsigned int c=0, unsigned int t=0) |
void | GetClosestApproaches (art::PtrVector< recob::Hit > const &hits, std::vector< double > &s, std::vector< double > &Distances) const |
void | GetClosestApproaches (std::vector< art::Ptr< recob::Hit > > const &hits, std::vector< double > &s, std::vector< double > &Distances) const |
void | CalculatedQdx (art::PtrVector< recob::Hit >const &) |
void | CalculatedQdx (art::PtrVector< recob::Hit >const &, std::vector< double > const &SValues) |
anab::Calorimetry | GetCalorimetryObject (std::vector< art::Ptr< recob::Hit > > const &Hits, geo::SigType_t sigtype, calo::CalorimetryAlg const &) |
anab::Calorimetry | GetCalorimetryObject (art::PtrVector< recob::Hit > const &Hits, geo::SigType_t sigtype, calo::CalorimetryAlg const &) |
anab::Calorimetry | GetCalorimetryObject (art::PtrVector< recob::Hit > const &Hits, geo::View_t view, calo::CalorimetryAlg const &calalg) |
BezierTrack | Reverse () |
std::vector< recob::SpacePoint > | GetSpacePointTrajectory (int N) |
BezierTrack | GetPartialTrack (double LowS, double HighS) |
std::vector< recob::Seed > | GetSeedVector () |
int | WhichSegment (double S) const |
recob::Trajectory const & | GetTrajectory () const |
Returns the current trajectory. More... | |
Private Member Functions | |
void | CalculateSegments () |
void | FillTrajectoryVectors () |
void | FillSeedVector () |
Private Attributes | |
recob::Trajectory | fTraj |
Internal trajectory representation. More... | |
std::vector< std::vector< double > > | fdQdx |
std::vector< double > | fSegmentLength |
std::vector< double > | fCumulativeLength |
std::vector< recob::Seed > | fSeedCollection |
double | fTrackLength |
int | fBezierResolution |
Definition at line 29 of file BezierTrack.h.
trkf::BezierTrack::BezierTrack | ( | int | id, |
const recob::Trajectory & | traj | ||
) |
Definition at line 29 of file BezierTrack.cxx.
References CalculateSegments(), and fBezierResolution.
Referenced by Reverse().
trkf::BezierTrack::BezierTrack | ( | const recob::Track & | track | ) |
Definition at line 40 of file BezierTrack.cxx.
trkf::BezierTrack::BezierTrack | ( | std::vector< TVector3 > const & | Pos, |
std::vector< TVector3 > const & | Dir, | ||
std::vector< std::vector< double > > const & | dQdx, | ||
int | id | ||
) |
Definition at line 91 of file BezierTrack.cxx.
References CalculateSegments(), and fBezierResolution.
trkf::BezierTrack::BezierTrack | ( | std::vector< recob::Seed > const & | SeedCol | ) |
Definition at line 46 of file BezierTrack.cxx.
References CalculateSegments(), fBezierResolution, and fSeedCollection.
void trkf::BezierTrack::CalculatedQdx | ( | art::PtrVector< recob::Hit >const & | Hits | ) |
Definition at line 978 of file BezierTrack.cxx.
References art::PtrVector< T >::at(), fdQdx, fSegmentLength, GetClosestApproach(), NSegments(), art::PtrVector< T >::size(), and WhichSegment().
void trkf::BezierTrack::CalculatedQdx | ( | art::PtrVector< recob::Hit >const & | Hits, |
std::vector< double > const & | SValues | ||
) |
Definition at line 1022 of file BezierTrack.cxx.
References art::PtrVector< T >::at(), fdQdx, fSegmentLength, NSegments(), art::PtrVector< T >::size(), and WhichSegment().
|
private |
Definition at line 363 of file BezierTrack.cxx.
References fCumulativeLength, FillSeedVector(), FillTrajectoryVectors(), fSeedCollection, fSegmentLength, fTrackLength, trkf::BezierCurveHelper::GetSegmentLength(), and NSegments().
Referenced by BezierTrack().
|
private |
Definition at line 299 of file BezierTrack.cxx.
References dir, recob::Trajectory::DirectionAtPoint(), fSeedCollection, fTraj, recob::Trajectory::LocationAtPoint(), and NSegments().
Referenced by CalculateSegments().
void trkf::BezierTrack::FillTrackVectors | ( | std::vector< TVector3 > & | xyzVector, |
std::vector< TVector3 > & | dirVector, | ||
double const | ds = 0.1 |
||
) | const |
Definition at line 1199 of file BezierTrack.cxx.
References GetLength(), GetTrackDirectionV(), GetTrackPointV(), and s.
|
private |
Definition at line 328 of file BezierTrack.cxx.
References fdQdx, fSeedCollection, fTraj, and geo::GeometryCore::Nplanes().
Referenced by CalculateSegments().
anab::Calorimetry trkf::BezierTrack::GetCalorimetryObject | ( | std::vector< art::Ptr< recob::Hit > > const & | Hits, |
geo::SigType_t | sigtype, | ||
calo::CalorimetryAlg const & | calalg | ||
) |
Definition at line 168 of file BezierTrack.cxx.
References art::PtrVector< T >::at(), art::PtrVector< T >::clear(), art::PtrVector< T >::push_back(), and art::PtrVector< T >::size().
Referenced by evd::AnalysisBaseDrawer::CalorInteractive(), calo::BezierCalorimetry::produce(), and evd::HitSelector::SaveSeedLines().
anab::Calorimetry trkf::BezierTrack::GetCalorimetryObject | ( | art::PtrVector< recob::Hit > const & | Hits, |
geo::SigType_t | sigtype, | ||
calo::CalorimetryAlg const & | calalg | ||
) |
Definition at line 183 of file BezierTrack.cxx.
References art::PtrVector< T >::at(), d, calo::CalorimetryAlg::dEdx_AMP(), GetClosestApproach(), GetLength(), GetTrackPitch(), s, art::PtrVector< T >::size(), and geo::GeometryCore::WirePitch().
anab::Calorimetry trkf::BezierTrack::GetCalorimetryObject | ( | art::PtrVector< recob::Hit > const & | Hits, |
geo::View_t | view, | ||
calo::CalorimetryAlg const & | calalg | ||
) |
Definition at line 242 of file BezierTrack.cxx.
References art::PtrVector< T >::at(), d, calo::CalorimetryAlg::dEdx_AMP(), GetClosestApproach(), GetLength(), GetTrackPitch(), s, art::PtrVector< T >::size(), and geo::GeometryCore::WirePitch().
void trkf::BezierTrack::GetClosestApproach | ( | recob::Hit const & | hit, |
double & | s, | ||
double & | Distance | ||
) | const |
Definition at line 602 of file BezierTrack.cxx.
References detinfo::DetectorProperties::ConvertTicksToX(), geo::CryostatID::Cryostat, d, fBezierResolution, GetTrackPoint(), recob::Hit::PeakTime(), geo::PlaneID::Plane, geo::TPCID::TPC, geo::WireID::Wire, geo::GeometryCore::WireEndPoints(), and recob::Hit::WireID().
Referenced by CalculatedQdx(), GetCalorimetryObject(), GetClosestApproach(), and trkf::FeatureTracker::GetConnectionMap().
void trkf::BezierTrack::GetClosestApproach | ( | art::Ptr< recob::Hit > const & | hit, |
double & | s, | ||
double & | Distance | ||
) | const |
Definition at line 650 of file BezierTrack.cxx.
References detinfo::DetectorProperties::ConvertTicksToX(), geo::CryostatID::Cryostat, d, fBezierResolution, GetTrackPoint(), recob::Hit::PeakTime(), geo::PlaneID::Plane, geo::TPCID::TPC, geo::WireID::Wire, geo::GeometryCore::WireEndPoints(), and recob::Hit::WireID().
void trkf::BezierTrack::GetClosestApproach | ( | recob::SpacePoint * | sp, |
double & | s, | ||
double & | Distance | ||
) | const |
Definition at line 739 of file BezierTrack.cxx.
References GetClosestApproach(), and recob::SpacePoint::XYZ().
void trkf::BezierTrack::GetClosestApproach | ( | recob::Seed const & | seed, |
double & | s, | ||
double & | Distance | ||
) | const |
Definition at line 750 of file BezierTrack.cxx.
References GetClosestApproach(), and recob::Seed::GetPoint().
void trkf::BezierTrack::GetClosestApproach | ( | TVector3 | vec, |
double & | s, | ||
double & | Distance | ||
) | const |
Definition at line 764 of file BezierTrack.cxx.
References d, fBezierResolution, and GetTrackPoint().
void trkf::BezierTrack::GetClosestApproach | ( | uint32_t | w, |
int | p, | ||
int | t, | ||
int | c, | ||
float | x, | ||
double & | s, | ||
double & | Distance | ||
) | const |
Definition at line 696 of file BezierTrack.cxx.
References d, fBezierResolution, GetTrackPoint(), geo::GeometryCore::WireEndPoints(), and x.
void trkf::BezierTrack::GetClosestApproaches | ( | art::PtrVector< recob::Hit > const & | hits, |
std::vector< double > & | s, | ||
std::vector< double > & | Distances | ||
) | const |
Definition at line 519 of file BezierTrack.cxx.
References art::PtrVector< T >::at(), detinfo::DetectorProperties::ConvertTicksToX(), geo::CryostatID::Cryostat, d, fBezierResolution, GetTrackPointV(), geo::PlaneID::Plane, art::PtrVector< T >::size(), geo::TPCID::TPC, geo::WireID::Wire, and geo::GeometryCore::WireEndPoints().
Referenced by GetClosestApproaches(), and evd::HitSelector::SaveSeedLines().
void trkf::BezierTrack::GetClosestApproaches | ( | std::vector< art::Ptr< recob::Hit > > const & | hits, |
std::vector< double > & | s, | ||
std::vector< double > & | Distances | ||
) | const |
Definition at line 586 of file BezierTrack.cxx.
References art::PtrVector< T >::clear(), GetClosestApproaches(), hits(), and art::PtrVector< T >::push_back().
double trkf::BezierTrack::GetCurvature | ( | double | s | ) | const |
Definition at line 858 of file BezierTrack.cxx.
References fBezierResolution, fTrackLength, and GetTrackPointV().
Referenced by GetRMSCurvature().
double trkf::BezierTrack::GetdQdx | ( | double | s, |
unsigned int | View | ||
) | const |
Definition at line 1065 of file BezierTrack.cxx.
References fdQdx, and WhichSegment().
double trkf::BezierTrack::GetLength | ( | ) | const |
Definition at line 899 of file BezierTrack.cxx.
References fTrackLength.
Referenced by FillTrackVectors(), GetCalorimetryObject(), trkf::FeatureTracker::GetConnectionMap(), opdet::TrackTimeAssoc::GetMIPHypotheses(), opdet::BeamFlashCompatabilityCheck::GetMIPHypotheses(), GetPartialTrack(), and evd::TWireProjPad::UpdateSeedCurve().
BezierTrack trkf::BezierTrack::GetPartialTrack | ( | double | LowS, |
double | HighS | ||
) |
Definition at line 906 of file BezierTrack.cxx.
References fSeedCollection, GetLength(), GetTrackPointV(), n, and WhichSegment().
void trkf::BezierTrack::GetProjectedPointUVWT | ( | double | s, |
double * | uvw, | ||
double * | ticks, | ||
int | c = 0 , |
||
int | t = 0 |
||
) | const |
Definition at line 492 of file BezierTrack.cxx.
References detinfo::DetectorProperties::ConvertXToTicks(), geo::GeometryCore::Cryostat(), GetTrackPoint(), geo::GeometryCore::NearestWire(), geo::TPCGeo::Nplanes(), and geo::CryostatGeo::TPC().
Referenced by corner::CornerFinderAlg::line_integrals(), and evd::TWireProjPad::UpdateSeedCurve().
void trkf::BezierTrack::GetProjectedPointUVWX | ( | double | s, |
double * | uvw, | ||
double * | x, | ||
int | c = 0 , |
||
int | t = 0 |
||
) | const |
Definition at line 463 of file BezierTrack.cxx.
References geo::GeometryCore::Cryostat(), GetTrackPoint(), geo::GeometryCore::NearestWire(), geo::TPCGeo::Nplanes(), and geo::CryostatGeo::TPC().
double trkf::BezierTrack::GetRMSCurvature | ( | ) | const |
std::vector< recob::Seed > trkf::BezierTrack::GetSeedVector | ( | ) |
Definition at line 108 of file BezierTrack.cxx.
References fSeedCollection.
Referenced by trkf::BezierTrackerAlgorithm::JoinTracks(), and Reverse().
std::vector< recob::SpacePoint > trkf::BezierTrack::GetSpacePointTrajectory | ( | int | N | ) |
Definition at line 1168 of file BezierTrack.cxx.
References GetTrackPoint(), and util::kBogusD.
double trkf::BezierTrack::GetTotalCharge | ( | unsigned int | View | ) | const |
Definition at line 1131 of file BezierTrack.cxx.
References fTrackLength, and GetViewdQdx().
void trkf::BezierTrack::GetTrackDirection | ( | double | s, |
double * | xyz | ||
) | const |
Definition at line 799 of file BezierTrack.cxx.
References fBezierResolution, and GetTrackPoint().
Referenced by GetTrackDirectionV().
TVector3 trkf::BezierTrack::GetTrackDirectionV | ( | double | s | ) | const |
Definition at line 844 of file BezierTrack.cxx.
References GetTrackDirection().
Referenced by FillTrackVectors(), and GetTrackPitch().
double trkf::BezierTrack::GetTrackPitch | ( | geo::View_t | view, |
double | s, | ||
double | WirePitch, | ||
unsigned int | c = 0 , |
||
unsigned int | t = 0 |
||
) |
Definition at line 128 of file BezierTrack.cxx.
References geo::GeometryCore::Cryostat(), GetTrackDirectionV(), geo::TPCGeo::Nplanes(), geo::TPCGeo::Plane(), geo::CryostatGeo::TPC(), geo::PlaneGeo::View(), geo::GeometryCore::WireEndPoints(), and geo::GeometryCore::WirePitch().
Referenced by GetCalorimetryObject().
void trkf::BezierTrack::GetTrackPoint | ( | double | s, |
double * | xyz | ||
) | const |
Definition at line 408 of file BezierTrack.cxx.
References recob::Trajectory::End(), fCumulativeLength, fSeedCollection, fSegmentLength, fTrackLength, fTraj, trkf::BezierCurveHelper::GetBezierPointXYZ(), and recob::Trajectory::Start().
Referenced by GetClosestApproach(), opdet::TrackTimeAssoc::GetMIPHypotheses(), opdet::BeamFlashCompatabilityCheck::GetMIPHypotheses(), GetProjectedPointUVWT(), GetProjectedPointUVWX(), GetSpacePointTrajectory(), GetTrackDirection(), GetTrackPointV(), opdet::TrackTimeAssoc::ScanMIPHypotheses(), and evd::Display3DPad::UpdateSeedCurve().
TVector3 trkf::BezierTrack::GetTrackPointV | ( | double | s | ) | const |
Definition at line 835 of file BezierTrack.cxx.
References GetTrackPoint().
Referenced by FillTrackVectors(), GetClosestApproaches(), GetCurvature(), and GetPartialTrack().
|
inline |
Returns the current trajectory.
Definition at line 96 of file BezierTrack.h.
Referenced by opdet::TrackTimeAssoc::ScanMIPHypotheses().
double trkf::BezierTrack::GetViewdQdx | ( | unsigned int | View | ) | const |
Definition at line 1105 of file BezierTrack.cxx.
References fdQdx, fSegmentLength, fTrackLength, and NSegments().
Referenced by GetTotalCharge().
int trkf::BezierTrack::NSegments | ( | ) | const |
Definition at line 1160 of file BezierTrack.cxx.
References fTraj, and recob::Trajectory::NumberTrajectoryPoints().
Referenced by CalculatedQdx(), CalculateSegments(), FillSeedVector(), and GetViewdQdx().
trkf::BezierTrack trkf::BezierTrack::Reverse | ( | ) |
Definition at line 1187 of file BezierTrack.cxx.
References BezierTrack(), and GetSeedVector().
int trkf::BezierTrack::WhichSegment | ( | double | S | ) | const |
Definition at line 1142 of file BezierTrack.cxx.
References fCumulativeLength, fTrackLength, and s.
Referenced by CalculatedQdx(), GetdQdx(), and GetPartialTrack().
|
private |
Definition at line 118 of file BezierTrack.h.
Referenced by BezierTrack(), GetClosestApproach(), GetClosestApproaches(), GetCurvature(), GetRMSCurvature(), and GetTrackDirection().
|
private |
Definition at line 113 of file BezierTrack.h.
Referenced by CalculateSegments(), GetTrackPoint(), and WhichSegment().
|
private |
Charge deposition per unit length at points along track outer vector index is, per plane.
Definition at line 109 of file BezierTrack.h.
Referenced by CalculatedQdx(), FillTrajectoryVectors(), GetdQdx(), and GetViewdQdx().
|
private |
Definition at line 115 of file BezierTrack.h.
Referenced by BezierTrack(), CalculateSegments(), FillSeedVector(), FillTrajectoryVectors(), GetPartialTrack(), GetSeedVector(), and GetTrackPoint().
|
private |
Definition at line 112 of file BezierTrack.h.
Referenced by CalculatedQdx(), CalculateSegments(), GetTrackPoint(), and GetViewdQdx().
|
private |
Definition at line 117 of file BezierTrack.h.
Referenced by CalculateSegments(), GetCurvature(), GetLength(), GetTotalCharge(), GetTrackPoint(), GetViewdQdx(), and WhichSegment().
|
private |
Internal trajectory representation.
Definition at line 105 of file BezierTrack.h.
Referenced by FillSeedVector(), FillTrajectoryVectors(), GetTrackPoint(), and NSegments().