Commit 34ec892a authored by Daniel Hynds's avatar Daniel Hynds
Browse files

updated return code


Former-commit-id: c00d1e22747f8b43187faa908b575b8bea21735e
parent 6b0b9a5c
......@@ -18,13 +18,13 @@ void EventDisplay::initialise(Parameters* par){
}
int EventDisplay::run(Clipboard* clipboard){
StatusCode EventDisplay::run(Clipboard* clipboard){
// Get the tracks
Timepix3Tracks* tracks = (Timepix3Tracks*)clipboard->get("Timepix3","tracks");
if(tracks == NULL){
return 1;
return Success;
}
TApplication* rootapp = new TApplication("example",0, 0);
......@@ -60,7 +60,7 @@ int EventDisplay::run(Clipboard* clipboard){
eventMap->DrawCopy("same,box");
canv->Update();
rootapp->Run();
return 1;
return Success;
}
......
......@@ -20,7 +20,7 @@ public:
// Functions
void initialise(Parameters*);
int run(Clipboard*);
StatusCode run(Clipboard*);
void finalise();
TH3F* eventMap;
......
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