| 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> |
| 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; |
| 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(); |
| 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 |
// -------------- |
// -------------- |