7 #ifndef TRACKFIT_WINDOWTRACKINGALG_H 8 #define TRACKFIT_WINDOWTRACKINGALG_H 22 namespace fhicl {
class ParameterSet; }
38 std::vector<rb::Track> MakeTrack(
const rb::Cluster* slice );
45 bool(*comp)(
unsigned short int,
unsigned short int));
48 bool(*)(
unsigned short int,
unsigned short int) > &
hits,
49 std::map<
unsigned short int, std::pair<float, float>,
50 bool(*)(
unsigned short int,
unsigned short int) >
const& planeCoG,
67 std::map<
unsigned short int, std::pair<float, float>,
68 bool(*)(
unsigned short int,
unsigned short int) >
const& planeCoG,
72 bool(*)(
unsigned short int,
unsigned short int) > & xViewHits,
74 bool(*)(
unsigned short int,
unsigned short int) > & yViewHits,
75 std::map<
unsigned short int, std::pair<float, float>,
76 bool(*)(
unsigned short int,
unsigned short int) >
const& planeCoG,
80 bool(*)(
unsigned short int,
unsigned short int) > & viewHits,
81 std::map<
unsigned short int, std::pair<float, float>,
82 bool(*)(
unsigned short int,
unsigned short int) >
const& planeCoG,
83 bool const& twoPlanes,
84 int const& firstPlane,
85 int const& secondPlane,
88 bool(*)(
unsigned short int,
unsigned short int) >
const& viewHits,
89 std::map<
unsigned short int, std::pair<float, float>,
90 bool(*)(
unsigned short int,
unsigned short int) >
const& planeCoG,
91 std::vector<std::pair<geo::View_t, TVector3> > & trajPoints,
93 unsigned short int const& removedPlane);
95 bool(*)(
unsigned short int,
unsigned short int) > & viewHits,
96 std::map<
unsigned short int, std::pair<float, float>,
97 bool(*)(
unsigned short int,
unsigned short int) > & planeCoG,
98 unsigned short int & removedPlane);
101 void SetTrackEndPoints(
rb::Track & track);
104 TVector3
const& endPoint,
105 TVector3
const& endDir,
109 void CheckTrackDirectionInY(
rb::Track & track,
113 void DetermineInitialDirection(
rb::Track & track);
116 bool(*)(
unsigned short int,
unsigned short int) >
const& planeToHit);
133 #endif // TRACKFIT_WINDOWTRACKINGALG_H An algorithm to perform cosmic ray track fitting.
enum geo::_plane_proj View_t
Enumerate the possible plane projections.
A collection of associated CellHits.
unsigned int fMinHitsTryAgain
Minimum number of hits left to look for another track.
A rb::Prong with full reconstructed trajectory.
Track finder for cosmic rays.
art::ServiceHandle< geo::Geometry > fGeo
handle to the geometry
Track finder for cosmic rays.
double fCellHalfDepth
half of cell size in z
unsigned int fMinViewPlanes
Minimum number of planes in a view to fit.
An algorithm to perform cosmic ray track fitting.
Perform a "2 point" Hough transform on a collection of hits.
double fMinHitFraction
Minimum value of hits/plane to look for a track.
unsigned int fWindowSize
Number of planes in the sliding window.
unsigned int fNTrajectory
number of trajectory points to use in determining incoming direction
int fMaxPlaneSeparation
Maximum number of planes allowed to separate planes with hits in slice.
Encapsulate the geometry of one entire detector (near, far, ndos)