--- quicklook/tracker/flight/macros/FTrkQLook_EXPERT.cxx 2006/10/30 17:45:36 1.21 +++ quicklook/tracker/flight/macros/FTrkQLook_EXPERT.cxx 2006/11/20 11:33:24 1.22 @@ -2,7 +2,7 @@ * FTrkQLook_EXPERT.cxx * * autor: D.Fedele - * version v1r15 + * version v1r16 * Parameters: * file - the data file to analyze * fromevent - first event to analyze @@ -369,7 +369,17 @@ Int_t minev=minevent,maxev=maxevent,countTEMP=0,countMAG=0; - 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]; + + for(int i=0; i<12; i++){ + countFC[i]=0; + countFL1[i]=0; + countFL2[i]=0; + countFL3[i]=0; + countFL4[i]=0; + countFL5[i]=0; + countFL6[i]=0; + } // // Fill temperature graphs @@ -794,9 +804,60 @@ } WARNING[i]=0; - 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){ - ALARM = 1; //general alarm - WARNING[i] = 1; // DSP warning + if(te->fc[i]!=0){ + if(countFC[dsp]==0){ + ALARM = 1; //general alarm + WARNING[i] = 1; // DSP warning + } + countFC[dsp]+=1; + }; + + if(te->fl1[i]!=0){ + if(countFL1[dsp]==0){ + ALARM = 1; //general alarm + WARNING[i] = 1; // DSP warning + } + countFL1[dsp]+=1; + }; + + if(te->fl2[i]!=0){ + if(countFL2[dsp]==0){ + ALARM = 1; //general alarm + WARNING[i] = 1; // DSP warning + } + countFL2[dsp]+=1; + }; + + if(te->fl3[i]!=0){ + if(countFL3[dsp]==0){ + ALARM = 1; //general alarm + WARNING[i] = 1; // DSP warning + } + countFL3[dsp]+=1; + }; + + if(te->fl4[i]!=0){ + if(countFL4[dsp]==0){ + ALARM = 1; //general alarm + WARNING[i] = 1; // DSP warning + } + countFL4[dsp]+=1; + }; + + if(te->fl5[i]!=0){ + if(countFL5[dsp]==0){ + ALARM = 1; //general alarm + WARNING[i] = 1; // DSP warning + } + countFL5[dsp]+=1; + }; + + if(te->fl6[i]!=0){ + if(countFL6[dsp]==0){ + ALARM = 1; //general alarm + WARNING[i] = 1; // DSP warning + } + countFL6[dsp]+=1; }; if(dsp%2==0 && te->alarm[i]!=0){ // hardware alarm @@ -878,6 +939,15 @@ if(countALARMx%6!=0) alarm << endl<GetMaximum(); + b.SetFillColor(107); + b.SetFillStyle(3954); + b.DrawBox(512.,0.,768.,maxhist); + } else if(i==9){ maxhist=illuminazione[i]->GetMaximum(); b.SetFillColor(107);