CLHEP
2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
X.hh
Go to the documentation of this file.
1
// -*- C++ -*-
2
// $Id: X.hh,v 1.2 2003/09/06 14:04:13 boudreau Exp $
3
//----------------------X------------ --------------------------------------//
4
// //
5
// Class X_ //
6
// Joe Boudreau, Petar Maksimovic, Nov. 1999 //
7
// //
8
// X_ is a function that returns the variable itself. //
9
//--------------------------------------------------------------------------//
10
#ifndef X__h
11
#define X__h 1
12
#include "CLHEP/GenericFunctions/AbsFunction.hh"
13
namespace
Genfun
{
14
15
/**
16
* @author
17
* @ingroup genfun
18
*/
19
class
X_
:
public
AbsFunction
{
20
21
FUNCTION_OBJECT_DEF
(
X_
)
22
23
public
:
24
25
// Constructor
26
X_
();
27
28
// Copy constructor
29
X_
(
const
X_
&right);
30
31
// Destructor
32
virtual
~X_
();
33
34
// Retrieve function value
35
virtual
double
operator ()
(
double
argument)
const override
;
36
virtual
double
operator ()
(
const
Argument
& a)
const override
{
return
operator()
(a[0]);}
37
38
private
:
39
40
// It is illegal to assign a fixed constant
41
const
X_
& operator=(
const
X_
&right);
42
43
};
44
}
// namespace Genfun
45
#endif
FUNCTION_OBJECT_DEF
#define FUNCTION_OBJECT_DEF(classname)
Definition:
AbsFunction.hh:143
Genfun::AbsFunction
Definition:
AbsFunction.hh:48
Genfun::Argument
Definition:
Argument.hh:17
Genfun::X_
Definition:
X.hh:19
Genfun::X_::~X_
virtual ~X_()
Definition:
X.cc:15
Genfun::X_::operator()
virtual double operator()(double argument) const override
Definition:
X.cc:18
Genfun::X_::X_
X_()
Definition:
X.cc:8
Genfun
Definition:
Abs.hh:14
CLHEP-CLHEP_2_4_6_4
GenericFunctions
GenericFunctions
X.hh
Generated by
1.9.6