Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F19252156
EvtItgAbsFunction.hh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
EvtItgAbsFunction.hh
View Options
/***********************************************************************
* Copyright 1998-2020 CERN for the benefit of the EvtGen authors *
* *
* This file is part of EvtGen. *
* *
* EvtGen is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
* *
* EvtGen is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with EvtGen. If not, see <https://www.gnu.org/licenses/>. *
***********************************************************************/
#ifndef EVTITGABSFUNCTION_HH
#define EVTITGABSFUNCTION_HH
//-------------
// C Headers --
//-------------
extern
"C"
{
}
// Description:
// Abstraction of a generic function for use in integration methods elsewhere
// in this package. (Stolen and modified from the BaBar IntegrationUtils package
// - author: Phil Strother).
class
EvtItgAbsFunction
{
public
:
// Constructors
EvtItgAbsFunction
(
double
lowerRange
,
double
upperRange
);
// Destructor
virtual
~
EvtItgAbsFunction
()
=
default
;
virtual
double
value
(
double
x
)
const
;
virtual
double
operator
()(
double
x
)
const
;
// Selectors (const)
inline
double
upperRange
()
const
{
return
_upperRange
;
}
inline
double
lowerRange
()
const
{
return
_lowerRange
;
}
inline
void
getRange
(
double
&
lower
,
double
&
upper
)
const
{
lower
=
_lowerRange
;
upper
=
_upperRange
;
}
virtual
void
setCoeff
(
int
,
int
,
double
)
=
0
;
virtual
double
getCoeff
(
int
,
int
)
=
0
;
protected
:
virtual
double
myFunction
(
double
x
)
const
=
0
;
void
setRange
(
double
x1
,
double
x2
)
{
_lowerRange
=
x1
;
_upperRange
=
x2
;
};
private
:
double
_upperRange
;
double
_lowerRange
;
};
#endif
// EVTITGABSFUNCTION_HH
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Tue, Sep 30, 6:14 AM (1 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6540676
Default Alt Text
EvtItgAbsFunction.hh (2 KB)
Attached To
Mode
rEVTGEN evtgen
Attached
Detach File
Event Timeline
Log In to Comment