Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Corryvreckan
Corryvreckan
Commits
8b43e11d
Commit
8b43e11d
authored
Jan 29, 2016
by
Daniel Hynds
Browse files
updated return values
Former-commit-id: 983a79491cc78fd3b782a20e24f9207ae696d151
parent
77322ca8
Changes
2
Hide whitespace changes
Inline
Side-by-side
branches/trunk/algorithms/BasicTracking.C
View file @
8b43e11d
...
...
@@ -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
){
...
...
branches/trunk/algorithms/BasicTracking.h
View file @
8b43e11d
...
...
@@ -19,7 +19,7 @@ public:
// Functions
void
initialise
(
Parameters
*
);
int
run
(
Clipboard
*
);
StatusCode
run
(
Clipboard
*
);
void
finalise
();
// Timepix3Cluster* getNearestCluster(Timepix3Cluster*, map<Timepix3Cluster*, bool>, Timepix3Clusters*);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment