Commit 7f5415de authored by Daniel Hynds's avatar Daniel Hynds
Browse files

added track requirement for alignment


Former-commit-id: 183fa27c1f9d18ced9950cc1a997c6d6b7c45f94
parent e8e4556d
......@@ -5,6 +5,7 @@
Alignment::Alignment(bool debugging)
: Algorithm("Alignment"){
debug = debugging;
m_numberOfTracksForAlignment = 8000;
}
// Global container declarations
......@@ -34,6 +35,10 @@ int Alignment::run(Clipboard* clipboard){
m_alignmenttracks.push_back(alignmentTrack);
}
// If we have enough tracks for the alignment, tell the event loop to finish
if(m_alignmenttracks.size() >= m_numberOfTracksForAlignment) return 0;
// Otherwise keep going
return 1;
}
......
......@@ -23,6 +23,7 @@ public:
// Member variables
Timepix3Tracks m_alignmenttracks;
int nIterations;
int m_numberOfTracksForAlignment;
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment