/[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.2 by mocchiut, Tue May 30 14:59:40 2006 UTC revision 1.3 by mocchiut, Fri Jun 30 09:21:59 2006 UTC
# Line 302  Int_t ItoRunInfo::Update(ULong64_t run, Line 302  Int_t ItoRunInfo::Update(ULong64_t run,
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      //      //
# Line 441  Int_t ItoRunInfo::Update(ULong64_t run, Line 445  Int_t ItoRunInfo::Update(ULong64_t run,
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;
# Line 497  Int_t ItoRunInfo::Update(ULong64_t run, Line 501  Int_t ItoRunInfo::Update(ULong64_t run,
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);
# Line 580  Int_t ItoRunInfo::Read(ULong64_t idRun){ Line 588  Int_t ItoRunInfo::Read(ULong64_t 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  }      }    
# Line 608  UInt_t ItoRunInfo::GetRunForEntry(UInt_t Line 618  UInt_t ItoRunInfo::GetRunForEntry(UInt_t
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    
# Line 661  Int_t ItoRunInfo::GetRunInfo(ULong64_t r Line 673  Int_t ItoRunInfo::GetRunInfo(ULong64_t r
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  }  }

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

  ViewVC Help
Powered by ViewVC 1.1.23