CLHEP 2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
Genfun::Theta Class Reference

#include <Theta.hh>

+ Inheritance diagram for Genfun::Theta:

Public Member Functions

 Theta ()
 
virtual ~Theta ()
 
 Theta (const Theta &right)
 
virtual double operator() (double argument) const override
 
virtual double operator() (const Argument &a) const override
 
Derivative partial (unsigned int) const override
 
virtual bool hasAnalyticDerivative () const override
 
- Public Member Functions inherited from Genfun::AbsFunction
 AbsFunction ()
 
 AbsFunction (const AbsFunction &right)
 
virtual ~AbsFunction ()
 
virtual unsigned int dimensionality () const
 
virtual double operator() (double argument) const =0
 
virtual double operator() (const Argument &argument) const =0
 
virtual AbsFunctionclone () const =0
 
virtual FunctionComposition operator() (const AbsFunction &f) const
 
virtual ParameterComposition operator() (const AbsParameter &p) const
 
Derivative derivative (const Variable &v) const
 
Derivative prime () const
 
virtual bool hasAnalyticDerivative () const
 
virtual Derivative partial (unsigned int) const
 

Detailed Description

Author

Definition at line 18 of file Theta.hh.

Constructor & Destructor Documentation

◆ Theta() [1/2]

Genfun::Theta::Theta ( )

Definition at line 9 of file Theta.cc.

10{}

◆ ~Theta()

Genfun::Theta::~Theta ( )
virtual

Definition at line 12 of file Theta.cc.

12 {
13}

◆ Theta() [2/2]

Genfun::Theta::Theta ( const Theta right)

Definition at line 15 of file Theta.cc.

15 : AbsFunction(right)
16{ }

Member Function Documentation

◆ hasAnalyticDerivative()

virtual bool Genfun::Theta::hasAnalyticDerivative ( ) const
inlineoverridevirtual

Reimplemented from Genfun::AbsFunction.

Definition at line 41 of file Theta.hh.

41{return true;}

◆ operator()() [1/2]

virtual double Genfun::Theta::operator() ( const Argument a) const
inlineoverridevirtual

Implements Genfun::AbsFunction.

Definition at line 35 of file Theta.hh.

35{return operator() (a[0]);}
virtual double operator()(double argument) const override
Definition: Theta.cc:19

◆ operator()() [2/2]

double Genfun::Theta::operator() ( double  argument) const
overridevirtual

Implements Genfun::AbsFunction.

Definition at line 19 of file Theta.cc.

19 {
20 return (x>=0) ? 1.0:0.0;
21}

Referenced by operator()().

◆ partial()

Derivative Genfun::Theta::partial ( unsigned int  index) const
overridevirtual

Reimplemented from Genfun::AbsFunction.

Definition at line 25 of file Theta.cc.

25 {
26 if (index!=0) throw std::runtime_error("Theta::Partial: index out of range");
27 const AbsFunction & fPrime = FixedConstant(0.0);
28 return Derivative(& fPrime);
29}
FunctionNoop Derivative
Definition: AbsFunction.hh:42

The documentation for this class was generated from the following files: