2764 |
if(SELLI==1){ |
if(SELLI==1){ |
2765 |
sel_tree->GetEntry(iev);// read irunt from SelectionList |
sel_tree->GetEntry(iev);// read irunt from SelectionList |
2766 |
irun = irunt + irunoffset[sel_tree->GetTreeNumber()];//NEWNEW |
irun = irunt + irunoffset[sel_tree->GetTreeNumber()];//NEWNEW |
2767 |
if(irun != oldrun){ |
if(irun != oldrun ){ |
2768 |
run_tree->GetEntry(irun); |
if( irun < run_tree->GetEntries() )run_tree->GetEntry(irun); |
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; |
2776 |
( |
( |
2777 |
!(abstime >= GetRunInfo()->RUNHEADER_TIME && // check on absolute time (s) |
!(abstime >= GetRunInfo()->RUNHEADER_TIME && // check on absolute time (s) |
2778 |
abstime <= GetRunInfo()->RUNTRAILER_TIME) |
abstime <= GetRunInfo()->RUNTRAILER_TIME) |
2779 |
|| |
// || |
2780 |
!(obt >= GetRunInfo()->RUNHEADER_OBT && // additional check on OBT (ms) |
// !(obt >= GetRunInfo()->RUNHEADER_OBT && // additional check on OBT (ms) |
2781 |
obt <= GetRunInfo()->RUNTRAILER_OBT) |
// obt <= GetRunInfo()->RUNTRAILER_OBT) |
2782 |
) |
) |
2783 |
|| GetRunInfo()->NEVENTS==0 |
|| GetRunInfo()->NEVENTS==0 |
2784 |
) |
) |
2799 |
// irun++; |
// irun++; |
2800 |
irunoffset[sel_tree->GetTreeNumber()]++; |
irunoffset[sel_tree->GetTreeNumber()]++; |
2801 |
irun = irunt + irunoffset[sel_tree->GetTreeNumber()];//NEWNEW |
irun = irunt + irunoffset[sel_tree->GetTreeNumber()];//NEWNEW |
2802 |
// if(irun == run_tree->GetEntries() && SECONDO_GIRO){ |
if(irun == run_tree->GetEntries() && SECONDO_GIRO){ |
2803 |
if(irun == irun_start){ |
// if(irun == irun_start ){ |
2804 |
cout << " ...grrrvzzkhhhajsdkj!!!! "<<endl; |
cout << " ...grrrvzzkhhhajsdkj!!!! "<<endl; |
2805 |
irunoffset[sel_tree->GetTreeNumber()] = offset_start; |
irunoffset[sel_tree->GetTreeNumber()] = offset_start; |
2806 |
return false; |
return false; |
2807 |
} |
} |
2808 |
if(irun == run_tree->GetEntries()){ |
if( irun >= run_tree->GetEntries() || irun < 0){ |
2809 |
|
cout << "irun = "<<irun<<" >> search from the beginning... <<"<<endl; |
2810 |
SECONDO_GIRO=true; |
SECONDO_GIRO=true; |
2811 |
irun=0; |
irun=0; |
2812 |
irunoffset[sel_tree->GetTreeNumber()]=-irunt; |
irunoffset[sel_tree->GetTreeNumber()]=-irunt; |