Changeset 4665


Ignore:
Timestamp:
08/17/04 17:32:59 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mjobs/MJCalibration.cc

    r4664 r4665  
    9696#include <TLegend.h>
    9797#include <TPaveText.h>
     98#include <TPaveStats.h>
    9899
    99100#include "MLog.h"
     
    262263
    263264    // 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");
    266267    MHCamera disp3 (geomcam, "RSigma",            "Reduced Sigmas");
    267268    MHCamera disp4 (geomcam, "RSigmaPerCharge",   "Reduced Sigma per Charge");
    268     MHCamera disp5 (geomcam, "NumPhes",           "Number of Phes");
     269    MHCamera disp5 (geomcam, "NumPhes",           "Number Photo-electrons");
    269270    MHCamera disp6 (geomcam, "ConvFADC2Phes",     "Conversion Factor to Phes");
    270     MHCamera disp7 (geomcam, "TotalFFactor",      "Total F-Factor (F-Factor Method)");
     271    MHCamera disp7 (geomcam, "TotalFFactor",      "Total F-Factor(F-Factor Method)");
    271272    MHCamera disp8 (geomcam, "CascadesQEFFactor", "Cascades QE (F-Factor Method)");
    272273    MHCamera disp9 (geomcam, "CascadesQEBlindPix","Cascades QE (Blind Pixel Method)");
     
    367368    disp4.SetYTitle("Red.Sigma/<Q> [1]");
    368369
    369     disp5.SetYTitle("Phes [1]");
     370    disp5.SetYTitle("Photo-electons [1]");
    370371    disp6.SetYTitle("Conv.Factor [PhE/FADC counts]");
    371372    disp7.SetYTitle("Total F-Factor [1]");
     
    479480      TF1 *fun2 = obj2->GetFunction("gaus");
    480481      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();     
    481491      //
    482492      // Set the datacheck sizes:
     
    488498      // Display the outliers as dead and noisy pixels
    489499      //
    490       DisplayOutliers(obj2,"dead","noisy");
     500      DisplayOutliers(obj2,"low-ampl.","high-ampl.");
    491501      TLatex flattex;
    492502      flattex.SetTextSize(0.06);
    493503      const Double_t minl = obj2->GetBinCenter(obj2->GetXaxis()->GetFirst());
    494504      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,
    496506                        Form("Flatfielding precision: %4.2f%%",
    497507                             fun2->GetParameter(2)/fun2->GetParameter(1)*100.));
     
    10601070  TLatex deadtex;
    10611071  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,
    10631073                    Form("%3i %s pixels",(Int_t)dead,whatsmall));
    10641074
    10651075  TLatex noisytex;
    10661076  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,
    10681078                     Form("%3i %s pixels",(Int_t)noisy,whatbig));
    10691079
     
    19271937      inout[i]->Draw();
    19281938      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);
    19311950      //
    19321951      // Display the outliers as dead and noisy pixels
Note: See TracChangeset for help on using the changeset viewer.