#include <PhysicsTools/Utilities/interface/NumericalIntegration.h>
Public Member Functions | |
template<typename F> | |
double | operator() (const F &f, double a, double b) const |
RootIntegrator & | operator= (const RootIntegrator &o) |
RootIntegrator (const RootIntegrator &o) | |
RootIntegrator (ROOT::Math::IntegrationOneDim::Type type=ROOT::Math::IntegrationOneDim::ADAPTIVE, double absTol=1e-9, double relTol=1e-6, unsigned int size=1000, unsigned int rule=3) | |
Private Attributes | |
double | absTol_ |
std::auto_ptr < ROOT::Math::Integrator > | integrator_ |
double | relTol_ |
unsigned int | rule_ |
unsigned int | size_ |
ROOT::Math::IntegrationOneDim::Type | type_ |
Definition at line 121 of file NumericalIntegration.h.
funct::RootIntegrator::RootIntegrator | ( | ROOT::Math::IntegrationOneDim::Type | type = ROOT::Math::IntegrationOneDim::ADAPTIVE , |
|
double | absTol = 1e-9 , |
|||
double | relTol = 1e-6 , |
|||
unsigned int | size = 1000 , |
|||
unsigned int | rule = 3 | |||
) | [inline] |
Definition at line 122 of file NumericalIntegration.h.
00123 : 00124 type_(type), absTol_(absTol), relTol_(relTol), size_(size), rule_(rule), 00125 integrator_(new ROOT::Math::Integrator(type, absTol, relTol, size, rule)) { } RootIntegrator(const RootIntegrator & o) {
funct::RootIntegrator::RootIntegrator | ( | const RootIntegrator & | o | ) | [inline] |
Definition at line 126 of file NumericalIntegration.h.
References absTol_, integrator_, relTol_, rule_, size_, and type_.
00126 { 00127 type_ = o.type_; 00128 absTol_ = o.absTol_; relTol_ = o.relTol_; 00129 size_ = o.size_; rule_ = o.rule_; 00130 integrator_.reset(new ROOT::Math::Integrator(type_, absTol_, relTol_, size_, rule_)); 00131 }
double funct::RootIntegrator::operator() | ( | const F & | f, | |
double | a, | |||
double | b | |||
) | const [inline] |
Definition at line 140 of file NumericalIntegration.h.
References integrator_, and wrapper.
00140 { 00141 ROOT::Math::Functor1D wrapper(&f, &F::operator()); 00142 integrator_->SetFunction(wrapper); 00143 return integrator_->Integral(a, b); 00144 }
RootIntegrator& funct::RootIntegrator::operator= | ( | const RootIntegrator & | o | ) | [inline] |
Definition at line 132 of file NumericalIntegration.h.
References absTol_, integrator_, relTol_, rule_, size_, and type_.
00132 { 00133 type_ = o.type_; 00134 absTol_ = o.absTol_; relTol_ = o.relTol_; 00135 size_ = o.size_; rule_ = o.rule_; 00136 integrator_.reset(new ROOT::Math::Integrator(type_, absTol_, relTol_, size_, rule_)); 00137 return * this; 00138 }
double funct::RootIntegrator::absTol_ [private] |
Definition at line 147 of file NumericalIntegration.h.
Referenced by operator=(), and RootIntegrator().
std::auto_ptr<ROOT::Math::Integrator> funct::RootIntegrator::integrator_ [mutable, private] |
Definition at line 149 of file NumericalIntegration.h.
Referenced by operator()(), operator=(), and RootIntegrator().
double funct::RootIntegrator::relTol_ [private] |
Definition at line 147 of file NumericalIntegration.h.
Referenced by operator=(), and RootIntegrator().
unsigned int funct::RootIntegrator::rule_ [private] |
Definition at line 148 of file NumericalIntegration.h.
Referenced by operator=(), and RootIntegrator().
unsigned int funct::RootIntegrator::size_ [private] |
Definition at line 148 of file NumericalIntegration.h.
Referenced by operator=(), and RootIntegrator().
ROOT::Math::IntegrationOneDim::Type funct::RootIntegrator::type_ [private] |
Definition at line 146 of file NumericalIntegration.h.
Referenced by operator=(), and RootIntegrator().