AddFrame(fButtonNextEvent); //, new TGLayoutHints(...));
fButtonNextEvent->Connect("Clicked()", "AliEveHOMERManagerEditor", this, "NextEvent()");
- fButtonEventLoop = new TGTextButton(this, " not yet used ");
+
+ fButtonEventLoop = new TGPictureButton(this, gClient->GetPicture("$ALICE_ROOT/EVE/hlt-macros/HLT-logo.png"));
AddFrame(fButtonEventLoop); //, new TGLayoutHints(...));
fButtonEventLoop->Connect("Clicked()", "AliEveHOMERManagerEditor", this, "EventLoop()");
{
// Connects to HOMER sources -> to HLT.
- fM->ConnectHOMER();
+ fM->ConnectEVEtoHOMER();
}
void AliEveHOMERManagerEditor::NextEvent()
void AliEveHOMERManagerEditor::EventLoop()
{
- // Start/stop event loop
- fM->ConnectHOMER();
+ // Start/stop event loop
+ if ( !fEventLoopStarted ) {
+ gROOT->ProcessLineFast("loopEvent();");
+ fEventLoopStarted = kTRUE;
+ }
+ else {
+ gROOT->ProcessLineFast("stopLoopEvent();");
+ fEventLoopStarted = kFALSE;
+ }
}