| 2 |
* FTrkCalibQLookExpert.cxx |
* FTrkCalibQLookExpert.cxx |
| 3 |
* |
* |
| 4 |
* autor: D.Fedele |
* autor: D.Fedele |
| 5 |
* version v1r27 |
* version v1r28 |
| 6 |
* Parameters: |
* Parameters: |
| 7 |
* file - the data file to analyze |
* file - the data file to analyze |
| 8 |
* step - select =1 in order to analyze one event at time |
* step - select =1 in order to analyze one event at time |
| 275 |
// other variables definitions |
// other variables definitions |
| 276 |
|
|
| 277 |
Int_t risposta=0; |
Int_t risposta=0; |
| 278 |
stringstream fromfile; |
stringstream fromfile,isfile; |
| 279 |
|
|
| 280 |
fromfile<<"FTrkCalibQLook_EXPERT File: "<<ffile<<" -- CalibHeader OBT= "<<HOBT[(cod->Get(pctp->CalibHeader))-1]<<" -- Calib pkt OBT= "<<FOBT[0]<<" -- CalibTrailer OBT= "<<TOBT[(cod->Get(pctp->CalibTrailer))]<<" --"; |
fromfile<<"FTrkCalibQLook_EXPERT File: "<<ffile<<" -- CalibHeader OBT= "<<HOBT[(cod->Get(pctp->CalibHeader))-1]<<" -- Calib pkt OBT= "<<FOBT[0]<<" -- CalibTrailer OBT= "<<TOBT[(cod->Get(pctp->CalibTrailer))]<<" --"; |
| 281 |
|
|
| 305 |
Int_t canvasy=900; |
Int_t canvasy=900; |
| 306 |
TCanvas *c1 = new TCanvas("c1","FTrkCalibQLook_EXPERT_ped",canvasx,canvasy); |
TCanvas *c1 = new TCanvas("c1","FTrkCalibQLook_EXPERT_ped",canvasx,canvasy); |
| 307 |
c1->SetFillColor(10); |
c1->SetFillColor(10); |
| 308 |
tzz->DrawLatex(.01,0.98,fromfile.str().c_str()); |
tzz->DrawLatex(.01,.98,fromfile.str().c_str()); |
| 309 |
tzz->DrawLatex(.90,0.98,"PEDESTAL"); |
tzz->DrawLatex(.90,.98,"PEDESTAL"); |
| 310 |
|
|
| 311 |
|
isfile<<"Boxes so colored point out chips broken before the launch and never resumed"; |
| 312 |
|
tzz->SetTextColor(6); |
| 313 |
|
tzz->SetTextSize(0.018); |
| 314 |
|
tzz->DrawLatex(.5,.96,isfile.str().c_str()); |
| 315 |
|
isfile.str(""); |
| 316 |
|
|
| 317 |
|
isfile<<"Boxes so colored point out anomalous chips (not necessarily broken)"; |
| 318 |
|
tzz->SetTextColor(107); |
| 319 |
|
tzz->DrawLatex(.05,.96,isfile.str().c_str()); |
| 320 |
|
isfile.str(""); |
| 321 |
|
|
| 322 |
TCanvas *c2 = new TCanvas("c2","FTrkCalibQLook_EXPERT_sig",canvasx,canvasy); |
TCanvas *c2 = new TCanvas("c2","FTrkCalibQLook_EXPERT_sig",canvasx,canvasy); |
| 323 |
c2->SetFillColor(10); |
c2->SetFillColor(10); |
| 324 |
tzz->DrawLatex(.01,0.98,fromfile.str().c_str()); |
tzz->SetTextColor(1); |
| 325 |
tzz->DrawLatex(.90,0.98,"SIGMA"); |
tzz->DrawLatex(.01,.98,fromfile.str().c_str()); |
| 326 |
|
tzz->DrawLatex(.90,.98,"SIGMA"); |
| 327 |
|
|
| 328 |
|
isfile<<"Boxes so colored point out chips broken before the launch and never resumed"; |
| 329 |
|
tzz->SetTextColor(6); |
| 330 |
|
tzz->SetTextSize(0.018); |
| 331 |
|
tzz->DrawLatex(.5,.96,isfile.str().c_str()); |
| 332 |
|
isfile.str(""); |
| 333 |
|
|
| 334 |
|
isfile<<"Boxes so colored point out anomalous chips (not necessarily broken)"; |
| 335 |
|
tzz->SetTextColor(107); |
| 336 |
|
tzz->DrawLatex(.05,.96,isfile.str().c_str()); |
| 337 |
|
isfile.str(""); |
| 338 |
|
|
| 339 |
|
|
| 340 |
TCanvas *sig=new TCanvas("sig","FTrkCalibQLook_EXPERT_histosig",canvasx,canvasy); |
TCanvas *sig=new TCanvas("sig","FTrkCalibQLook_EXPERT_histosig",canvasx,canvasy); |
| 341 |
sig->SetFillColor(10); |
sig->SetFillColor(10); |
| 342 |
tzz->DrawLatex(.01,0.98,fromfile.str().c_str()); |
tzz->SetTextColor(1); |
| 343 |
tzz->DrawLatex(.85,0.97,"Histograms of the sigmas"); |
tzz->DrawLatex(.01,.98,fromfile.str().c_str()); |
| 344 |
|
tzz->DrawLatex(.85,.97,"Histograms of the sigmas"); |
| 345 |
|
|
| 346 |
|
|
| 347 |
|
|
| 577 |
b.SetFillColor(107); |
b.SetFillColor(107); |
| 578 |
b.SetFillStyle(3954); |
b.SetFillStyle(3954); |
| 579 |
b.DrawBox(384.,700.,512.,maxhist); |
b.DrawBox(384.,700.,512.,maxhist); |
| 580 |
|
b.DrawBox(896.,700.,1024.,maxhist); |
| 581 |
b.DrawBox(2048.,700.,2432.,maxhist); |
b.DrawBox(2048.,700.,2432.,maxhist); |
| 582 |
b.DrawBox(2816.,700.,2944.,maxhist); |
b.DrawBox(2816.,700.,2944.,maxhist); |
| 583 |
} |
} |
| 595 |
else if(nn==5){ |
else if(nn==5){ |
| 596 |
b.SetFillColor(107); |
b.SetFillColor(107); |
| 597 |
b.SetFillStyle(3954); |
b.SetFillStyle(3954); |
| 598 |
b.DrawBox(896.,700.,1024.,maxhist); |
b.DrawBox(896.,700.,1024.,maxhist); |
| 599 |
|
// b.DrawBox(1664.,0.,1792.,maxhist); |
| 600 |
} |
} |
| 601 |
else if(nn==6){ |
else if(nn==6){ |
| 602 |
b.SetFillColor(107); |
b.SetFillColor(107); |
| 626 |
b.DrawBox(512.,700.,640.,maxhist); |
b.DrawBox(512.,700.,640.,maxhist); |
| 627 |
b.DrawBox(896.,700.,1024.,maxhist); |
b.DrawBox(896.,700.,1024.,maxhist); |
| 628 |
b.DrawBox(1280.,700.,1535.,maxhist); |
b.DrawBox(1280.,700.,1535.,maxhist); |
| 629 |
b.DrawBox(1792.,700.,1920.,maxhist); |
b.DrawBox(1664.,700.,1920.,maxhist); |
| 630 |
} |
} |
| 631 |
else if(nn==10){ |
else if(nn==10){ |
| 632 |
b.SetFillColor(107); |
b.SetFillColor(107); |
| 633 |
b.SetFillStyle(3954); |
b.SetFillStyle(3954); |
| 634 |
b.DrawBox(0.,2200.,256.,maxhist); |
b.DrawBox(0.,2200.,512.,maxhist); |
| 635 |
b.DrawBox(1024.,2200.,1152.,maxhist); |
b.DrawBox(1024.,2200.,3070.,maxhist); |
|
b.DrawBox(1768.,2200.,3070.,maxhist); |
|
| 636 |
} |
} |
| 637 |
else if(nn==11){ |
else if(nn==11){ |
| 638 |
b.SetFillColor(6); |
b.SetFillColor(6); |
| 704 |
b.SetFillColor(107); |
b.SetFillColor(107); |
| 705 |
b.SetFillStyle(3954); |
b.SetFillStyle(3954); |
| 706 |
b.DrawBox(384.,0.,512.,maxhist); |
b.DrawBox(384.,0.,512.,maxhist); |
| 707 |
|
b.DrawBox(896.,0.,1024.,maxhist); |
| 708 |
b.DrawBox(2048.,0.,2432.,maxhist); |
b.DrawBox(2048.,0.,2432.,maxhist); |
| 709 |
b.DrawBox(2816.,0.,2944.,maxhist); |
b.DrawBox(2816.,0.,2944.,maxhist); |
| 710 |
} |
} |
| 722 |
else if(nn==5){ |
else if(nn==5){ |
| 723 |
b.SetFillColor(107); |
b.SetFillColor(107); |
| 724 |
b.SetFillStyle(3954); |
b.SetFillStyle(3954); |
| 725 |
b.DrawBox(896.,0.,1024.,maxhist); |
b.DrawBox(896.,0.,1024.,maxhist); |
| 726 |
|
// b.DrawBox(1664.,0.,1792.,maxhist); |
| 727 |
} |
} |
| 728 |
else if(nn==6){ |
else if(nn==6){ |
| 729 |
b.SetFillColor(107); |
b.SetFillColor(107); |
| 753 |
b.DrawBox(512.,0.,640.,maxhist); |
b.DrawBox(512.,0.,640.,maxhist); |
| 754 |
b.DrawBox(896.,0.,1024.,maxhist); |
b.DrawBox(896.,0.,1024.,maxhist); |
| 755 |
b.DrawBox(1280.,0.,1535.,maxhist); |
b.DrawBox(1280.,0.,1535.,maxhist); |
| 756 |
b.DrawBox(1792.,0.,1920.,maxhist); |
b.DrawBox(1664.,0.,1920.,maxhist); |
| 757 |
} |
} |
| 758 |
else if(nn==10){ |
else if(nn==10){ |
| 759 |
b.SetFillColor(107); |
b.SetFillColor(107); |
| 760 |
b.SetFillStyle(3954); |
b.SetFillStyle(3954); |
| 761 |
b.DrawBox(0.,0.,256.,maxhist); |
b.DrawBox(0.,0.,512.,maxhist); |
| 762 |
b.DrawBox(1024.,0.,1152.,maxhist); |
b.DrawBox(1024.,0.,3070.,maxhist); |
|
b.DrawBox(1768.,0.,3070.,maxhist); |
|
| 763 |
} |
} |
| 764 |
else if(nn==11){ |
else if(nn==11){ |
| 765 |
b.SetFillColor(6); |
b.SetFillColor(6); |