| 291 |
// number of run to be processed |
// number of run to be processed |
| 292 |
// |
// |
| 293 |
numbofrun = runinfo->GetNoRun(); |
numbofrun = runinfo->GetNoRun(); |
| 294 |
|
UInt_t totnorun = runinfo->GetRunEntries(); |
| 295 |
// |
// |
| 296 |
// Try to access the OrbitalInfo tree in the file, if it exists we are reprocessing data if not we are processing a new run |
// Try to access the OrbitalInfo tree in the file, if it exists we are reprocessing data if not we are processing a new run |
| 297 |
// |
// |
| 318 |
// |
// |
| 319 |
if (verbose) printf("\n Preparing the pre-processing...\n"); |
if (verbose) printf("\n Preparing the pre-processing...\n"); |
| 320 |
// |
// |
| 321 |
if ( run == 0 ){ |
if ( run == 0 || totnorun == 1 ){ |
| 322 |
// |
// |
| 323 |
// we are reprocessing all the file |
// we are reprocessing all the file |
| 324 |
// if we are reprocessing everything we don't need to copy any old event and we can just work with the new tree and delete the old one immediately |
// if we are reprocessing everything we don't need to copy any old event and we can just work with the new tree and delete the old one immediately |
| 491 |
code = -11; |
code = -11; |
| 492 |
goto closeandexit; |
goto closeandexit; |
| 493 |
}; |
}; |
| 494 |
// |
// |
| 495 |
if ( runinfo->EV_TO > nevents-1 ) { |
if ( runinfo->EV_TO > nevents-1 ) { |
| 496 |
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"); |
| 497 |
l0File->Close(); |
l0File->Close(); |
| 700 |
if ( debug ) printf(" I am there \n"); |
if ( debug ) printf(" I am there \n"); |
| 701 |
// |
// |
| 702 |
lowerqtime = upperqtime; |
lowerqtime = upperqtime; |
| 703 |
UInt_t maxloop = 100000000; |
Long64_t maxloop = 100000000LL; |
| 704 |
UInt_t mn = 0; |
Long64_t mn = 0; |
| 705 |
bool gh=false; |
bool gh=false; |
| 706 |
ooi=oi; |
ooi=oi; |
| 707 |
if ( verbose ) printf(" OrbitalInfoCore: sync with quaternions data upperqtime %u lowerqtime %u atime %u \n",(UInt_t)upperqtime,(UInt_t)lowerqtime,atime); |
if ( verbose ) printf(" OrbitalInfoCore: sync with quaternions data upperqtime %u lowerqtime %u atime %u \n",(UInt_t)upperqtime,(UInt_t)lowerqtime,atime); |
| 709 |
if ( mn > maxloop ){ |
if ( mn > maxloop ){ |
| 710 |
if ( verbose ) printf(" OrbitalInfoCore: quaternions sync out of range! exiting\n"); |
if ( verbose ) printf(" OrbitalInfoCore: quaternions sync out of range! exiting\n"); |
| 711 |
gh = true; |
gh = true; |
| 712 |
|
neventsm = 0; |
| 713 |
}; |
}; |
| 714 |
mn++; |
mn++; |
| 715 |
if (oi<5) oi++; |
if (oi<5) oi++; |