Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:03:24

0001 // -*- C++ -*-
0002 // $Id: ACos.hh,v 1.2 2003/09/06 14:04:13 boudreau Exp $
0003 //---------------------ACos-------------------------------------------------//
0004 //                                                                          //
0005 // Class ACos                                                               //
0006 // Joe Boudreau, Petar Maksimovic, November 1999                            //
0007 //                                                                          //
0008 //--------------------------------------------------------------------------//
0009 #ifndef ACos_h
0010 #define ACos_h 1
0011 #include "CLHEP/GenericFunctions/AbsFunction.hh"
0012 
0013 namespace Genfun {
0014 
0015   class ACos : public AbsFunction  {
0016 
0017     FUNCTION_OBJECT_DEF(ACos)
0018 
0019       public:
0020 
0021     // Constructor
0022     ACos();
0023 
0024     // Destructor
0025     virtual ~ACos();
0026   
0027     // Copy constructor
0028     ACos(const ACos &right);
0029   
0030     // Retreive function value
0031     virtual double operator ()(double argument) const override;
0032     virtual double operator ()(const Argument & a) const override {return operator() (a[0]);}
0033 
0034     // Derivative.  
0035     Derivative partial (unsigned int) const override;
0036 
0037     // Does this function have an analytic derivative?
0038     virtual bool hasAnalyticDerivative() const override {return true;}
0039   
0040   private:
0041 
0042     // It is illegal to assign a ACosine
0043     const ACos & operator=(const ACos &right);
0044 
0045   };
0046 
0047 } // end namespace Genfun
0048 
0049 #endif