Changeset 2326


Ignore:
Timestamp:
09/08/03 10:58:52 (21 years ago)
Author:
moralejo
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r2325 r2326  
    11                                                 -*-*- END OF LINE -*-*-
     2
     3 2003/09/08: Abelardo Moralejo
     4   * mhist/MHOnSubtraction.cc:
     5     - added some casts in the arguments of function calls, to get rid
     6       of compilation warnings due to mismatch of variable type
     7       (variables: lowerBin, upperBin). Corrected order of arguments in
     8       TH1D constructor of fSignificanceHist (number of bins and bin
     9       limits).
     10   * mraw/MRawEvtHeader.cc:
     11     - Added casts to arguments of fTime->SetTime(h, m, s, ns) to get
     12       rid of compilation warnings.
    213
    314 2003/09/07: Abelardo Moralejo
  • 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",
  • trunk/MagicSoft/Mars/mraw/MRawEvtHeader.cc

    r2265 r2326  
    252252    const Double_t h   = (Byte_t)(t/3600e9);
    253253
    254     fTime->SetTime(h, m, s, ns);
     254    fTime->SetTime((Byte_t)h, (Byte_t)m, (Byte_t)s, (UShort_t)ns);
    255255    fTime->SetTime(fAbsTime[0], fAbsTime[1]);
    256256
Note: See TracChangeset for help on using the changeset viewer.