|
Gaudi Framework, version v21r7 |
| Home | Generated: 22 Jan 2010 |
00001 // $Id: Constant.cpp,v 1.1 2003/11/19 16:55:59 mato Exp $ 00002 // ============================================================================ 00003 // Include files 00004 // local 00005 #include "GaudiMath/Constant.h" 00006 00014 namespace Genfun 00015 { 00016 namespace GaudiMathImplementation 00017 { 00018 // ======================================================================== 00020 // ======================================================================== 00021 FUNCTION_OBJECT_IMP( Constant ); 00022 // ======================================================================== 00023 00024 // ======================================================================== 00029 // ======================================================================== 00030 Constant::Constant 00031 ( const double value , 00032 const size_t dim ) 00033 : AbsFunction () 00034 , m_value ( value ) 00035 , m_DIM ( dim ) 00036 {}; 00037 // ======================================================================== 00038 00039 // ======================================================================== 00041 // ======================================================================== 00042 Constant::Constant 00043 ( const Constant& right ) 00044 : AbsFunction() 00045 , m_value ( right.m_value ) 00046 , m_DIM ( right.m_DIM ) 00047 {}; 00048 // ======================================================================== 00049 00050 // ======================================================================== 00052 // ======================================================================== 00053 Constant::~Constant(){} 00054 // ======================================================================== 00055 00056 // ======================================================================== 00058 // ======================================================================== 00059 Derivative Constant::partial ( unsigned int /* index */ ) const 00060 { 00061 const AbsFunction& aux = Constant( 0.0 , m_DIM ); 00062 return FunctionNoop( &aux ); 00063 }; 00064 // ======================================================================== 00065 00066 00067 }; // end of namespace GaudiMathImplementation 00068 00069 }; // end of namespace Genfun (due to CLHEP) 00070 00071 // ============================================================================ 00072 // The END 00073 // ============================================================================