Ignore:
Timestamp:
09/17/07 16:56:20 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhflux/MMcSpectrumWeight.cc

    r8720 r8746  
    364364        {
    365365            *fLog << err;
    366             *fLog << "ERROR - The maximum simulated Monte Carlo energy is not allowed to change (";
     366            *fLog << "ERROR - The maximum simulated Monte Carlo energy is not allowed to change ";
    367367            *fLog << "(" << fEnergyMax << " --> " << rh.GetEUppLim() << ")... abort." << endl;
    368368            return kFALSE;
     
    392392    fEnergyMax = rh.GetEUppLim();
    393393
    394     if (fNewSlope==-99)
    395     {
    396         *fLog << inf << "A new slope for the power law has not been defined... no weighting applied." << endl;
     394    if (fNewSlope==-99 && fFormula.IsNull())
     395    {
     396        *fLog << inf << "A new slope for the power law has not yet been defined... using " << fOldSlope << "." << endl;
    397397        fNewSlope = fOldSlope;
    398398    }
     
    400400    if (fFunc)
    401401        delete fFunc;
     402
     403    if (GetFormulaSpecOld()==GetFormulaSpecNew())
     404        *fLog << inf << "No spectral change requested..." << endl;
     405    else
     406    {
     407        *fLog << inf << "Weighting from slope " << fOldSlope << " to ";
     408        if (fFormula.IsNull())
     409            *fLog << "slope " << fNewSlope << "." << endl;
     410        else
     411            *fLog << GetFormulaSpecNewX() << endl;
     412    }
    402413
    403414    fFunc = new TF1("", GetFormulaWeightsX());
Note: See TracChangeset for help on using the changeset viewer.