CLHEP 2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
ASin.hh
Go to the documentation of this file.
1// -*- C++ -*-
2// $Id: ASin.hh,v 1.2 2003/09/06 14:04:13 boudreau Exp $
3//---------------------ASin-------------------------------------------------//
4// //
5// Class ASin //
6// Joe Boudreau, Petar Maksimovic, November 1999 //
7// //
8//--------------------------------------------------------------------------//
9#ifndef ASin_h
10#define ASin_h 1
11#include "CLHEP/GenericFunctions/AbsFunction.hh"
12namespace Genfun {
13 class ASin : public AbsFunction {
14
16
17 public:
18
19 // Constructor
20 ASin();
21
22 // Destructor
23 virtual ~ASin();
24
25 // Copy constructor
26 ASin(const ASin &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 ASin
42 const ASin & operator=(const ASin &right);
43
44 };
45} // end namespace Genfun
46
47#endif
#define FUNCTION_OBJECT_DEF(classname)
Definition: AbsFunction.hh:143
virtual bool hasAnalyticDerivative() const override
Definition: ASin.hh:36
Derivative partial(unsigned int) const override
Definition: ASin.cc:38
virtual ~ASin()
Definition: ASin.cc:16
virtual double operator()(double argument) const override
Definition: ASin.cc:23
Definition: Abs.hh:14