CLHEP VERSION Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

Cos.hh

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

Generated on 15 Nov 2012 for CLHEP by  doxygen 1.4.7