2 |
* FTrkScanQlook_EXPERT.cxx |
* FTrkScanQlook_EXPERT.cxx |
3 |
* |
* |
4 |
* autor: D.Fedele |
* autor: D.Fedele |
5 |
* version v1r05 |
* version v1r18 |
6 |
* Parameters: |
* Parameters: |
7 |
* file - the path to the root file to analyze |
* file - the path to the root file to analyze |
8 |
* outdir - total path of output file |
* outdir - total path of output file |
141 |
pamela::EventHeader *eh=0,*eH=0; |
pamela::EventHeader *eh=0,*eH=0; |
142 |
pamela::PscuHeader *ph=0,*pH=0; |
pamela::PscuHeader *ph=0,*pH=0; |
143 |
pamela::RunHeaderEvent *reh=0; |
pamela::RunHeaderEvent *reh=0; |
144 |
|
pamela::EventCounter *cod=0; |
145 |
|
|
146 |
|
pamela::PacketType *pctp=0; |
147 |
// open files |
// open files |
148 |
TFile *trackerFile = new TFile(file); |
TFile *trackerFile = new TFile(file); |
149 |
if ( !trackerFile ){ |
if ( !trackerFile ){ |
175 |
printf(" Number of Header Entries: %d\n",neventH); |
printf(" Number of Header Entries: %d\n",neventH); |
176 |
|
|
177 |
Long64_t obt=0; |
Long64_t obt=0; |
178 |
|
Int_t ev[2],cin=0; |
179 |
|
TString cal=""; |
180 |
|
|
181 |
|
ev[0]=3; |
182 |
|
ev[1]=4; |
183 |
for(Int_t i=0;i<neventH;i++){ |
for(Int_t i=0;i<neventH;i++){ |
184 |
otr->GetEntry(i); |
otr->GetEntry(i); |
185 |
pH = eH->GetPscuHeader(); |
pH = eH->GetPscuHeader(); |
186 |
if(reh->TRK_CALIB_USED!=104){ |
if(reh->TRK_CALIB_USED!=104){ |
187 |
obt = pH->GetOrbitalTime(); |
obt = pH->GetOrbitalTime(); |
188 |
|
cal="Event with online calibration"; |
189 |
break; |
break; |
190 |
} |
} |
191 |
if(i==neventH-1){ |
if(i==neventH-1){ |
192 |
printf("\n\n ****** ONLINE CALIBRATION NOT FOUND IN THIS FILE ******\n\n"); |
cal="***** ONLINE CALIBRATION NOT FOUND IN THIS FILE *****"; |
193 |
return; |
ev[0]=2; |
194 |
|
ev[1]=3; |
195 |
} |
} |
196 |
} |
} |
197 |
Int_t ev[2]; |
if(ev[0]==3){ |
198 |
for(Int_t i=0;i<nevents;i++){ |
for(Int_t i=0;i<nevents;i++){ |
199 |
tr->GetEntry(i); |
tr->GetEntry(i); |
200 |
ph = eh->GetPscuHeader(); |
ph = eh->GetPscuHeader(); |
201 |
if(ph->GetOrbitalTime()>obt){ |
cod = eh->GetCounter(); |
202 |
ev[0]=i+2; |
if(i==0) cin=cod->Get(pctp->CalibTrk1); |
203 |
ev[1]=i+3; |
if(reh->TRK_CALIB_USED==104) continue; |
204 |
break; |
if(event<0 && cod->Get(pctp->CalibTrk1)==cin+1){ |
205 |
|
ev[0]=i+3; |
206 |
|
ev[1]=i+4; |
207 |
|
break; |
208 |
|
} |
209 |
|
else if(event>=0 && ph->GetOrbitalTime()>obt){ |
210 |
|
ev[0]=i+3; |
211 |
|
ev[1]=i+4; |
212 |
|
break; |
213 |
|
} |
214 |
} |
} |
215 |
} |
} |
216 |
|
|
221 |
TCanvas *c1[2]; |
TCanvas *c1[2]; |
222 |
|
|
223 |
for(Int_t e=0;e<2;e++){ |
for(Int_t e=0;e<2;e++){ |
224 |
event=ev[e]; |
if(event<=0) |
225 |
printf("Scan of Entry %d\n",event-1); |
event=ev[e]; |
226 |
|
else { |
227 |
|
event=event+e; |
228 |
|
if(event>ev[e]-3 && ev[0]>2) |
229 |
|
cal="Event with online calibration"; |
230 |
|
else |
231 |
|
cal="***** ONLINE CALIBRATION NOT FOUND IN THIS FILE *****"; |
232 |
|
} |
233 |
|
printf("Scan of Entry %d\n",event); |
234 |
|
|
235 |
tr->GetEntry(event-1); |
tr->GetEntry(event); |
236 |
//============================================================================ |
//============================================================================ |
237 |
|
|
238 |
gStyle->SetLabelSize(0.06,"x"); |
gStyle->SetLabelSize(0.06,"x"); |
254 |
c1[e]->SetFillColor(10); |
c1[e]->SetFillColor(10); |
255 |
c1[e]->Range(0,0,1,1); |
c1[e]->Range(0,0,1,1); |
256 |
stringstream fromfile; |
stringstream fromfile; |
257 |
fromfile<<"FTrkScanQLook_EXPERT File: "<<ffile<<" ----> Entry "<<event-1; |
fromfile<<"FTrkScanQLook_EXPERT File: "<<ffile<<" ----> Entry "<<event; |
258 |
TLatex *t=new TLatex(); |
TLatex *t=new TLatex(); |
259 |
t->SetTextFont(32); |
t->SetTextFont(32); |
260 |
t->SetTextColor(1); |
t->SetTextColor(1); |
261 |
t->SetTextAlign(12); |
t->SetTextAlign(12); |
262 |
t->SetTextSize(0.02); |
t->SetTextSize(0.02); |
263 |
t->DrawLatex(0.02,0.98,fromfile.str().c_str()); |
t->DrawLatex(0.02,0.98,fromfile.str().c_str()); |
264 |
|
t->DrawLatex(0.60,0.98,cal.Data()); |
265 |
|
|
266 |
// draw pads |
// draw pads |
267 |
TPad *trkpad[12]; //pad for histos |
TPad *trkpad[12]; //pad for histos |
336 |
ifull[nn]=0; |
ifull[nn]=0; |
337 |
icomp[nn]=0; |
icomp[nn]=0; |
338 |
imax[nn]=0; |
imax[nn]=0; |
339 |
|
if(ndsp>0){ |
340 |
|
if(ndsp<13){ |
341 |
|
|
342 |
/*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.* |
/*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.* |
343 |
* |
* |
344 |
* Write event LEVEL0 report |
* Write event LEVEL0 report |
345 |
* |
* |
346 |
*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*/ |
*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*/ |
347 |
|
|
348 |
trkpadtext[nn]->SetTextFont(40); |
trkpadtext[nn]->SetTextFont(40); |
349 |
trkpadtext[nn]->SetFillColor(33); |
trkpadtext[nn]->SetFillColor(33); |
350 |
trkpadtext[nn]->SetTextSize(0.012); |
trkpadtext[nn]->SetTextSize(0.012); |
351 |
trkpadtext[nn]->SetTextAlign(13); |
trkpadtext[nn]->SetTextAlign(13); |
352 |
|
|
353 |
trkpadtext[nn]->AddText(" "); |
trkpadtext[nn]->AddText(" "); |
354 |
message<<"DAQ mode --------> "<<trk->DAQmode[n]; |
message<<"DAQ mode --------> "<<trk->DAQmode[n]; |
355 |
trkpadtext[nn]->AddText(message.str().c_str()); |
trkpadtext[nn]->AddText(message.str().c_str()); |
356 |
message.str(""); |
message.str(""); |
357 |
message<<"Event number --------> "<<trk->eventn[n]; |
message<<"Event number --------> "<<trk->eventn[n]; |
358 |
trkpadtext[nn]->AddText(message.str().c_str()); |
trkpadtext[nn]->AddText(message.str().c_str()); |
359 |
message.str(""); |
message.str(""); |
360 |
message<<"13-bit words --------> "<<trk->DATAlength[n]; |
message<<"13-bit words --------> "<<trk->DATAlength[n]; |
361 |
trkpadtext[nn]->AddText(message.str().c_str()); |
trkpadtext[nn]->AddText(message.str().c_str()); |
362 |
message.str(""); |
message.str(""); |
363 |
if (!(nn%2)&&trk->signcluster[n][0]!=0) message<<"L1 add: "<<trk->addrcluster[n][0]<<" - sign: "<<1024-(trk->signcluster[n][0]); |
if (!(nn%2)&&trk->signcluster[n][0]!=0) message<<"L1 add: "<<trk->addrcluster[n][0]<<" - sign: "<<1024-(trk->signcluster[n][0]); |
364 |
else message<<"L1 add: "<<trk->addrcluster[n][0]<<" - sign: "<<(trk->signcluster[n][0]); |
else message<<"L1 add: "<<trk->addrcluster[n][0]<<" - sign: "<<(trk->signcluster[n][0]); |
365 |
trkpadtext[nn]->AddText(message.str().c_str()); |
trkpadtext[nn]->AddText(message.str().c_str()); |
366 |
message.str(""); |
message.str(""); |
367 |
if (!(nn%2)&&trk->signcluster[n][1]!=0) message<<"L2 add: "<<trk->addrcluster[n][1]<<" - sign: "<<1024-(trk->signcluster[n][1]); |
if (!(nn%2)&&trk->signcluster[n][1]!=0) message<<"L2 add: "<<trk->addrcluster[n][1]<<" - sign: "<<1024-(trk->signcluster[n][1]); |
368 |
else message<<"L2 add: "<<trk->addrcluster[n][1]<<" - sign: "<<trk->signcluster[n][1]; |
else message<<"L2 add: "<<trk->addrcluster[n][1]<<" - sign: "<<trk->signcluster[n][1]; |
369 |
trkpadtext[nn]->AddText(message.str().c_str()); |
trkpadtext[nn]->AddText(message.str().c_str()); |
370 |
message.str(""); |
message.str(""); |
371 |
if (!(nn%2)&&trk->signcluster[n][2]!=0) message<<"L3 add: "<<trk->addrcluster[n][2]<<" - sign: "<<1024-(trk->signcluster[n][2]); |
if (!(nn%2)&&trk->signcluster[n][2]!=0) message<<"L3 add: "<<trk->addrcluster[n][2]<<" - sign: "<<1024-(trk->signcluster[n][2]); |
372 |
else message<<"L3 add: "<<trk->addrcluster[n][2]<<" - sign: "<<trk->signcluster[n][2]; |
else message<<"L3 add: "<<trk->addrcluster[n][2]<<" - sign: "<<trk->signcluster[n][2]; |
373 |
trkpadtext[nn]->AddText(message.str().c_str()); |
trkpadtext[nn]->AddText(message.str().c_str()); |
374 |
message.str(""); |
message.str(""); |
375 |
message<<"NCLUST "<<trk->nclust[n]<<" CUTC "<<trk->cutc[n]<<" CUTCL "<<trk->cutcl[n]; |
message<<"NCLUST "<<trk->nclust[n]<<" CUTC "<<trk->cutc[n]<<" CUTCL "<<trk->cutcl[n]; |
376 |
trkpadtext[nn]->AddText(message.str().c_str()); |
trkpadtext[nn]->AddText(message.str().c_str()); |
377 |
message.str(""); |
message.str(""); |
378 |
message<<"Comp. time "<<trk->compressiontime[n]<<" x 0.051ms = "<<0.051*trk->compressiontime[n]<<" ms"; |
message<<"Comp. time "<<trk->compressiontime[n]<<" x 0.051ms = "<<0.051*trk->compressiontime[n]<<" ms"; |
379 |
trkpadtext[nn]->AddText(message.str().c_str()); |
trkpadtext[nn]->AddText(message.str().c_str()); |
380 |
message.str(""); |
message.str(""); |
381 |
trkpadtext[nn]->AddText(" "); |
trkpadtext[nn]->AddText(" "); |
382 |
message<<"CRC --> "<<trk->crc[n]; |
message<<"CRC --> "<<trk->crc[n]; |
383 |
trkpadtext[nn]->AddText(message.str().c_str()); |
trkpadtext[nn]->AddText(message.str().c_str()); |
384 |
message.str(""); |
message.str(""); |
385 |
message<<"FL1-6 --> "<<trk->fl1[n]<<" "<<trk->fl2[n]<<" "<<trk->fl3[n]<<" "<<trk->fl4[n]<<" "<<trk->fl5[n]<<" "<<trk->fl6[n]<<" FC "<<trk->fc[n]; |
message<<"FL1-6 --> "<<trk->fl1[n]<<" "<<trk->fl2[n]<<" "<<trk->fl3[n]<<" "<<trk->fl4[n]<<" "<<trk->fl5[n]<<" "<<trk->fl6[n]<<" FC "<<trk->fc[n]; |
386 |
trkpadtext[nn]->AddText(message.str().c_str()); |
trkpadtext[nn]->AddText(message.str().c_str()); |
387 |
message.str(""); |
message.str(""); |
388 |
trkpadtext[nn]->AddText(" "); |
trkpadtext[nn]->AddText(" "); |
389 |
trkpadtext[nn]->AddLine(0,0,0,0); |
trkpadtext[nn]->AddLine(0,0,0,0); |
390 |
message<<"PNum "<<trk->pnum[n]<<" - BId "<<trk->bid[n]<<" ALARM "<<trk->alarm[n]; |
message<<"PNum "<<trk->pnum[n]<<" - BId "<<trk->bid[n]<<" ALARM "<<trk->alarm[n]; |
391 |
trkpadtext[nn]->AddText(message.str().c_str()); |
trkpadtext[nn]->AddText(message.str().c_str()); |
392 |
message.str(""); |
message.str(""); |
393 |
message<<"Cmd "<<trk->cmdnum[n]<<" --- Answer length "<<trk->aswr[n]<<" byte"; |
message<<"Cmd "<<trk->cmdnum[n]<<" --- Answer length "<<trk->aswr[n]<<" byte"; |
394 |
trkpadtext[nn]->AddText(message.str().c_str()); |
trkpadtext[nn]->AddText(message.str().c_str()); |
395 |
message.str(""); |
message.str(""); |
396 |
trkpadtext[nn]->AddText(" "); |
trkpadtext[nn]->AddText(" "); |
397 |
|
|
398 |
TOTDATAlength_check = TOTDATAlength_check + trk->DATAlength[n]; |
TOTDATAlength_check = TOTDATAlength_check + trk->DATAlength[n]; |
399 |
|
|
400 |
/*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.* |
/*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.* |
401 |
* |
* |
402 |
* Plot event LEVEL0 histo |
* Plot event LEVEL0 histo |
403 |
* |
* |
404 |
*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*/ |
*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*/ |
405 |
|
|
406 |
//============================================= |
//============================================= |
407 |
|
|
408 |
for(Int_t i = 0; i< 3072; i++){ |
for(Int_t i = 0; i< 3072; i++){ |
409 |
whistomax[i] = -200; |
whistomax[i] = -200; |
410 |
whistocomp[i] = -200; |
whistocomp[i] = -200; |
411 |
whistofull[i] = -200; |
whistofull[i] = -200; |
412 |
whisto[i] = -200; |
whisto[i] = -200; |
413 |
} |
} |
414 |
|
|
415 |
// =============== |
// =============== |
416 |
// trasmitted data |
// trasmitted data |
417 |
// =============== |
// =============== |
418 |
|
|
419 |
address = 0; |
address = 0; |
420 |
ladder = 1; |
ladder = 1; |
421 |
for(Int_t i = 0; i < trk->DATAlength[n] ; i++){ |
for(Int_t i = 0; i < trk->DATAlength[n] ; i++){ |
422 |
word = trk->TrackerData.At(iword); |
word = trk->TrackerData.At(iword); |
423 |
thisword = datadecode(word); |
thisword = datadecode(word); |
424 |
iword++; |
iword++; |
425 |
switch (thisword.type){ |
switch (thisword.type){ |
426 |
|
|
427 |
case 0: //ADC value |
case 0: //ADC value |
428 |
whisto[address] = thisword.decode; |
whisto[address] = thisword.decode; |
429 |
address++; |
address++; |
430 |
// cout << " adr " << address << "\n"; |
// cout << " adr " << address << "\n"; |
431 |
break; |
break; |
432 |
|
|
433 |
case 1: //address |
case 1: //address |
434 |
address = 1024*(ladder-1) + thisword.decode; |
address = 1024*(ladder-1) + thisword.decode; |
435 |
// cout << " adr " << address << "\n"; |
// cout << " adr " << address << "\n"; |
436 |
break; |
break; |
437 |
|
|
438 |
case 2: //end-of-ladder |
case 2: //end-of-ladder |
439 |
ladder = thisword.decode; |
ladder = thisword.decode; |
440 |
// cout << "Ladder " << ladder << "\n"; |
// cout << "Ladder " << ladder << "\n"; |
441 |
if(ladder==3){ |
if(ladder==3){ |
442 |
// end of compressed data - FILL HISTO |
// end of compressed data - FILL HISTO |
443 |
//cout << ">>> COMPRESSED data" << "\n"; |
//cout << ">>> COMPRESSED data" << "\n"; |
444 |
for(ii = 0; ii < 3072; ii++){ |
for(ii = 0; ii < 3072; ii++){ |
445 |
whistocomp[ii]=whisto[ii]; |
whistocomp[ii]=whisto[ii]; |
446 |
whisto[ii] = -200; |
whisto[ii] = -200; |
447 |
} |
} |
448 |
address = 0; |
address = 0; |
449 |
ladder = 1; |
ladder = 1; |
450 |
}else if(ladder==6){ |
}else if(ladder==6){ |
451 |
// end of full data - FILL HISTO |
// end of full data - FILL HISTO |
452 |
//cout << ">>> FULL data" << "\n"; |
//cout << ">>> FULL data" << "\n"; |
453 |
for(ii = 0; ii < 3072; ii++){ |
for(ii = 0; ii < 3072; ii++){ |
454 |
whistofull[ii]=whisto[ii]; |
whistofull[ii]=whisto[ii]; |
455 |
whisto[ii] = -200; |
whisto[ii] = -200; |
456 |
} |
} |
457 |
address = 0; |
address = 0; |
458 |
ladder = 1; |
ladder = 1; |
459 |
}else{ |
}else{ |
460 |
if(ladder>3) ladder=ladder-3; |
if(ladder>3) ladder=ladder-3; |
461 |
address= ladder*1024; |
address= ladder*1024; |
462 |
ladder = ladder + 1; |
ladder = ladder + 1; |
463 |
} |
} |
464 |
} |
} |
465 |
} |
} |
466 |
|
|
467 |
|
|
468 |
// =============== |
// =============== |
469 |
// maximum signals |
// maximum signals |
470 |
// =============== |
// =============== |
471 |
if(trk->signcluster[nn][0]!=0) whistomax[ 0+(int)trk->addrcluster[nn][0]] = whistocomp[ 0+(int)trk->addrcluster[nn][0]]; |
if(trk->signcluster[nn][0]!=0) whistomax[ 0+(int)trk->addrcluster[nn][0]] = whistocomp[ 0+(int)trk->addrcluster[nn][0]]; |
472 |
if(trk->signcluster[nn][1]!=0) whistomax[1024+(int)trk->addrcluster[nn][1]] = whistocomp[1024+(int)trk->addrcluster[nn][1]]; |
if(trk->signcluster[nn][1]!=0) whistomax[1024+(int)trk->addrcluster[nn][1]] = whistocomp[1024+(int)trk->addrcluster[nn][1]]; |
473 |
if(trk->signcluster[nn][2]!=0) whistomax[2048+(int)trk->addrcluster[nn][2]] = whistocomp[2048+(int)trk->addrcluster[nn][2]]; |
if(trk->signcluster[nn][2]!=0) whistomax[2048+(int)trk->addrcluster[nn][2]] = whistocomp[2048+(int)trk->addrcluster[nn][2]]; |
474 |
|
|
475 |
for(Int_t i = 0; i < 3072; i++){ |
for(Int_t i = 0; i < 3072; i++){ |
476 |
if(whistomax[i]>-200) imax[nn]=1; |
if(whistomax[i]>-200) imax[nn]=1; |
477 |
if(whistocomp[i]>-200) icomp[nn]=1; |
if(whistocomp[i]>-200) icomp[nn]=1; |
478 |
if(whistofull[i]>-200) ifull[nn]=1; |
if(whistofull[i]>-200) ifull[nn]=1; |
479 |
histomax[nn][e]->Fill((Float_t)i,whistomax[i]); |
histomax[nn][e]->Fill((Float_t)i,whistomax[i]); |
480 |
histocomp[nn][e]->Fill((Float_t)i,whistocomp[i]); |
histocomp[nn][e]->Fill((Float_t)i,whistocomp[i]); |
481 |
histofull[nn][e]->Fill((Float_t)i,whistofull[i]); |
histofull[nn][e]->Fill((Float_t)i,whistofull[i]); |
482 |
} |
} |
483 |
|
|
484 |
TBox b; |
TBox b; |
485 |
b.SetFillColor(6); |
|
486 |
b.SetFillStyle(3945); |
c1[e]->cd(); |
487 |
|
trkpadtext[nn]->Draw(); |
488 |
c1[e]->cd(); |
trkpad[nn]->Draw(); |
489 |
trkpadtext[nn]->Draw(); |
trkpad[nn]->cd(); |
490 |
trkpad[nn]->Draw(); |
trkpad[nn]->SetFillColor(10); |
491 |
trkpad[nn]->cd(); |
|
492 |
trkpad[nn]->SetFillColor(10); |
histocomp[nn][e]->GetYaxis()->SetRangeUser(-500,4500); |
493 |
|
histocomp[nn][e]->SetLineStyle(1); |
494 |
histocomp[nn][e]->GetYaxis()->SetRangeUser(-500,4500); |
histocomp[nn][e]->SetLineColor(38); |
495 |
histocomp[nn][e]->SetLineStyle(1); |
histocomp[nn][e]->SetFillColor(38); |
496 |
histocomp[nn][e]->SetLineColor(38); |
histocomp[nn][e]->SetLineWidth(1); |
497 |
histocomp[nn][e]->SetFillColor(38); |
histocomp[nn][e]->Draw(""); |
498 |
histocomp[nn][e]->SetLineWidth(1); |
|
499 |
histocomp[nn][e]->Draw(""); |
histofull[nn][e]->SetLineColor(40); |
500 |
|
histofull[nn][e]->SetFillColor(40); |
501 |
histofull[nn][e]->SetLineColor(40); |
histofull[nn][e]->SetLineWidth(1); |
502 |
histofull[nn][e]->SetFillColor(40); |
histofull[nn][e]->SetLineStyle(2); |
503 |
histofull[nn][e]->SetLineWidth(1); |
|
504 |
histofull[nn][e]->SetLineStyle(2); |
histomax[nn][e]->SetLineColor(2); |
505 |
|
histomax[nn][e]->SetLineWidth(1); |
506 |
histomax[nn][e]->SetLineColor(2); |
histomax[nn][e]->SetLineStyle(3); |
507 |
histomax[nn][e]->SetLineWidth(1); |
|
508 |
histomax[nn][e]->SetLineStyle(3); |
if(ifull[nn]==1) histofull[nn][e]->Draw("9bsame]["); |
509 |
|
if(icomp[nn]==1) histocomp[nn][e]->Draw("9bsame]["); |
510 |
if(ifull[nn]==1) histofull[nn][e]->Draw("9bsame]["); |
if(imax[nn]==1) histomax[nn][e]->Draw("same]["); |
511 |
if(icomp[nn]==1) histocomp[nn][e]->Draw("9bsame]["); |
histocomp[nn][e]->Draw("axis same"); |
512 |
if(imax[nn]==1) histomax[nn][e]->Draw("same]["); |
if(nn==0){ |
513 |
histocomp[nn][e]->Draw("axis same"); |
b.SetFillColor(107); |
514 |
if(nn==1){ |
b.SetFillStyle(3945); |
515 |
b.DrawBox(2816.,-500.,3060.,4500.); |
b.DrawBox(768.,-500.,2047.,4500.); |
516 |
} |
} |
517 |
else if(nn==6){ |
else if(nn==1){ |
518 |
b.DrawBox(2560.,-500.,2816.,4500.); |
b.SetFillColor(6); |
519 |
b.DrawBox(512.,-500.,768.,4500.); |
b.SetFillStyle(3945); |
520 |
b.DrawBox(1024.,-500.,1792.,4500.); |
b.DrawBox(2944.,-500.,3060.,4500.); |
521 |
} |
|
522 |
else if(nn==11){ |
b.SetFillColor(107); |
523 |
b.DrawBox(768.,-500.,1024.,4500.); |
b.SetFillStyle(3954); |
524 |
|
//b.DrawBox(384.,-500.,512.,4500.); |
525 |
|
b.DrawBox(2816.,-500.,2944.,4500.); |
526 |
|
b.DrawBox(2048.,-500.,2176.,4500.); |
527 |
|
} |
528 |
|
else if(nn==4){ |
529 |
|
b.SetFillColor(107); |
530 |
|
b.SetFillStyle(3954); |
531 |
|
b.DrawBox(384.,-500.,512.,4500.); |
532 |
|
} |
533 |
|
else if(nn==6){ |
534 |
|
b.SetFillColor(6); |
535 |
|
b.SetFillStyle(3945); |
536 |
|
b.DrawBox(2560.,-500.,2816.,4500.); |
537 |
|
b.DrawBox(1024.,-500.,1535.,4500.); |
538 |
|
|
539 |
|
b.SetFillColor(107); |
540 |
|
b.SetFillStyle(3954); |
541 |
|
b.DrawBox(512.,-500.,768.,4500.); |
542 |
|
b.DrawBox(1536.,-500.,1792.,4500.); |
543 |
|
} |
544 |
|
else if(nn==7){ |
545 |
|
b.SetFillColor(107); |
546 |
|
b.SetFillStyle(3954); |
547 |
|
b.DrawBox(512.,-500.,768.,4500.); |
548 |
|
} |
549 |
|
else if(nn==8){ |
550 |
|
b.SetFillColor(107); |
551 |
|
b.SetFillStyle(3954); |
552 |
|
b.DrawBox(512.,-500.,768.,4500.); |
553 |
|
} |
554 |
|
else if(nn==9){ |
555 |
|
b.SetFillColor(107); |
556 |
|
b.SetFillStyle(3954); |
557 |
|
b.DrawBox(256.,-500.,384.,4500.); |
558 |
|
//b.DrawBox(1280.,-500.,1408.,4500.); |
559 |
|
//b.DrawBox(1792.,-500.,1920.,4500.); |
560 |
|
} |
561 |
|
else if(nn==10){ |
562 |
|
b.SetFillColor(107); |
563 |
|
b.SetFillStyle(3954); |
564 |
|
b.DrawBox(2048.,-500.,3070.,4500.); |
565 |
|
} |
566 |
|
else if(nn==11){ |
567 |
|
b.SetFillColor(6); |
568 |
|
b.SetFillStyle(3945); |
569 |
|
b.DrawBox(768.,-500.,1024.,4500.); |
570 |
|
|
571 |
|
b.SetFillColor(107); |
572 |
|
b.SetFillStyle(3954); |
573 |
|
b.DrawBox(0.,-500.,512.,4500.); |
574 |
|
b.DrawBox(1920.,-500.,2560.,4500.); |
575 |
|
} |
576 |
|
c1[e]->Update(); |
577 |
|
} |
578 |
} |
} |
|
c1[e]->Update(); |
|
579 |
|
|
580 |
}//end loop on views |
}//end loop on views |
581 |
|
|