Changeset 8030 for trunk/MagicSoft/Mars/mhflux/MMcSpectrumWeight.cc
- Timestamp:
- 10/09/06 10:28:06 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhflux/MMcSpectrumWeight.cc
r8027 r8030 107 107 fNameMcEvt = "MMcEvt"; 108 108 109 fNewSlope = - 1;110 fOldSlope = - 1;109 fNewSlope = -9; 110 fOldSlope = -9; 111 111 112 112 fEnergyMin = -1; … … 379 379 } 380 380 381 //382 // Sanity checks to be sure that we won't divide by zero later on383 //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 390 381 fOldSlope = rh.GetSlopeSpec(); 391 382 fEnergyMin = rh.GetELowLim(); 392 383 fEnergyMax = rh.GetEUppLim(); 393 384 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; 397 388 fNewSlope = fOldSlope; 398 389 } 399 390 400 391 TString form(GetFormulaWeightsX()); 401 402 392 if (fFunc) 403 393 delete fFunc;
Note:
See TracChangeset
for help on using the changeset viewer.