Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F19243876
EvtItgPtrFunction.cpp
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
EvtItgPtrFunction.cpp
View Options
//--------------------------------------------------------------------------
//
// Copyright Information: See EvtGen/COPYRIGHT
//
// Environment:
// This software is part of the EvtGen package developed jointly
// for the BaBar and CLEO collaborations. If you use all or part
// of it, please give an appropriate acknowledgement.
//
// Module: EvtItgPtrFunction.hh
//
// Description:
// Class describing a function with one vector of coefficients. (Stolen and
// modified from the BaBar IntegrationUtils package - author: Phil Strother).
//
// Modification history:
//
// Jane Tinslay March 21, 2001 Module adapted for use in
// EvtGen
//
//------------------------------------------------------------------------
#include
"EvtGenBase/EvtPatches.hh"
#include
"EvtGenModels/EvtItgPtrFunction.hh"
//-------------
// C Headers --
//-------------
extern
"C"
{
}
//----------------
// Constructors --
//----------------
EvtItgPtrFunction
::
EvtItgPtrFunction
(
double
(
*
theFunction
)(
double
,
const
std
::
vector
<
double
>
&
),
double
lowerRange
,
double
upperRange
,
const
std
::
vector
<
double
>
&
coeffs1
)
:
EvtItgAbsFunction
(
lowerRange
,
upperRange
),
_myFunction
(
theFunction
),
_coeffs1
(
coeffs1
)
{}
//--------------
// Destructor --
//--------------
EvtItgPtrFunction
::~
EvtItgPtrFunction
(
)
{}
double
EvtItgPtrFunction
::
myFunction
(
double
x
)
const
{
return
_myFunction
(
x
,
_coeffs1
);
}
void
EvtItgPtrFunction
::
setCoeff
(
int
vect
,
int
which
,
double
value
)
{
if
(
vect
==
1
)
_coeffs1
[
which
]
=
value
;
}
double
EvtItgPtrFunction
::
getCoeff
(
int
vect
,
int
which
)
{
if
(
vect
==
1
)
return
_coeffs1
[
which
];
else
{
return
0
;}
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Tue, Sep 30, 4:36 AM (2 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6481818
Default Alt Text
EvtItgPtrFunction.cpp (1 KB)
Attached To
Mode
rEVTGEN evtgen
Attached
Detach File
Event Timeline
Log In to Comment