/[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.18 by mocchiut, Thu Sep 25 10:40:56 2008 UTC revision 1.19 by mocchiut, Fri Jan 29 05:49:27 2010 UTC
# Line 362  Int_t ItoRunInfo::Update(UInt_t run, TSt Line 362  Int_t ItoRunInfo::Update(UInt_t run, TSt
362      //      //
363      for ( UInt_t run = 0; run < totnorun; run++){      for ( UInt_t run = 0; run < totnorun; run++){
364        //        //
365        oldtree->GetEntry(run);        if ( oldtree->GetEntry(run) <= 0 ) throw -36;
366        //        //
367        CopyFromTo(oldrun,newrun,oldver,newver);        CopyFromTo(oldrun,newrun,oldver,newver);
368        //        //
# Line 570  Int_t ItoRunInfo::Read(UInt_t idRun){ Line 570  Int_t ItoRunInfo::Read(UInt_t idRun){
570      //      //
571      for ( UInt_t run = 0; run < totnorun; run++){      for ( UInt_t run = 0; run < totnorun; run++){
572        //        //
573        newtree->GetEntry(run);        if ( newtree->GetEntry(run) <= 0 ) throw -36;
574        //        //
575        file_entries += (newrun->EV_TO - newrun->EV_FROM + 1);        file_entries += (newrun->EV_TO - newrun->EV_FROM + 1);
576        //        //
# Line 659  Int_t ItoRunInfo::GetRunInfo(UInt_t run) Line 659  Int_t ItoRunInfo::GetRunInfo(UInt_t run)
659    totnorun = newtree->GetEntries();    totnorun = newtree->GetEntries();
660    //    //
661    for ( UInt_t nrun = 0; nrun < totnorun; nrun++){      for ( UInt_t nrun = 0; nrun < totnorun; nrun++){  
662      newtree->GetEntry(nrun);      if ( newtree->GetEntry(nrun) <= 0 ) throw -36;
663      //      //
664      if ( nwrun->ID == run || run == 0 ){      if ( nwrun->ID == run || run == 0 ){
665        CopyFromTo(nwrun,(GL_RUN*)this,nwver,version);        CopyFromTo(nwrun,(GL_RUN*)this,nwver,version);

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

  ViewVC Help
Powered by ViewVC 1.1.23