/[PAMELA software]/DarthVader/RunInfo/src/RunInfo.cpp
ViewVC logotype

Diff of /DarthVader/RunInfo/src/RunInfo.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by mocchiut, Fri Jun 30 09:21:59 2006 UTC revision 1.4 by mocchiut, Mon Jul 17 12:14:30 2006 UTC
# Line 612  void ItoRunInfo::Clear(){ Line 612  void ItoRunInfo::Clear(){
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    
# Line 672  Int_t ItoRunInfo::GetRunInfo(ULong64_t r Line 676  Int_t ItoRunInfo::GetRunInfo(ULong64_t r
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  }  }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.23