CLHEP 2.0.4.7 Reference Documentation
CLHEP Home Page CLHEP Documentation CLHEP Bug Reports |
00001 // -*- C++ -*- 00002 // $Id: Sin.hh,v 1.2 2003/09/06 14:04:13 boudreau Exp $ 00003 //---------------------Sin--------------------------------------------------// 00004 // // 00005 // Class Sin // 00006 // Joe Boudreau, Petar Maksimovic, November 1999 // 00007 // // 00008 //--------------------------------------------------------------------------// 00009 #ifndef Sin_h 00010 #define Sin_h 1 00011 #include "CLHEP/GenericFunctions/AbsFunction.hh" 00012 namespace Genfun { 00013 00018 class Sin : public AbsFunction { 00019 00020 FUNCTION_OBJECT_DEF(Sin) 00021 00022 public: 00023 00024 // Constructor 00025 Sin(); 00026 00027 // Destructor 00028 virtual ~Sin(); 00029 00030 // Copy constructor 00031 Sin(const Sin &right); 00032 00033 // Retreive function value 00034 virtual double operator ()(double argument) const; 00035 virtual double operator ()(const Argument & a) const {return operator() (a[0]);} 00036 00037 // Derivative. 00038 Derivative partial (unsigned int) const; 00039 00040 // Does this function have an analytic derivative? 00041 virtual bool hasAnalyticDerivative() const {return true;} 00042 00043 00044 private: 00045 00046 // It is illegal to assign a Sin 00047 const Sin & operator=(const Sin &right); 00048 00049 }; 00050 } // namespace Genfun 00051 00052 #endif