/[PAMELA software]/DarthVader/OrbitalInfo/src/OrbitalInfoCore.cpp
ViewVC logotype

Diff of /DarthVader/OrbitalInfo/src/OrbitalInfoCore.cpp

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

revision 1.27 by mocchiut, Mon Sep 1 16:58:45 2008 UTC revision 1.28 by mocchiut, Thu Sep 4 15:46:18 2008 UTC
# Line 470  int OrbitalInfoCore(UInt_t run, TFile *f Line 470  int OrbitalInfoCore(UInt_t run, TFile *f
470        printf(" %i events to be processed for run %u: from %i to %i \n\n",totevent,idRun,runinfo->EV_FROM+1,runinfo->EV_FROM+totevent);        printf(" %i events to be processed for run %u: from %i to %i \n\n",totevent,idRun,runinfo->EV_FROM+1,runinfo->EV_FROM+totevent);
471      }//      }//
472      //      //
473      if ( !totevent ) goto closeandexit;      //    if ( !totevent ) goto closeandexit;
474      // Open Level0 file      // Open Level0 file
475      l0File = new TFile(fname.Data());      l0File = new TFile(fname.Data());
476      if ( !l0File ) {      if ( !l0File ) {
# Line 497  int OrbitalInfoCore(UInt_t run, TFile *f Line 497  int OrbitalInfoCore(UInt_t run, TFile *f
497      // end EM      // end EM
498      nevents = l0head->GetEntries();      nevents = l0head->GetEntries();
499      //      //
500      if ( nevents < 1 ) {      if ( nevents < 1 && totevent ) {
501        if ( debug ) printf(" OrbitalInfo - ERROR: Level0 file is empty\n\n");        if ( debug ) printf(" OrbitalInfo - ERROR: Level0 file is empty\n\n");
502        l0File->Close();        l0File->Close();
503        code = -11;        code = -11;
504        goto closeandexit;        goto closeandexit;
505      };      };
506      //      //
507      if ( runinfo->EV_TO > nevents-1 ) {      if ( runinfo->EV_TO > nevents-1 && totevent ) {
508        if ( debug ) printf(" OrbitalInfo - ERROR: too few entries in the registry tree\n");        if ( debug ) printf(" OrbitalInfo - ERROR: too few entries in the registry tree\n");
509        l0File->Close();        l0File->Close();
510        code = -12;        code = -12;

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.28

  ViewVC Help
Powered by ViewVC 1.1.23