Changeset 8746 for trunk/MagicSoft/Mars/mhflux
- Timestamp:
- 09/17/07 16:56:20 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhflux/MMcSpectrumWeight.cc
r8720 r8746 364 364 { 365 365 *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 "; 367 367 *fLog << "(" << fEnergyMax << " --> " << rh.GetEUppLim() << ")... abort." << endl; 368 368 return kFALSE; … … 392 392 fEnergyMax = rh.GetEUppLim(); 393 393 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; 397 397 fNewSlope = fOldSlope; 398 398 } … … 400 400 if (fFunc) 401 401 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 } 402 413 403 414 fFunc = new TF1("", GetFormulaWeightsX());
Note:
See TracChangeset
for help on using the changeset viewer.