Commit 8b43e11d authored by Daniel Hynds's avatar Daniel Hynds
Browse files

updated return values


Former-commit-id: 983a79491cc78fd3b782a20e24f9207ae696d151
parent 77322ca8
......@@ -39,7 +39,7 @@ void BasicTracking::initialise(Parameters* par){
}
int BasicTracking::run(Clipboard* clipboard){
StatusCode BasicTracking::run(Clipboard* clipboard){
// Container for all clusters, and detectors in tracking
// map<string,Timepix3Clusters*> clusters;
......@@ -72,14 +72,14 @@ int BasicTracking::run(Clipboard* clipboard){
}
// If there are no detectors then stop trying to track
if(detectors.size() == 0) return 1;
if(detectors.size() == 0) return Success;
// Use the first plane as a seeding plane. For something quick, look a cluster in < 200 ns in the next plane, and continue
string reference = parameters->reference;
map<Timepix3Cluster*, bool> used;
// If no clusters on reference plane, stop
if(trees.count(reference) == 0) return 1;
if(trees.count(reference) == 0) return Success;
// Loop over all clusters
int nSeedClusters = referenceClusters->size();
......@@ -199,7 +199,7 @@ int BasicTracking::run(Clipboard* clipboard){
// if(trees.count(detectorID) != 0) delete trees[detectorID];
// }
return 1;
return Success;
}
Timepix3Cluster* BasicTracking::getNearestCluster(long long int timestamp, Timepix3Clusters clusters){
......
......@@ -19,7 +19,7 @@ public:
// Functions
void initialise(Parameters*);
int run(Clipboard*);
StatusCode run(Clipboard*);
void finalise();
// Timepix3Cluster* getNearestCluster(Timepix3Cluster*, map<Timepix3Cluster*, bool>, Timepix3Clusters*);
......
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