Ignore:
Timestamp:
06/02/08 09:52:26 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mdata
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mdata/MDataChain.cc

    r7784 r8907  
    168168#include <stdlib.h>       // strtod, ...
    169169
     170#include <TMath.h>
     171#include <TClass.h>
    170172#include <TRegexp.h>
    171173#include <TRandom.h>
  • trunk/MagicSoft/Mars/mdata/MDataList.cc

    r8073 r8907  
    3131#include "MDataList.h"
    3232
     33#include <math.h>
     34
    3335#include "MLog.h"
    3436#include "MLogManip.h"
  • trunk/MagicSoft/Mars/mdata/MDataPhrase.cc

    r8719 r8907  
    1818!   Author(s): Thomas Bretz, 04/2004 <mailto:tbretz@astro.uni-wuerzburg.de>
    1919!
    20 !   Copyright: MAGIC Software Development, 2000-2006
     20!   Copyright: MAGIC Software Development, 2000-2008
    2121!
    2222!
     
    111111#include "MDataPhrase.h"
    112112
     113#include <TMath.h>
    113114#include <TArrayI.h>
    114115#include <TPRegexp.h>
     
    677678}
    678679
     680// --------------------------------------------------------------------------
     681//
     682// Return the value converted to a Bool_t
     683//
     684Bool_t MDataPhrase::GetBool() const
     685{
     686    return TMath::Nint(GetValue())!=0;
     687}
     688
    679689/*
    680690// --------------------------------------------------------------------------
  • trunk/MagicSoft/Mars/mdata/MDataPhrase.h

    r8704 r8907  
    1616class TFormula;
    1717class MParList;
    18 
    1918
    2019class MDataPhrase : public MData
     
    6059
    6160    // MDataPhrase
    62     Bool_t   GetBool() const { return TMath::Nint(GetValue())!=0; }
     61    Bool_t   GetBool() const;
    6362    Bool_t   SetRule(const TString &phrase);
    6463
Note: See TracChangeset for help on using the changeset viewer.