302 |
file->cd(); |
file->cd(); |
303 |
// file->Write("Run"); |
// file->Write("Run"); |
304 |
//newtree->Delete(); |
//newtree->Delete(); |
305 |
|
delete newver; |
306 |
|
delete newrun; |
307 |
|
delete oldver; |
308 |
|
delete oldrun; |
309 |
// |
// |
310 |
return(0); |
return(0); |
311 |
// |
// |
445 |
newver->ND_ver = oldver->ND_ver; |
newver->ND_ver = oldver->ND_ver; |
446 |
newver->AC_ver = oldver->AC_ver; |
newver->AC_ver = oldver->AC_ver; |
447 |
newver->ORB_ver = version->ORB_ver; |
newver->ORB_ver = version->ORB_ver; |
448 |
if ( strcmp(oldver->TRK_ver.Data(),"") ) reprocessing = true; |
if ( strcmp(oldver->ORB_ver.Data(),"") ) reprocessing = true; |
449 |
}; |
}; |
450 |
if ( !strcmp(Detector.Data(),"CALO") ){ |
if ( !strcmp(Detector.Data(),"CALO") ){ |
451 |
newver->TRIG_ver = oldver->TRIG_ver; |
newver->TRIG_ver = oldver->TRIG_ver; |
501 |
newtree->SetName("Run"); |
newtree->SetName("Run"); |
502 |
// file->Write("Run"); |
// file->Write("Run"); |
503 |
// newtree->Delete(); |
// newtree->Delete(); |
504 |
|
delete newver; |
505 |
|
delete newrun; |
506 |
|
delete oldver; |
507 |
|
delete oldrun; |
508 |
// |
// |
509 |
if ( !found ){ |
if ( !found ){ |
510 |
if ( debug ) printf("\n RUNINFO - ERROR: no run with ID_RUN = %llu \n",idRun); |
if ( debug ) printf("\n RUNINFO - ERROR: no run with ID_RUN = %llu \n",idRun); |
588 |
if ( debug ) printf("norun %i \n",(int)norun); |
if ( debug ) printf("norun %i \n",(int)norun); |
589 |
Int_t error = 0; |
Int_t error = 0; |
590 |
error = GetRunInfo(idRun); |
error = GetRunInfo(idRun); |
591 |
|
delete newver; |
592 |
|
delete newrun; |
593 |
if ( error ) return(error); |
if ( error ) return(error); |
594 |
return(0); |
return(0); |
595 |
} |
} |
618 |
run->GetRunInfo((ULong64_t)nrun); |
run->GetRunInfo((ULong64_t)nrun); |
619 |
if ( entry >= (UInt_t)run->first_file_entry && entry <= (UInt_t)run->last_file_entry ){ |
if ( entry >= (UInt_t)run->first_file_entry && entry <= (UInt_t)run->last_file_entry ){ |
620 |
run->newtree->Delete(); |
run->newtree->Delete(); |
621 |
|
delete run; |
622 |
return(nrun); |
return(nrun); |
623 |
}; |
}; |
624 |
}; |
}; |
625 |
run->newtree->Delete(); |
run->newtree->Delete(); |
626 |
|
delete run; |
627 |
return(0); |
return(0); |
628 |
} |
} |
629 |
|
|
673 |
if ( !found ) first_file_entry += (nwrun->EV_REG_PHYS_TO - nwrun->EV_REG_PHYS_FROM + 1); |
if ( !found ) first_file_entry += (nwrun->EV_REG_PHYS_TO - nwrun->EV_REG_PHYS_FROM + 1); |
674 |
}; |
}; |
675 |
if ( found ) return(0); |
if ( found ) return(0); |
676 |
|
delete nwver; |
677 |
|
delete nwrun; |
678 |
return(-800); |
return(-800); |
679 |
} |
} |