--- calo/flight/FQLOOK/macros/FCaloQLOOK.cxx 2006/09/28 19:39:00 1.17 +++ calo/flight/FQLOOK/macros/FCaloQLOOK.cxx 2006/09/29 06:22:43 1.18 @@ -1,12 +1,14 @@ // // Check for possible errors and shows raw distribution of variables coming from the DSP (no calibrations needed) - Emiliano Mocchiutti // -// FCaloQLOOK.c version 1.13 (2006-09-28) +// FCaloQLOOK.c version 1.14 (2006-09-29) // // The only input needed is the path to the directory created by YODA for the data file you want to analyze. // // Changelog: // +// 1.13 - 1.14 (2006-09-29): Flag the last entry in the txt file, count missing section when checking for DSP entries correspondence. +// // 1.12 - 1.13 (2006-09-28): Give wrong number of events in compress mode, fixed. // // 1.11 - 1.12 (2006-09-22): Check for different number of events, put output in a file and write down errors for each event. Fixed jumpev bug. @@ -96,6 +98,7 @@ printf("PSCU-Pkt N. %u - OBT %u ms\n",pkt_num,obt); printf("Total events %u\n",totev); printf("(ROOT-tree entry %u )\n",entry); + if ( (totev-1) == entry ) printf("NOTICE: this is last entry! \n"); printf("=================================================\n"); evdone = true; }; @@ -1305,7 +1308,7 @@ // Bool_t redevent = true; // - if ( ver[0][3]+ver[0][16]+ver[0][17] == ver[1][3]+ver[1][16]+ver[1][17] && ver[1][3]+ver[1][16]+ver[1][17] == ver[2][3]+ver[2][16]+ver[2][17] && ver[2][3]+ver[2][16]+ver[2][17] == ver[3][3]+ver[3][16]+ver[3][17] ){ + if ( ver[0][3]+ver[0][16]+ver[0][17]+ver[0][8] == ver[1][3]+ver[1][16]+ver[1][17]+ver[1][8] && ver[1][3]+ver[1][16]+ver[1][17]+ver[1][8] == ver[2][3]+ver[2][16]+ver[2][17]+ver[2][8] && ver[2][3]+ver[2][16]+ver[2][17]+ver[2][8] == ver[3][3]+ver[3][16]+ver[3][17]+ver[3][8] ){ redevent = false; }; if ( redevent ) check = true;