| 2 |
* FTrkQLook_EXPERT.cxx |
* FTrkQLook_EXPERT.cxx |
| 3 |
* |
* |
| 4 |
* autor: D.Fedele |
* autor: D.Fedele |
| 5 |
* version v1r15 |
* version v1r16 |
| 6 |
* Parameters: |
* Parameters: |
| 7 |
* file - the data file to analyze |
* file - the data file to analyze |
| 8 |
* fromevent - first event to analyze |
* fromevent - first event to analyze |
| 369 |
|
|
| 370 |
|
|
| 371 |
Int_t minev=minevent,maxev=maxevent,countTEMP=0,countMAG=0; |
Int_t minev=minevent,maxev=maxevent,countTEMP=0,countMAG=0; |
| 372 |
ULong_t countALARMx=0,countALARMy=0; |
ULong_t countALARMx=0,countALARMy=0,countFC[12],countFL1[12],countFL2[12],countFL3[12],countFL4[12],countFL5[12],countFL6[12]; |
| 373 |
|
|
| 374 |
|
for(int i=0; i<12; i++){ |
| 375 |
|
countFC[i]=0; |
| 376 |
|
countFL1[i]=0; |
| 377 |
|
countFL2[i]=0; |
| 378 |
|
countFL3[i]=0; |
| 379 |
|
countFL4[i]=0; |
| 380 |
|
countFL5[i]=0; |
| 381 |
|
countFL6[i]=0; |
| 382 |
|
} |
| 383 |
|
|
| 384 |
// |
// |
| 385 |
// Fill temperature graphs |
// Fill temperature graphs |
| 804 |
} |
} |
| 805 |
|
|
| 806 |
WARNING[i]=0; |
WARNING[i]=0; |
| 807 |
if(te->fc[i]!=0 || te->fl1[i]!=0 || te->fl2[i]!=0 || te->fl3[i]!=0 || te->fl4[i]!=0 || te->fl5[i]!=0 || te->fl6[i]!=0){ |
if(te->fc[i]!=0){ |
| 808 |
ALARM = 1; //general alarm |
if(countFC[dsp]==0){ |
| 809 |
WARNING[i] = 1; // DSP warning |
ALARM = 1; //general alarm |
| 810 |
|
WARNING[i] = 1; // DSP warning |
| 811 |
|
} |
| 812 |
|
countFC[dsp]+=1; |
| 813 |
|
}; |
| 814 |
|
|
| 815 |
|
if(te->fl1[i]!=0){ |
| 816 |
|
if(countFL1[dsp]==0){ |
| 817 |
|
ALARM = 1; //general alarm |
| 818 |
|
WARNING[i] = 1; // DSP warning |
| 819 |
|
} |
| 820 |
|
countFL1[dsp]+=1; |
| 821 |
|
}; |
| 822 |
|
|
| 823 |
|
if(te->fl2[i]!=0){ |
| 824 |
|
if(countFL2[dsp]==0){ |
| 825 |
|
ALARM = 1; //general alarm |
| 826 |
|
WARNING[i] = 1; // DSP warning |
| 827 |
|
} |
| 828 |
|
countFL2[dsp]+=1; |
| 829 |
|
}; |
| 830 |
|
|
| 831 |
|
if(te->fl3[i]!=0){ |
| 832 |
|
if(countFL3[dsp]==0){ |
| 833 |
|
ALARM = 1; //general alarm |
| 834 |
|
WARNING[i] = 1; // DSP warning |
| 835 |
|
} |
| 836 |
|
countFL3[dsp]+=1; |
| 837 |
|
}; |
| 838 |
|
|
| 839 |
|
if(te->fl4[i]!=0){ |
| 840 |
|
if(countFL4[dsp]==0){ |
| 841 |
|
ALARM = 1; //general alarm |
| 842 |
|
WARNING[i] = 1; // DSP warning |
| 843 |
|
} |
| 844 |
|
countFL4[dsp]+=1; |
| 845 |
|
}; |
| 846 |
|
|
| 847 |
|
if(te->fl5[i]!=0){ |
| 848 |
|
if(countFL5[dsp]==0){ |
| 849 |
|
ALARM = 1; //general alarm |
| 850 |
|
WARNING[i] = 1; // DSP warning |
| 851 |
|
} |
| 852 |
|
countFL5[dsp]+=1; |
| 853 |
|
}; |
| 854 |
|
|
| 855 |
|
if(te->fl6[i]!=0){ |
| 856 |
|
if(countFL6[dsp]==0){ |
| 857 |
|
ALARM = 1; //general alarm |
| 858 |
|
WARNING[i] = 1; // DSP warning |
| 859 |
|
} |
| 860 |
|
countFL6[dsp]+=1; |
| 861 |
}; |
}; |
| 862 |
|
|
| 863 |
if(dsp%2==0 && te->alarm[i]!=0){ // hardware alarm |
if(dsp%2==0 && te->alarm[i]!=0){ // hardware alarm |
| 939 |
if(countALARMx%6!=0) alarm << endl<<endl<< "***** "<<countALARMx/6+1 <<" events with hardware alarm in X-view *****"<<endl; |
if(countALARMx%6!=0) alarm << endl<<endl<< "***** "<<countALARMx/6+1 <<" events with hardware alarm in X-view *****"<<endl; |
| 940 |
else alarm << endl<<endl<< "***** "<<countALARMx/6 <<" events with hardware alarm in X-view *****"<<endl; |
else alarm << endl<<endl<< "***** "<<countALARMx/6 <<" events with hardware alarm in X-view *****"<<endl; |
| 941 |
} |
} |
| 942 |
|
for(int p=0; p<12; p++){ |
| 943 |
|
if(countFC[p]!=0) alarm << endl<<endl<< "***** "<<countFC[p] <<" events with fc!=0 in DSP "<<p+1<<" *****"<<endl; |
| 944 |
|
if(countFL1[p]!=0) alarm << endl<<endl<< "***** "<<countFL1[p] <<" events with fl1!=0 in DSP "<<p+1<<" *****"<<endl; |
| 945 |
|
if(countFL2[p]!=0) alarm << endl<<endl<< "***** "<<countFL2[p] <<" events with fl2!=0 in DSP "<<p+1<<" *****"<<endl; |
| 946 |
|
if(countFL3[p]!=0) alarm << endl<<endl<< "***** "<<countFL3[p] <<" events with fl3!=0 in DSP "<<p+1<<" *****"<<endl; |
| 947 |
|
if(countFL4[p]!=0) alarm << endl<<endl<< "***** "<<countFL4[p] <<" events with fl4!=0 in DSP "<<p+1<<" *****"<<endl; |
| 948 |
|
if(countFL5[p]!=0) alarm << endl<<endl<< "***** "<<countFL5[p] <<" events with fl5!=0 in DSP "<<p+1<<" *****"<<endl; |
| 949 |
|
if(countFL6[p]!=0) alarm << endl<<endl<< "***** "<<countFL6[p] <<" events with fl6!=0 in DSP "<<p+1<<" *****"<<endl; |
| 950 |
|
} |
| 951 |
} |
} |
| 952 |
|
|
| 953 |
// |
// |
| 1193 |
b.SetFillStyle(3954); |
b.SetFillStyle(3954); |
| 1194 |
b.DrawBox(512.,0.,768.,maxhist); |
b.DrawBox(512.,0.,768.,maxhist); |
| 1195 |
} |
} |
| 1196 |
|
else if(i==8){ |
| 1197 |
|
maxhist=illuminazione[i]->GetMaximum(); |
| 1198 |
|
b.SetFillColor(107); |
| 1199 |
|
b.SetFillStyle(3954); |
| 1200 |
|
b.DrawBox(512.,0.,768.,maxhist); |
| 1201 |
|
} |
| 1202 |
else if(i==9){ |
else if(i==9){ |
| 1203 |
maxhist=illuminazione[i]->GetMaximum(); |
maxhist=illuminazione[i]->GetMaximum(); |
| 1204 |
b.SetFillColor(107); |
b.SetFillColor(107); |