Changeset 4665
- Timestamp:
- 08/17/04 17:32:59 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJCalibration.cc
r4664 r4665 96 96 #include <TLegend.h> 97 97 #include <TPaveText.h> 98 #include <TPaveStats.h> 98 99 99 100 #include "MLog.h" … … 262 263 263 264 // Create histograms to display 264 MHCamera disp1 (geomcam, "Charge", "Fitted Mean Charges");265 MHCamera disp2 (geomcam, "SigmaCharge", "Sigma of Fitted Charges");265 MHCamera disp1 (geomcam, "Charge", "Fitted Mean Signal (Charges)"); 266 MHCamera disp2 (geomcam, "SigmaCharge", "Sigma of Fitted Signal"); 266 267 MHCamera disp3 (geomcam, "RSigma", "Reduced Sigmas"); 267 268 MHCamera disp4 (geomcam, "RSigmaPerCharge", "Reduced Sigma per Charge"); 268 MHCamera disp5 (geomcam, "NumPhes", "Number of Phes");269 MHCamera disp5 (geomcam, "NumPhes", "Number Photo-electrons"); 269 270 MHCamera disp6 (geomcam, "ConvFADC2Phes", "Conversion Factor to Phes"); 270 MHCamera disp7 (geomcam, "TotalFFactor", "Total F-Factor 271 MHCamera disp7 (geomcam, "TotalFFactor", "Total F-Factor(F-Factor Method)"); 271 272 MHCamera disp8 (geomcam, "CascadesQEFFactor", "Cascades QE (F-Factor Method)"); 272 273 MHCamera disp9 (geomcam, "CascadesQEBlindPix","Cascades QE (Blind Pixel Method)"); … … 367 368 disp4.SetYTitle("Red.Sigma/<Q> [1]"); 368 369 369 disp5.SetYTitle("Ph es [1]");370 disp5.SetYTitle("Photo-electons [1]"); 370 371 disp6.SetYTitle("Conv.Factor [PhE/FADC counts]"); 371 372 disp7.SetYTitle("Total F-Factor [1]"); … … 479 480 TF1 *fun2 = obj2->GetFunction("gaus"); 480 481 fun2->SetLineColor(kYellow); 482 gPad->Modified(); 483 gPad->Update(); 484 TPaveStats *st = (TPaveStats*)obj2->GetListOfFunctions()->FindObject("stats"); 485 st->SetY1NDC(0.62); 486 st->SetY2NDC(0.89); 487 st->SetX1NDC(0.65); 488 st->SetX2NDC(0.99); 489 gPad->Modified(); 490 gPad->Update(); 481 491 // 482 492 // Set the datacheck sizes: … … 488 498 // Display the outliers as dead and noisy pixels 489 499 // 490 DisplayOutliers(obj2," dead","noisy");500 DisplayOutliers(obj2,"low-ampl.","high-ampl."); 491 501 TLatex flattex; 492 502 flattex.SetTextSize(0.06); 493 503 const Double_t minl = obj2->GetBinCenter(obj2->GetXaxis()->GetFirst()); 494 504 const Double_t maxl = obj2->GetBinCenter(obj2->GetXaxis()->GetLast()); 495 flattex.DrawLatex(minl+0. 1*(maxl-minl),obj2->GetBinContent(obj2->GetMaximumBin())/1.3,505 flattex.DrawLatex(minl+0.03*(maxl-minl),obj2->GetBinContent(obj2->GetMaximumBin())/1.3, 496 506 Form("Flatfielding precision: %4.2f%%", 497 507 fun2->GetParameter(2)/fun2->GetParameter(1)*100.)); … … 1060 1070 TLatex deadtex; 1061 1071 deadtex.SetTextSize(0.06); 1062 deadtex.DrawLatex(minl+0. 1*(maxl-minl),max/1.1,1072 deadtex.DrawLatex(minl+0.03*(maxl-minl),max/1.1, 1063 1073 Form("%3i %s pixels",(Int_t)dead,whatsmall)); 1064 1074 1065 1075 TLatex noisytex; 1066 1076 noisytex.SetTextSize(0.06); 1067 noisytex.DrawLatex(minl+0. 1*(maxl-minl),max/1.2,1077 noisytex.DrawLatex(minl+0.03*(maxl-minl),max/1.2, 1068 1078 Form("%3i %s pixels",(Int_t)noisy,whatbig)); 1069 1079 … … 1927 1937 inout[i]->Draw(); 1928 1938 inout[i]->Fit("gaus", "Q"); 1929 1930 TLegend *leg2 = new TLegend(0.6,0.5,0.9,0.7); 1939 gPad->Modified(); 1940 gPad->Update(); 1941 TPaveStats *st = (TPaveStats*)inout[i]->GetListOfFunctions()->FindObject("stats"); 1942 st->SetY1NDC(0.62); 1943 st->SetY2NDC(0.9); 1944 st->SetX1NDC(0.5); 1945 st->SetX2NDC(0.99); 1946 gPad->Modified(); 1947 gPad->Update(); 1948 1949 TLegend *leg2 = new TLegend(0.55,0.4,0.99,0.6); 1931 1950 // 1932 1951 // Display the outliers as dead and noisy pixels
Note:
See TracChangeset
for help on using the changeset viewer.