/[PAMELA software]/DarthVader/AnticounterLevel2/src/AcCore.cpp
ViewVC logotype

Diff of /DarthVader/AnticounterLevel2/src/AcCore.cpp

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

revision 1.20 by mocchiut, Mon Sep 1 16:58:36 2008 UTC revision 1.21 by mocchiut, Fri Sep 5 10:06:45 2008 UTC
# Line 415  int AcCore(UInt_t run, TFile *file, GL_T Line 415  int AcCore(UInt_t run, TFile *file, GL_T
415        printf(" %i events to be processed for run %u: from %i to %i \n\n",totevent,idRun,runinfo->EV_FROM,runinfo->EV_FROM+totevent);        printf(" %i events to be processed for run %u: from %i to %i \n\n",totevent,idRun,runinfo->EV_FROM,runinfo->EV_FROM+totevent);
416      };      };
417      //      //
418      if ( !totevent ) goto closeandexit;      //    if ( !totevent ) goto closeandexit;
419      //      //
420      // Open Level0 file      // Open Level0 file
421      //      //
# Line 452  int AcCore(UInt_t run, TFile *file, GL_T Line 452  int AcCore(UInt_t run, TFile *file, GL_T
452      //      //
453      nevents = l0ac->GetEntries();      nevents = l0ac->GetEntries();
454      //      //
455      if ( nevents < 1 ) {      if ( nevents < 1 && totevent ) {
456        if ( verbose ) printf(" ANTICOUNTER - ERROR: Level0 file is empty\n\n");        if ( verbose ) printf(" ANTICOUNTER - ERROR: Level0 file is empty\n\n");
457        l0File->Close();        l0File->Close();
458        code = -11;        code = -11;
459        goto closeandexit;        goto closeandexit;
460      };      };
461      //      //
462      if ( runinfo->EV_TO > nevents-1 ) {      if ( runinfo->EV_TO > nevents-1 && totevent ) {
463        if ( verbose ) printf(" ANTICOUNTER - ERROR: too few entries in the tree\n");        if ( verbose ) printf(" ANTICOUNTER - ERROR: too few entries in the tree\n");
464        l0File->Close();        l0File->Close();
465        code = -12;        code = -12;

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

  ViewVC Help
Powered by ViewVC 1.1.23