| 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 ) { |
| 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; |