/[PAMELA software]/eventviewer/flight/src/FEventViewerCore.cpp
ViewVC logotype

Diff of /eventviewer/flight/src/FEventViewerCore.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.15 by mocchiut, Fri Jun 12 12:37:29 2009 UTC revision 1.16 by mocchiut, Mon Jun 22 09:30:02 2009 UTC
# Line 218  void ShowEvent(TString filename="help", Line 218  void ShowEvent(TString filename="help",
218    //    //
219    // check if we have an input filename    // check if we have an input filename
220    //    //
221    if ( filename.Data() == "" || !strcmp(filename.Data(),"help") ){    //  if ( filename.Data() == "" || !strcmp(filename.Data(),"help") ){
222      if ( !strcmp(gSystem->BaseName(filename),"") || filename.Contains("help") ){
223      pamela->var.waitforever = true;      pamela->var.waitforever = true;
224    };    };
225  //   //  //   //
# Line 289  void ShowEvent(TString filename="help", Line 290  void ShowEvent(TString filename="help",
290    //    //
291    if ( firsttime ){    if ( firsttime ){
292      firsttime = false;      firsttime = false;
293      if ( filename == "" ) pamgui->DIALOG(0," Insert the filename and press load to start ");      if ( !strcmp(gSystem->BaseName(filename),"") || filename.Contains("help") ) pamgui->DIALOG(3," - Insert the filename and press load to start \n - To unload selection file clean the line and press the \"Load\" button \n - run with \"-v\" option to have STDOUT on the screen \n - select a detector and press \"Show Data\" to print data event by event on the screen ");
294        //    if ( filename.Contains("help") ) pamgui->DIALOG(3," - Insert the filename and press load to start \n - To unload selection file clean the line and press the \"Load\" button \n - run with \"-v\" option to have STDOUT on the screen \n - select a detector and press \"Show Data\" to print data event by event on the screen ");
295        //        printf(" - %s - %s =\n",gSystem->BaseName(filename),filename.Data());
296    };    };
297    //    //
298    // WAIT for an input filename    // WAIT for an input filename
# Line 298  void ShowEvent(TString filename="help", Line 301  void ShowEvent(TString filename="help",
301      if ( !gROOT->GetListOfCanvases()->FindObject(figure)  ) {      if ( !gROOT->GetListOfCanvases()->FindObject(figure)  ) {
302        pamgui->Terminate();        pamgui->Terminate();
303      };      };
304        pamgui->Refresh();
305      gSystem->ProcessEvents();      gSystem->ProcessEvents();
306      gSystem->Sleep(10);      gSystem->Sleep(10);
307    };    };
# Line 319  void ShowEvent(TString filename="help", Line 323  void ShowEvent(TString filename="help",
323    //    //
324    // LOAD SELECTION FILE    // LOAD SELECTION FILE
325    //        //    
326    if ( selfile == ""  ){    if (  !strcmp(gSystem->BaseName(selfile),"") ){ //selfile == ""  ){
327      //if ( !pamela->var.selex ) pamgui->DIALOG(0," Selection file unloaded ");      //if ( !pamela->var.selex ) pamgui->DIALOG(0," Selection file unloaded ");
328      if ( pamela->var.selex ) pamgui->DIALOG(0," Selection file unloaded ");      if ( pamela->var.selex ) pamgui->DIALOG(0," Selection file unloaded ");
329      pamela->var.selex = false;      pamela->var.selex = false;

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

  ViewVC Help
Powered by ViewVC 1.1.23