/[PAMELA software]/PamelaLevel2/src/PamLevel2.cpp
ViewVC logotype

Diff of /PamelaLevel2/src/PamLevel2.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.56 by pam-fi, Tue Nov 20 18:16:30 2007 UTC revision 1.57 by pam-fi, Tue Nov 27 15:23:02 2007 UTC
# Line 2769  Bool_t PamLevel2::UpdateRunInfo(Long64_t Line 2769  Bool_t PamLevel2::UpdateRunInfo(Long64_t
2769              // check if the time is ok (with merged files it is not...)              // check if the time is ok (with merged files it is not...)
2770              // if not loop over run and look for the proper entry              // if not loop over run and look for the proper entry
2771              bool SECONDO_GIRO=false;              bool SECONDO_GIRO=false;
2772                Long64_t irun_start   = irun;
2773                int      offset_start = irunoffset[sel_tree->GetTreeNumber()];
2774              while (              while (
2775                  (                  (
2776                      (                      (
# Line 2794  Bool_t PamLevel2::UpdateRunInfo(Long64_t Line 2796  Bool_t PamLevel2::UpdateRunInfo(Long64_t
2796  //              if(!SECONDO_GIRO)cout << " (don't worry)";  //              if(!SECONDO_GIRO)cout << " (don't worry)";
2797  //              else             cout << " (start worring...)";  //              else             cout << " (start worring...)";
2798                  cout << endl;                  cout << endl;
2799                  irun++;  //              irun++;
2800                  irunoffset[sel_tree->GetTreeNumber()]++;                  irunoffset[sel_tree->GetTreeNumber()]++;
2801                  if(irun == run_tree->GetEntries() && SECONDO_GIRO){                  irun = irunt + irunoffset[sel_tree->GetTreeNumber()];//NEWNEW          
2802    //              if(irun == run_tree->GetEntries() && SECONDO_GIRO){
2803                    if(irun == irun_start){
2804                      cout << " ...grrrvzzkhhhajsdkj!!!! "<<endl;                      cout << " ...grrrvzzkhhhajsdkj!!!! "<<endl;
2805                        irunoffset[sel_tree->GetTreeNumber()] = offset_start;
2806                      return false;                      return false;
2807                  }                  }
2808                  if(irun == run_tree->GetEntries()){                  if(irun == run_tree->GetEntries()){
2809                      SECONDO_GIRO=true;                      SECONDO_GIRO=true;
2810                      irun=0;                      irun=0;
2811                      irunoffset[sel_tree->GetTreeNumber()]=0;                      irunoffset[sel_tree->GetTreeNumber()]=-irunt;
2812                  }                  }
2813                  run_tree->GetEntry(irun);                  run_tree->GetEntry(irun);
2814              }              }

Legend:
Removed from v.1.56  
changed lines
  Added in v.1.57

  ViewVC Help
Powered by ViewVC 1.1.23