--- calo/flight/FQLOOK/macros/FCaloCHKCALIB.cxx 2007/02/26 08:50:59 1.13 +++ calo/flight/FQLOOK/macros/FCaloCHKCALIB.cxx 2007/07/18 07:51:03 1.14 @@ -1,12 +1,14 @@ // // Check the calorimter calibrations - Emiliano Mocchiutti // -// FCaloCHKCALIB.c version 1.13 (2006-09-22) +// FCaloCHKCALIB.c version 1.14 (2007-07-18) // // The only input needed is the path to the directory created by YODA for the data file you want to analyze. // // Changelog: // +// 1.12 - 1.14 (2007-07-18): 05953 bug fixed (infinite loop). +// // 1.12 - 1.13 (2006-09-22): Set upper limit in calvar plot. // // 1.07 - 1.12 (2006-08-04): bugs fixed. @@ -310,7 +312,8 @@ Int_t s = 0; obt = cpuhead[hi]; // printf(" qui cpu header : %i hi %i entry %i \n",obt,hi,ci); - while ( labs((Int_t)(obt-cpuhead[hi])) < 100000 && ci < maxev){ + if ( !obt ) break; + while ( (labs((Int_t)(obt-cpuhead[hi])) < 100000 && ci < maxev) || !cpuobt ){ tr->GetEntry(ci);//sceglie la entry (calibrazione)del tree in cui ho tutte le sottostrutture // tr->GetEntry(ci+s);//sceglie la entry (calibrazione)del tree in cui ho tutte le sottostrutture