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