CLHEP 2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
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
11#include "CLHEP/GenericFunctions/AbsFunction.hh"
12
13namespace Genfun {
14
15 class ACos : public AbsFunction {
16
18
19 public:
20
21 // Constructor
22 ACos();
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)
Definition: AbsFunction.hh:143
virtual double operator()(double argument) const override
Definition: ACos.cc:22
virtual ~ACos()
Definition: ACos.cc:15
virtual bool hasAnalyticDerivative() const override
Definition: ACos.hh:38
Derivative partial(unsigned int) const override
Definition: ACos.cc:37
Definition: Abs.hh:14