CLHEP VERSION Reference Documentation
CLHEP Home Page CLHEP Documentation CLHEP Bug Reports |
00001 // -*- C++ -*- 00002 // $Id: 00003 //---------------------Theta------------------------------------------------// 00004 // // 00005 // Class Theta // 00006 // Joe Boudreau, Petar Maksimovic, November 1999 // 00007 // // 00008 //--------------------------------------------------------------------------// 00009 #ifndef Theta_h 00010 #define Theta_h 1 00011 #include "CLHEP/GenericFunctions/AbsFunction.hh" 00012 namespace Genfun { 00013 00018 class Theta : public AbsFunction { 00019 00020 FUNCTION_OBJECT_DEF(Theta) 00021 00022 public: 00023 00024 // Constructor 00025 Theta(); 00026 00027 // Destructor 00028 virtual ~Theta(); 00029 00030 // Copy constructor 00031 Theta(const Theta &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 Theta 00047 const Theta & operator=(const Theta &right); 00048 00049 }; 00050 } // namespace Genfun 00051 00052 #endif