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 |
( |
( |
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 |
} |
} |