Changeset 6283
- Timestamp:
- 02/07/05 18:17:35 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r6282 r6283 71 71 72 72 * mjobs/MJOptimize.[h,cc], mjobs/MSequences.[h,cc], 73 mjobs/MJCut.[h,cc], ganymed.[cc,rc] :73 mjobs/MJCut.[h,cc], ganymed.[cc,rc], mhflux/MHEnergyEst.[h,cc]: 74 74 - added to repository, but not yet to Makefile because 75 75 there is still some work to be done. But whoever is 76 76 interested in the new classes/program may already use it. 77 78 * mhflux/MAlphaFitter.[h,cc]: 79 - added option to choose the minimization value 80 81 * mhflux/MHAlpha.cc: 82 - replaced significance by minimization value 83 84 * mhflux/MHEffectiveOnTime.cc: 85 - use E-Option when fitting to improve error calculation 86 by using Minos technique 77 87 78 88 -
trunk/MagicSoft/Mars/mhflux/MAlphaFitter.h
r5971 r6283 28 28 kUserScale 29 29 }; 30 enum Strategy_t { 31 kSignificance, 32 kSignificanceChi2 33 }; 30 34 private: 31 35 Float_t fSigInt; … … 54 58 Double_t fScaleUser; 55 59 60 Strategy_t fStrategy; 61 56 62 public: 57 63 // Implementing the function yourself is only about 5% faster 58 MAlphaFitter(const char *name=0, const char *title=0) : fSigInt(15), fSigMax(75), fBgMin(45), fBgMax(85), fScaleMin(40), fScaleMax(80), fPolynomOrder(2), fCoefficients(3+fPolynomOrder+1), fFunc(new TF1("", Form("gaus(0) + pol%d(3)", fPolynomOrder), 0, 90)), fScaleMode(kOffRegion), fScaleUser(1) 64 MAlphaFitter(const char *name=0, const char *title=0) : fSigInt(15), fSigMax(75), fBgMin(45), fBgMax(85), fScaleMin(40), fScaleMax(80), fPolynomOrder(2), fCoefficients(3+fPolynomOrder+1), fFunc(new TF1("", Form("gaus(0) + pol%d(3)", fPolynomOrder), 0, 90)), fScaleMode(kOffRegion), fScaleUser(1), fStrategy(kSignificance) 59 65 { 60 66 fName = name ? name : "MAlphaFitter"; … … 88 94 void SetScaleUser(Float_t scale) { fScaleUser = scale; fScaleMode=kUserScale; } 89 95 void SetScaleMode(ScaleMode_t mode) { fScaleMode = mode; } 96 void SetMinimizationStrategy(Strategy_t mode) { fStrategy = mode; } 90 97 void SetSignalIntegralMax(Float_t s) { fSigInt = s; } 91 98 void SetSignalFitMax(Float_t s) { fSigMax = s; } … … 107 114 Double_t GetChiSqBg() const { return fChiSqBg; } 108 115 Double_t GetScaleFactor() const { return fScaleFactor; } 116 Double_t GetMinimizationValue() const; 109 117 110 118 Double_t GetGausSigma() const { return fCoefficients[2]; } -
trunk/MagicSoft/Mars/mhflux/MHAlpha.cc
r6240 r6283 836 836 fFit.Print("result"); 837 837 838 fResult->SetVal( -fFit.GetSignificance());838 fResult->SetVal(fFit.GetMinimizationValue()); 839 839 840 840 if (!fSkipHistEnergy) -
trunk/MagicSoft/Mars/mhflux/MHEffectiveOnTime.cc
r5620 r6283 329 329 // R use the range specified in the function range 330 330 // Q quiet mode 331 h->Fit(&func, "NIQ ", "", yq[0], yq[1]);331 h->Fit(&func, "NIQE", "", yq[0], yq[1]); 332 332 333 333 const Double_t chi2 = func.GetChisquare();
Note:
See TracChangeset
for help on using the changeset viewer.