Changeset 1890


Ignore:
Timestamp:
04/02/03 20:46:38 (21 years ago)
Author:
moralejo
Message:
*** empty log message ***
Location:
trunk/MagicSoft
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r1889 r1890  
    22
    33 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!
    422
    523   * mdata/MDataValue.h
  • trunk/MagicSoft/Mars/mmontecarlo/MMcTriggerRateCalc.cc

    r1880 r1890  
    323323        {
    324324        case kPROTON:
    325           if (fMcCorRunHeader->GetSlopeSpec() != -2.75)
     325          if (floor(-100*fMcCorRunHeader->GetSlopeSpec()+0.5) != 275)
    326326            {
    327327                *fLog << err << dbginf << "Spectrum slope as read from input file (";
     
    333333          break;
    334334        case kHELIUM:
    335           if (fMcCorRunHeader->GetSlopeSpec() != -2.62)
     335          if (floor(-100*fMcCorRunHeader->GetSlopeSpec()+0.5) != 262)
    336336            {
    337337                *fLog << err << dbginf << "Spectrum slope as read from input file (";
    338338                *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;
    340340                return kFALSE;
    341341            }
     
    358358}
    359359
    360 
     360// --------------------------------------------------------------------------
     361//
    361362// Draw rate as a funtion of discriminator threshold.
    362 
     363//
    363364void MMcTriggerRateCalc::Draw()
    364365{
  • trunk/MagicSoft/include-Classes/MMcFormat/MMcTrigHeader.hxx

    r1789 r1890  
    100100    for(i=0;i<CAMERA_PIXELS;i++)
    101101    {
    102       if (fThreshold[i] < 1.e6)
     102      if (fThreshold[i] < 1.e6 && fThreshold[i] > 0.)
    103103      {
    104104        sum += fThreshold[i];
Note: See TracChangeset for help on using the changeset viewer.