Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:54:34

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