Changeset 1890 for trunk/MagicSoft/Mars
- Timestamp:
- 04/02/03 20:46:38 (22 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r1889 r1890 2 2 3 3 2003/04/02: Abelardo Moralejo 4 5 * mmc/MMcTrigHeader.hxx 6 - added threshold>0 check in the calculation of 7 GetMeanThreshold 8 9 * mmontecarlo/MMcTriggerRateCalc.cc 10 - The check of the MC spectral index value is now done by 11 comparing integers instead of real numbers. 12 - Found out with GREAT surprise that the graphical output 13 has been completely commented out by someone(?) because it 14 produced a memory leak. Also the function comment did not 15 match the rules (my fault; is it correct now?) This commenting 16 out has not been logged to this file, as far as I can see. This 17 is rather unkind, I thought that when somebody finds some bug or 18 messy code, he should either correct and commit it (and log the 19 change here) and/or inform the author of the mistake to correct 20 it. Please try to do so in the future instead of simply 21 commenting out useful code! 4 22 5 23 * mdata/MDataValue.h -
trunk/MagicSoft/Mars/mmontecarlo/MMcTriggerRateCalc.cc
r1880 r1890 323 323 { 324 324 case kPROTON: 325 if (f McCorRunHeader->GetSlopeSpec() != -2.75)325 if (floor(-100*fMcCorRunHeader->GetSlopeSpec()+0.5) != 275) 326 326 { 327 327 *fLog << err << dbginf << "Spectrum slope as read from input file ("; … … 333 333 break; 334 334 case kHELIUM: 335 if (f McCorRunHeader->GetSlopeSpec() != -2.62)335 if (floor(-100*fMcCorRunHeader->GetSlopeSpec()+0.5) != 262) 336 336 { 337 337 *fLog << err << dbginf << "Spectrum slope as read from input file ("; 338 338 *fLog << fMcCorRunHeader->GetSlopeSpec() << ") does not match the expected "; 339 *fLog << "one (-2. 75) for Helium" << endl << "... aborting." << endl;339 *fLog << "one (-2.62) for Helium" << endl << "... aborting." << endl; 340 340 return kFALSE; 341 341 } … … 358 358 } 359 359 360 360 // -------------------------------------------------------------------------- 361 // 361 362 // Draw rate as a funtion of discriminator threshold. 362 363 // 363 364 void MMcTriggerRateCalc::Draw() 364 365 {
Note:
See TracChangeset
for help on using the changeset viewer.