Changeset 9181 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 11/28/08 12:07:19 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJSpectrum.cc
r9067 r9181 879 879 TString MJSpectrum::FormFlux(const TF1 &f, const char *unit) 880 880 { 881 Double_t p0 = f.GetParameter(0);882 Double_t p1 = f.GetParameter(1);883 884 Double_t e0 = f.GetParError(0);885 Double_t e1 = f.GetParError(1);881 Double_t p0 = -f.GetParameter(0); 882 Double_t p1 = f.GetParameter(1); 883 884 Double_t e0 = f.GetParError(0); 885 Double_t e1 = f.GetParError(1); 886 886 887 887 MMath::Format(p0, e0); … … 894 894 FormFloat(p1/exp).Data(), FormFloat(e1/exp).Data(), i); 895 895 896 str += Form("#left(#frac{E}{%s}#right)^{ %s #pm %s}", unit,896 str += Form("#left(#frac{E}{%s}#right)^{-%s #pm %s}", unit, 897 897 FormFloat(p0).Data(), FormFloat(e0).Data()); 898 898 … … 1013 1013 // collection area and cancel out. 1014 1014 //spectrum.Multiply(&weights); 1015 spectrum.SetNameTitle("Flux", "Spectrum (after unfolding)");1015 spectrum.SetNameTitle("Flux", "Spectrum"); 1016 1016 spectrum.SetBit(TH1::kNoStats); 1017 1017 … … 1728 1728 // --------------------------------------------------------- 1729 1729 1730 MFillH fillsp("MHSrcPosCam", "MSrcPosCam", "FillSrcPosCam"); 1730 1731 MFillH fill0a(&henergy, "", "FillEventDist"); 1731 1732 MFillH fill1a("MHHillasMCPre [MHHillas]", "MHillas", "FillHillasPre"); … … 1737 1738 MFillH fill7a("MHNewParMCPost [MHNewImagePar]", "MNewImagePar", "FillNewParPost"); 1738 1739 MFillH fill8a("ExcessMC [MH3]", "", "FillExcessMC"); 1740 fillsp.SetNameTab("SrcPos"); 1739 1741 fill0a.SetNameTab("EvtDist"); 1740 1742 fill1a.SetNameTab("PreCut"); … … 1754 1756 fill7a.SetWeight(); 1755 1757 fill8a.SetWeight(); 1758 fillsp.SetWeight(); 1756 1759 1757 1760 // FIXME: To be done: A task checking the lower 1% after the lower … … 1785 1788 //tlist2.AddToList(&hcalc2); 1786 1789 tlist2.AddToList(&weight); 1790 tlist2.AddToList(&fillsp); 1787 1791 tlist2.AddToList(&fill1a); 1788 1792 tlist2.AddToList(&fill30);
Note:
See TracChangeset
for help on using the changeset viewer.