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