8 #ifndef HoughFinder2DAlgo_H_ 9 #define HoughFinder2DAlgo_H_ 21 #include "algorithm/Algorithm.h" 75 bool Initialize()
override;
81 bool Process()
override;
87 bool Finalize()
override;
95 int GetVotingIndex(
float R,
float Theta);
101 std::pair<float, float> GetRTheta(
int votingIndex);
141 void RemoveFromVotingSpace(
const Cluster &cluster);
144 int FindCandidateTrack();
147 std::vector<HoughTrackStub> AccumulateVotes(
int votingIndex);
150 void SearchVotes(
int votingIndex, std::vector<int> &vIndexes);
153 std::pair<bool, HFCluster> FindClusterFromSeedIndex(
const HFClusters &clColl,
unsigned int clID);
156 std::pair<float, float> GetAvRTheta(
const std::vector<HoughTrackStub> &votes);
159 void BuildTrackFromVotes(std::vector<HoughTrackStub> &votes,
const HFClusters &clusters);
163 std::tuple<StkClustersColl, ScdClustersColl, FitClustersColl>
164 FillClusterCollections(
const std::vector<HoughTrackStub> &votes,
const HFClusters &clColl);
std::vector< Track2D > _trackColl
Definition: HoughFinder2DAlgo.h:172
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:167
Finds tracks from a collection of 2D hits.
Definition: HoughFinder2DAlgo.h:63
Tracker cluster object for transient data model.
Definition: Cluster.h:30
std::vector< std::vector< HFCluster > > HFClusters
Definition: HoughFinder2DAlgo.h:61
void ClearVotingSpace()
Definition: HoughFinder2DAlgo.h:132
HFClusters _clXY
Definition: HoughFinder2DAlgo.h:119
EA::observer_ptr< ScdGeoParamsColl > _scdGeoParamsColl
Definition: HoughFinder2DAlgo.h:170
EA::observer_ptr< FitGeoParamsColl > _fitGeoParamsColl
Definition: HoughFinder2DAlgo.h:171
float _RMax
Definition: HoughFinder2DAlgo.h:114
EA::observer_ptr< StkGeoParamsColl > _stkGeoParamsColl
Definition: HoughFinder2DAlgo.h:169
HFClusters _clYZ
Definition: HoughFinder2DAlgo.h:118
HFClusters _clXZ
Definition: HoughFinder2DAlgo.h:117
unsigned int _nRDiv
Definition: HoughFinder2DAlgo.h:113
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:90
unsigned int _nThetaDiv
Definition: HoughFinder2DAlgo.h:112
unsigned int _nVotes
Definition: HoughFinder2DAlgo.h:115
StorePtr _globStore
Definition: HoughFinder2DAlgo.h:173
StorePtr _evStore
Definition: HoughFinder2DAlgo.h:174