| 77 | version->S4_ver = ""; | version->S4_ver = ""; | 
| 78 | norun = 0; | norun = 0; | 
| 79 | totnorun = 0; | totnorun = 0; | 
| 80 |  | //  runlist = new TArrayL(0,NULL); | 
| 81 | // | // | 
| 82 | } | } | 
| 83 |  |  | 
| 103 | version->S4_ver = ""; | version->S4_ver = ""; | 
| 104 | norun = 0; | norun = 0; | 
| 105 | totnorun = 0; | totnorun = 0; | 
| 106 |  | runlist = new TArrayL(0,NULL); | 
| 107 | // | // | 
| 108 | } | } | 
| 109 |  |  | 
| 152 | // | // | 
| 153 | norun = 0; | norun = 0; | 
| 154 | runlist = new TArrayL(0,NULL); | runlist = new TArrayL(0,NULL); | 
| 155 |  | //runlist->Reset(); | 
| 156 | // | // | 
| 157 | Bool_t found = false; | Bool_t found = false; | 
| 158 | Int_t error = 0; | Int_t error = 0; | 
| 615 |  |  | 
| 616 | UInt_t ItoRunInfo::GetRunForEntry(UInt_t entry){ | UInt_t ItoRunInfo::GetRunForEntry(UInt_t entry){ | 
| 617 | // | // | 
| 618 | ItoRunInfo *run = new ItoRunInfo(); | UInt_t startfrom = 0; | 
| 619 |  | // | 
| 620 |  | if ( entry >= (UInt_t)first_file_entry && entry <= (UInt_t)last_file_entry ) return(ID); | 
| 621 | // | // | 
| 622 | for ( UInt_t nrun = 0; nrun < norun; nrun++){ | if ( entry > (UInt_t)last_file_entry ){ | 
| 623 | run->GetRunInfo((ULong64_t)nrun); | for ( UInt_t nrun = 0; nrun < norun; nrun++){ | 
| 624 | if ( entry >= (UInt_t)run->first_file_entry && entry <= (UInt_t)run->last_file_entry ){ | if ( ID == (ULong64_t)runlist->At(nrun) ) { | 
| 625 | run->newtree->Delete(); | startfrom = nrun+1; | 
| 626 | delete run; | break; | 
| 627 | return(nrun); | }; | 
| 628 | }; | }; | 
| 629 |  | } else { | 
| 630 |  | startfrom = 0; | 
| 631 | }; | }; | 
| 632 | run->newtree->Delete(); | // | 
| 633 | delete run; | if ( startfrom >= norun ) startfrom = 0; | 
| 634 |  | // | 
| 635 |  | retry: | 
| 636 |  | // | 
| 637 |  | for ( UInt_t nrun = startfrom; nrun < norun; nrun++){ | 
| 638 |  | GetRunInfo((ULong64_t)runlist->At(nrun)); | 
| 639 |  | if ( entry >= (UInt_t)first_file_entry && entry <= (UInt_t)last_file_entry ){ | 
| 640 |  | return((UInt_t)runlist->At(nrun)); | 
| 641 |  | }; | 
| 642 |  | }; | 
| 643 |  | if ( startfrom ){ | 
| 644 |  | startfrom = 0; | 
| 645 |  | goto retry; | 
| 646 |  | }; | 
| 647 |  | printf(" ERROR! run not found \n"); | 
| 648 | return(0); | return(0); | 
| 649 | } | } | 
| 650 |  |  | 
| 693 | }; | }; | 
| 694 | 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); | 
| 695 | }; | }; | 
|  | if ( found ) return(0); |  | 
| 696 | delete nwver; | delete nwver; | 
| 697 | delete nwrun; | delete nwrun; | 
| 698 |  | if ( found ) return(0); | 
| 699 | return(-800); | return(-800); | 
| 700 | } | } | 
| 701 |  |  |