/[PAMELA software]/PamelaLevel2/doc/examples/Loop.cpp
ViewVC logotype

Diff of /PamelaLevel2/doc/examples/Loop.cpp

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

revision 1.2 by pam-fi, Mon Dec 11 18:29:01 2006 UTC revision 1.3 by pam-fi, Wed Jan 3 13:28:49 2007 UTC
# Line 10  Line 10 
10  #include <TString.h>  #include <TString.h>
11  #include <TBenchmark.h>  #include <TBenchmark.h>
12  #include <TFriendElement.h>  #include <TFriendElement.h>
13    #include <TObjectTable.h>
14    
15  #include <stdlib.h>  #include <stdlib.h>
16  #include <iostream>  #include <iostream>
# Line 111  bool Finish(){ Line 112  bool Finish(){
112  //000000000000000000000000000000000000000000  //000000000000000000000000000000000000000000
113  //==========================================  //==========================================
114  Int_t Loop(TString ddir,TString list, ULong64_t nmax, TString options, TString outfile){  Int_t Loop(TString ddir,TString list, ULong64_t nmax, TString options, TString outfile){
115    
116    //    gObjectTable->Print();
117                    
118      if(options.Contains("fillTree"))fillTree=true;      if(options.Contains("fillTree"))fillTree=true;
119      if(options.Contains("fillHisto"))fillHistos=true;      if(options.Contains("fillHisto"))fillHistos=true;
# Line 185  Int_t Loop(TString ddir,TString list, UL Line 188  Int_t Loop(TString ddir,TString list, UL
188      benchmark->Start("event-loop");      benchmark->Start("event-loop");
189            
190      TString current_file = "";      TString current_file = "";
191    //    gObjectTable->Print();
192      for(ULong64_t iev=0; iev<nmax; iev++){      for(ULong64_t iev=0; iev<nmax; iev++){
193                    
194          event->Clear();          event->Clear();
# Line 210  Int_t Loop(TString ddir,TString list, UL Line 214  Int_t Loop(TString ddir,TString list, UL
214      benchmark->Show("event-loop");      benchmark->Show("event-loop");
215      cout << sel <<" selected events over "<<get;      cout << sel <<" selected events over "<<get;
216      if(get)cout<<" ("<< 100*sel/get<<"%)"<<endl;      if(get)cout<<" ("<< 100*sel/get<<"%)"<<endl;
217      cout << "Fitted tracks: "<<ntrk<<endl;  //    cout << "Fitted tracks: "<<ntrk<<endl;
218    //    gObjectTable->Print();
219  //  --------------  //  --------------
220  //  close and exit  //  close and exit
221  //  --------------  //  --------------

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.23