Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F19245008
EvtItgAbsIntegrator.hh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
EvtItgAbsIntegrator.hh
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: EvtItgAbsIntegrator.hh
//
// Description:
// Abstraction of a generic integrator (Stolen and modified from
// the BaBar IntegrationUtils package - author: Phil Strother).
//
// Modification history:
//
// Jane Tinslay March 21, 2001 Module adapted for use in
// EvtGen
//
//------------------------------------------------------------------------
#ifndef EVTITGABSINTEGRATOR_HH
#define EVTITGABSINTEGRATOR_HH
#include
"EvtGenModels/EvtItgAbsFunction.hh"
class
EvtItgAbsIntegrator
{
public
:
EvtItgAbsIntegrator
(
const
EvtItgAbsFunction
&
);
virtual
~
EvtItgAbsIntegrator
(
);
double
evaluate
(
double
lower
,
double
upper
)
const
;
double
normalisation
()
const
;
protected
:
double
trapezoid
(
double
lower
,
double
higher
,
int
n
,
double
&
result
)
const
;
virtual
double
evaluateIt
(
double
lower
,
double
higher
)
const
=
0
;
double
myFunction
(
double
x
)
const
{
return
_myFunction
(
x
);}
private
:
const
EvtItgAbsFunction
&
_myFunction
;
void
boundsCheck
(
double
&
,
double
&
)
const
;
// Note: if your class needs a copy constructor or an assignment operator,
// make one of the following public and implement it.
EvtItgAbsIntegrator
();
EvtItgAbsIntegrator
(
const
EvtItgAbsIntegrator
&
);
// Copy Constructor
EvtItgAbsIntegrator
&
operator
=
(
const
EvtItgAbsIntegrator
&
);
// Assignment op
};
#endif
// EVTITGABSINTEGRATOR_HH
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Tue, Sep 30, 4:47 AM (7 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6470721
Default Alt Text
EvtItgAbsIntegrator.hh (1 KB)
Attached To
Mode
rEVTGEN evtgen
Attached
Detach File
Event Timeline
Log In to Comment