CLHEP 2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
ATan.hh
Go to the documentation of this file.
1// -*- C++ -*-
2// $Id: ATan.hh,v 1.2 2003/09/06 14:04:13 boudreau Exp $
3//---------------------ATan-------------------------------------------------//
4// //
5// Class ATan //
6// Joe Boudreau, Petar Maksimovic, November 1999 //
7// //
8//--------------------------------------------------------------------------//
9#ifndef ATan_h
10#define ATan_h 1
11#include "CLHEP/GenericFunctions/AbsFunction.hh"
12namespace Genfun {
13 class ATan : public AbsFunction {
14
16
17 public:
18
19 // Constructor
20 ATan();
21
22 // Destructor
23 virtual ~ATan();
24
25 // Copy constructor
26 ATan(const ATan &right);
27
28 // Retreive function value
29 virtual double operator ()(double argument) const override;
30 virtual double operator ()(const Argument & a) const override {return operator() (a[0]);}
31
32 // Derivative.
33 Derivative partial (unsigned int) const override;
34
35 // Does this function have an analytic derivative?
36 virtual bool hasAnalyticDerivative() const override {return true;}
37
38
39 private:
40
41 // It is illegal to assign a ATan
42 const ATan & operator=(const ATan &right);
43
44 };
45} // end namespace Genfun
46
47#endif
#define FUNCTION_OBJECT_DEF(classname)
Definition: AbsFunction.hh:143
Derivative partial(unsigned int) const override
Definition: ATan.cc:36
virtual bool hasAnalyticDerivative() const override
Definition: ATan.hh:36
virtual ~ATan()
Definition: ATan.cc:14
virtual double operator()(double argument) const override
Definition: ATan.cc:21
Definition: Abs.hh:14