Commit f58f0e66 authored by Daniel Hynds's avatar Daniel Hynds
Browse files

updated return code


Former-commit-id: 1cfd16e3c31e4f2f838d74ca02164277b643c908
parent d169d302
......@@ -21,12 +21,12 @@ void Alignment::initialise(Parameters* par){
}
int Alignment::run(Clipboard* clipboard){
StatusCode Alignment::run(Clipboard* clipboard){
// Get the tracks
Timepix3Tracks* tracks = (Timepix3Tracks*)clipboard->get("Timepix3","tracks");
if(tracks == NULL){
return 1;
return Success;
}
// Make a local copy and store it
......@@ -37,10 +37,10 @@ int Alignment::run(Clipboard* clipboard){
}
// If we have enough tracks for the alignment, tell the event loop to finish
if(m_alignmenttracks.size() >= m_numberOfTracksForAlignment) return 0;
if(m_alignmenttracks.size() >= m_numberOfTracksForAlignment) return Failure;
// Otherwise keep going
return 1;
return Success;
}
......
......@@ -17,7 +17,7 @@ public:
// Functions
void initialise(Parameters*);
int run(Clipboard*);
StatusCode run(Clipboard*);
void finalise();
// Member variables
......
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