Changeset 5973 for trunk/MagicSoft
- Timestamp:
- 01/24/05 17:12:43 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r5968 r5973 53 53 - removed old obsolete unsused Significance functions 54 54 - implemented ReadEnv member function 55 - set false source binning only if BinningFalseSource is not default 56 - check parlist for BinningAlpha 55 57 56 58 * mjobs/MJCalibrateSignal.cc, mjobs/MJCalibration.cc, … … 61 63 * mjobs/MJob.h: 62 64 - added some Getter 65 66 * mhbase/MBinning.[h,cc]. 67 - added nen member functions 68 + SetEdgesRaw 69 + ReadEnv 70 + Print 71 72 * mhflux/MAlphaFitter.[h,cc]: 73 - added new member function ReadEnv 74 75 * mhflux/MHAlpha.cc: 76 - fixed a problem when fitting without off-data 77 78 63 79 64 80 2005/01/24 Markus Gaug -
trunk/MagicSoft/Mars/mhflux/MHAlpha.cc
r5901 r5973 569 569 // Check whether we are dealing with on-off analysis 570 570 TH1D *hoff = (TH1D*)gPad->FindObject("ProjAlphaOff"); 571 if (hoff) 572 { 573 // Do not store the 'final' result in fFit 574 MAlphaFitter fit(fFit); 575 576 // BE CARFEULL: This is a really weird workaround! 577 const Double_t alpha = hoff->GetMaximum(); 578 fit.Fit(*h0, hoff, alpha<0 ? 1: alpha, kTRUE); 579 580 fit.PaintResult(); 581 } 571 572 // BE CARFEULL: This is a really weird workaround! 573 const Double_t scale = !hoff || hoff->GetMaximum()<0 ? 1 : hoff->GetMaximum(); 574 575 // Do not store the 'final' result in fFit 576 MAlphaFitter fit(fFit); 577 fit.Fit(*h0, hoff, scale, kTRUE); 578 fit.PaintResult(); 582 579 } 583 580
Note:
See TracChangeset
for help on using the changeset viewer.