/[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.4 by mocchiut, Thu Mar 15 14:02:33 2007 UTC revision 1.8 by mocchiut, Wed Apr 11 13:28:42 2007 UTC
# Line 157  void ShowEvent(TString filename="help", Line 157  void ShowEvent(TString filename="help",
157    TTree *otr8 = 0;    TTree *otr8 = 0;
158    //    //
159    pamela->var.fl0 = false;    pamela->var.fl0 = false;
160      Int_t i = 0;
161      Int_t isOK = 0;
162    //    //
163   restart:   restart:
164    //    //
# Line 204  void ShowEvent(TString filename="help", Line 206  void ShowEvent(TString filename="help",
206    gStyle->SetNdivisions(1,"X");    gStyle->SetNdivisions(1,"X");
207    gStyle->SetNdivisions(1,"Y");    gStyle->SetNdivisions(1,"Y");
208    //    //
209    Int_t i = 0;    if ( i < 0 ){
210    Int_t isOK = 0;      i = -i;
211      } else {
212        i = 0;
213      };
214      isOK = 0;
215    //    //
216    // from here to refresh    // from here to refresh
217    //    //
218   refresh:   refresh:
219    //    //
220      // reset pointers
221      //
222      TFile *headerFile = 0;
223      TChain *otr = 0;
224      TTree *L0 = 0;
225      //
226      //  gROOT->Reset();
227      //
228    // set selection file variables    // set selection file variables
229    //    //
230    if ( pamela->var.refresh ){    if ( pamela->var.refresh ){
# Line 287  void ShowEvent(TString filename="help", Line 301  void ShowEvent(TString filename="help",
301      carica.str("");      carica.str("");
302      carica << paminc.str().c_str() << "/feventvstruct.h";      carica << paminc.str().c_str() << "/feventvstruct.h";
303      gROOT->LoadMacro(carica.str().c_str());      gROOT->LoadMacro(carica.str().c_str());
304        //    carica.str("");
305        //    carica << paminc.str().c_str() << "/CaloNuclei.h";
306        //    gROOT->LoadMacro(carica.str().c_str());
307      //      //
308      // load the selection macro      // load the selection macro
309      //      //
# Line 327  void ShowEvent(TString filename="help", Line 344  void ShowEvent(TString filename="help",
344    //  LOAD FILES        //  LOAD FILES    
345    //    //
346    //    //
347    TFile *headerFile = 0;  //   if ( headerFile ) headerFile->Close();
348    TChain *otr = 0;  //   if ( otr ) otr->Delete();
349    TTree *L0 = 0;  //   if ( L0 ) L0->Delete();
350    
351    //    //
352    // check if user has given as input a correct path    // check if user has given as input a correct path
353    //    //
# Line 608  void ShowEvent(TString filename="help", Line 626  void ShowEvent(TString filename="help",
626        //        //
627        pamela->var.goon = false;        pamela->var.goon = false;
628        if ( pamela->var.refresh || pamela->var.restart ){        if ( pamela->var.refresh || pamela->var.restart ){
629          headerFile->Close();          if ( pamela->GetL2() ) pamela->GetL2()->Reset();
630            if ( pamela->level.file != 2 ) pamela->GetChain()->Delete();
631            otr = NULL;
632            if ( headerFile ) headerFile->Close("R");
633          if ( pamela->var.refresh ) goto refresh;          if ( pamela->var.refresh ) goto refresh;
634          if ( pamela->var.restart ){          if ( pamela->var.restart ){
635            filename = pamela->var.thefilename.Data();            filename = pamela->var.thefilename.Data();

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.23