1 |
|
|
2 |
/** |
/** |
3 |
* FTrkQLook_EXPERT.cxx |
* FTrkQLook_EXPERT.cxx |
4 |
* |
* |
5 |
* autor: D.Fedele |
* autor: D.Fedele |
6 |
* version v1r08 |
* version v1r27 |
7 |
* Parameters: |
* Parameters: |
8 |
* file - the data file to analyze |
* file - the data file to analyze |
9 |
* fromevent - first event to analyze |
* fromevent - first event to analyze |
137 |
} else if (toevent > nevent) { |
} else if (toevent > nevent) { |
138 |
maxevent = nevent; |
maxevent = nevent; |
139 |
} else { |
} else { |
140 |
maxevent = toevent+1; |
maxevent = nevent; |
141 |
} |
} |
142 |
nevent=maxevent-minevent ; |
nevent=maxevent-minevent ; |
143 |
} |
} |
144 |
|
|
145 |
// |
// |
146 |
// information about the RunHeader |
// information about the RunHeader |
147 |
ULong64_t HOBT[neventH]; |
ULong_t HOBT[neventH]; |
148 |
Int_t trk_cal_us[neventH]; |
Int_t trk_cal_us[neventH]; |
149 |
|
ULong_t acq_info[neventH]; |
150 |
|
Int_t countnboot=1; |
151 |
for (Int_t vi=0; vi<neventH;vi++){ |
for (Int_t vi=0; vi<neventH;vi++){ |
152 |
HOBT[vi]=0; |
HOBT[vi]=0; |
153 |
trk_cal_us[vi]=0; |
trk_cal_us[vi]=0; |
154 |
|
acq_info[vi]=0; |
155 |
} |
} |
156 |
for (Int_t ev=0; ev<neventH; ev++){ |
for (Int_t ev=0; ev<neventH; ev++){ |
157 |
otr->GetEntry(ev); |
otr->GetEntry(ev); |
158 |
pH = eH->GetPscuHeader(); |
pH = eH->GetPscuHeader(); |
159 |
HOBT[ev]= pH->GetOrbitalTime(); |
HOBT[ev]= pH->GetOrbitalTime(); |
160 |
trk_cal_us[ev]=reh->TRK_CALIB_USED; |
trk_cal_us[ev]=reh->TRK_CALIB_USED; |
161 |
|
acq_info[ev]=reh->ACQ_BUILD_INFO; |
162 |
|
if((HOBT[ev]<HOBT[ev-1]) && ev>0) |
163 |
|
countnboot+=1; |
164 |
} |
} |
165 |
|
countnboot+=(Int_t)(2*nevent/MAXSTORAGE); |
166 |
|
// printf("\ncountnboot=%d\n",countnboot); |
167 |
|
|
168 |
// |
// |
169 |
// other variables definitions |
// other variables definitions |
170 |
stringstream oss1,oss2,oss3,oss4,fromfile,isfile,tit; |
stringstream oss1,oss2,oss3,oss4,fromfile,isfile,tit; |
181 |
} |
} |
182 |
const Int_t tsize=maxsize; |
const Int_t tsize=maxsize; |
183 |
Int_t tempt[tsize][5]; |
Int_t tempt[tsize][5]; |
184 |
ULong64_t xt[tsize]; |
ULong_t xt[tsize]; |
185 |
|
|
186 |
Int_t countnboot=1; |
Int_t cntpgtemp=1,cntpgdat=0,cntpgmag=0; |
|
Int_t cntpgtemp=0,cntpgdat=0,cntpgmag=0; |
|
187 |
// |
// |
188 |
// information about the temperatures |
// information about the temperatures |
189 |
for (Int_t ev=0; ev<tnevent; ev++){ |
for (Int_t ev=0; ev<tnevent; ev++){ |
193 |
record = (pamela::TsbTRecord*)event->Records->At(j); |
record = (pamela::TsbTRecord*)event->Records->At(j); |
194 |
xt[siztmp]=record->RECORD_OBT; |
xt[siztmp]=record->RECORD_OBT; |
195 |
if((xt[siztmp]<xt[siztmp-1]) && siztmp>0) |
if((xt[siztmp]<xt[siztmp-1]) && siztmp>0) |
196 |
countnboot+=1; |
cntpgtemp+=1; |
197 |
|
|
198 |
for (Int_t z = 0; z < 5; z++){ |
for (Int_t z = 0; z < 5; z++){ |
199 |
tempt[siztmp][z] = record->TEMPERATURES[z+1]; |
tempt[siztmp][z] = record->TEMPERATURES[z+1]; |
201 |
siztmp++; |
siztmp++; |
202 |
} |
} |
203 |
} |
} |
204 |
cntpgtemp=countnboot; |
|
|
countnboot+=2+(Int_t)nevent/MAXSTORAGE; |
|
|
// printf("\ncountnboot=%d\n",countnboot); |
|
|
|
|
205 |
// |
// |
206 |
// information about the entries for the magnetic field |
// information about the entries for the magnetic field |
207 |
if(bnevent>0) cntpgmag=1; |
if(bnevent>0) cntpgmag=1; |
213 |
} |
} |
214 |
const Int_t bsize=maxsize; |
const Int_t bsize=maxsize; |
215 |
Int_t magt[bsize][5]; |
Int_t magt[bsize][5]; |
216 |
ULong64_t xb[bsize]; |
ULong_t xb[bsize]; |
217 |
siztmp=0; |
siztmp=0; |
218 |
// |
// |
219 |
// information about the magnetic field |
// information about the magnetic field |
250 |
// write the file for the TrkAlarm packet |
// write the file for the TrkAlarm packet |
251 |
if(alnevent==0) alarm1 <<endl<< "------> NO ALARM!!! <-------"<< endl; |
if(alnevent==0) alarm1 <<endl<< "------> NO ALARM!!! <-------"<< endl; |
252 |
else{ |
else{ |
253 |
Long64_t obt=0; |
ULong_t obt=0; |
254 |
for (Int_t ev=0; ev<alnevent; ev++){ |
for (Int_t ev=0; ev<alnevent; ev++){ |
255 |
altr->GetEntry(ev); |
altr->GetEntry(ev); |
256 |
ph = aleh->GetPscuHeader(); |
ph = aleh->GetPscuHeader(); |
257 |
|
|
258 |
if(ph->GetOrbitalTime()<obt && ev>0) |
if((ULong_t)ph->GetOrbitalTime()<obt && ev>0) |
259 |
alarm1<<endl<<"NEW CPU BOOT"<<endl; |
alarm1<<endl<<"NEW CPU BOOT"<<endl; |
260 |
obt=ph->GetOrbitalTime(); |
obt=ph->GetOrbitalTime(); |
261 |
|
|
262 |
alarm1 << "================================================="<< endl; |
alarm1 << "================================================="<< endl; |
263 |
alarm1 << "PSCU-Pkt N. "<< ph->GetCounter() ; |
alarm1 << "PSCU-Pkt N. "<< ph->GetCounter() ; |
264 |
alarm1 << " - OBT "<< ph->GetOrbitalTime() << " ms"<<endl; |
alarm1 << " - OBT "<< (ULong_t)ph->GetOrbitalTime() << " ms"<<endl; |
265 |
alarm1 << "(ROOT-tree entry "<<ev<<")"<<endl; |
alarm1 << "(ROOT-tree entry "<<ev<<")"<<endl; |
266 |
alarm1 << "================================================="<< endl<<endl; |
alarm1 << "================================================="<< endl<<endl; |
267 |
|
|
268 |
alarm1 << "Alarm variables (range 0-1)"<<endl; |
alarm1 << "Alarm variables (range 0-1)"<<endl; |
269 |
alarm1 << " ALARM[1]= 0x"<< hex << (Int_t)al->ALARM[1]<<endl; |
alarm1 << " ALARM[1]= 0x"<< hex << (Int_t)al->ALARM[0]<<endl; |
270 |
alarm1 << " ALARM[2]= 0x"<< (Int_t)al->ALARM[2]<<endl; |
alarm1 << " ALARM[2]= 0x"<< (Int_t)al->ALARM[1]<<endl; |
271 |
alarm1 << " CmdDuringTrig= 0x"<< (Int_t)al->CmdDuringTrig<<endl; |
alarm1 << " CmdDuringTrig= 0x"<< (Int_t)al->CmdDuringTrig<<endl; |
272 |
alarm1 << " FinalCheck= 0x"<< (Int_t)al->FinalCheck<<endl; |
alarm1 << " FinalCheck= 0x"<< (Int_t)al->FinalCheck<<endl; |
273 |
alarm1 << " FlashData= 0x"<< (Int_t)al->FlashData<<endl; |
alarm1 << " FlashData= 0x"<< (Int_t)al->FlashData<<endl; |
367 |
|
|
368 |
TLatex *t=new TLatex(); |
TLatex *t=new TLatex(); |
369 |
TLatex *t1=new TLatex(); |
TLatex *t1=new TLatex(); |
|
|
|
370 |
|
|
371 |
|
TLine li,liva1; |
372 |
|
|
373 |
Int_t minev=minevent,maxev=maxevent,countTEMP=0,countMAG=0; |
Int_t minev=minevent,maxev=maxevent,countTEMP=0,countMAG=0; |
374 |
|
ULong_t countALARMx=0,countALARMy=0,countFC[12],countFL1[12],countFL2[12],countFL3[12],countFL4[12],countFL5[12],countFL6[12]; |
375 |
|
|
376 |
|
for(int i=0; i<12; i++){ |
377 |
|
countFC[i]=0; |
378 |
|
countFL1[i]=0; |
379 |
|
countFL2[i]=0; |
380 |
|
countFL3[i]=0; |
381 |
|
countFL4[i]=0; |
382 |
|
countFL5[i]=0; |
383 |
|
countFL6[i]=0; |
384 |
|
} |
385 |
|
|
386 |
// |
// |
387 |
// Fill temperature graphs |
// Fill temperature graphs |
451 |
Double_t xt_tmpw[tsize], tempt_tmpw[tsize]; |
Double_t xt_tmpw[tsize], tempt_tmpw[tsize]; |
452 |
for (Int_t ev=countTEMP; ev<tsize; ev++){ |
for (Int_t ev=countTEMP; ev<tsize; ev++){ |
453 |
|
|
454 |
if(ev==tsize-1 && i==4) countTEMP=tsize-1; |
if(ev==tsize-1 && i==4 && ii==cntpgtemp-1) countTEMP=tsize-1; |
455 |
if(xt[ev]<xt[ev-1] && ev>countTEMP){ |
if(xt[ev]<xt[ev-1] && ev>countTEMP){ |
456 |
if(i==4) countTEMP=ev; |
if(i==4) countTEMP=ev; |
457 |
break; |
break; |
458 |
} |
} |
459 |
else{ |
else{ |
460 |
tempt_tmp[v]=(Double_t)((Int_t)(((3.3*tempt[ev][i]/4096)-0.586)/0.0231)); |
tempt_tmp[v]=(Double_t)((Int_t)(((3.3*tempt[ev][i]/4096)-0.586)/0.0231)); |
461 |
if(tempt_tmp[v]>100) { |
if(tempt_tmp[v]>100) { |
462 |
tempt_tmp[v]=28.5; |
tempt_tmp[v]=28.5; |
463 |
tempt_tmpw[vv]=28.5; |
tempt_tmpw[vv]=28.5; |
464 |
xt_tmpw[vv++]=(Double_t)xt[ev]; |
xt_tmpw[vv++]=(Double_t)xt[ev]; |
465 |
} |
} |
466 |
else if(tempt_tmp[v]<0){ |
else if(tempt_tmp[v]<0){ |
467 |
tempt_tmp[v]=25.5; |
tempt_tmp[v]=25.5; |
468 |
tempt_tmpw[vv]=25.5; |
tempt_tmpw[vv]=25.5; |
469 |
xt_tmpw[vv++]=(Double_t)xt[ev]; |
xt_tmpw[vv++]=(Double_t)xt[ev]; |
470 |
} |
} |
471 |
xt_tmp[v++]=(Double_t)xt[ev]; |
xt_tmp[v++]=(Double_t)xt[ev]; |
472 |
} |
} |
473 |
} |
} |
474 |
TempCanv[ii]->cd(); |
TempCanv[ii]->cd(); |
478 |
pad6[i]->cd(); |
pad6[i]->cd(); |
479 |
temp[i][ii]= new TGraph(v,xt_tmp,tempt_tmp); |
temp[i][ii]= new TGraph(v,xt_tmp,tempt_tmp); |
480 |
temp[i][ii]->SetTitle(tit.str().c_str()); |
temp[i][ii]->SetTitle(tit.str().c_str()); |
481 |
|
if(v==1) temp[i][ii]->GetXaxis()->SetNdivisions(-501); |
482 |
temp[i][ii]->GetXaxis()->SetLabelSize(0.04); |
temp[i][ii]->GetXaxis()->SetLabelSize(0.04); |
483 |
temp[i][ii]->GetXaxis()->SetTitleSize(0.04); |
temp[i][ii]->GetXaxis()->SetTitleSize(0.04); |
484 |
temp[i][ii]->GetXaxis()->SetTitle("OBT (ms)"); |
temp[i][ii]->GetXaxis()->SetTitle("OBT (ms)"); |
505 |
|
|
506 |
|
|
507 |
} |
} |
508 |
if(countTEMP==tsize-1){ |
if(countTEMP==tsize-1 && ii==cntpgtemp-1){ |
509 |
break; |
break; |
510 |
} |
} |
511 |
} |
} |
535 |
t1->DrawLatex(70.,98.7,isfile.str().c_str()); |
t1->DrawLatex(70.,98.7,isfile.str().c_str()); |
536 |
isfile.str(""); |
isfile.str(""); |
537 |
|
|
|
TLine li; |
|
538 |
li.SetLineStyle(1); |
li.SetLineStyle(1); |
539 |
li.SetLineWidth(1); |
li.SetLineWidth(1); |
540 |
li.SetLineColor(190); |
li.SetLineColor(190); |
569 |
Double_t xb_tmp[bsize], magt_tmp[bsize]; |
Double_t xb_tmp[bsize], magt_tmp[bsize]; |
570 |
for (Int_t ev=countMAG; ev<bsize; ev++){ |
for (Int_t ev=countMAG; ev<bsize; ev++){ |
571 |
|
|
572 |
if(ev==bsize-1 && i==4) countMAG=bsize-1; |
if(ev==bsize-1 && i==4 && ii==cntpgmag-1) countMAG=bsize-1; |
573 |
if(xb[ev]<xb[ev-1] && ev>countMAG){ |
if(xb[ev]<xb[ev-1] && ev>countMAG){ |
574 |
if(i==4) countMAG=ev; |
if(i==4) countMAG=ev; |
575 |
break; |
break; |
586 |
pad7[i]->cd(); |
pad7[i]->cd(); |
587 |
mag[i][ii]= new TGraph(v,xb_tmp,magt_tmp); |
mag[i][ii]= new TGraph(v,xb_tmp,magt_tmp); |
588 |
mag[i][ii]->SetTitle(tit.str().c_str()); |
mag[i][ii]->SetTitle(tit.str().c_str()); |
589 |
mag[i][ii]->GetXaxis()->SetNdivisions(502,kTRUE); |
if(v==1) mag[i][ii]->GetXaxis()->SetNdivisions(-501); |
590 |
mag[i][ii]->GetXaxis()->SetLabelSize(0.04); |
mag[i][ii]->GetXaxis()->SetLabelSize(0.04); |
591 |
mag[i][ii]->GetXaxis()->SetTitleSize(0.04); |
mag[i][ii]->GetXaxis()->SetTitleSize(0.04); |
592 |
mag[i][ii]->GetXaxis()->SetTitle("OBT (ms)"); |
mag[i][ii]->GetXaxis()->SetTitle("OBT (ms)"); |
593 |
mag[i][ii]->GetXaxis()->CenterTitle(); |
mag[i][ii]->GetXaxis()->CenterTitle(); |
594 |
mag[i][ii]->GetXaxis()->SetTitleOffset(0.85); |
mag[i][ii]->GetXaxis()->SetTitleOffset(0.85); |
595 |
if(i!=4) mag[i][ii]->GetYaxis()->SetRangeUser(2047,2058); |
if(i!=4) mag[i][ii]->GetYaxis()->SetRangeUser(2047,2058); |
596 |
else mag[i][ii]->GetYaxis()->SetRangeUser(2061,2066); |
else mag[i][ii]->GetYaxis()->SetRangeUser(2059,2067); |
597 |
mag[i][ii]->GetYaxis()->SetTitleOffset(1.2); |
mag[i][ii]->GetYaxis()->SetTitleOffset(1.2); |
598 |
mag[i][ii]->GetYaxis()->SetLabelOffset(0.001); |
mag[i][ii]->GetYaxis()->SetLabelOffset(0.001); |
599 |
mag[i][ii]->GetYaxis()->SetLabelSize(0.03); |
mag[i][ii]->GetYaxis()->SetLabelSize(0.03); |
612 |
ma<<"maximum recorded value"; |
ma<<"maximum recorded value"; |
613 |
t->SetTextSize(0.1); |
t->SetTextSize(0.1); |
614 |
switch(i){ |
switch(i){ |
615 |
case 0: |
case 0: |
616 |
li.DrawLine(min,2054.,max,2054.); |
li.DrawLine(min,2054.,max,2054.); |
617 |
li.DrawLine(min,2048.,max,2048.); |
li.DrawLine(min,2048.,max,2048.); |
618 |
t1->DrawLatex(xlat,2054.3,ma.str().c_str()); |
t1->DrawLatex(xlat,2054.3,ma.str().c_str()); |
619 |
t1->DrawLatex(xlat,2047.7,mi.str().c_str()); |
t1->DrawLatex(xlat,2047.7,mi.str().c_str()); |
620 |
break; |
break; |
621 |
|
|
622 |
case 1: |
case 1: |
623 |
li.DrawLine(min,2055.,max,2055.); |
li.DrawLine(min,2055.,max,2055.); |
624 |
li.DrawLine(min,2051.,max,2051.); |
li.DrawLine(min,2049.,max,2049.); |
625 |
t1->DrawLatex(xlat,2055.3,ma.str().c_str()); |
t1->DrawLatex(xlat,2055.3,ma.str().c_str()); |
626 |
t1->DrawLatex(xlat,2050.7,mi.str().c_str()); |
t1->DrawLatex(xlat,2048.7,mi.str().c_str()); |
627 |
break; |
break; |
628 |
|
|
629 |
case 2: |
case 2: |
630 |
li.DrawLine(min,2056.,max,2056.); |
li.DrawLine(min,2056.,max,2056.); |
631 |
li.DrawLine(min,2052.,max,2052.); |
li.DrawLine(min,2050.,max,2050.); |
632 |
t1->DrawLatex(xlat,2056.3,ma.str().c_str()); |
t1->DrawLatex(xlat,2056.3,ma.str().c_str()); |
633 |
t1->DrawLatex(xlat,2051.7,mi.str().c_str()); |
t1->DrawLatex(xlat,2049.7,mi.str().c_str()); |
634 |
break; |
break; |
635 |
|
|
636 |
case 3: |
case 3: |
637 |
li.DrawLine(min,2057.,max,2057.); |
li.DrawLine(min,2057.,max,2057.); |
638 |
li.DrawLine(min,2053.,max,2053.); |
li.DrawLine(min,2051.,max,2051.); |
639 |
t1->DrawLatex(xlat,2057.3,ma.str().c_str()); |
t1->DrawLatex(xlat,2057.3,ma.str().c_str()); |
640 |
t1->DrawLatex(xlat,2052.7,mi.str().c_str()); |
t1->DrawLatex(xlat,2050.7,mi.str().c_str()); |
641 |
break; |
break; |
642 |
|
|
643 |
case 4: |
case 4: |
644 |
li.DrawLine(min,2065.,max,2065.); |
li.DrawLine(min,2066.,max,2066.); |
645 |
li.DrawLine(min,2062.,max,2062.); |
li.DrawLine(min,2060.,max,2060.); |
646 |
t1->DrawLatex(xlat,2065.15,ma.str().c_str()); |
t1->DrawLatex(xlat,2066.2,ma.str().c_str()); |
647 |
t1->DrawLatex(xlat,2061.85,mi.str().c_str()); |
t1->DrawLatex(xlat,2059.8,mi.str().c_str()); |
648 |
break; |
break; |
649 |
|
|
650 |
} |
} |
651 |
BfieldCanv[ii]->Update(); |
BfieldCanv[ii]->Update(); |
652 |
tit.str(""); |
tit.str(""); |
653 |
} |
} |
654 |
if(countMAG==bsize-1){ |
if(countMAG==bsize-1 && ii==cntpgmag-1){ |
655 |
break; |
break; |
656 |
} |
} |
657 |
} |
} |
738 |
// and fill graphs and histos |
// and fill graphs and histos |
739 |
|
|
740 |
Int_t al=0; |
Int_t al=0; |
741 |
|
ULong_t obtx=0; |
742 |
Double_t x[MAXSTORAGE]; |
Double_t x[MAXSTORAGE]; |
743 |
Float_t yc[MAXSTORAGE][12]; |
Float_t yc[MAXSTORAGE][12]; |
744 |
Double_t eventint[MAXSTORAGE]; |
Double_t eventint[MAXSTORAGE]; |
752 |
|
|
753 |
if(ev==maxevent-1) maxev=maxevent-1; |
if(ev==maxevent-1) maxev=maxevent-1; |
754 |
|
|
755 |
if((ph->GetOrbitalTime()<x[ev-minev-1] && ev-minev!=0) || ev-minev==MAXSTORAGE){ |
if(((ULong_t)ph->GetOrbitalTime()<x[ev-minev-1] && ev-minev!=0) || ev-minev==MAXSTORAGE){ |
756 |
maxev=ev; |
maxev=ev; |
757 |
break; |
break; |
758 |
} |
} |
759 |
else{ |
else{ |
760 |
x[(ev-minev)]= ph->GetOrbitalTime(); |
obtx = ph->GetOrbitalTime(); |
761 |
|
x[(ev-minev)]=(Double_t)obtx; |
762 |
ALARM=0; |
ALARM=0; |
|
|
|
763 |
Int_t dsp=0; |
Int_t dsp=0; |
764 |
for(Int_t i=0; i<12; i++){ |
Int_t noacq=0; |
765 |
if(te->DSPnumber[i]<1 || te->DSPnumber[i]>12) { |
Int_t acq_dsp[12]; |
766 |
ALARM=1; |
ULong_t acq_info_tmp=0; |
767 |
break; |
if(cod->Get(pctp->RunHeader)>0) acq_info_tmp=acq_info[cod->Get(pctp->RunHeader)-1]; |
768 |
} |
else acq_info_tmp=acq_info[cod->Get(pctp->RunHeader)]; |
769 |
|
for(Int_t io=0;io<12;io++){ |
770 |
|
acq_dsp[dsp]=(acq_info_tmp>>(12+io))&(~(~0<<1)); |
771 |
|
if(((acq_info_tmp>>(12+io))&(~(~0<<1)))==0) |
772 |
|
noacq+=1; |
773 |
|
WARNING[io]=0; |
774 |
|
} |
775 |
|
|
776 |
dsp=te->DSPnumber[i]-1; |
for(Int_t i=0; i<12; i++){ |
|
yc[(ev-minev)][dsp]= 0.051*te->compressiontime[i]; |
|
777 |
|
|
778 |
// |
if(i<12-noacq){ |
779 |
// Fill Cluster Signal and Lighting of the view histos |
if(te->DSPnumber[i]<1 || te->DSPnumber[i]>12) { |
780 |
for(Int_t j=0;j<3;j++){ |
ALARM=1; |
781 |
if(te->signcluster[i][j]!=0){ |
break; |
782 |
if((te->addrcluster[i][j]>6 && te->addrcluster[i][j]<505) ||(te->addrcluster[i][j]>518 && te->addrcluster[i][j]<1018)){ |
} |
783 |
illuminazione[dsp]->Fill((Float_t)((j*1024.)+te->addrcluster[i][j])); |
|
784 |
|
dsp=te->DSPnumber[i]-1; |
785 |
|
yc[(ev-minev)][dsp]= 0.051*te->compressiontime[i]; |
786 |
|
|
787 |
|
// |
788 |
|
// Fill Cluster Signal and Lighting of the view histos |
789 |
|
for(Int_t j=0;j<3;j++){ |
790 |
|
if(te->signcluster[i][j]!=0){ |
791 |
|
if((te->addrcluster[i][j]>6 && te->addrcluster[i][j]<505) ||(te->addrcluster[i][j]>518 && te->addrcluster[i][j]<1018)){ |
792 |
|
illuminazione[dsp]->Fill((Float_t)((j*1024.)+te->addrcluster[i][j])); |
793 |
|
} |
794 |
} |
} |
795 |
} |
} |
796 |
} |
if(trk_cal_us[cod->Get(pctp->RunHeader)]!=104){ |
797 |
if(trk_cal_us[cod->Get(pctp->RunHeader)]!=104){ |
if(!(dsp%2)){ |
798 |
if(!(dsp%2)){ |
if(te->signcluster[i][0]!=0) landau1[dsp]->Fill((Float_t)(1024.-te->signcluster[i][0])); |
799 |
if(te->signcluster[i][0]!=0) landau1[dsp]->Fill((Float_t)(1024.-te->signcluster[i][0])); |
if(te->signcluster[i][1]!=0) landau2[dsp]->Fill((Float_t)(1024.-te->signcluster[i][1])); |
800 |
if(te->signcluster[i][1]!=0) landau2[dsp]->Fill((Float_t)(1024.-te->signcluster[i][1])); |
if(te->signcluster[i][2]!=0) landau3[dsp]->Fill((Float_t)(1024.-te->signcluster[i][2])); |
801 |
if(te->signcluster[i][2]!=0) landau3[dsp]->Fill((Float_t)(1024.-te->signcluster[i][2])); |
} |
802 |
} |
else{ |
803 |
else{ |
if(te->signcluster[i][0]!=0) landau1[dsp]->Fill((Float_t)te->signcluster[i][0]); |
804 |
if(te->signcluster[i][0]!=0) landau1[dsp]->Fill((Float_t)te->signcluster[i][0]); |
if(te->signcluster[i][1]!=0) landau2[dsp]->Fill((Float_t)te->signcluster[i][1]); |
805 |
if(te->signcluster[i][1]!=0) landau2[dsp]->Fill((Float_t)te->signcluster[i][1]); |
if(te->signcluster[i][2]!=0) landau3[dsp]->Fill((Float_t)te->signcluster[i][2]); |
806 |
if(te->signcluster[i][2]!=0) landau3[dsp]->Fill((Float_t)te->signcluster[i][2]); |
} |
807 |
} |
} |
|
} |
|
808 |
|
|
809 |
WARNING[i]=0; |
WARNING[i]=0; |
810 |
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){ |
811 |
ALARM = 1; //general alarm |
if(countFC[dsp]==0){ |
812 |
WARNING[i] = 1; // DSP warning |
ALARM = 1; //general alarm |
813 |
}; |
WARNING[i] = 1; // DSP warning |
814 |
|
} |
815 |
if(te->alarm[i]!=0){ // hardware alarm |
countFC[dsp]+=1; |
816 |
ALARM = 1; |
}; |
817 |
}; |
|
818 |
|
if(te->fl1[i]!=0){ |
819 |
|
if(countFL1[dsp]==0){ |
820 |
|
ALARM = 1; //general alarm |
821 |
|
WARNING[i] = 1; // DSP warning |
822 |
|
} |
823 |
|
countFL1[dsp]+=1; |
824 |
|
}; |
825 |
|
|
826 |
|
if(te->fl2[i]!=0){ |
827 |
|
if(countFL2[dsp]==0){ |
828 |
|
ALARM = 1; //general alarm |
829 |
|
WARNING[i] = 1; // DSP warning |
830 |
|
} |
831 |
|
countFL2[dsp]+=1; |
832 |
|
}; |
833 |
|
|
834 |
|
if(te->fl3[i]!=0){ |
835 |
|
if(countFL3[dsp]==0){ |
836 |
|
ALARM = 1; //general alarm |
837 |
|
WARNING[i] = 1; // DSP warning |
838 |
|
} |
839 |
|
countFL3[dsp]+=1; |
840 |
|
}; |
841 |
|
|
842 |
|
if(te->fl4[i]!=0){ |
843 |
|
if(countFL4[dsp]==0){ |
844 |
|
ALARM = 1; //general alarm |
845 |
|
WARNING[i] = 1; // DSP warning |
846 |
|
} |
847 |
|
countFL4[dsp]+=1; |
848 |
|
}; |
849 |
|
|
850 |
|
if(te->fl5[i]!=0){ |
851 |
|
if(countFL5[dsp]==0){ |
852 |
|
ALARM = 1; //general alarm |
853 |
|
WARNING[i] = 1; // DSP warning |
854 |
|
} |
855 |
|
countFL5[dsp]+=1; |
856 |
|
}; |
857 |
|
|
858 |
|
if(te->fl6[i]!=0){ |
859 |
|
if(countFL6[dsp]==0){ |
860 |
|
ALARM = 1; //general alarm |
861 |
|
WARNING[i] = 1; // DSP warning |
862 |
|
} |
863 |
|
countFL6[dsp]+=1; |
864 |
|
}; |
865 |
|
|
866 |
|
if(dsp%2==0 && te->alarm[i]!=0){ // hardware alarm |
867 |
|
if(countALARMy==0) |
868 |
|
ALARM = 1; |
869 |
|
countALARMy+=1; |
870 |
|
}; |
871 |
|
|
872 |
|
if(dsp%2==1 && te->alarm[i]!=0){ // hardware alarm |
873 |
|
if(countALARMx==0) |
874 |
|
ALARM = 1; |
875 |
|
countALARMx+=1; |
876 |
|
}; |
877 |
|
|
878 |
//************************************************************************************** |
//************************************************************************************** |
879 |
// warning for internal number |
// warning for internal number |
880 |
//************************************************************************************** |
//************************************************************************************** |
881 |
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; |
882 |
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; |
883 |
|
} |
884 |
} |
} |
885 |
eventint[(ev-minev)]=te->eventn[0]; |
eventint[(ev-minev)]=te->eventn[0]; |
886 |
|
|
892 |
al=1; |
al=1; |
893 |
alarm <<endl<< "================================================="<< endl; |
alarm <<endl<< "================================================="<< endl; |
894 |
alarm << "PSCU-Pkt N. "<< ph->GetCounter() ; |
alarm << "PSCU-Pkt N. "<< ph->GetCounter() ; |
895 |
alarm << " - OBT "<< ph->GetOrbitalTime() << " ms"<<endl; |
alarm << " - OBT "<< (ULong_t)ph->GetOrbitalTime() << " ms"<<endl; |
896 |
alarm << "Total events "<<nevent<<endl; |
alarm << "Total events "<<nevent<<endl; |
897 |
alarm << "(ROOT-tree entry "<<ev<<" in page "<<ii+1<<" )"<<endl; |
alarm << "(ROOT-tree entry "<<ev<<" in page "<<ii+1<<" )"<<endl; |
898 |
alarm << "================================================="<< endl; |
alarm << "================================================="<< endl; |
933 |
} |
} |
934 |
} |
} |
935 |
if(al==0) alarm << endl<< "Page "<<ii+1<< ": ------> NO ALARM!!! <-------"<<endl; |
if(al==0) alarm << endl<< "Page "<<ii+1<< ": ------> NO ALARM!!! <-------"<<endl; |
936 |
|
if(maxev==maxevent-1) { |
937 |
|
if(countALARMy!=0){ |
938 |
|
if(countALARMy%6!=0) alarm << endl<<endl<< "***** "<<countALARMy/6+1 <<" events with hardware alarm in Y-view *****"<<endl; |
939 |
|
else alarm << endl<<endl<< "***** "<<countALARMy/6 <<" events with hardware alarm in Y-view *****"<<endl; |
940 |
|
} |
941 |
|
if(countALARMx!=0){ |
942 |
|
if(countALARMx%6!=0) alarm << endl<<endl<< "***** "<<countALARMx/6+1 <<" events with hardware alarm in X-view *****"<<endl; |
943 |
|
else alarm << endl<<endl<< "***** "<<countALARMx/6 <<" events with hardware alarm in X-view *****"<<endl; |
944 |
|
} |
945 |
|
for(int p=0; p<12; p++){ |
946 |
|
if(countFC[p]!=0) alarm << endl<<endl<< "***** "<<countFC[p] <<" events with fc!=0 in DSP "<<p+1<<" *****"<<endl; |
947 |
|
if(countFL1[p]!=0) alarm << endl<<endl<< "***** "<<countFL1[p] <<" events with fl1!=0 in DSP "<<p+1<<" *****"<<endl; |
948 |
|
if(countFL2[p]!=0) alarm << endl<<endl<< "***** "<<countFL2[p] <<" events with fl2!=0 in DSP "<<p+1<<" *****"<<endl; |
949 |
|
if(countFL3[p]!=0) alarm << endl<<endl<< "***** "<<countFL3[p] <<" events with fl3!=0 in DSP "<<p+1<<" *****"<<endl; |
950 |
|
if(countFL4[p]!=0) alarm << endl<<endl<< "***** "<<countFL4[p] <<" events with fl4!=0 in DSP "<<p+1<<" *****"<<endl; |
951 |
|
if(countFL5[p]!=0) alarm << endl<<endl<< "***** "<<countFL5[p] <<" events with fl5!=0 in DSP "<<p+1<<" *****"<<endl; |
952 |
|
if(countFL6[p]!=0) alarm << endl<<endl<< "***** "<<countFL6[p] <<" events with fl6!=0 in DSP "<<p+1<<" *****"<<endl; |
953 |
|
} |
954 |
|
} |
955 |
|
|
956 |
// |
// |
957 |
// Draw the graphs |
// Draw the graphs |
973 |
comprtime[i][ii]->GetXaxis()->CenterTitle(); |
comprtime[i][ii]->GetXaxis()->CenterTitle(); |
974 |
comprtime[i][ii]->GetYaxis()->SetTitle("compressiontime (ms)"); |
comprtime[i][ii]->GetYaxis()->SetTitle("compressiontime (ms)"); |
975 |
comprtime[i][ii]->GetYaxis()->CenterTitle(); |
comprtime[i][ii]->GetYaxis()->CenterTitle(); |
976 |
|
if(maxev-minev==1) comprtime[i][ii]->GetXaxis()->SetNdivisions(-501); |
977 |
// comprtime[i][ii]->GetYaxis()->SetRangeUser(0,3); |
// comprtime[i][ii]->GetYaxis()->SetRangeUser(0,3); |
978 |
comprtime[i][ii]->Draw("ap"); |
comprtime[i][ii]->Draw("ap"); |
979 |
oss1.str(""); |
oss1.str(""); |
980 |
CompTimeCanv[ii]->Update(); |
CompTimeCanv[ii]->Update(); |
981 |
} |
} |
982 |
|
|
983 |
|
|
984 |
EventNumCanv[ii]->cd(); |
EventNumCanv[ii]->cd(); |
985 |
pt = new TPad("pt"," ",0.02,0.01,1.,0.98,18,0,0); |
pt = new TPad("pt"," ",0.02,0.01,1.,0.98,18,0,0); |
986 |
pt->SetFillColor(10); |
pt->SetFillColor(10); |
999 |
eventnumb[ii]->GetYaxis()->SetTitleSize(0.03); |
eventnumb[ii]->GetYaxis()->SetTitleSize(0.03); |
1000 |
eventnumb[ii]->GetYaxis()->SetTitle("DSP event-number"); |
eventnumb[ii]->GetYaxis()->SetTitle("DSP event-number"); |
1001 |
eventnumb[ii]->GetYaxis()->CenterTitle(); |
eventnumb[ii]->GetYaxis()->CenterTitle(); |
1002 |
|
if(maxev-minev==1) eventnumb[ii]->GetXaxis()->SetNdivisions(-501); |
1003 |
eventnumb[ii]->GetYaxis()->SetTitleOffset(2.); |
eventnumb[ii]->GetYaxis()->SetTitleOffset(2.); |
1004 |
eventnumb[ii]->SetMarkerStyle(21); |
eventnumb[ii]->SetMarkerStyle(21); |
1005 |
eventnumb[ii]->SetMarkerColor(kBlue); |
eventnumb[ii]->SetMarkerColor(kBlue); |
1006 |
eventnumb[ii]->SetMarkerSize(0.2); |
eventnumb[ii]->SetMarkerSize(0.2); |
1007 |
|
oss1.str(""); |
1008 |
|
oss1<<"number of events in this graph: "<<maxev-minev; |
1009 |
|
t->SetTextColor(kBlue); |
1010 |
|
t->SetTextSize(0.02); |
1011 |
|
double xtex=0,ytex=0; |
1012 |
|
xtex=x[maxev-minev-1]-(x[maxev-minev-1]-x[0])/3; |
1013 |
|
ytex=1000.+eventnumb[ii]->GetYaxis()->GetXmax(); |
1014 |
|
t->DrawLatex(xtex,ytex,oss1.str().c_str()); |
1015 |
|
oss1.str(""); |
1016 |
eventnumb[ii]->Draw("ap"); |
eventnumb[ii]->Draw("ap"); |
1017 |
EventNumCanv[ii]->Update(); |
EventNumCanv[ii]->Update(); |
1018 |
|
|
1024 |
|
|
1025 |
} |
} |
1026 |
|
|
|
|
|
1027 |
alarm.close(); |
alarm.close(); |
1028 |
|
|
1029 |
//**************************************************************************************** |
//**************************************************************************************** |
1111 |
t1->DrawLatex(70.,98.7,isfile.str().c_str()); |
t1->DrawLatex(70.,98.7,isfile.str().c_str()); |
1112 |
isfile.str(""); |
isfile.str(""); |
1113 |
|
|
1114 |
|
isfile<<"Boxes so colored point out chips broken before the launch and never resumed"; |
1115 |
|
t->SetTextColor(6); |
1116 |
|
t->SetTextSize(0.018); |
1117 |
|
// t->DrawLatex(7.,97.2,isfile.str().c_str()); |
1118 |
|
isfile.str(""); |
1119 |
|
|
1120 |
|
isfile<<"Boxes so colored point out anomalous chips (not necessarily broken)"; |
1121 |
|
t->SetTextColor(107); |
1122 |
|
// t->DrawLatex(7.,95.7,isfile.str().c_str()); |
1123 |
|
isfile.str(""); |
1124 |
|
t->SetTextColor(1); |
1125 |
|
|
1126 |
// |
// |
1127 |
// Draw the histos |
// Draw the histos |
1128 |
for (Int_t i=0; i<12 ; i++){ |
for (Int_t nn=0; nn<12 ; nn++){ |
1129 |
|
|
1130 |
TBox b; |
TBox b; |
1131 |
|
|
1132 |
Float_t maxhist=0; |
Float_t maxhist=0.,va1x=0.,minhist=0.; |
1133 |
LandauCanv1->cd(); |
LandauCanv1->cd(); |
1134 |
pad1[i]->SetFillColor(10); |
pad1[nn]->SetFillColor(10); |
1135 |
pad1[i]->SetFrameFillColor(10); |
pad1[nn]->SetFrameFillColor(10); |
1136 |
pad1[i]->Draw(); |
pad1[nn]->Draw(); |
1137 |
pad1[i]->cd(); |
pad1[nn]->cd(); |
1138 |
landau1[i]->GetXaxis()->SetTitle("max signal"); |
landau1[nn]->GetXaxis()->SetTitle("max signal"); |
1139 |
landau1[i]->GetXaxis()->CenterTitle(); |
landau1[nn]->GetXaxis()->CenterTitle(); |
1140 |
landau1[i]->Draw(""); |
landau1[nn]->Draw(""); |
1141 |
LandauCanv1->Update(); |
LandauCanv1->Update(); |
1142 |
|
|
1143 |
LandauCanv2->cd(); |
LandauCanv2->cd(); |
1144 |
pad4[i]->SetFillColor(10); |
pad4[nn]->SetFillColor(10); |
1145 |
pad4[i]->SetFrameFillColor(10); |
pad4[nn]->SetFrameFillColor(10); |
1146 |
pad4[i]->Draw(); |
pad4[nn]->Draw(); |
1147 |
pad4[i]->cd(); |
pad4[nn]->cd(); |
1148 |
landau2[i]->GetXaxis()->SetTitle("max signal"); |
landau2[nn]->GetXaxis()->SetTitle("max signal"); |
1149 |
landau2[i]->GetXaxis()->CenterTitle(); |
landau2[nn]->GetXaxis()->CenterTitle(); |
1150 |
landau2[i]->Draw(""); |
landau2[nn]->Draw(""); |
1151 |
LandauCanv2->Update(); |
LandauCanv2->Update(); |
1152 |
|
|
1153 |
LandauCanv3->cd(); |
LandauCanv3->cd(); |
1154 |
pad5[i]->SetFillColor(10); |
pad5[nn]->SetFillColor(10); |
1155 |
pad5[i]->SetFrameFillColor(10); |
pad5[nn]->SetFrameFillColor(10); |
1156 |
pad5[i]->Draw(); |
pad5[nn]->Draw(); |
1157 |
pad5[i]->cd(); |
pad5[nn]->cd(); |
1158 |
landau3[i]->GetXaxis()->SetTitle("max signal"); |
landau3[nn]->GetXaxis()->SetTitle("max signal"); |
1159 |
landau3[i]->GetXaxis()->CenterTitle(); |
landau3[nn]->GetXaxis()->CenterTitle(); |
1160 |
landau3[i]->Draw(""); |
landau3[nn]->Draw(""); |
1161 |
LandauCanv3->Update(); |
LandauCanv3->Update(); |
1162 |
|
|
1163 |
|
|
1164 |
|
li.SetLineColor(38); |
1165 |
|
li.SetLineStyle(4); |
1166 |
|
li.SetLineWidth(2); |
1167 |
|
liva1.SetLineColor(42); |
1168 |
|
liva1.SetLineStyle(3); |
1169 |
|
liva1.SetLineWidth(1); |
1170 |
|
|
1171 |
IlluminaCanv->cd(); |
IlluminaCanv->cd(); |
1172 |
pad2[i]->SetFillColor(10); |
pad2[nn]->SetFillColor(10); |
1173 |
pad2[i]->SetFrameFillColor(10); |
pad2[nn]->SetFrameFillColor(10); |
1174 |
pad2[i]->SetLogy(); |
pad2[nn]->SetLogy(); |
1175 |
pad2[i]->Draw(); |
pad2[nn]->Draw(); |
1176 |
pad2[i]->cd(); |
pad2[nn]->cd(); |
1177 |
illuminazione[i]->GetXaxis()->SetTitle("strip with max signal"); |
illuminazione[nn]->GetXaxis()->SetTitle("strip with max signal"); |
1178 |
illuminazione[i]->GetXaxis()->CenterTitle(); |
illuminazione[nn]->GetXaxis()->CenterTitle(); |
1179 |
illuminazione[i]->Draw(""); |
illuminazione[nn]->Draw(""); |
1180 |
if(i==1){ |
maxhist= illuminazione[nn]->GetMaximum(); |
1181 |
maxhist= illuminazione[i]->GetMaximum(); |
minhist=0.; |
1182 |
b.SetFillColor(6); |
b.SetFillColor(19); |
1183 |
b.SetFillStyle(3945); |
b.SetFillStyle(3954); |
1184 |
b.DrawBox(2944.,0.,3060.,maxhist); |
if(nn==0){ |
1185 |
|
b.DrawBox(0.,minhist,2047.,maxhist); |
1186 |
b.SetFillColor(107); |
} |
1187 |
b.SetFillStyle(3954); |
else if(nn==1){ |
1188 |
b.DrawBox(2816.,0.,2944.,maxhist); |
b.DrawBox(128.,minhist,256.,maxhist); |
1189 |
b.DrawBox(2048.,0.,2176.,maxhist); |
b.DrawBox(384.,minhist,512.,maxhist); |
1190 |
} |
b.DrawBox(896.,minhist,1024.,maxhist); |
1191 |
else if(i==6){ |
b.DrawBox(2048.,minhist,2432.,maxhist); |
1192 |
maxhist= illuminazione[i]->GetMaximum(); |
b.DrawBox(2816.,minhist,2944.,maxhist); |
1193 |
b.SetFillColor(6); |
b.DrawBox(2944.,minhist,3070.,maxhist); |
|
b.SetFillStyle(3945); |
|
|
b.DrawBox(2560.,0.,2816.,maxhist); |
|
|
b.DrawBox(1024.,0.,1792.,maxhist); |
|
|
|
|
|
b.SetFillColor(107); |
|
|
b.SetFillStyle(3954); |
|
|
b.DrawBox(512.,0.,768.,maxhist); |
|
|
} |
|
|
else if(i==7){ |
|
|
maxhist= illuminazione[i]->GetMaximum(); |
|
|
b.SetFillColor(107); |
|
|
b.SetFillStyle(3954); |
|
|
b.DrawBox(512.,0.,768.,maxhist); |
|
|
} |
|
|
else if(i==11){ |
|
|
maxhist= illuminazione[i]->GetMaximum(); |
|
|
b.SetFillColor(6); |
|
|
b.SetFillStyle(3945); |
|
|
b.DrawBox(768.,0.,1024.,maxhist); |
|
|
|
|
|
b.SetFillColor(107); |
|
|
b.SetFillStyle(3954); |
|
|
b.DrawBox(0.,0.,512.,maxhist); |
|
|
b.DrawBox(1920.,0.,2048.,maxhist); |
|
1194 |
} |
} |
1195 |
|
else if(nn==3){ |
1196 |
|
b.DrawBox(0.,minhist,256.,maxhist); |
1197 |
|
b.DrawBox(2816.,minhist,3070.,maxhist); |
1198 |
|
} |
1199 |
|
else if(nn==4){ |
1200 |
|
b.DrawBox(256.,minhist,512.,maxhist); |
1201 |
|
b.DrawBox(1792.,minhist,1920.,maxhist); |
1202 |
|
b.DrawBox(2816.,minhist,3070.,maxhist); |
1203 |
|
} |
1204 |
|
else if(nn==5){ |
1205 |
|
b.DrawBox(0.,minhist,256.,maxhist); |
1206 |
|
b.DrawBox(896.,minhist,1024.,maxhist); |
1207 |
|
b.DrawBox(1664.,minhist,1792.,maxhist); |
1208 |
|
} |
1209 |
|
else if(nn==6){ |
1210 |
|
b.DrawBox(512.,minhist,768.,maxhist); |
1211 |
|
b.DrawBox(1024.,minhist,1280.,maxhist); |
1212 |
|
b.DrawBox(1280.,minhist,1792.,maxhist); |
1213 |
|
b.DrawBox(2560.,minhist,2816.,maxhist); |
1214 |
|
} |
1215 |
|
else if(nn==7){ |
1216 |
|
b.DrawBox(0.,minhist,1535.,maxhist); |
1217 |
|
b.DrawBox(2024.,minhist,2280.,maxhist); |
1218 |
|
} |
1219 |
|
else if(nn==8){ |
1220 |
|
b.DrawBox(512.,minhist,768.,maxhist); |
1221 |
|
} |
1222 |
|
else if(nn==9){ |
1223 |
|
b.DrawBox(0.,minhist,128.,maxhist); |
1224 |
|
b.DrawBox(256.,minhist,384.,maxhist); |
1225 |
|
b.DrawBox(512.,minhist,640.,maxhist); |
1226 |
|
b.DrawBox(896.,minhist,1152.,maxhist); |
1227 |
|
b.DrawBox(1280.,minhist,1535.,maxhist); |
1228 |
|
b.DrawBox(1664.,minhist,1920.,maxhist); |
1229 |
|
b.DrawBox(2048.,minhist,2304.,maxhist); |
1230 |
|
} |
1231 |
|
else if(nn==10){ |
1232 |
|
b.DrawBox(0.,minhist,512.,maxhist); |
1233 |
|
b.DrawBox(1024.,minhist,3070.,maxhist); |
1234 |
|
} |
1235 |
|
else if(nn==11){ |
1236 |
|
b.DrawBox(0.,minhist,512.,maxhist); |
1237 |
|
b.DrawBox(768.,minhist,1024.,maxhist); |
1238 |
|
b.DrawBox(1536.,minhist,1664.,maxhist); |
1239 |
|
b.DrawBox(1920.,minhist,2560.,maxhist); |
1240 |
|
b.DrawBox(2816.,minhist,3070.,maxhist); |
1241 |
|
} |
1242 |
|
for(int va=1; va<24; va++){ |
1243 |
|
va1x=128*va; |
1244 |
|
liva1.DrawLine(va1x,minhist,va1x,maxhist); |
1245 |
|
} |
1246 |
|
li.DrawLine(1024.5,minhist,1024.5,maxhist); |
1247 |
|
li.DrawLine(2048.5,minhist,2048.5,maxhist); |
1248 |
IlluminaCanv->Update(); |
IlluminaCanv->Update(); |
1249 |
} |
} |
1250 |
|
|
1259 |
else if(cntpgtemp<=cntpgdat) totpg=cntpgdat; |
else if(cntpgtemp<=cntpgdat) totpg=cntpgdat; |
1260 |
|
|
1261 |
for(Int_t fl=0;fl<totpg;fl++){ |
for(Int_t fl=0;fl<totpg;fl++){ |
1262 |
|
|
1263 |
if(!strcmp(outfile.Data(),"ps")||!strcmp(outfile.Data(),"pdf")){ |
if(!strcmp(outfile.Data(),"ps")||!strcmp(outfile.Data(),"pdf")){ |
1264 |
out1.str(""); |
out1.str(""); |
1265 |
out2.str(""); |
out2.str(""); |