Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

SimpleTestStatisticADiff.h

Go to the documentation of this file.
00001 // ================================================
00002 // SimpleTestStatisticAbsDiff class description
00003 // ================================================
00004 //
00005 // THIS TEXT TO BE REPLACED BY ATLAS STANDARD FORMAT
00006 //
00007 // Namespace Atlfast::
00008 //
00009 // class: SimpleTestStatisticAbsDiff
00010 //
00011 // Authors: P.Clarke, H.Phillips, E.Richter-Was, P.Sherwood, R.Steward
00012 //
00013 // Description: 
00014 //
00015 //  Function object to help use of  SimpleTestStatistic with STL calls
00016 #ifndef __Atlfast_SimpleTestStatisticAbsDiff__
00017 #define __Atlfast_SimpleTestStatisticAbsDiff__
00018 #include <string>
00019 #include "AtlfastCode/SimpleTestStatistic.h"
00020 namespace Atlfast {
00024   class SimpleTestStatisticAbsDiff{
00025   public:
00026 
00027     SimpleTestStatisticAbsDiff(SimpleTestStatistic* s) {
00028       m_val =s->val();
00029     }
00030 
00031     bool operator()(const SimpleTestStatistic& s) const{ 
00032       return ( abs(s.val() - m_val) );
00033     }
00034 
00035     bool operator()(const SimpleTestStatistic* s) const{ 
00036       return ( abs(s->val() - m_val) );
00037     }
00038   private:
00039     double m_val;
00040   };
00041 } // end of namespace 
00042 #endif
00043 

Generated on Wed Jan 23 12:58:32 2002 for Atlfast by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001