8 #ifndef HoughFinder2DAlgo_H_ 9 #define HoughFinder2DAlgo_H_ 22 #include "algorithm/Algorithm.h" 83 bool Initialize()
override;
89 bool Process()
override;
95 bool Finalize()
override;
103 int GetVotingIndex(
float R,
float Theta);
109 std::pair<float, float> GetRTheta(
int votingIndex);
120 std::string _collName =
"tracks2DColl_hough";
121 bool _publishAlias =
true;
155 void RemoveFromVotingSpace(
const Cluster &cluster);
158 int FindCandidateTrack();
161 std::vector<HoughTrackStub> AccumulateVotes(
int votingIndex);
164 void SearchVotes(
int votingIndex, std::vector<int> &vIndexes);
167 std::pair<bool, HFCluster> FindClusterFromSeedIndex(
const HFClusters &clColl,
unsigned int clID);
170 std::pair<float, float> GetAvRTheta(
const std::vector<HoughTrackStub> &votes);
173 Track2D BuildTrackFromVotes(std::vector<HoughTrackStub> &votes,
const HFClusters &clColl);
177 std::tuple<StkClustersColl, ScdClustersColl, FitClustersColl>
178 FillClusterCollections(
const std::vector<HoughTrackStub> &votes,
const HFClusters &clColl);
Track2DColl _trackColl
Definition: HoughFinder2DAlgo.h:186
CssGeoParams.h CssGeoParams class declaration.
Definition: CaloPDCalibrationAlgo.h:24
DetectorType
Definition: HFCluster.h:23
std::unordered_map< int, std::vector< HoughTrackStub > > _votingSpace
Definition: HoughFinder2DAlgo.h:181
Finds tracks from a collection of 2D hits.
Definition: HoughFinder2DAlgo.h:71
Tracker cluster object for transient data model.
Definition: Cluster.h:30
std::vector< std::vector< HFCluster > > HFClusters
Definition: HoughFinder2DAlgo.h:69
void ClearVotingSpace()
Definition: HoughFinder2DAlgo.h:146
HFClusters _clXY
Definition: HoughFinder2DAlgo.h:133
EA::observer_ptr< ScdGeoParamsColl > _scdGeoParamsColl
Definition: HoughFinder2DAlgo.h:184
EA::observer_ptr< FitGeoParamsColl > _fitGeoParamsColl
Definition: HoughFinder2DAlgo.h:185
float _RMax
Definition: HoughFinder2DAlgo.h:128
EA::observer_ptr< StkGeoParamsColl > _stkGeoParamsColl
Definition: HoughFinder2DAlgo.h:183
HFClusters _clYZ
Definition: HoughFinder2DAlgo.h:132
HFClusters _clXZ
Definition: HoughFinder2DAlgo.h:131
Class describing a track.
Definition: Track2D.h:34
unsigned int _nRDiv
Definition: HoughFinder2DAlgo.h:127
Collection of containers for the clusters of all the FIT detectors.
Definition: FitClustersColl.h:23
View
Aliases for the three 2D projection planes. RefFrame.h common/RefFrame.h.
Definition: RefFrame.h:93
unsigned int _nThetaDiv
Definition: HoughFinder2DAlgo.h:126
unsigned int _nVotes
Definition: HoughFinder2DAlgo.h:129
StorePtr _globStore
Definition: HoughFinder2DAlgo.h:187
StorePtr _evStore
Definition: HoughFinder2DAlgo.h:188