Ignore:
Timestamp:
09/02/04 14:32:50 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhist/MHAlpha.cc

    r4826 r4828  
    4343#include <TGraph.h>
    4444#include <TStyle.h>
     45#include <TLatex.h>
    4546#include <TCanvas.h>
    46 #include <TPaveText.h>
    4747#include <TStopwatch.h>
    4848
     
    5858#include "MHMatrix.h"
    5959
     60#include "MMath.h"
    6061#include "MBinning.h"
    6162#include "MParList.h"
     
    220221    func.SetLineColor(kGreen);
    221222    func.Paint("same");
     223
     224    const Double_t w=fHist.GetXaxis()->GetBinWidth(1);
     225
     226    const Double_t s   = func.Integral(0, sigint)/w;
     227    func.SetParameter(0, 0);
     228    func.SetParameter(2, 1);
     229    const Double_t b   = func.Integral(0, sigint)/w;
     230    const Double_t sig = MMath::SignificanceLiMaSigned(s, b);
     231
     232    TLatex text;
     233    text.PaintLatex(35, fHist.GetMaximum()*1.1, 0, 0.05, Form("\\sigma=%.1f E=%d", sig, (int)(s-b)));
    222234}
    223235
Note: See TracChangeset for help on using the changeset viewer.