/[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.11 by mocchiut, Thu Nov 8 11:05:38 2007 UTC revision 1.12 by mocchiut, Thu Nov 8 14:00:54 2007 UTC
# Line 184  void ShowEvent(TString filename="help", Line 184  void ShowEvent(TString filename="help",
184    TTree *otr8 = 0;    TTree *otr8 = 0;
185    //    //
186    pamela->var.fl0 = false;    pamela->var.fl0 = false;
187      pamela->var.restart = false;
188    Int_t i = 0;    Int_t i = 0;
189    Int_t isOK = 0;    Int_t isOK = 0;
190    //    //
191   restart:   restart:
192    //    //
193      if ( !pamela->var.restart ){
194        if ( i < 0 ){
195          i = -i;
196        } else {
197          i = 0;
198        };
199      };
200      //
201    // set boolean variables    // set boolean variables
202    //    //
   pamela->var.restart = false;  
203    pamela->var.waitforever = false;    pamela->var.waitforever = false;
204    pamela->var.jumprog = true;    pamela->var.jumprog = true;
205    pamela->var.jumpen = false;        pamela->var.jumpen = false;    
# Line 233  void ShowEvent(TString filename="help", Line 241  void ShowEvent(TString filename="help",
241    gStyle->SetNdivisions(1,"X");    gStyle->SetNdivisions(1,"X");
242    gStyle->SetNdivisions(1,"Y");    gStyle->SetNdivisions(1,"Y");
243    //    //
   if ( i < 0 ){  
     i = -i;  
   } else {  
     i = 0;  
   };  
244    isOK = 0;    isOK = 0;
245    //    //
246    // from here to refresh    // from here to refresh
# Line 290  void ShowEvent(TString filename="help", Line 293  void ShowEvent(TString filename="help",
293      gSystem->Sleep(10);      gSystem->Sleep(10);
294    };    };
295    //    //
296    if ( pamela->var.restart ){  //   if ( pamela->var.restart ){
297      filename = pamela->var.thefilename.Data();  //     filename = pamela->var.thefilename.Data();
298      goto restart;  //     goto restart;
299    };  //   };
300    //    //
301    // check if we are forcing level0 data    // check if we are forcing level0 data
302    //    //
# Line 542  void ShowEvent(TString filename="help", Line 545  void ShowEvent(TString filename="help",
545    //    //
546    // display the first event (unless we are refreshing only the window)    // display the first event (unless we are refreshing only the window)
547    //    //
548    if ( !pamela->var.refresh ) i = pamela->minevent;    if ( !pamela->var.refresh && !pamela->var.restart ) i = pamela->minevent;
549      pamela->var.restart = false;
550    pamela->var.refresh = false;    pamela->var.refresh = false;
551    //    //
552    pamgui->RefreshButtons();    pamgui->RefreshButtons();
# Line 661  void ShowEvent(TString filename="help", Line 665  void ShowEvent(TString filename="help",
665          //      if ( headerFile ) headerFile->Close("R");          //      if ( headerFile ) headerFile->Close("R");
666          if ( pamela->var.refresh ) goto refresh;          if ( pamela->var.refresh ) goto refresh;
667          if ( pamela->var.restart ){          if ( pamela->var.restart ){
668              i = pamela->var.i;
669            filename = pamela->var.thefilename.Data();            filename = pamela->var.thefilename.Data();
670            goto restart;            goto restart;
671          };          };

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

  ViewVC Help
Powered by ViewVC 1.1.23