Changeset 5973


Ignore:
Timestamp:
01/24/05 17:12:43 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r5968 r5973  
    5353     - removed old obsolete unsused Significance functions
    5454     - implemented ReadEnv member function
     55     - set false source binning only if BinningFalseSource is not default
     56     - check parlist for BinningAlpha
    5557
    5658   * mjobs/MJCalibrateSignal.cc, mjobs/MJCalibration.cc,
     
    6163   * mjobs/MJob.h:
    6264     - 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
    6379
    6480 2005/01/24 Markus Gaug
  • trunk/MagicSoft/Mars/mhflux/MHAlpha.cc

    r5901 r5973  
    569569            // Check whether we are dealing with on-off analysis
    570570            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();
    582579        }
    583580
Note: See TracChangeset for help on using the changeset viewer.