Changeset 7408 for trunk


Ignore:
Timestamp:
11/18/05 16:55:22 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7407 r7408  
    1818
    1919                                                 -*-*- END OF LINE -*-*-
     20 2005/11/18 Thomas Bretz
     21
     22   * mhflux/MMcSpectrumWeight.cc:
     23     - fixed a problem with using X more than once in the formula
     24
     25
     26
    2027 2005/11/16 Daniela Dorner
    2128
  • trunk/MagicSoft/Mars/NEWS

    r7397 r7408  
    22
    33 *** Version  <cvs>
     4
     5   - general: Updated some macros with comments:
     6      + macros/optim/optimdisp.C
     7      + macros/optim/optimenergy.C
     8      + macros/optim/optimwobble.C:
     9
     10   - general: MTFillMatrix (the class to fill one or two MHMatrix from
     11     files) now allows adding a pre-cut like in the optimization. E.g. this
     12     is useful to perform g/h-separation cuts before training the random forest.
    413
    514   - general: Updated the random forest classes to support also the
     
    3342   - ganymed/sponde: Calculation of the error of single size-/energy-
    3443     bins now uses Li/Ma (5) instead of LiMa (17)
     44
     45   - sponde: Added a plot E^2*dN/dE
    3546
    3647
  • trunk/MagicSoft/Mars/mhflux/MMcSpectrumWeight.cc

    r7174 r7408  
    6161//
    6262//
     63//  If using SetFormula you can specify formulas accepted by TF1, eg:
     64//      pow(X, -2.6)
     65//  (Rem: all capital (!) 'X' are replaced by the corresponding %s.fEnergy
     66//        automatically)
     67//
     68//
    6369//  Input Containers:
    6470//    MMcEvt
     
    218224TString MMcSpectrumWeight::GetFormulaSpecNew() const
    219225{
    220     return fFormula.IsNull() ? Form("pow(%s.fEnergy, %.3f)", fNameMcEvt.Data(), fNewSlope) : fFormula;
     226    TString str = fFormula.IsNull() ? Form("pow(%s.fEnergy, %.3f)", fNameMcEvt.Data(), fNewSlope) : fFormula;
     227    if (!fFormula.IsNull())
     228        str.ReplaceAll("X", Form("(%s.fEnergy)", fNameMcEvt.Data()));
     229
     230    return str;
    221231}
    222232
Note: See TracChangeset for help on using the changeset viewer.