Ignore:
Timestamp:
10/09/06 10:28:06 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r8027 r8030  
    107107    fNameMcEvt   = "MMcEvt";
    108108
    109     fNewSlope    = -1;
    110     fOldSlope    = -1;
     109    fNewSlope    = -9;
     110    fOldSlope    = -9;
    111111
    112112    fEnergyMin   = -1;
     
    379379    }
    380380
    381     //
    382     // Sanity checks to be sure that we won't divide by zero later on
    383     //
    384     if (rh.GetSlopeSpec()==-1)
    385     {
    386         *fLog << err << "The MC Slope of the power law must be different of -1... exit" << endl;
    387         return kFALSE;
    388     }
    389 
    390381    fOldSlope  = rh.GetSlopeSpec();
    391382    fEnergyMin = rh.GetELowLim();
    392383    fEnergyMax = rh.GetEUppLim();
    393384
    394     if (fNewSlope==-1)
    395     {
    396         *fLog << inf << "The new slope of the power law is -1... no weighting applied." << endl;
     385    if (fNewSlope==-9)
     386    {
     387        *fLog << inf << "The new slope of the power law is undefined (-9)... no weighting applied." << endl;
    397388        fNewSlope = fOldSlope;
    398389    }
    399390
    400391    TString form(GetFormulaWeightsX());
    401 
    402392    if (fFunc)
    403393        delete fFunc;
Note: See TracChangeset for help on using the changeset viewer.