1 |
// |
// |
2 |
// Check for possible errors and shows raw distribution of variables coming from the DSP (no calibrations needed) - Emiliano Mocchiutti |
// Check for possible errors and shows raw distribution of variables coming from the DSP (no calibrations needed) - Emiliano Mocchiutti |
3 |
// |
// |
4 |
// FCaloQLOOK.c version 1.13 (2006-09-28) |
// FCaloQLOOK.c version 1.14 (2006-09-29) |
5 |
// |
// |
6 |
// The only input needed is the path to the directory created by YODA for the data file you want to analyze. |
// The only input needed is the path to the directory created by YODA for the data file you want to analyze. |
7 |
// |
// |
8 |
// Changelog: |
// Changelog: |
9 |
// |
// |
10 |
|
// 1.13 - 1.14 (2006-09-29): Flag the last entry in the txt file, count missing section when checking for DSP entries correspondence. |
11 |
|
// |
12 |
// 1.12 - 1.13 (2006-09-28): Give wrong number of events in compress mode, fixed. |
// 1.12 - 1.13 (2006-09-28): Give wrong number of events in compress mode, fixed. |
13 |
// |
// |
14 |
// 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. |
// 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. |
98 |
printf("PSCU-Pkt N. %u - OBT %u ms\n",pkt_num,obt); |
printf("PSCU-Pkt N. %u - OBT %u ms\n",pkt_num,obt); |
99 |
printf("Total events %u\n",totev); |
printf("Total events %u\n",totev); |
100 |
printf("(ROOT-tree entry %u )\n",entry); |
printf("(ROOT-tree entry %u )\n",entry); |
101 |
|
if ( (totev-1) == entry ) printf("NOTICE: this is last entry! \n"); |
102 |
printf("=================================================\n"); |
printf("=================================================\n"); |
103 |
evdone = true; |
evdone = true; |
104 |
}; |
}; |
1308 |
// |
// |
1309 |
Bool_t redevent = true; |
Bool_t redevent = true; |
1310 |
// |
// |
1311 |
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] ){ |
1312 |
redevent = false; |
redevent = false; |
1313 |
}; |
}; |
1314 |
if ( redevent ) check = true; |
if ( redevent ) check = true; |