Changeset 6831


Ignore:
Timestamp:
03/16/05 14:00:04 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r6828 r6831  
    3232     - removed obsolete flag for ModifiedExtractWin
    3333
     34   * mdata/MDataChain.cc:
     35     - fixe to allow sign after e (eg. 1e-3, 1e+5 instead of 1e3, 1e5)
    3436
    3537   * mcalib/MCalibColorSet.cc, mcalib/MCalibrationChargeCalc.cc,
  • trunk/MagicSoft/Mars/mdata/MDataChain.cc

    r6572 r6831  
    399399void MDataChain::AddParenthesis(TString &test, const TString op) const
    400400{
     401    // Signiture of an exponential number 1e12
     402    static const TRegexp rexp("[.0123456789]e[+-][0123456789]");
     403
    401404    const TString low = op(1, op.Length());
    402405    if (low.Length()==0)
     
    425428            if (cnt>0 || low.First(check[i])<0)
    426429                continue;
     430
     431            // Check if operator belongs to an exponential number
     432            const TString sub(check(i-2, 4));
     433            if (!sub(rexp).IsNull())
     434                continue;
    427435            break;
    428436        }
     
    437445                cnt--;
    438446            if (cnt>0 || low.First(check[j])<0)
     447                continue;
     448
     449            // Check if operator belongs to an exponential number
     450            const TString sub(check(j-2, 4));
     451            if (!sub(rexp).IsNull())
    439452                continue;
    440453            break;
Note: See TracChangeset for help on using the changeset viewer.