| 612 |
|
|
| 613 |
UInt_t ItoRunInfo::GetRunForEntry(UInt_t entry){ |
UInt_t ItoRunInfo::GetRunForEntry(UInt_t entry){ |
| 614 |
// |
// |
| 615 |
ItoRunInfo *run = new ItoRunInfo(); |
// ItoRunInfo *run = new ItoRunInfo(file); |
| 616 |
// |
// |
| 617 |
for ( UInt_t nrun = 0; nrun < norun; nrun++){ |
for ( UInt_t nrun = 0; nrun < norun; nrun++){ |
| 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 ){ |
// printf("nrun = %i runlist = %llu \n",nrun,(ULong64_t)runlist->At(nrun)); |
| 620 |
run->newtree->Delete(); |
GetRunInfo((ULong64_t)runlist->At(nrun)); |
| 621 |
delete run; |
// printf("entry %i first %i last %i \n",entry,(UInt_t)first_file_entry,(UInt_t)last_file_entry ); |
| 622 |
return(nrun); |
if ( entry >= (UInt_t)first_file_entry && entry <= (UInt_t)last_file_entry ){ |
| 623 |
|
// run->newtree->Delete(); |
| 624 |
|
// delete run; |
| 625 |
|
//printf("nrun is %i \n",nrun); |
| 626 |
|
return((UInt_t)runlist->At(nrun)); |
| 627 |
}; |
}; |
| 628 |
}; |
}; |
| 629 |
run->newtree->Delete(); |
// run->newtree->Delete(); |
| 630 |
delete run; |
// delete run; |
| 631 |
return(0); |
return(0); |
| 632 |
} |
} |
| 633 |
|
|
| 676 |
}; |
}; |
| 677 |
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); |
| 678 |
}; |
}; |
|
if ( found ) return(0); |
|
| 679 |
delete nwver; |
delete nwver; |
| 680 |
delete nwrun; |
delete nwrun; |
| 681 |
|
if ( found ) return(0); |
| 682 |
return(-800); |
return(-800); |
| 683 |
} |
} |