/[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.20 by pam-fi, Fri Feb 16 15:00:35 2007 UTC revision 1.21 by pam-fi, Mon Feb 19 11:21:36 2007 UTC
# Line 2294  void PamLevel2::FillCloneTrees(){ Line 2294  void PamLevel2::FillCloneTrees(){
2294      }      }
2295      if(sel_tree_clone)sel_tree_clone->Fill();          if(sel_tree_clone)sel_tree_clone->Fill();    
2296  //    if( irunentry == 0 || run_tree_clone->GetEntries()==0 )run_tree_clone->Fill();  //    if( irunentry == 0 || run_tree_clone->GetEntries()==0 )run_tree_clone->Fill();
2297      Int_t nstoredruns = run_tree_clone->GetEntries();  //    Int_t nstoredruns = run_tree_clone->GetEntries();
2298      if( irun ==  nstoredruns )run_tree_clone->Fill();  //     if( irun ==  nstoredruns )run_tree_clone->Fill();
2299      else if( irun > nstoredruns || irun < nstoredruns-1){  //     else if( irun > nstoredruns || irun < nstoredruns-1){
2300          cout << " PamLevel2::FillCloneTrees() -- ERROR -- current run "<< irun <<" stored runs "<< nstoredruns <<endl;  //      cout << " PamLevel2::FillCloneTrees() -- ERROR -- current run "<< irun <<" stored runs "<< nstoredruns <<endl;
2301      }  //     }
2302    
2303  }  }
2304    
2305    
# Line 2360  Int_t PamLevel2::GetEntry(Int_t iee){ Line 2361  Int_t PamLevel2::GetEntry(Int_t iee){
2361      if( !pam_tree->GetEntry(ii) ) return 0;      if( !pam_tree->GetEntry(ii) ) return 0;
2362      //-------------------------------      //-------------------------------
2363      ii = iee;      ii = iee;
2364      UpdateRunInfo(run_tree,ii);      Bool_t UPDATED = UpdateRunInfo(run_tree,ii);
2365      if(SELLI==0)irunentry = iee-runfirstentry;      if(SELLI==0)irunentry = iee-runfirstentry;
2366        if(UPDATED && run_tree_clone)run_tree_clone->Fill();
2367    
2368  //    cout << "PamLevel2::GetEntry("<<iee<<") "<<irun<<" "<<runfirstentry<<" "<<irunentry<<endl;  //    cout << "PamLevel2::GetEntry("<<iee<<") "<<irun<<" "<<runfirstentry<<" "<<irunentry<<endl;
2369    

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

  ViewVC Help
Powered by ViewVC 1.1.23