| 23 |
#include <TGraph.h> |
#include <TGraph.h> |
| 24 |
#include <TStyle.h> |
#include <TStyle.h> |
| 25 |
#include <TString.h> |
#include <TString.h> |
| 26 |
|
#include <TAxis.h> |
| 27 |
|
#include <TH1F.h> |
| 28 |
|
#include <TROOT.h> |
| 29 |
|
#include <cstdlib> |
| 30 |
// |
// |
| 31 |
#include <PscuHeader.h> |
#include <PscuHeader.h> |
| 32 |
#include <EventHeader.h> |
#include <EventHeader.h> |
| 34 |
#include <CalibTrk2Event.h> |
#include <CalibTrk2Event.h> |
| 35 |
// |
// |
| 36 |
|
|
| 37 |
typedef struct caltrk_def{ |
struct caltrk_def{ |
| 38 |
Int_t good0[2]; |
Int_t good0[2]; |
| 39 |
Int_t daqmode[12]; |
Int_t daqmode[12]; |
| 40 |
Int_t dspnum[12]; |
Int_t dspnum[12]; |
| 312 |
tzz->DrawLatex(.01,.98,fromfile.str().c_str()); |
tzz->DrawLatex(.01,.98,fromfile.str().c_str()); |
| 313 |
tzz->DrawLatex(.90,.98,"PEDESTAL"); |
tzz->DrawLatex(.90,.98,"PEDESTAL"); |
| 314 |
|
|
| 315 |
isfile<<"Boxes so colored point out chips broken before the launch and never resumed"; |
isfile<<"Chips with white line at least once showed anomalous behaviour"; |
| 316 |
tzz->SetTextColor(6); |
tzz->SetTextColor(17); |
| 317 |
tzz->SetTextSize(0.018); |
tzz->SetTextSize(0.018); |
| 318 |
tzz->DrawLatex(.5,.96,isfile.str().c_str()); |
tzz->DrawLatex(.01,.96,isfile.str().c_str()); |
| 319 |
isfile.str(""); |
isfile.str(""); |
| 320 |
|
|
| 321 |
isfile<<"Boxes so colored point out anomalous chips (not necessarily broken)"; |
isfile<<"Boxes so colored point out anomalous chips (not necessarily broken)"; |
| 322 |
tzz->SetTextColor(107); |
tzz->SetTextColor(107); |
| 323 |
tzz->DrawLatex(.05,.96,isfile.str().c_str()); |
// tzz->DrawLatex(.05,.96,isfile.str().c_str()); |
| 324 |
isfile.str(""); |
isfile.str(""); |
| 325 |
|
|
| 326 |
TCanvas *c2 = new TCanvas("c2","FTrkCalibQLook_EXPERT_sig",canvasx,canvasy); |
TCanvas *c2 = new TCanvas("c2","FTrkCalibQLook_EXPERT_sig",canvasx,canvasy); |
| 329 |
tzz->DrawLatex(.01,.98,fromfile.str().c_str()); |
tzz->DrawLatex(.01,.98,fromfile.str().c_str()); |
| 330 |
tzz->DrawLatex(.90,.98,"SIGMA"); |
tzz->DrawLatex(.90,.98,"SIGMA"); |
| 331 |
|
|
| 332 |
isfile<<"Boxes so colored point out chips broken before the launch and never resumed"; |
isfile<<"Chips with white line at least once showed anomalous behaviour"; |
| 333 |
tzz->SetTextColor(6); |
tzz->SetTextColor(17); |
| 334 |
tzz->SetTextSize(0.018); |
tzz->SetTextSize(0.018); |
| 335 |
tzz->DrawLatex(.5,.96,isfile.str().c_str()); |
tzz->DrawLatex(.01,.96,isfile.str().c_str()); |
| 336 |
isfile.str(""); |
isfile.str(""); |
| 337 |
|
|
| 338 |
isfile<<"Boxes so colored point out anomalous chips (not necessarily broken)"; |
isfile<<"Boxes so colored point out anomalous chips (not necessarily broken)"; |
| 339 |
tzz->SetTextColor(107); |
tzz->SetTextColor(107); |
| 340 |
tzz->DrawLatex(.05,.96,isfile.str().c_str()); |
// tzz->DrawLatex(.05,.96,isfile.str().c_str()); |
| 341 |
isfile.str(""); |
isfile.str(""); |
| 342 |
|
|
| 343 |
|
|
| 545 |
liva1.SetLineStyle(3); |
liva1.SetLineStyle(3); |
| 546 |
liva1.SetLineWidth(1); |
liva1.SetLineWidth(1); |
| 547 |
|
|
| 548 |
Float_t maxhist=0,va1x=0; |
Float_t maxhist=0,va1x=0,minhist=0.; |
| 549 |
TBox b; |
TBox b; |
| 550 |
/* plot PEDESTAL */ |
/* plot PEDESTAL */ |
| 551 |
c1->cd(); |
c1->cd(); |
| 564 |
if((nn+1)%2==0) histoped[nn]->GetYaxis()->SetRangeUser(700,1700); |
if((nn+1)%2==0) histoped[nn]->GetYaxis()->SetRangeUser(700,1700); |
| 565 |
histoaped[nn]->SetLineColor(5); |
histoaped[nn]->SetLineColor(5); |
| 566 |
histoaped[nn]->SetLineWidth(1); |
histoaped[nn]->SetLineWidth(1); |
| 567 |
// if(ctrk.good0[0]==1 && ctrk.good0[1]==1){ |
// if(ctrk.good0[0]==1 && ctrk.good0[1]==1){ |
| 568 |
histoped[nn]->Draw("b"); |
histoped[nn]->Draw("b"); |
| 569 |
maxhist=histoped[nn]->GetMaximum(); |
maxhist=histoped[nn]->GetMaximum(); |
| 570 |
if(nn==0){ |
if(nn%2==0) minhist=2200; |
| 571 |
b.SetFillColor(107); |
else minhist=700; |
| 572 |
b.SetFillStyle(3945); |
b.SetFillColor(19); |
| 573 |
b.DrawBox(256.,2200.,384.,maxhist); |
b.SetFillStyle(3954); |
| 574 |
b.DrawBox(768.,2200.,2047.,maxhist); |
if(nn==0){ |
| 575 |
} |
b.DrawBox(0.,minhist,2047.,maxhist); |
| 576 |
else if(nn==1){ |
} |
| 577 |
b.SetFillColor(6); |
else if(nn==1){ |
| 578 |
b.SetFillStyle(3945); |
b.DrawBox(128.,minhist,256.,maxhist); |
| 579 |
b.DrawBox(2944.,700.,3060.,maxhist); |
b.DrawBox(384.,minhist,512.,maxhist); |
| 580 |
|
b.DrawBox(896.,minhist,1024.,maxhist); |
| 581 |
b.SetFillColor(107); |
b.DrawBox(2048.,minhist,2432.,maxhist); |
| 582 |
b.SetFillStyle(3954); |
b.DrawBox(2816.,minhist,2944.,maxhist); |
| 583 |
b.DrawBox(384.,700.,512.,maxhist); |
b.DrawBox(2944.,minhist,3070.,maxhist); |
| 584 |
b.DrawBox(896.,700.,1024.,maxhist); |
} |
| 585 |
b.DrawBox(2048.,700.,2432.,maxhist); |
else if(nn==3){ |
| 586 |
b.DrawBox(2816.,700.,2944.,maxhist); |
b.DrawBox(0.,minhist,256.,maxhist); |
| 587 |
} |
b.DrawBox(2816.,minhist,3070.,maxhist); |
| 588 |
else if(nn==3){ |
} |
| 589 |
b.SetFillColor(107); |
else if(nn==4){ |
| 590 |
b.SetFillStyle(3954); |
b.DrawBox(256.,minhist,512.,maxhist); |
| 591 |
b.DrawBox(2816.,700.,3070.,maxhist); |
b.DrawBox(1792.,minhist,1920.,maxhist); |
| 592 |
} |
b.DrawBox(2816.,minhist,3070.,maxhist); |
| 593 |
else if(nn==4){ |
} |
| 594 |
b.SetFillColor(107); |
else if(nn==5){ |
| 595 |
b.SetFillStyle(3954); |
b.DrawBox(0.,minhist,256.,maxhist); |
| 596 |
b.DrawBox(256.,2200.,512.,maxhist); |
b.DrawBox(896.,minhist,1024.,maxhist); |
| 597 |
b.DrawBox(2816.,2200.,3070.,maxhist); |
b.DrawBox(1664.,minhist,1792.,maxhist); |
| 598 |
} |
} |
| 599 |
else if(nn==5){ |
else if(nn==6){ |
| 600 |
b.SetFillColor(107); |
b.DrawBox(512.,minhist,768.,maxhist); |
| 601 |
b.SetFillStyle(3954); |
b.DrawBox(1024.,minhist,1280.,maxhist); |
| 602 |
b.DrawBox(896.,700.,1024.,maxhist); |
b.DrawBox(1280.,minhist,1792.,maxhist); |
| 603 |
// b.DrawBox(1664.,0.,1792.,maxhist); |
b.DrawBox(2560.,minhist,2816.,maxhist); |
| 604 |
} |
} |
| 605 |
else if(nn==6){ |
else if(nn==7){ |
| 606 |
b.SetFillColor(107); |
b.DrawBox(0.,minhist,1535.,maxhist); |
| 607 |
b.SetFillStyle(3954); |
b.DrawBox(2024.,minhist,2280.,maxhist); |
| 608 |
b.DrawBox(512.,2200.,768.,maxhist); |
} |
| 609 |
b.DrawBox(1024.,2200.,1280.,maxhist); |
else if(nn==8){ |
| 610 |
b.DrawBox(1280.,2200.,1792.,maxhist); |
b.DrawBox(512.,minhist,768.,maxhist); |
| 611 |
b.DrawBox(2560.,2200.,2816.,maxhist); |
} |
| 612 |
} |
else if(nn==9){ |
| 613 |
else if(nn==7){ |
b.DrawBox(0.,minhist,128.,maxhist); |
| 614 |
b.SetFillColor(107); |
b.DrawBox(256.,minhist,384.,maxhist); |
| 615 |
b.SetFillStyle(3954); |
b.DrawBox(512.,minhist,640.,maxhist); |
| 616 |
b.DrawBox(512.,700.,768.,maxhist); |
b.DrawBox(896.,minhist,1152.,maxhist); |
| 617 |
b.DrawBox(896.,700.,1535.,maxhist); |
b.DrawBox(1280.,minhist,1535.,maxhist); |
| 618 |
b.DrawBox(2024.,700.,2280.,maxhist); |
b.DrawBox(1664.,minhist,1920.,maxhist); |
| 619 |
} |
b.DrawBox(2048.,minhist,2304.,maxhist); |
| 620 |
else if(nn==8){ |
} |
| 621 |
b.SetFillColor(107); |
else if(nn==10){ |
| 622 |
b.SetFillStyle(3954); |
b.DrawBox(0.,minhist,512.,maxhist); |
| 623 |
b.DrawBox(512.,2200.,768.,maxhist); |
b.DrawBox(1024.,minhist,3070.,maxhist); |
| 624 |
} |
} |
| 625 |
else if(nn==9){ |
else if(nn==11){ |
| 626 |
b.SetFillColor(107); |
b.DrawBox(0.,minhist,512.,maxhist); |
| 627 |
b.SetFillStyle(3954); |
b.DrawBox(768.,minhist,1024.,maxhist); |
| 628 |
b.DrawBox(0.,700.,128.,maxhist); |
b.DrawBox(1536.,minhist,1664.,maxhist); |
| 629 |
b.DrawBox(256.,700.,384.,maxhist); |
b.DrawBox(1920.,minhist,2560.,maxhist); |
| 630 |
b.DrawBox(512.,700.,640.,maxhist); |
b.DrawBox(2816.,minhist,3070.,maxhist); |
| 631 |
b.DrawBox(896.,700.,1024.,maxhist); |
} |
| 632 |
b.DrawBox(1280.,700.,1535.,maxhist); |
// } |
| 633 |
b.DrawBox(1664.,700.,1920.,maxhist); |
// else histoped[nn]->Draw("axis"); |
|
} |
|
|
else if(nn==10){ |
|
|
b.SetFillColor(107); |
|
|
b.SetFillStyle(3954); |
|
|
b.DrawBox(0.,2200.,512.,maxhist); |
|
|
b.DrawBox(1024.,2200.,3070.,maxhist); |
|
|
} |
|
|
else if(nn==11){ |
|
|
b.SetFillColor(6); |
|
|
b.SetFillStyle(3945); |
|
|
b.DrawBox(768.,700.,1024.,maxhist); |
|
|
|
|
|
b.SetFillColor(107); |
|
|
b.SetFillStyle(3954); |
|
|
b.DrawBox(0.,700.,512.,maxhist); |
|
|
b.DrawBox(1920.,700.,2560.,maxhist); |
|
|
b.DrawBox(2816.,700.,3070.,maxhist); |
|
|
} |
|
|
// } |
|
|
// else histoped[nn]->Draw("axis"); |
|
| 634 |
histoaped[nn]->Draw("same"); |
histoaped[nn]->Draw("same"); |
| 635 |
if((nn+1)%2==1) { |
if((nn+1)%2==1) { |
| 636 |
for(int va=1; va<24; va++){ |
for(int va=1; va<24; va++){ |
| 671 |
histosig[nn]->GetYaxis()->CenterTitle(); |
histosig[nn]->GetYaxis()->CenterTitle(); |
| 672 |
histoasig[nn]->SetLineColor(5); |
histoasig[nn]->SetLineColor(5); |
| 673 |
histoasig[nn]->SetLineWidth(1); |
histoasig[nn]->SetLineWidth(1); |
| 674 |
// if(ctrk.good0[0]==1 && ctrk.good0[1]==1){ |
// if(ctrk.good0[0]==1 && ctrk.good0[1]==1){ |
| 675 |
histosig[nn]->Draw("b"); |
histosig[nn]->Draw("b"); |
| 676 |
maxhist=histosig[nn]->GetMaximum(); |
maxhist=histosig[nn]->GetMaximum(); |
| 677 |
if(nn==0){ |
minhist=0.; |
| 678 |
b.SetFillColor(107); |
b.SetFillColor(19); |
| 679 |
b.SetFillStyle(3945); |
b.SetFillStyle(3945); |
| 680 |
b.DrawBox(256.,0.,384.,maxhist); |
if(nn==0){ |
| 681 |
b.DrawBox(768.,0.,2047.,maxhist); |
b.DrawBox(0.,minhist,2047.,maxhist); |
| 682 |
} |
} |
| 683 |
else if(nn==1){ |
else if(nn==1){ |
| 684 |
b.SetFillColor(6); |
b.DrawBox(128.,minhist,256.,maxhist); |
| 685 |
b.SetFillStyle(3945); |
b.DrawBox(384.,minhist,512.,maxhist); |
| 686 |
b.DrawBox(2944.,0.,3070.,maxhist); |
b.DrawBox(896.,minhist,1024.,maxhist); |
| 687 |
|
b.DrawBox(2048.,minhist,2432.,maxhist); |
| 688 |
b.SetFillColor(107); |
b.DrawBox(2816.,minhist,2944.,maxhist); |
| 689 |
b.SetFillStyle(3954); |
b.DrawBox(2944.,minhist,3070.,maxhist); |
| 690 |
b.DrawBox(384.,0.,512.,maxhist); |
} |
| 691 |
b.DrawBox(896.,0.,1024.,maxhist); |
else if(nn==3){ |
| 692 |
b.DrawBox(2048.,0.,2432.,maxhist); |
b.DrawBox(0.,minhist,256.,maxhist); |
| 693 |
b.DrawBox(2816.,0.,2944.,maxhist); |
b.DrawBox(2816.,minhist,3070.,maxhist); |
| 694 |
} |
} |
| 695 |
else if(nn==3){ |
else if(nn==4){ |
| 696 |
b.SetFillColor(107); |
b.DrawBox(256.,minhist,512.,maxhist); |
| 697 |
b.SetFillStyle(3954); |
b.DrawBox(1792.,minhist,1920.,maxhist); |
| 698 |
b.DrawBox(2816.,0.,3070.,maxhist); |
b.DrawBox(2816.,minhist,3070.,maxhist); |
| 699 |
} |
} |
| 700 |
else if(nn==4){ |
else if(nn==5){ |
| 701 |
b.SetFillColor(107); |
b.DrawBox(0.,minhist,256.,maxhist); |
| 702 |
b.SetFillStyle(3954); |
b.DrawBox(896.,minhist,1024.,maxhist); |
| 703 |
b.DrawBox(256.,0.,512.,maxhist); |
b.DrawBox(1664.,minhist,1792.,maxhist); |
| 704 |
b.DrawBox(2816.,0.,3070.,maxhist); |
} |
| 705 |
} |
else if(nn==6){ |
| 706 |
else if(nn==5){ |
b.DrawBox(512.,minhist,768.,maxhist); |
| 707 |
b.SetFillColor(107); |
b.DrawBox(1024.,minhist,1280.,maxhist); |
| 708 |
b.SetFillStyle(3954); |
b.DrawBox(1280.,minhist,1792.,maxhist); |
| 709 |
b.DrawBox(896.,0.,1024.,maxhist); |
b.DrawBox(2560.,minhist,2816.,maxhist); |
| 710 |
// b.DrawBox(1664.,0.,1792.,maxhist); |
} |
| 711 |
} |
else if(nn==7){ |
| 712 |
else if(nn==6){ |
b.DrawBox(0.,minhist,1535.,maxhist); |
| 713 |
b.SetFillColor(107); |
b.DrawBox(2024.,minhist,2280.,maxhist); |
| 714 |
b.SetFillStyle(3954); |
} |
| 715 |
b.DrawBox(512.,0.,768.,maxhist); |
else if(nn==8){ |
| 716 |
b.DrawBox(1024.,0.,1280.,maxhist); |
b.DrawBox(512.,minhist,768.,maxhist); |
| 717 |
b.DrawBox(1280.,0.,1792.,maxhist); |
} |
| 718 |
b.DrawBox(2560.,0.,2816.,maxhist); |
else if(nn==9){ |
| 719 |
} |
b.DrawBox(0.,minhist,128.,maxhist); |
| 720 |
else if(nn==7){ |
b.DrawBox(256.,minhist,384.,maxhist); |
| 721 |
b.SetFillColor(107); |
b.DrawBox(512.,minhist,640.,maxhist); |
| 722 |
b.SetFillStyle(3954); |
b.DrawBox(896.,minhist,1152.,maxhist); |
| 723 |
b.DrawBox(512.,0.,768.,maxhist); |
b.DrawBox(1280.,minhist,1535.,maxhist); |
| 724 |
b.DrawBox(896.,0.,1535.,maxhist); |
b.DrawBox(1664.,minhist,1920.,maxhist); |
| 725 |
b.DrawBox(2024.,0.,2280.,maxhist); |
b.DrawBox(2048.,minhist,2304.,maxhist); |
| 726 |
} |
} |
| 727 |
else if(nn==8){ |
else if(nn==10){ |
| 728 |
b.SetFillColor(107); |
b.DrawBox(0.,minhist,512.,maxhist); |
| 729 |
b.SetFillStyle(3954); |
b.DrawBox(1024.,minhist,3070.,maxhist); |
| 730 |
b.DrawBox(512.,0.,768.,maxhist); |
} |
| 731 |
} |
else if(nn==11){ |
| 732 |
else if(nn==9){ |
b.DrawBox(0.,minhist,512.,maxhist); |
| 733 |
b.SetFillColor(107); |
b.DrawBox(768.,minhist,1024.,maxhist); |
| 734 |
b.SetFillStyle(3954); |
b.DrawBox(1536.,minhist,1664.,maxhist); |
| 735 |
b.DrawBox(0.,0.,128.,maxhist); |
b.DrawBox(1920.,minhist,2560.,maxhist); |
| 736 |
b.DrawBox(256.,0.,384.,maxhist); |
b.DrawBox(2816.,minhist,3070.,maxhist); |
| 737 |
b.DrawBox(512.,0.,640.,maxhist); |
} |
| 738 |
b.DrawBox(896.,0.,1024.,maxhist); |
// } |
| 739 |
b.DrawBox(1280.,0.,1535.,maxhist); |
// else histosig[nn]->Draw("axis"); |
|
b.DrawBox(1664.,0.,1920.,maxhist); |
|
|
} |
|
|
else if(nn==10){ |
|
|
b.SetFillColor(107); |
|
|
b.SetFillStyle(3954); |
|
|
b.DrawBox(0.,0.,512.,maxhist); |
|
|
b.DrawBox(1024.,0.,3070.,maxhist); |
|
|
} |
|
|
else if(nn==11){ |
|
|
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.,2560.,maxhist); |
|
|
b.DrawBox(2816.,0.,3070.,maxhist); |
|
|
} |
|
|
// } |
|
|
// else histosig[nn]->Draw("axis"); |
|
| 740 |
histoasig[nn]->Draw("same"); |
histoasig[nn]->Draw("same"); |
| 741 |
for(int va=1; va<24; va++){ |
for(int va=1; va<24; va++){ |
| 742 |
va1x=128*va; |
va1x=128*va; |