2 |
* FTrkQLook_EXPERT.cxx |
* FTrkQLook_EXPERT.cxx |
3 |
* |
* |
4 |
* autor: D.Fedele |
* autor: D.Fedele |
5 |
* version v1r12 |
* version v1r14 |
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 |
161 |
countnboot+=(Int_t)(2*nevent/MAXSTORAGE); |
countnboot+=(Int_t)(2*nevent/MAXSTORAGE); |
162 |
// printf("\ncountnboot=%d\n",countnboot); |
// printf("\ncountnboot=%d\n",countnboot); |
163 |
|
|
|
|
|
164 |
// |
// |
165 |
// other variables definitions |
// other variables definitions |
166 |
stringstream oss1,oss2,oss3,oss4,fromfile,isfile,tit; |
stringstream oss1,oss2,oss3,oss4,fromfile,isfile,tit; |
366 |
|
|
367 |
|
|
368 |
Int_t minev=minevent,maxev=maxevent,countTEMP=0,countMAG=0; |
Int_t minev=minevent,maxev=maxevent,countTEMP=0,countMAG=0; |
369 |
|
ULong_t countALARMx=0,countALARMy=0; |
370 |
|
|
371 |
// |
// |
372 |
// Fill temperature graphs |
// Fill temperature graphs |
783 |
WARNING[i] = 1; // DSP warning |
WARNING[i] = 1; // DSP warning |
784 |
}; |
}; |
785 |
|
|
786 |
if(te->alarm[i]!=0){ // hardware alarm |
if(dsp%2==0 && te->alarm[i]!=0){ // hardware alarm |
787 |
ALARM = 1; |
if(countALARMy==0) |
788 |
|
ALARM = 1; |
789 |
|
countALARMy+=1; |
790 |
|
}; |
791 |
|
|
792 |
|
if(dsp%2==1 && te->alarm[i]!=0){ // hardware alarm |
793 |
|
if(countALARMx==0) |
794 |
|
ALARM = 1; |
795 |
|
countALARMx+=1; |
796 |
}; |
}; |
797 |
|
|
798 |
//************************************************************************************** |
//************************************************************************************** |
799 |
// warning for internal number |
// warning for internal number |
800 |
//************************************************************************************** |
//************************************************************************************** |
801 |
if(i<=10 && te->eventn[i]!=te->eventn[i+1]) ALARM=1; |
if(ev==minev && i<=10 && te->eventn[i]!=te->eventn[i+1]) ALARM=1; |
802 |
if((ev-minev)>=1 && eventn[i]+1!=te->eventn[i] && te->eventn[i]!=1) ALARM=1; |
if((ev-minev)>=1 && eventn[i]+1!=te->eventn[i] && te->eventn[i]!=1) ALARM=1; |
803 |
} |
} |
804 |
eventint[(ev-minev)]=te->eventn[0]; |
eventint[(ev-minev)]=te->eventn[0]; |
852 |
} |
} |
853 |
} |
} |
854 |
if(al==0) alarm << endl<< "Page "<<ii+1<< ": ------> NO ALARM!!! <-------"<<endl; |
if(al==0) alarm << endl<< "Page "<<ii+1<< ": ------> NO ALARM!!! <-------"<<endl; |
855 |
|
if(maxev==maxevent-1) { |
856 |
|
if(countALARMy!=0){ |
857 |
|
if(countALARMy%6!=0) alarm << endl<<endl<< "***** "<<countALARMy/6+1 <<" events with hardware alarm in Y-view *****"<<endl; |
858 |
|
else alarm << endl<<endl<< "***** "<<countALARMy/6 <<" events with hardware alarm in Y-view *****"<<endl; |
859 |
|
} |
860 |
|
if(countALARMx!=0){ |
861 |
|
if(countALARMx%6!=0) alarm << endl<<endl<< "***** "<<countALARMx/6+1 <<" events with hardware alarm in X-view *****"<<endl; |
862 |
|
else alarm << endl<<endl<< "***** "<<countALARMx/6 <<" events with hardware alarm in X-view *****"<<endl; |
863 |
|
} |
864 |
|
} |
865 |
|
|
866 |
// |
// |
867 |
// Draw the graphs |
// Draw the graphs |
1100 |
b.SetFillStyle(3954); |
b.SetFillStyle(3954); |
1101 |
b.DrawBox(512.,0.,768.,maxhist); |
b.DrawBox(512.,0.,768.,maxhist); |
1102 |
} |
} |
1103 |
|
else if(i==9){ |
1104 |
|
maxhist=illuminazione[i]->GetMaximum(); |
1105 |
|
b.SetFillColor(107); |
1106 |
|
b.SetFillStyle(3954); |
1107 |
|
b.DrawBox(256.,0.,384.,maxhist); |
1108 |
|
} |
1109 |
else if(i==11){ |
else if(i==11){ |
1110 |
maxhist= illuminazione[i]->GetMaximum(); |
maxhist= illuminazione[i]->GetMaximum(); |
1111 |
b.SetFillColor(6); |
b.SetFillColor(6); |