/[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.17 by mocchiut, Mon Nov 26 08:01:15 2007 UTC revision 1.19 by mocchiut, Fri Jan 29 05:49:27 2010 UTC
# Line 201  void ItoRunInfo::CopyFromTo(GL_RUN *glru Line 201  void ItoRunInfo::CopyFromTo(GL_RUN *glru
201      newrun->TRK_CALIB_USED = glrun->TRK_CALIB_USED             ;      newrun->TRK_CALIB_USED = glrun->TRK_CALIB_USED             ;
202      newrun->CAL_DSP_MASK  = glrun->CAL_DSP_MASK               ;      newrun->CAL_DSP_MASK  = glrun->CAL_DSP_MASK               ;
203      newrun->BOOT_NUMBER  = glrun->BOOT_NUMBER                ;      newrun->BOOT_NUMBER  = glrun->BOOT_NUMBER                ;
204        newrun->PHYSENDRUN_MASK_S3S2S12  = glrun->PHYSENDRUN_MASK_S3S2S12                 ;
205        newrun->PHYSENDRUN_MASK_S11CRC  = glrun->PHYSENDRUN_MASK_S11CRC                 ;
206      newrun->VALIDATION  = glrun->VALIDATION                 ;      newrun->VALIDATION  = glrun->VALIDATION                 ;
207      //      //
208    };    };
# Line 360  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 568  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 657  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.17  
changed lines
  Added in v.1.19

  ViewVC Help
Powered by ViewVC 1.1.23