- Timestamp:
- 11/18/05 16:55:22 (19 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7407 r7408 18 18 19 19 -*-*- 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 20 27 2005/11/16 Daniela Dorner 21 28 -
trunk/MagicSoft/Mars/NEWS
r7397 r7408 2 2 3 3 *** 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. 4 13 5 14 - general: Updated the random forest classes to support also the … … 33 42 - ganymed/sponde: Calculation of the error of single size-/energy- 34 43 bins now uses Li/Ma (5) instead of LiMa (17) 44 45 - sponde: Added a plot E^2*dN/dE 35 46 36 47 -
trunk/MagicSoft/Mars/mhflux/MMcSpectrumWeight.cc
r7174 r7408 61 61 // 62 62 // 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 // 63 69 // Input Containers: 64 70 // MMcEvt … … 218 224 TString MMcSpectrumWeight::GetFormulaSpecNew() const 219 225 { 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; 221 231 } 222 232
Note:
See TracChangeset
for help on using the changeset viewer.