/[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.14 by mocchiut, Thu Nov 9 14:44:08 2006 UTC revision 1.15 by mocchiut, Mon Nov 27 16:34:48 2006 UTC
# Line 336  Int_t ItoRunInfo::Update(UInt_t run, TSt Line 336  Int_t ItoRunInfo::Update(UInt_t run, TSt
336      totnorun = 1;      totnorun = 1;
337      reprocessing = false;      reprocessing = false;
338      first_file_entry = 0;      first_file_entry = 0;
339      last_file_entry = (UInt_t)(EV_TO - EV_FROM);      if ( EV_TO >= EV_FROM ) last_file_entry = (UInt_t)(EV_TO - EV_FROM);
340      norun = 1;      norun = 1;
341      runlist->AddAt((Int_t)ID,0);      runlist->AddAt((Int_t)ID,0);
342      //      //
# Line 510  Int_t ItoRunInfo::Update(UInt_t run, TSt Line 510  Int_t ItoRunInfo::Update(UInt_t run, TSt
510            };            };
511          };          };
512          //          //
513          last_file_entry = first_file_entry + (oldrun->EV_TO - oldrun->EV_FROM + 1);          if ( oldrun->EV_TO >= oldrun->EV_FROM ) last_file_entry = first_file_entry + (oldrun->EV_TO - oldrun->EV_FROM + 1);
514          //          //
515        } else {        } else {
516          if ( !found ) first_file_entry += (oldrun->EV_TO - oldrun->EV_FROM + 1);          if ( !found ) first_file_entry += (oldrun->EV_TO - oldrun->EV_FROM + 1);
# Line 587  Int_t ItoRunInfo::Read(UInt_t idRun){ Line 587  Int_t ItoRunInfo::Read(UInt_t idRun){
587          runlist->AddAt(newrun->ID,norun);          runlist->AddAt(newrun->ID,norun);
588          norun++;          norun++;
589        };        };
590        last_file_entry = first_file_entry + (newrun->EV_TO - newrun->EV_FROM + 1);        if ( newrun->EV_TO >= newrun->EV_FROM ) last_file_entry = first_file_entry + (newrun->EV_TO - newrun->EV_FROM + 1);
591      };      };
592    };    };
593    if ( debug ) printf("norun %i \n",(int)norun);    if ( debug ) printf("norun %i \n",(int)norun);
# Line 670  Int_t ItoRunInfo::GetRunInfo(UInt_t run) Line 670  Int_t ItoRunInfo::GetRunInfo(UInt_t run)
670      if ( nwrun->ID == run || run == 0 ){      if ( nwrun->ID == run || run == 0 ){
671        CopyFromTo(nwrun,(GL_RUN*)this,nwver,version);        CopyFromTo(nwrun,(GL_RUN*)this,nwver,version);
672        found = true;        found = true;
673        last_file_entry = first_file_entry + (nwrun->EV_TO - nwrun->EV_FROM + 1);        if ( nwrun->EV_TO >= nwrun->EV_FROM ) last_file_entry = first_file_entry + (nwrun->EV_TO - nwrun->EV_FROM + 1);
674      };      };
675      if ( !found ) first_file_entry += (nwrun->EV_TO - nwrun->EV_FROM + 1);      if ( !found ) first_file_entry += (nwrun->EV_TO - nwrun->EV_FROM + 1);
676    };    };

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.23