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

#include <XF.h>

+ Inheritance diagram for XF::Product:

Public Member Functions

 Product (const Function *arg1, const Function *arg2)
 
virtual ~Product ()
 
virtual unsigned int dimensionality () const
 
virtual HepGeom::Transform3D operator() (double argument) const
 
virtual HepGeom::Transform3D operator() (const Genfun::Argument &argument) const
 
virtual Productclone () const
 
 Product (const Product &right)
 
- Public Member Functions inherited from XF::Function
 Function ()
 
virtual ~Function ()
 
virtual unsigned int dimensionality () const
 
virtual HepGeom::Transform3D operator() (double argument) const =0
 
virtual HepGeom::Transform3D operator() (const Genfun::Argument &argument) const =0
 
virtual Functionclone () const =0
 
 Function (const Function &right)
 

Detailed Description

Definition at line 139 of file XF.h.

Constructor & Destructor Documentation

◆ Product() [1/2]

XF::Product::Product ( const Function arg1,
const Function arg2 
)

Definition at line 49 of file XF.cc.

50 :_arg1 (arg1->clone ()),
51 _arg2 (arg2->clone ())
52 {
53 if (arg1->dimensionality () != arg2->dimensionality ())
54 {
55 std::cout <<"Warning: dimension mismatch in XF::Product" << std::endl;
56 assert(0);
57 }
58 }

◆ ~Product()

XF::Product::~Product ( )
virtual

Definition at line 74 of file XF.cc.

75 {
76 delete _arg1;
77 delete _arg2;
78 }

◆ Product() [2/2]

XF::Product::Product ( const Product right)

Definition at line 68 of file XF.cc.

68 :Function (),
69 _arg1 (right._arg1->clone ()), _arg2 (right._arg2->clone ())
70 {
71 }
Function()
Definition: XF.cc:15

Member Function Documentation

◆ clone()

Product * XF::Product::clone ( ) const
virtual

Implements XF::Function.

Definition at line 62 of file XF.cc.

63 {
64 return new Product (*this);
65 }
Product(const Function *arg1, const Function *arg2)
Definition: XF.cc:49

◆ dimensionality()

unsigned int XF::Product::dimensionality ( ) const
virtual

Reimplemented from XF::Function.

Definition at line 80 of file XF.cc.

81 {
82 return _arg1->dimensionality ();
83 }
virtual unsigned int dimensionality() const
Definition: XF.cc:38

◆ operator()() [1/2]

HepGeom::Transform3D XF::Product::operator() ( const Genfun::Argument argument) const
virtual

Implements XF::Function.

Definition at line 90 of file XF.cc.

91 {
92 return (*_arg1) (x) * (*_arg2) (x);
93 }

◆ operator()() [2/2]

HepGeom::Transform3D XF::Product::operator() ( double  argument) const
virtual

Implements XF::Function.

Definition at line 85 of file XF.cc.

86 {
87 return (*_arg1) (x) * (*_arg2) (x);
88 }

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