--- DarthVader/RunInfo/src/RunInfo.cpp 2006/06/30 09:21:59 1.3 +++ DarthVader/RunInfo/src/RunInfo.cpp 2006/07/17 12:14:30 1.4 @@ -612,18 +612,22 @@ UInt_t ItoRunInfo::GetRunForEntry(UInt_t entry){ // - ItoRunInfo *run = new ItoRunInfo(); + // ItoRunInfo *run = new ItoRunInfo(file); // for ( UInt_t nrun = 0; nrun < norun; nrun++){ - run->GetRunInfo((ULong64_t)nrun); - if ( entry >= (UInt_t)run->first_file_entry && entry <= (UInt_t)run->last_file_entry ){ - run->newtree->Delete(); - delete run; - return(nrun); + // run->GetRunInfo((ULong64_t)nrun); + // printf("nrun = %i runlist = %llu \n",nrun,(ULong64_t)runlist->At(nrun)); + GetRunInfo((ULong64_t)runlist->At(nrun)); + // printf("entry %i first %i last %i \n",entry,(UInt_t)first_file_entry,(UInt_t)last_file_entry ); + if ( entry >= (UInt_t)first_file_entry && entry <= (UInt_t)last_file_entry ){ + // run->newtree->Delete(); + // delete run; + //printf("nrun is %i \n",nrun); + return((UInt_t)runlist->At(nrun)); }; }; - run->newtree->Delete(); - delete run; + // run->newtree->Delete(); + // delete run; return(0); } @@ -672,8 +676,8 @@ }; if ( !found ) first_file_entry += (nwrun->EV_REG_PHYS_TO - nwrun->EV_REG_PHYS_FROM + 1); }; - if ( found ) return(0); delete nwver; delete nwrun; + if ( found ) return(0); return(-800); }