- Timestamp:
- 04/22/06 13:52:16 (19 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7648 r7649 23 23 * mraw/MRawRunHeader.cc: 24 24 - some small changes, mainly output and comments 25 26 * mhflux/MHAlpha.[h,cc]: 27 - show also the integrated number of excess events in the 28 plot versus energy/size and show the correct error. 25 29 26 30 -
trunk/MagicSoft/Mars/mhflux/MHAlpha.cc
r7386 r7649 501 501 // -------------------------------------------------------------------------- 502 502 // 503 // Paint the integral and the error on top of the histogram 504 // 505 void 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 // 503 519 // Update the projections 504 520 // … … 578 594 579 595 if (o==(TString)"time") 580 PaintText(fHTime .Integral(), 0);596 PaintText(fHTime);//.Integral(), 0); 581 597 582 598 if (o==(TString)"theta") … … 592 608 delete h2; 593 609 } 594 PaintText(fHTheta .Integral(), 0);610 PaintText(fHTheta);//.Integral(), 0); 595 611 } 596 612 … … 607 623 delete h2; 608 624 } 625 PaintText(fHEnergy);//.Integral(), 0); 609 626 610 627 if (fHEnergy.GetMaximum()>1) -
trunk/MagicSoft/Mars/mhflux/MHAlpha.h
r7151 r7649 75 75 76 76 void PaintText(Double_t val, Double_t error) const; 77 void PaintText(const TH1D &h) const; 77 78 78 79 Int_t DistancetoPrimitive(Int_t px, Int_t py);
Note:
See TracChangeset
for help on using the changeset viewer.