Ignore:
Timestamp:
09/08/03 10:58:52 (21 years ago)
Author:
moralejo
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r2282 r2326  
    332332  upperBin = alphaHisto.GetXaxis()->FindBin( signalRegionFactor*gausSigma+gausMean);
    333333
    334   lowerBin = alphaHisto.GetBinLowEdge(lowerBin);
    335   upperBin = alphaHisto.GetBinLowEdge(upperBin)+alphaHisto.GetBinWidth(upperBin);
     334  lowerBin = alphaHisto.GetBinLowEdge((Int_t)lowerBin);
     335  upperBin = alphaHisto.GetBinLowEdge((Int_t)upperBin)+alphaHisto.GetBinWidth((Int_t)upperBin);
    336336 
    337337  sigLiMa = CalcSignificance(nOnInt, nOffInt, 1);
     
    388388
    389389  TF1* po;
     390  po = NULL;
    390391
    391392  if (gausPol) {
     
    642643
    643644  fChiSquareHisto = new TH1D("fChiSquareHisto", "#chi^{2}/d.o.f. of fits", 50, 0, 5);
    644   fSignificanceHisto = new TH1D("fSignificanceHisto", "Significances", 40.5, -0.5, 41);
     645  fSignificanceHisto = new TH1D("fSignificanceHisto", "Significances", 41, -0.5, 40.5);
    645646  fSummedAlphaPlots = new TH1D("fSummedAlphaPlots", "Cumulative Alpha",
    646647                               alphaBins,aetHisto->GetXaxis()->GetBinLowEdge(1),
     
    14901491    fChiSquareHisto = new TH1D("fChiSquareHisto", "#chi^{2}/d.o.f. of fits", 50, 0, 5);
    14911492  if (fSignificanceHisto==0x0)
    1492     fSignificanceHisto = new TH1D("fSignificanceHisto", "Significances", 40.5, -0.5, 41);
     1493    fSignificanceHisto = new TH1D("fSignificanceHisto", "Significances", 41, -0.5, 40.5);
    14931494  if (fSummedAlphaPlots==0x0)
    14941495    fSummedAlphaPlots = new TH1D("fSummedAlphaPlots", "Cumulative Alpha",
Note: See TracChangeset for help on using the changeset viewer.