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

ACos.hh

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

Generated on 15 Nov 2012 for CLHEP by  doxygen 1.4.7