Changeset 4828 for trunk/MagicSoft/Mars/mhist
- Timestamp:
- 09/02/04 14:32:50 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHAlpha.cc
r4826 r4828 43 43 #include <TGraph.h> 44 44 #include <TStyle.h> 45 #include <TLatex.h> 45 46 #include <TCanvas.h> 46 #include <TPaveText.h>47 47 #include <TStopwatch.h> 48 48 … … 58 58 #include "MHMatrix.h" 59 59 60 #include "MMath.h" 60 61 #include "MBinning.h" 61 62 #include "MParList.h" … … 220 221 func.SetLineColor(kGreen); 221 222 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))); 222 234 } 223 235
Note:
See TracChangeset
for help on using the changeset viewer.