/[PAMELA software]/DarthVader/ToFLevel2/src/ToFCore.cpp
ViewVC logotype

Diff of /DarthVader/ToFLevel2/src/ToFCore.cpp

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

revision 1.30 by mocchiut, Mon Sep 1 16:58:50 2008 UTC revision 1.31 by mocchiut, Thu Sep 4 15:46:20 2008 UTC
# Line 439  int ToFCore(UInt_t run, TFile *file, GL_ Line 439  int ToFCore(UInt_t run, TFile *file, GL_
439      if ( verbose ) printf(" RUN TRAILER absolute time is: %u \n",runinfo->RUNTRAILER_TIME);      if ( verbose ) printf(" RUN TRAILER absolute time is: %u \n",runinfo->RUNTRAILER_TIME);
440      if ( verbose ) printf(" %i events to be processed for run %u: from %i to %i \n\n",totevent,idRun,runinfo->EV_FROM,runinfo->EV_FROM+totevent);      if ( verbose ) printf(" %i events to be processed for run %u: from %i to %i \n\n",totevent,idRun,runinfo->EV_FROM,runinfo->EV_FROM+totevent);
441      //      //
442      if ( !totevent ) goto closeandexit;      //    if ( !totevent ) goto closeandexit;
443      //      //
444      // Open Level0 file      // Open Level0 file
445      //      //
# Line 484  int ToFCore(UInt_t run, TFile *file, GL_ Line 484  int ToFCore(UInt_t run, TFile *file, GL_
484      //      //
485      nevents = l0tof->GetEntries();      nevents = l0tof->GetEntries();
486      //      //
487      if ( nevents < 1 ) {      if ( nevents < 1 && totevent ) {
488        if ( verbose ) printf(" TOF - ERROR: Level0 file is empty\n\n");        if ( verbose ) printf(" TOF - ERROR: Level0 file is empty\n\n");
489        l0File->Close();        l0File->Close();
490        code = -11;        code = -11;
491        goto closeandexit;        goto closeandexit;
492      };      };
493      //      //
494      if ( runinfo->EV_TO > nevents-1 ) {      if ( runinfo->EV_TO > nevents-1 && totevent ) {
495        if ( verbose ) printf(" TOF - ERROR: too few entries in the registry tree\n");        if ( verbose ) printf(" TOF - ERROR: too few entries in the registry tree\n");
496        l0File->Close();        l0File->Close();
497        code = -12;        code = -12;

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.31

  ViewVC Help
Powered by ViewVC 1.1.23