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 |
// |
// |
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; |