Changeset 8030
- Timestamp:
- 10/09/06 10:28:06 (18 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r8029 r8030 32 32 - fixed a bug which caused the spectra to be normalized at 1GeV 33 33 by default instead of the integral 34 - allow the MC slope to be -1. With the current code this should 35 not be a problem anymore. 34 36 35 37 * mbase/MMath.cc, mbase/MAGIC.cc: -
trunk/MagicSoft/Mars/NEWS
r8027 r8030 162 162 was not using the integral anymore but a normalization energy of 163 163 1GeV. It is now the integral again. 164 165 - sponde: Fixed a problem in the weighting which did not allow 166 a MC slope of -1. 164 167 165 168 -
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.