13 const std::string routineName(
"HoughFinder2DAlgo::FillVotingSpace");
19 float r = 0, theta = 0;
20 for (
size_t iLayer = 0; iLayer < clusters.size() - 1; iLayer++) {
21 for (
auto _cl1 : clusters[iLayer]) {
22 for (
size_t jLayer = iLayer + 1; jLayer < clusters.size(); jLayer++) {
23 for (
auto _cl2 : clusters[jLayer]) {
26 theta = trStub.
Theta();
52 const std::string routineName(
"HoughFinder2DAlgo::FindTracks");
53 COUT(
DEBUG) <<
"Start!" << ENDL;
57 for (
auto layerClusters : clusters) {
58 nClusters += layerClusters.size();
69 FillVotingSpace<T>(clusters);
79 while (votes.size() >=
_nVotes) {
std::vector< Track2D > _trackColl
Definition: HoughFinder2DAlgo.h:170
CssGeoParams.h CssGeoParams class declaration.
Definition: CaloPDCalibrationAlgo.h:24
std::unordered_map< int, std::vector< HoughTrackStub > > _votingSpace
Definition: HoughFinder2DAlgo.h:165
#define DEBUG
Definition: CaloAcceptanceCut.cpp:11
int FindCandidateTrack()
Definition: HoughFinder2DAlgo.cpp:154
Definition: HoughTrackStub.h:16
float R() const
Definition: HoughTrackStub.h:23
std::vector< std::vector< HFCluster > > HFClusters
Definition: HoughFinder2DAlgo.h:61
void ClearVotingSpace()
Definition: HoughFinder2DAlgo.h:130
Base struct to get the two axes of a given view.
Definition: RefFrame.h:140
Axis
Aliases for the axes. RefFrame.h common/RefFrame.h.
Definition: RefFrame.h:31
void FindTracks(const HFClusters &clusters)
Takes a collection of clusters on a given view and finds all the tracks.
Definition: HoughFinder2DAlgo.hpp:51
void BuildTrackFromVotes(std::vector< HoughTrackStub > &votes, const HFClusters &clusters)
Definition: HoughFinder2DAlgo.cpp:423
float Theta() const
Definition: HoughTrackStub.h:22
void FillVotingSpace(const HFClusters &clusters)
Definition: HoughFinder2DAlgo.hpp:12
int GetVotingIndex(float R, float Theta)
Computes voting space index for a given pair of R-Theta.
Definition: HoughFinder2DAlgo.cpp:133
unsigned int _nVotes
Definition: HoughFinder2DAlgo.h:113
std::vector< HoughTrackStub > AccumulateVotes(int votingIndex)
Definition: HoughFinder2DAlgo.cpp:175