/[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.16 by mocchiut, Tue Jan 16 14:24:14 2007 UTC
# Line 22  using namespace std; Line 22  using namespace std;
22  //  //
23    
24  SoftInfo::SoftInfo() {  SoftInfo::SoftInfo() {
25    TRIG_ver = "";    Clear();
   TOF_ver = "";  
   AC_ver = "";  
   TRK_ver = "";  
   ORB_ver = "";  
   CAL_ver = "";  
   ND_ver = "";  
   S4_ver = "";    
   DV_ver = "";  
26  }  }
27    
28  void SoftInfo::Clear(){  void SoftInfo::Clear(){
# Line 336  Int_t ItoRunInfo::Update(UInt_t run, TSt Line 328  Int_t ItoRunInfo::Update(UInt_t run, TSt
328      totnorun = 1;      totnorun = 1;
329      reprocessing = false;      reprocessing = false;
330      first_file_entry = 0;      first_file_entry = 0;
331      last_file_entry = (UInt_t)(EV_TO - EV_FROM);      if ( EV_TO >= EV_FROM ) last_file_entry = (UInt_t)(EV_TO - EV_FROM);
332      norun = 1;      norun = 1;
333      runlist->AddAt((Int_t)ID,0);      runlist->AddAt((Int_t)ID,0);
334      //      //
# Line 510  Int_t ItoRunInfo::Update(UInt_t run, TSt Line 502  Int_t ItoRunInfo::Update(UInt_t run, TSt
502            };            };
503          };          };
504          //          //
505          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);
506          //          //
507        } else {        } else {
508          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 579  Int_t ItoRunInfo::Read(UInt_t idRun){
579          runlist->AddAt(newrun->ID,norun);          runlist->AddAt(newrun->ID,norun);
580          norun++;          norun++;
581        };        };
582        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);
583      };      };
584    };    };
585    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 662  Int_t ItoRunInfo::GetRunInfo(UInt_t run)
662      if ( nwrun->ID == run || run == 0 ){      if ( nwrun->ID == run || run == 0 ){
663        CopyFromTo(nwrun,(GL_RUN*)this,nwver,version);        CopyFromTo(nwrun,(GL_RUN*)this,nwver,version);
664        found = true;        found = true;
665        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);
666      };      };
667      if ( !found ) first_file_entry += (nwrun->EV_TO - nwrun->EV_FROM + 1);      if ( !found ) first_file_entry += (nwrun->EV_TO - nwrun->EV_FROM + 1);
668    };    };

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

  ViewVC Help
Powered by ViewVC 1.1.23