Changeset 6797


Ignore:
Timestamp:
03/09/05 11:35:32 (20 years ago)
Author:
hengsteb
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r6792 r6797  
    2121
    2222                                                 -*-*- END OF LINE -*-*-
     23 2005/03/09 Thomas Hengstebeck
     24
     25   * mranforest/MRFEnergyEst.cc
     26     - changed call of min, max functions to TMath::Min() and
     27       TMath::Max() to avoid compilation problems with some gcc
     28       versions
     29     - changed check of energy rule (last col of MHMatrix) so, that
     30       any rule containing "fEnergy" is accepted.
     31
     32
    2333 2005/03/08 Markus Gaug
    2434
  • trunk/MagicSoft/Mars/mranforest/MRFEnergyEst.cc

    r6540 r6797  
    6161#include "TStyle.h"
    6262#include "TCanvas.h"
     63#include "TMath.h"
    6364#include "TVector.h"
    6465
     
    134135    }
    135136
    136     if(energy_rule.CompareTo("MMcEvt.fEnergy"))
     137    if(!energy_rule.Contains("fEnergy"))
    137138    {
    138139        *fLog << err << dbginf << "Can not accept "<<energy_rule<<" as true energy ... aborting." << endl;
     
    275276    for(Int_t j=0;j<nbins;j++)
    276277    {
    277         e_low = min(atof((fEForests[j])->GetTitle()),e_low);
    278         e_up  = max(atof((fEForests[j])->GetTitle()),e_up);
     278        e_low = TMath::Min(atof((fEForests[j])->GetTitle()),e_low);
     279        e_up  = TMath::Max(atof((fEForests[j])->GetTitle()),e_up);
    279280    }
    280281
Note: See TracChangeset for help on using the changeset viewer.