Changeset 6282 for trunk/MagicSoft/Mars/mhflux
- Timestamp:
- 02/07/05 18:16:48 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhflux/MAlphaFitter.cc
r5971 r6282 140 140 // R use the range specified in the function range 141 141 // Q quiet mode 142 // E Perform better Errors estimation using Minos technique 142 143 h.Fit(fFunc, "NQI", "", bgmin, bgmax); 143 144 … … 175 176 // R use the range specified in the function range 176 177 // Q quiet mode 178 // E Perform better Errors estimation using Minos technique 177 179 h.Fit(fFunc, "NQI", "", 0, sigmax); 178 180 … … 261 263 // R use the range specified in the function range 262 264 // Q quiet mode 265 // E Perform better Errors estimation using Minos technique 263 266 TH1D h(hon); 264 267 h.Add(&hof, -1); … … 317 320 f.fScaleMode = fScaleMode; 318 321 f.fScaleUser = fScaleUser; 322 f.fStrategy = fStrategy; 319 323 f.fCoefficients.Set(fCoefficients.GetSize()); 320 324 f.fCoefficients.Reset(); … … 494 498 } 495 499 500 Double_t MAlphaFitter::GetMinimizationValue() const 501 { 502 switch (fStrategy) 503 { 504 case kSignificance: 505 return -GetSignificance(); 506 case kSignificanceChi2: 507 return -GetSignificance()/GetChiSqSignal(); 508 } 509 return 0; 510 } 511 496 512 Int_t MAlphaFitter::ReadEnv(const TEnv &env, TString prefix, Bool_t print) 497 513 { … … 537 553 } 538 554 539 return rc; 540 } 555 if (IsEnvDefined(env, prefix, "MinimizationStrategy", print)) 556 { 557 TString txt = GetEnvValue(env, prefix, "MinimizationStrategy", ""); 558 txt = txt.Strip(TString::kBoth); 559 txt.ToLower(); 560 if (txt==(TString)"Significance") 561 fStrategy = kSignificance; 562 if (txt==(TString)"SignificanceChi2") 563 fStrategy = kSignificanceChi2; 564 rc = kTRUE; 565 } 566 567 return rc; 568 }
Note:
See TracChangeset
for help on using the changeset viewer.