Changeset 2327 for trunk/MagicSoft


Ignore:
Timestamp:
09/08/03 16:09:06 (21 years ago)
Author:
moralejo
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r2326 r2327  
    1111     - Added casts to arguments of fTime->SetTime(h, m, s, ns) to get
    1212       rid of compilation warnings.
     13
     14   * mhist/MHCamera.cc:
     15     - Changed calls to abs and fabs by TMath::Abs. At least in RH7.2
     16       with gcc2.96, abs() was not recognized.
    1317
    1418 2003/09/07: Abelardo Moralejo
  • trunk/MagicSoft/Mars/mhist/MHCamera.cc

    r2298 r2327  
    7171#include "MImgCleanStd.h"
    7272
     73
    7374#define kItemsLegend 48 // see SetPalette(1,0)
    7475
     
    676677        for (Int_t idx=0; idx<fNcells-2; idx++)
    677678            if (d.GetBinContent(idx+1)!=0)
    678                 Fill(idx, fabs(d.GetBinError(idx+1)/d.GetBinContent(idx+1)));
     679                Fill(idx, TMath::Abs(d.GetBinError(idx+1)/d.GetBinContent(idx+1)));
    679680        break;
    680681    default:
     
    896897    const Float_t step   = (islog && min>0 ? log10(max/min) : max-min) / kItemsLegend;
    897898    const Int_t   firsts = step*3 < 1e-8 ? 8 : (Int_t)floor(log10(step*3));
    898     const TString opt    = Form("%%.%if", firsts>0 ? 0 : abs(firsts));
     899    const TString opt    = Form("%%.%if", firsts>0 ? 0 : TMath::Abs(firsts));
    899900
    900901    for (Int_t i=0; i<kItemsLegend+1; i+=3)
Note: See TracChangeset for help on using the changeset viewer.