Ignore:
Timestamp:
04/22/06 13:52:16 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhflux
Files:
2 edited

Legend:

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

    r7386 r7649  
    501501// --------------------------------------------------------------------------
    502502//
     503//  Paint the integral and the error on top of the histogram
     504//
     505void MHAlpha::PaintText(const TH1D &h) const
     506{
     507    Double_t sumv = 0;
     508    Double_t sume = 0;
     509
     510    for (int i=0; i<h.GetNbinsX(); i++)
     511    {
     512        sumv += h.GetBinContent(i+1);
     513        sume += h.GetBinError(i+1);
     514    }
     515    PaintText(sumv, sume);
     516}
     517// --------------------------------------------------------------------------
     518//
    503519// Update the projections
    504520//
     
    578594
    579595    if (o==(TString)"time")
    580         PaintText(fHTime.Integral(), 0);
     596        PaintText(fHTime);//.Integral(), 0);
    581597
    582598    if (o==(TString)"theta")
     
    592608            delete h2;
    593609        }
    594         PaintText(fHTheta.Integral(), 0);
     610        PaintText(fHTheta);//.Integral(), 0);
    595611    }
    596612
     
    607623            delete h2;
    608624        }
     625        PaintText(fHEnergy);//.Integral(), 0);
    609626
    610627        if (fHEnergy.GetMaximum()>1)
  • trunk/MagicSoft/Mars/mhflux/MHAlpha.h

    r7151 r7649  
    7575
    7676    void PaintText(Double_t val, Double_t error) const;
     77    void PaintText(const TH1D &h) const;
    7778
    7879    Int_t DistancetoPrimitive(Int_t px, Int_t py);
Note: See TracChangeset for help on using the changeset viewer.