switched TGapIntegrals from raw -> smart pointers.
This commit is contained in:
parent
9524e7201c
commit
cfccb30eb8
231
src/external/libGapIntegrals/TGapIntegrals.cpp
vendored
231
src/external/libGapIntegrals/TGapIntegrals.cpp
vendored
@ -72,9 +72,7 @@ ClassImp(TFilmMagnetizationDWave)
|
||||
* <p> s wave gap integral
|
||||
*/
|
||||
TGapSWave::TGapSWave() {
|
||||
TGapIntegral *gapint = new TGapIntegral();
|
||||
fGapIntegral = gapint;
|
||||
gapint = nullptr;
|
||||
fGapIntegral = std::make_unique<TGapIntegral>();
|
||||
|
||||
fTemp.clear();
|
||||
fTempIter = fTemp.end();
|
||||
@ -88,9 +86,7 @@ TGapSWave::TGapSWave() {
|
||||
* <p> point p wave gap integral
|
||||
*/
|
||||
TGapPointPWave::TGapPointPWave() {
|
||||
TPointPWaveGapIntegralCuhre *gapint = new TPointPWaveGapIntegralCuhre();
|
||||
fGapIntegral = gapint;
|
||||
gapint = nullptr;
|
||||
fGapIntegral = std::make_unique<TPointPWaveGapIntegralCuhre>();
|
||||
|
||||
fTemp.clear();
|
||||
fTempIter = fTemp.end();
|
||||
@ -104,9 +100,7 @@ TGapPointPWave::TGapPointPWave() {
|
||||
* <p> line p wave gap integral
|
||||
*/
|
||||
TGapLinePWave::TGapLinePWave() {
|
||||
TLinePWaveGapIntegralCuhre *gapint = new TLinePWaveGapIntegralCuhre();
|
||||
fGapIntegral = gapint;
|
||||
gapint = nullptr;
|
||||
fGapIntegral = std::make_unique<TLinePWaveGapIntegralCuhre>();
|
||||
|
||||
fTemp.clear();
|
||||
fTempIter = fTemp.end();
|
||||
@ -120,9 +114,7 @@ TGapLinePWave::TGapLinePWave() {
|
||||
* <p>
|
||||
*/
|
||||
TGapDWave::TGapDWave() {
|
||||
TDWaveGapIntegralCuhre *gapint = new TDWaveGapIntegralCuhre();
|
||||
fGapIntegral = gapint;
|
||||
gapint = nullptr;
|
||||
fGapIntegral = std::make_unique<TDWaveGapIntegralCuhre>();
|
||||
|
||||
fTemp.clear();
|
||||
fTempIter = fTemp.end();
|
||||
@ -136,9 +128,7 @@ TGapDWave::TGapDWave() {
|
||||
* <p>
|
||||
*/
|
||||
TGapCosSqDWave::TGapCosSqDWave() {
|
||||
TCosSqDWaveGapIntegralCuhre *gapint = new TCosSqDWaveGapIntegralCuhre();
|
||||
fGapIntegral = gapint;
|
||||
gapint = nullptr;
|
||||
fGapIntegral = std::make_unique<TCosSqDWaveGapIntegralCuhre>();
|
||||
|
||||
fTemp.clear();
|
||||
fTempIter = fTemp.end();
|
||||
@ -152,9 +142,7 @@ TGapCosSqDWave::TGapCosSqDWave() {
|
||||
* <p>
|
||||
*/
|
||||
TGapSinSqDWave::TGapSinSqDWave() {
|
||||
TSinSqDWaveGapIntegralCuhre *gapint = new TSinSqDWaveGapIntegralCuhre();
|
||||
fGapIntegral = gapint;
|
||||
gapint = nullptr;
|
||||
fGapIntegral = std::make_unique<TSinSqDWaveGapIntegralCuhre>();
|
||||
|
||||
fTemp.clear();
|
||||
fTempIter = fTemp.end();
|
||||
@ -168,9 +156,7 @@ TGapSinSqDWave::TGapSinSqDWave() {
|
||||
* <p>
|
||||
*/
|
||||
TGapAnSWave::TGapAnSWave() {
|
||||
TAnSWaveGapIntegralCuhre *gapint = new TAnSWaveGapIntegralCuhre();
|
||||
fGapIntegral = gapint;
|
||||
gapint = nullptr;
|
||||
fGapIntegral = std::make_unique<TAnSWaveGapIntegralCuhre>();
|
||||
|
||||
fTemp.clear();
|
||||
fTempIter = fTemp.end();
|
||||
@ -184,9 +170,7 @@ TGapAnSWave::TGapAnSWave() {
|
||||
* <p>
|
||||
*/
|
||||
TGapNonMonDWave1::TGapNonMonDWave1() {
|
||||
TNonMonDWave1GapIntegralCuhre *gapint = new TNonMonDWave1GapIntegralCuhre();
|
||||
fGapIntegral = gapint;
|
||||
gapint = nullptr;
|
||||
fGapIntegral = std::make_unique<TNonMonDWave1GapIntegralCuhre>();
|
||||
|
||||
fTemp.clear();
|
||||
fTempIter = fTemp.end();
|
||||
@ -200,9 +184,7 @@ TGapNonMonDWave1::TGapNonMonDWave1() {
|
||||
* <p>
|
||||
*/
|
||||
TGapNonMonDWave2::TGapNonMonDWave2() {
|
||||
TNonMonDWave2GapIntegralCuhre *gapint = new TNonMonDWave2GapIntegralCuhre();
|
||||
fGapIntegral = gapint;
|
||||
gapint = nullptr;
|
||||
fGapIntegral = std::make_unique<TNonMonDWave2GapIntegralCuhre>();
|
||||
|
||||
fTemp.clear();
|
||||
fTempIter = fTemp.end();
|
||||
@ -216,7 +198,7 @@ TGapNonMonDWave2::TGapNonMonDWave2() {
|
||||
* <p>
|
||||
*/
|
||||
TLambdaSWave::TLambdaSWave() {
|
||||
fLambdaInvSq = new TGapSWave();
|
||||
fLambdaInvSq = std::make_unique<TGapSWave>();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
@ -224,7 +206,7 @@ TLambdaSWave::TLambdaSWave() {
|
||||
* <p>
|
||||
*/
|
||||
TLambdaPointPWave::TLambdaPointPWave() {
|
||||
fLambdaInvSq = new TGapPointPWave();
|
||||
fLambdaInvSq = std::make_unique<TGapPointPWave>();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
@ -232,7 +214,7 @@ TLambdaPointPWave::TLambdaPointPWave() {
|
||||
* <p>
|
||||
*/
|
||||
TLambdaLinePWave::TLambdaLinePWave() {
|
||||
fLambdaInvSq = new TGapLinePWave();
|
||||
fLambdaInvSq = std::make_unique<TGapLinePWave>();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
@ -240,7 +222,7 @@ TLambdaLinePWave::TLambdaLinePWave() {
|
||||
* <p>
|
||||
*/
|
||||
TLambdaDWave::TLambdaDWave() {
|
||||
fLambdaInvSq = new TGapDWave();
|
||||
fLambdaInvSq = std::make_unique<TGapDWave>();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
@ -248,7 +230,7 @@ TLambdaDWave::TLambdaDWave() {
|
||||
* <p>
|
||||
*/
|
||||
TLambdaAnSWave::TLambdaAnSWave() {
|
||||
fLambdaInvSq = new TGapAnSWave();
|
||||
fLambdaInvSq = std::make_unique<TGapAnSWave>();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
@ -256,7 +238,7 @@ TLambdaAnSWave::TLambdaAnSWave() {
|
||||
* <p>
|
||||
*/
|
||||
TLambdaNonMonDWave1::TLambdaNonMonDWave1() {
|
||||
fLambdaInvSq = new TGapNonMonDWave1();
|
||||
fLambdaInvSq = std::make_unique<TGapNonMonDWave1>();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
@ -264,7 +246,7 @@ TLambdaNonMonDWave1::TLambdaNonMonDWave1() {
|
||||
* <p>
|
||||
*/
|
||||
TLambdaNonMonDWave2::TLambdaNonMonDWave2() {
|
||||
fLambdaInvSq = new TGapNonMonDWave2();
|
||||
fLambdaInvSq = std::make_unique<TGapNonMonDWave2>();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
@ -272,7 +254,7 @@ TLambdaNonMonDWave2::TLambdaNonMonDWave2() {
|
||||
* <p>
|
||||
*/
|
||||
TLambdaInvSWave::TLambdaInvSWave() {
|
||||
fLambdaInvSq = new TGapSWave();
|
||||
fLambdaInvSq = std::make_unique<TGapSWave>();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
@ -280,7 +262,7 @@ TLambdaInvSWave::TLambdaInvSWave() {
|
||||
* <p>
|
||||
*/
|
||||
TLambdaInvPointPWave::TLambdaInvPointPWave() {
|
||||
fLambdaInvSq = new TGapPointPWave();
|
||||
fLambdaInvSq = std::make_unique<TGapPointPWave>();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
@ -288,7 +270,7 @@ TLambdaInvPointPWave::TLambdaInvPointPWave() {
|
||||
* <p>
|
||||
*/
|
||||
TLambdaInvLinePWave::TLambdaInvLinePWave() {
|
||||
fLambdaInvSq = new TGapLinePWave();
|
||||
fLambdaInvSq = std::make_unique<TGapLinePWave>();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
@ -296,7 +278,7 @@ TLambdaInvLinePWave::TLambdaInvLinePWave() {
|
||||
* <p>
|
||||
*/
|
||||
TLambdaInvDWave::TLambdaInvDWave() {
|
||||
fLambdaInvSq = new TGapDWave();
|
||||
fLambdaInvSq = std::make_unique<TGapDWave>();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
@ -304,7 +286,7 @@ TLambdaInvDWave::TLambdaInvDWave() {
|
||||
* <p>
|
||||
*/
|
||||
TLambdaInvAnSWave::TLambdaInvAnSWave() {
|
||||
fLambdaInvSq = new TGapAnSWave();
|
||||
fLambdaInvSq = std::make_unique<TGapAnSWave>();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
@ -312,7 +294,7 @@ TLambdaInvAnSWave::TLambdaInvAnSWave() {
|
||||
* <p>
|
||||
*/
|
||||
TLambdaInvNonMonDWave1::TLambdaInvNonMonDWave1() {
|
||||
fLambdaInvSq = new TGapNonMonDWave1();
|
||||
fLambdaInvSq = std::make_unique<TGapNonMonDWave1>();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
@ -320,7 +302,7 @@ TLambdaInvNonMonDWave1::TLambdaInvNonMonDWave1() {
|
||||
* <p>
|
||||
*/
|
||||
TLambdaInvNonMonDWave2::TLambdaInvNonMonDWave2() {
|
||||
fLambdaInvSq = new TGapNonMonDWave2();
|
||||
fLambdaInvSq = std::make_unique<TGapNonMonDWave2>();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
@ -328,9 +310,6 @@ TLambdaInvNonMonDWave2::TLambdaInvNonMonDWave2() {
|
||||
* <p>
|
||||
*/
|
||||
TGapSWave::~TGapSWave() {
|
||||
delete fGapIntegral;
|
||||
fGapIntegral = nullptr;
|
||||
|
||||
fTemp.clear();
|
||||
fTempIter = fTemp.end();
|
||||
fIntegralValues.clear();
|
||||
@ -343,9 +322,6 @@ TGapSWave::~TGapSWave() {
|
||||
* <p>
|
||||
*/
|
||||
TGapPointPWave::~TGapPointPWave() {
|
||||
delete fGapIntegral;
|
||||
fGapIntegral = nullptr;
|
||||
|
||||
fTemp.clear();
|
||||
fTempIter = fTemp.end();
|
||||
fIntegralValues.clear();
|
||||
@ -358,9 +334,6 @@ TGapPointPWave::~TGapPointPWave() {
|
||||
* <p>
|
||||
*/
|
||||
TGapLinePWave::~TGapLinePWave() {
|
||||
delete fGapIntegral;
|
||||
fGapIntegral = nullptr;
|
||||
|
||||
fTemp.clear();
|
||||
fTempIter = fTemp.end();
|
||||
fIntegralValues.clear();
|
||||
@ -373,9 +346,6 @@ TGapLinePWave::~TGapLinePWave() {
|
||||
* <p>
|
||||
*/
|
||||
TGapDWave::~TGapDWave() {
|
||||
delete fGapIntegral;
|
||||
fGapIntegral = nullptr;
|
||||
|
||||
fTemp.clear();
|
||||
fTempIter = fTemp.end();
|
||||
fIntegralValues.clear();
|
||||
@ -388,9 +358,6 @@ TGapDWave::~TGapDWave() {
|
||||
* <p>
|
||||
*/
|
||||
TGapCosSqDWave::~TGapCosSqDWave() {
|
||||
delete fGapIntegral;
|
||||
fGapIntegral = nullptr;
|
||||
|
||||
fTemp.clear();
|
||||
fTempIter = fTemp.end();
|
||||
fIntegralValues.clear();
|
||||
@ -403,9 +370,6 @@ TGapCosSqDWave::~TGapCosSqDWave() {
|
||||
* <p>
|
||||
*/
|
||||
TGapSinSqDWave::~TGapSinSqDWave() {
|
||||
delete fGapIntegral;
|
||||
fGapIntegral = nullptr;
|
||||
|
||||
fTemp.clear();
|
||||
fTempIter = fTemp.end();
|
||||
fIntegralValues.clear();
|
||||
@ -418,9 +382,6 @@ TGapSinSqDWave::~TGapSinSqDWave() {
|
||||
* <p>
|
||||
*/
|
||||
TGapAnSWave::~TGapAnSWave() {
|
||||
delete fGapIntegral;
|
||||
fGapIntegral = nullptr;
|
||||
|
||||
fTemp.clear();
|
||||
fTempIter = fTemp.end();
|
||||
fIntegralValues.clear();
|
||||
@ -433,9 +394,6 @@ TGapAnSWave::~TGapAnSWave() {
|
||||
* <p>
|
||||
*/
|
||||
TGapNonMonDWave1::~TGapNonMonDWave1() {
|
||||
delete fGapIntegral;
|
||||
fGapIntegral = nullptr;
|
||||
|
||||
fTemp.clear();
|
||||
fTempIter = fTemp.end();
|
||||
fIntegralValues.clear();
|
||||
@ -448,9 +406,6 @@ TGapNonMonDWave1::~TGapNonMonDWave1() {
|
||||
* <p>
|
||||
*/
|
||||
TGapNonMonDWave2::~TGapNonMonDWave2() {
|
||||
delete fGapIntegral;
|
||||
fGapIntegral = nullptr;
|
||||
|
||||
fTemp.clear();
|
||||
fTempIter = fTemp.end();
|
||||
fIntegralValues.clear();
|
||||
@ -458,133 +413,6 @@ TGapNonMonDWave2::~TGapNonMonDWave2() {
|
||||
fPar.clear();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
/**
|
||||
* <p>
|
||||
*/
|
||||
TLambdaSWave::~TLambdaSWave() {
|
||||
delete fLambdaInvSq;
|
||||
fLambdaInvSq = nullptr;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
/**
|
||||
* <p>
|
||||
*/
|
||||
TLambdaPointPWave::~TLambdaPointPWave() {
|
||||
delete fLambdaInvSq;
|
||||
fLambdaInvSq = nullptr;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
/**
|
||||
* <p>
|
||||
*/
|
||||
TLambdaLinePWave::~TLambdaLinePWave() {
|
||||
delete fLambdaInvSq;
|
||||
fLambdaInvSq = nullptr;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
/**
|
||||
* <p>
|
||||
*/
|
||||
TLambdaDWave::~TLambdaDWave() {
|
||||
delete fLambdaInvSq;
|
||||
fLambdaInvSq = nullptr;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
/**
|
||||
* <p>
|
||||
*/
|
||||
TLambdaAnSWave::~TLambdaAnSWave() {
|
||||
delete fLambdaInvSq;
|
||||
fLambdaInvSq = nullptr;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
/**
|
||||
* <p>
|
||||
*/
|
||||
TLambdaNonMonDWave1::~TLambdaNonMonDWave1() {
|
||||
delete fLambdaInvSq;
|
||||
fLambdaInvSq = nullptr;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
/**
|
||||
* <p>
|
||||
*/
|
||||
TLambdaNonMonDWave2::~TLambdaNonMonDWave2() {
|
||||
delete fLambdaInvSq;
|
||||
fLambdaInvSq = nullptr;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
/**
|
||||
* <p>
|
||||
*/
|
||||
TLambdaInvSWave::~TLambdaInvSWave() {
|
||||
delete fLambdaInvSq;
|
||||
fLambdaInvSq = nullptr;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
/**
|
||||
* <p>
|
||||
*/
|
||||
TLambdaInvPointPWave::~TLambdaInvPointPWave() {
|
||||
delete fLambdaInvSq;
|
||||
fLambdaInvSq = nullptr;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
/**
|
||||
* <p>
|
||||
*/
|
||||
TLambdaInvLinePWave::~TLambdaInvLinePWave() {
|
||||
delete fLambdaInvSq;
|
||||
fLambdaInvSq = nullptr;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
/**
|
||||
* <p>
|
||||
*/
|
||||
TLambdaInvDWave::~TLambdaInvDWave() {
|
||||
delete fLambdaInvSq;
|
||||
fLambdaInvSq = nullptr;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
/**
|
||||
* <p>
|
||||
*/
|
||||
TLambdaInvAnSWave::~TLambdaInvAnSWave() {
|
||||
delete fLambdaInvSq;
|
||||
fLambdaInvSq = nullptr;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
/**
|
||||
* <p>
|
||||
*/
|
||||
TLambdaInvNonMonDWave1::~TLambdaInvNonMonDWave1() {
|
||||
delete fLambdaInvSq;
|
||||
fLambdaInvSq = nullptr;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
/**
|
||||
* <p>
|
||||
*/
|
||||
TLambdaInvNonMonDWave2::~TLambdaInvNonMonDWave2() {
|
||||
delete fLambdaInvSq;
|
||||
fLambdaInvSq = nullptr;
|
||||
}
|
||||
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
/**
|
||||
* <p>prepare the needed parameters for the integration carried out in TGapIntegral.
|
||||
@ -1685,18 +1513,7 @@ double TLambdaInvPowerLaw::operator()(double t, const std::vector<double> &par)
|
||||
*/
|
||||
TFilmMagnetizationDWave::TFilmMagnetizationDWave()
|
||||
{
|
||||
fLambdaInvSq = new TGapDWave();
|
||||
fPar.clear();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
/**
|
||||
* <p>
|
||||
*/
|
||||
TFilmMagnetizationDWave::~TFilmMagnetizationDWave()
|
||||
{
|
||||
delete fLambdaInvSq;
|
||||
fLambdaInvSq = nullptr;
|
||||
fLambdaInvSq = std::make_unique<TGapDWave>();
|
||||
fPar.clear();
|
||||
}
|
||||
|
||||
|
80
src/external/libGapIntegrals/TGapIntegrals.h
vendored
80
src/external/libGapIntegrals/TGapIntegrals.h
vendored
@ -29,8 +29,9 @@
|
||||
#ifndef _TGapIntegrals_H_
|
||||
#define _TGapIntegrals_H_
|
||||
|
||||
#include<vector>
|
||||
#include<cmath>
|
||||
#include <vector>
|
||||
#include <cmath>
|
||||
#include <memory>
|
||||
|
||||
#include "PUserFcnBase.h"
|
||||
#include "BMWIntegrator.h"
|
||||
@ -48,7 +49,7 @@ public:
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
TGapIntegral *fGapIntegral;
|
||||
std::unique_ptr<TGapIntegral> fGapIntegral;
|
||||
mutable std::vector<double> fTemp;
|
||||
mutable std::vector<double>::const_iterator fTempIter;
|
||||
mutable std::vector<double> fIntegralValues;
|
||||
@ -72,7 +73,7 @@ public:
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
TPointPWaveGapIntegralCuhre *fGapIntegral;
|
||||
std::unique_ptr<TPointPWaveGapIntegralCuhre> fGapIntegral;
|
||||
mutable std::vector<double> fTemp;
|
||||
mutable std::vector<double>::const_iterator fTempIter;
|
||||
mutable std::vector<double> fIntegralValues;
|
||||
@ -96,7 +97,7 @@ public:
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
TLinePWaveGapIntegralCuhre *fGapIntegral;
|
||||
std::unique_ptr<TLinePWaveGapIntegralCuhre> fGapIntegral;
|
||||
mutable std::vector<double> fTemp;
|
||||
mutable std::vector<double>::const_iterator fTempIter;
|
||||
mutable std::vector<double> fIntegralValues;
|
||||
@ -120,7 +121,7 @@ public:
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
TDWaveGapIntegralCuhre *fGapIntegral;
|
||||
std::unique_ptr<TDWaveGapIntegralCuhre> fGapIntegral;
|
||||
mutable std::vector<double> fTemp;
|
||||
mutable std::vector<double>::const_iterator fTempIter;
|
||||
mutable std::vector<double> fIntegralValues;
|
||||
@ -144,7 +145,7 @@ public:
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
TCosSqDWaveGapIntegralCuhre *fGapIntegral;
|
||||
std::unique_ptr<TCosSqDWaveGapIntegralCuhre> fGapIntegral;
|
||||
mutable std::vector<double> fTemp;
|
||||
mutable std::vector<double>::const_iterator fTempIter;
|
||||
mutable std::vector<double> fIntegralValues;
|
||||
@ -168,7 +169,7 @@ public:
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
TSinSqDWaveGapIntegralCuhre *fGapIntegral;
|
||||
std::unique_ptr<TSinSqDWaveGapIntegralCuhre> fGapIntegral;
|
||||
mutable std::vector<double> fTemp;
|
||||
mutable std::vector<double>::const_iterator fTempIter;
|
||||
mutable std::vector<double> fIntegralValues;
|
||||
@ -192,7 +193,7 @@ public:
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
TAnSWaveGapIntegralCuhre *fGapIntegral;
|
||||
std::unique_ptr<TAnSWaveGapIntegralCuhre> fGapIntegral;
|
||||
mutable std::vector<double> fTemp;
|
||||
mutable std::vector<double>::const_iterator fTempIter;
|
||||
mutable std::vector<double> fIntegralValues;
|
||||
@ -216,7 +217,7 @@ public:
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
TNonMonDWave1GapIntegralCuhre *fGapIntegral;
|
||||
std::unique_ptr<TNonMonDWave1GapIntegralCuhre> fGapIntegral;
|
||||
mutable std::vector<double> fTemp;
|
||||
mutable std::vector<double>::const_iterator fTempIter;
|
||||
mutable std::vector<double> fIntegralValues;
|
||||
@ -240,7 +241,7 @@ public:
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
TNonMonDWave2GapIntegralCuhre *fGapIntegral;
|
||||
std::unique_ptr<TNonMonDWave2GapIntegralCuhre> fGapIntegral;
|
||||
mutable std::vector<double> fTemp;
|
||||
mutable std::vector<double>::const_iterator fTempIter;
|
||||
mutable std::vector<double> fIntegralValues;
|
||||
@ -259,9 +260,6 @@ private:
|
||||
class TGapPowerLaw : public PUserFcnBase {
|
||||
|
||||
public:
|
||||
TGapPowerLaw() {}
|
||||
virtual ~TGapPowerLaw() {}
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
@ -276,9 +274,6 @@ private:
|
||||
class TGapDirtySWave : public PUserFcnBase {
|
||||
|
||||
public:
|
||||
TGapDirtySWave() {}
|
||||
virtual ~TGapDirtySWave() {}
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
@ -295,12 +290,11 @@ class TLambdaSWave : public PUserFcnBase {
|
||||
|
||||
public:
|
||||
TLambdaSWave();
|
||||
virtual ~TLambdaSWave();
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
TGapSWave *fLambdaInvSq;
|
||||
std::unique_ptr<TGapSWave> fLambdaInvSq;
|
||||
|
||||
ClassDef(TLambdaSWave,1)
|
||||
};
|
||||
@ -313,12 +307,11 @@ class TLambdaPointPWave : public PUserFcnBase {
|
||||
|
||||
public:
|
||||
TLambdaPointPWave();
|
||||
virtual ~TLambdaPointPWave();
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
TGapPointPWave *fLambdaInvSq;
|
||||
std::unique_ptr<TGapPointPWave> fLambdaInvSq;
|
||||
|
||||
ClassDef(TLambdaPointPWave,1)
|
||||
};
|
||||
@ -331,12 +324,11 @@ class TLambdaLinePWave : public PUserFcnBase {
|
||||
|
||||
public:
|
||||
TLambdaLinePWave();
|
||||
virtual ~TLambdaLinePWave();
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
TGapLinePWave *fLambdaInvSq;
|
||||
std::unique_ptr<TGapLinePWave> fLambdaInvSq;
|
||||
|
||||
ClassDef(TLambdaLinePWave,1)
|
||||
};
|
||||
@ -349,12 +341,11 @@ class TLambdaDWave : public PUserFcnBase {
|
||||
|
||||
public:
|
||||
TLambdaDWave();
|
||||
virtual ~TLambdaDWave();
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
TGapDWave *fLambdaInvSq;
|
||||
std::unique_ptr<TGapDWave> fLambdaInvSq;
|
||||
|
||||
ClassDef(TLambdaDWave,1)
|
||||
};
|
||||
@ -367,12 +358,11 @@ class TLambdaAnSWave : public PUserFcnBase {
|
||||
|
||||
public:
|
||||
TLambdaAnSWave();
|
||||
virtual ~TLambdaAnSWave();
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
TGapAnSWave *fLambdaInvSq;
|
||||
std::unique_ptr<TGapAnSWave> fLambdaInvSq;
|
||||
|
||||
ClassDef(TLambdaAnSWave,1)
|
||||
};
|
||||
@ -385,12 +375,11 @@ class TLambdaNonMonDWave1 : public PUserFcnBase {
|
||||
|
||||
public:
|
||||
TLambdaNonMonDWave1();
|
||||
virtual ~TLambdaNonMonDWave1();
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
TGapNonMonDWave1 *fLambdaInvSq;
|
||||
std::unique_ptr<TGapNonMonDWave1> fLambdaInvSq;
|
||||
|
||||
ClassDef(TLambdaNonMonDWave1,1)
|
||||
};
|
||||
@ -403,12 +392,11 @@ class TLambdaNonMonDWave2 : public PUserFcnBase {
|
||||
|
||||
public:
|
||||
TLambdaNonMonDWave2();
|
||||
virtual ~TLambdaNonMonDWave2();
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
TGapNonMonDWave2 *fLambdaInvSq;
|
||||
std::unique_ptr<TGapNonMonDWave2> fLambdaInvSq;
|
||||
|
||||
ClassDef(TLambdaNonMonDWave2,1)
|
||||
};
|
||||
@ -420,9 +408,6 @@ private:
|
||||
class TLambdaPowerLaw : public PUserFcnBase {
|
||||
|
||||
public:
|
||||
TLambdaPowerLaw() {}
|
||||
virtual ~TLambdaPowerLaw() {}
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
@ -438,12 +423,11 @@ class TLambdaInvSWave : public PUserFcnBase {
|
||||
|
||||
public:
|
||||
TLambdaInvSWave();
|
||||
virtual ~TLambdaInvSWave();
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
TGapSWave *fLambdaInvSq;
|
||||
std::unique_ptr<TGapSWave> fLambdaInvSq;
|
||||
|
||||
ClassDef(TLambdaInvSWave,1)
|
||||
};
|
||||
@ -456,12 +440,11 @@ class TLambdaInvPointPWave : public PUserFcnBase {
|
||||
|
||||
public:
|
||||
TLambdaInvPointPWave();
|
||||
virtual ~TLambdaInvPointPWave();
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
TGapPointPWave *fLambdaInvSq;
|
||||
std::unique_ptr<TGapPointPWave> fLambdaInvSq;
|
||||
|
||||
ClassDef(TLambdaInvPointPWave,1)
|
||||
};
|
||||
@ -474,12 +457,11 @@ class TLambdaInvLinePWave : public PUserFcnBase {
|
||||
|
||||
public:
|
||||
TLambdaInvLinePWave();
|
||||
virtual ~TLambdaInvLinePWave();
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
TGapLinePWave *fLambdaInvSq;
|
||||
std::unique_ptr<TGapLinePWave> fLambdaInvSq;
|
||||
|
||||
ClassDef(TLambdaInvLinePWave,1)
|
||||
};
|
||||
@ -492,12 +474,11 @@ class TLambdaInvDWave : public PUserFcnBase {
|
||||
|
||||
public:
|
||||
TLambdaInvDWave();
|
||||
virtual ~TLambdaInvDWave();
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
TGapDWave *fLambdaInvSq;
|
||||
std::unique_ptr<TGapDWave> fLambdaInvSq;
|
||||
|
||||
ClassDef(TLambdaInvDWave,1)
|
||||
};
|
||||
@ -510,12 +491,11 @@ class TLambdaInvAnSWave : public PUserFcnBase {
|
||||
|
||||
public:
|
||||
TLambdaInvAnSWave();
|
||||
virtual ~TLambdaInvAnSWave();
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
TGapAnSWave *fLambdaInvSq;
|
||||
std::unique_ptr<TGapAnSWave> fLambdaInvSq;
|
||||
|
||||
ClassDef(TLambdaInvAnSWave,1)
|
||||
};
|
||||
@ -528,12 +508,11 @@ class TLambdaInvNonMonDWave1 : public PUserFcnBase {
|
||||
|
||||
public:
|
||||
TLambdaInvNonMonDWave1();
|
||||
virtual ~TLambdaInvNonMonDWave1();
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
TGapNonMonDWave1 *fLambdaInvSq;
|
||||
std::unique_ptr<TGapNonMonDWave1> fLambdaInvSq;
|
||||
|
||||
ClassDef(TLambdaInvNonMonDWave1,1)
|
||||
};
|
||||
@ -546,12 +525,11 @@ class TLambdaInvNonMonDWave2 : public PUserFcnBase {
|
||||
|
||||
public:
|
||||
TLambdaInvNonMonDWave2();
|
||||
virtual ~TLambdaInvNonMonDWave2();
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
TGapNonMonDWave2 *fLambdaInvSq;
|
||||
std::unique_ptr<TGapNonMonDWave2> fLambdaInvSq;
|
||||
|
||||
ClassDef(TLambdaInvNonMonDWave2,1)
|
||||
};
|
||||
@ -563,9 +541,6 @@ private:
|
||||
class TLambdaInvPowerLaw : public PUserFcnBase {
|
||||
|
||||
public:
|
||||
TLambdaInvPowerLaw() {}
|
||||
virtual ~TLambdaInvPowerLaw() {}
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
@ -581,12 +556,11 @@ class TFilmMagnetizationDWave : public PUserFcnBase {
|
||||
|
||||
public:
|
||||
TFilmMagnetizationDWave();
|
||||
virtual ~TFilmMagnetizationDWave();
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
TGapDWave *fLambdaInvSq;
|
||||
std::unique_ptr<TGapDWave> fLambdaInvSq;
|
||||
|
||||
mutable std::vector<double> fPar;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user