by changing the behaviour of the global parts of the class PUserFcnBase from pure virtual default NeedGlobalPart=false, the code can be simplified in many places.
This commit is contained in:
parent
1372a8b782
commit
cc8ac60713
@ -34,26 +34,6 @@
|
||||
|
||||
ClassImp(PUserFcnBase)
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
// Constructor
|
||||
//--------------------------------------------------------------------------
|
||||
/**
|
||||
* <p>Constructor
|
||||
*/
|
||||
PUserFcnBase::PUserFcnBase()
|
||||
{
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
// Destructor
|
||||
//--------------------------------------------------------------------------
|
||||
/**
|
||||
* <p>Destructor
|
||||
*/
|
||||
PUserFcnBase::~PUserFcnBase()
|
||||
{
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
// This function is a replacement for the ParseFile method of TSAXParser.
|
||||
// It is needed because in certain environments ParseFile does not work but ParseBuffer does.
|
||||
|
8
src/external/libBNMR/TBNMR.h
vendored
8
src/external/libBNMR/TBNMR.h
vendored
@ -55,10 +55,6 @@ public:
|
||||
ExpRlx(){}
|
||||
~ExpRlx(){}
|
||||
|
||||
Bool_t NeedGlobalPart() const { return false; }
|
||||
void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
// function operator
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
@ -73,10 +69,6 @@ public:
|
||||
SExpRlx(){}
|
||||
~SExpRlx(){}
|
||||
|
||||
Bool_t NeedGlobalPart() const { return false; }
|
||||
void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
// function operator
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
private:
|
||||
|
@ -51,12 +51,6 @@ Double_t IAsym_high(Double_t, Double_t, Double_t, Double_t);
|
||||
class LineGauss : public PUserFcnBase {
|
||||
|
||||
public:
|
||||
|
||||
// global user-function-access functions, here without any functionality
|
||||
Bool_t NeedGlobalPart() const { return false; }
|
||||
void SetGlobalPart(vector<void*> &globalPart, UInt_t idx) { }
|
||||
Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
// function operator
|
||||
Double_t operator()(Double_t, const vector<Double_t>&) const;
|
||||
|
||||
@ -68,12 +62,6 @@ public:
|
||||
class LineLaplace : public PUserFcnBase {
|
||||
|
||||
public:
|
||||
|
||||
// global user-function-access functions, here without any functionality
|
||||
Bool_t NeedGlobalPart() const { return false; }
|
||||
void SetGlobalPart(vector<void*> &globalPart, UInt_t idx) { }
|
||||
Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
// function operator
|
||||
Double_t operator()(Double_t, const vector<Double_t>&) const;
|
||||
|
||||
@ -85,11 +73,6 @@ public:
|
||||
class LineLorentzian : public PUserFcnBase {
|
||||
|
||||
public:
|
||||
// global user-function-access functions, here without any functionality
|
||||
Bool_t NeedGlobalPart() const { return false; }
|
||||
void SetGlobalPart(vector<void*> &globalPart, UInt_t idx) { }
|
||||
Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
// function operator
|
||||
Double_t operator()(Double_t, const vector<Double_t>&) const;
|
||||
|
||||
@ -101,11 +84,6 @@ public:
|
||||
class LineSkewLorentzian : public PUserFcnBase {
|
||||
|
||||
public:
|
||||
// global user-function-access functions, here without any functionality
|
||||
Bool_t NeedGlobalPart() const { return false; }
|
||||
void SetGlobalPart(vector<void*> &globalPart, UInt_t idx) { }
|
||||
Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
// function operator
|
||||
Double_t operator()(Double_t, const vector<Double_t>&) const;
|
||||
|
||||
@ -118,11 +96,6 @@ public:
|
||||
class LineSkewLorentzian2 : public PUserFcnBase {
|
||||
|
||||
public:
|
||||
// global user-function-access functions, here without any functionality
|
||||
Bool_t NeedGlobalPart() const { return false; }
|
||||
void SetGlobalPart(vector<void*> &globalPart, UInt_t idx) { }
|
||||
Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
// function operator
|
||||
Double_t operator()(Double_t, const vector<Double_t>&) const;
|
||||
|
||||
|
@ -38,10 +38,6 @@ public:
|
||||
TMeanFieldsForScHalfSpace();
|
||||
~TMeanFieldsForScHalfSpace() {delete fImpProfile; fImpProfile = 0;}
|
||||
|
||||
virtual Bool_t NeedGlobalPart() const { return false; }
|
||||
virtual void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
virtual Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
double CalcMeanB (double, const TLondon1D_HS&) const;
|
||||
|
||||
@ -58,10 +54,6 @@ public:
|
||||
TMeanFieldsForScSingleLayer();
|
||||
~TMeanFieldsForScSingleLayer() {delete fImpProfile; fImpProfile = 0;}
|
||||
|
||||
virtual Bool_t NeedGlobalPart() const { return false; }
|
||||
virtual void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
virtual Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
double CalcMeanB (double, const std::vector<double>&, const std::vector<double>&, const TLondon1D_1L&) const;
|
||||
|
||||
@ -78,10 +70,6 @@ public:
|
||||
TMeanFieldsForScBilayer();
|
||||
~TMeanFieldsForScBilayer() {delete fImpProfile; fImpProfile = 0;}
|
||||
|
||||
virtual Bool_t NeedGlobalPart() const { return false; }
|
||||
virtual void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
virtual Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
double CalcMeanB (double, const std::vector<double>&, const std::vector<double>&, const TLondon1D_2L&, double) const;
|
||||
|
||||
@ -98,10 +86,6 @@ public:
|
||||
TMeanFieldsForScTrilayer();
|
||||
~TMeanFieldsForScTrilayer() {delete fImpProfile; fImpProfile = 0;}
|
||||
|
||||
virtual Bool_t NeedGlobalPart() const { return false; }
|
||||
virtual void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
virtual Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
double CalcMeanB (double, const std::vector<double>&, const std::vector<double>&, const TLondon1D_3L&) const;
|
||||
|
||||
@ -118,10 +102,6 @@ public:
|
||||
TMeanFieldsForScTrilayerWithInsulator();
|
||||
~TMeanFieldsForScTrilayerWithInsulator() {delete fImpProfile; fImpProfile = 0;}
|
||||
|
||||
virtual Bool_t NeedGlobalPart() const { return false; }
|
||||
virtual void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
virtual Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
double CalcMeanB (double, const std::vector<double>&, const std::vector<double>&, const TLondon1D_3LwInsulator&) const;
|
||||
|
||||
|
@ -206,7 +206,7 @@ double TPofTCalc::Eval(double t) const {
|
||||
if (i < fNFFT/2){
|
||||
return fPT[i]+(fPT[i+1]-fPT[i])/(fT[i+1]-fT[i])*(t-fT[i]);
|
||||
}
|
||||
std::cout << "TPofTCalc::Eval: No data for the time " << t << " us available! Returning -999.0 ..." << std::endl;
|
||||
//as35 std::cout << "TPofTCalc::Eval: No data for the time " << t << " us available! Returning -999.0 ..." << std::endl;
|
||||
return -999.0;
|
||||
}
|
||||
|
||||
|
24
src/external/libFitPofB/include/TLondon1D.h
vendored
24
src/external/libFitPofB/include/TLondon1D.h
vendored
@ -43,10 +43,6 @@ public:
|
||||
TLondon1DHS();
|
||||
~TLondon1DHS();
|
||||
|
||||
virtual Bool_t NeedGlobalPart() const { return false; }
|
||||
virtual void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
virtual Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
@ -76,10 +72,6 @@ public:
|
||||
TLondon1D1L();
|
||||
~TLondon1D1L();
|
||||
|
||||
virtual Bool_t NeedGlobalPart() const { return false; }
|
||||
virtual void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
virtual Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
@ -111,10 +103,6 @@ public:
|
||||
TLondon1D2L();
|
||||
~TLondon1D2L();
|
||||
|
||||
virtual Bool_t NeedGlobalPart() const { return false; }
|
||||
virtual void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
virtual Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
@ -145,10 +133,6 @@ public:
|
||||
TProximity1D1LHS();
|
||||
~TProximity1D1LHS();
|
||||
|
||||
virtual Bool_t NeedGlobalPart() const { return false; }
|
||||
virtual void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
virtual Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
@ -179,10 +163,6 @@ public:
|
||||
TLondon1D3L();
|
||||
~TLondon1D3L();
|
||||
|
||||
virtual Bool_t NeedGlobalPart() const { return false; }
|
||||
virtual void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
virtual Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
@ -213,10 +193,6 @@ public:
|
||||
TLondon1D3LS();
|
||||
~TLondon1D3LS();
|
||||
|
||||
virtual Bool_t NeedGlobalPart() const { return false; }
|
||||
virtual void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
virtual Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
|
4
src/external/libFitPofB/include/TSkewedGss.h
vendored
4
src/external/libFitPofB/include/TSkewedGss.h
vendored
@ -43,10 +43,6 @@ public:
|
||||
TSkewedGss();
|
||||
~TSkewedGss();
|
||||
|
||||
virtual Bool_t NeedGlobalPart() const { return false; }
|
||||
virtual void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
virtual Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
|
24
src/external/libFitPofB/include/TVortex.h
vendored
24
src/external/libFitPofB/include/TVortex.h
vendored
@ -43,10 +43,6 @@ public:
|
||||
TBulkTriVortexLondon();
|
||||
~TBulkTriVortexLondon();
|
||||
|
||||
virtual Bool_t NeedGlobalPart() const { return false; }
|
||||
virtual void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
virtual Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
@ -76,10 +72,6 @@ public:
|
||||
TBulkSqVortexLondon();
|
||||
~TBulkSqVortexLondon();
|
||||
|
||||
virtual Bool_t NeedGlobalPart() const { return false; }
|
||||
virtual void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
virtual Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
@ -109,10 +101,6 @@ public:
|
||||
TBulkTriVortexML();
|
||||
~TBulkTriVortexML();
|
||||
|
||||
virtual Bool_t NeedGlobalPart() const { return false; }
|
||||
virtual void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
virtual Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
@ -142,10 +130,6 @@ public:
|
||||
TBulkTriVortexAGL();
|
||||
~TBulkTriVortexAGL();
|
||||
|
||||
virtual Bool_t NeedGlobalPart() const { return false; }
|
||||
virtual void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
virtual Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
@ -175,10 +159,6 @@ public:
|
||||
TBulkTriVortexAGLII();
|
||||
~TBulkTriVortexAGLII();
|
||||
|
||||
virtual Bool_t NeedGlobalPart() const { return false; }
|
||||
virtual void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
virtual Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
@ -208,10 +188,6 @@ public:
|
||||
TBulkTriVortexNGL();
|
||||
~TBulkTriVortexNGL();
|
||||
|
||||
virtual Bool_t NeedGlobalPart() const { return false; }
|
||||
virtual void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
virtual Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
|
112
src/external/libGapIntegrals/TGapIntegrals.h
vendored
112
src/external/libGapIntegrals/TGapIntegrals.h
vendored
@ -45,10 +45,6 @@ public:
|
||||
TGapSWave();
|
||||
virtual ~TGapSWave();
|
||||
|
||||
virtual Bool_t NeedGlobalPart() const { return false; }
|
||||
virtual void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
virtual Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
@ -73,10 +69,6 @@ public:
|
||||
TGapPointPWave();
|
||||
virtual ~TGapPointPWave();
|
||||
|
||||
virtual Bool_t NeedGlobalPart() const { return false; }
|
||||
virtual void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
virtual Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
@ -101,10 +93,6 @@ public:
|
||||
TGapLinePWave();
|
||||
virtual ~TGapLinePWave();
|
||||
|
||||
virtual Bool_t NeedGlobalPart() const { return false; }
|
||||
virtual void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
virtual Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
@ -129,10 +117,6 @@ public:
|
||||
TGapDWave();
|
||||
virtual ~TGapDWave();
|
||||
|
||||
virtual Bool_t NeedGlobalPart() const { return false; }
|
||||
virtual void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
virtual Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
@ -157,10 +141,6 @@ public:
|
||||
TGapCosSqDWave();
|
||||
virtual ~TGapCosSqDWave();
|
||||
|
||||
virtual Bool_t NeedGlobalPart() const { return false; }
|
||||
virtual void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
virtual Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
@ -185,10 +165,6 @@ public:
|
||||
TGapSinSqDWave();
|
||||
virtual ~TGapSinSqDWave();
|
||||
|
||||
virtual Bool_t NeedGlobalPart() const { return false; }
|
||||
virtual void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
virtual Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
@ -213,10 +189,6 @@ public:
|
||||
TGapAnSWave();
|
||||
virtual ~TGapAnSWave();
|
||||
|
||||
virtual Bool_t NeedGlobalPart() const { return false; }
|
||||
virtual void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
virtual Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
@ -241,10 +213,6 @@ public:
|
||||
TGapNonMonDWave1();
|
||||
virtual ~TGapNonMonDWave1();
|
||||
|
||||
virtual Bool_t NeedGlobalPart() const { return false; }
|
||||
virtual void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
virtual Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
@ -269,10 +237,6 @@ public:
|
||||
TGapNonMonDWave2();
|
||||
virtual ~TGapNonMonDWave2();
|
||||
|
||||
virtual Bool_t NeedGlobalPart() const { return false; }
|
||||
virtual void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
virtual Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
@ -298,10 +262,6 @@ public:
|
||||
TGapPowerLaw() {}
|
||||
virtual ~TGapPowerLaw() {}
|
||||
|
||||
virtual Bool_t NeedGlobalPart() const { return false; }
|
||||
virtual void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
virtual Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
@ -319,10 +279,6 @@ public:
|
||||
TGapDirtySWave() {}
|
||||
virtual ~TGapDirtySWave() {}
|
||||
|
||||
virtual Bool_t NeedGlobalPart() const { return false; }
|
||||
virtual void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
virtual Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
@ -341,10 +297,6 @@ public:
|
||||
TLambdaSWave();
|
||||
virtual ~TLambdaSWave();
|
||||
|
||||
virtual Bool_t NeedGlobalPart() const { return false; }
|
||||
virtual void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
virtual Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
@ -363,10 +315,6 @@ public:
|
||||
TLambdaPointPWave();
|
||||
virtual ~TLambdaPointPWave();
|
||||
|
||||
virtual Bool_t NeedGlobalPart() const { return false; }
|
||||
virtual void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
virtual Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
@ -385,10 +333,6 @@ public:
|
||||
TLambdaLinePWave();
|
||||
virtual ~TLambdaLinePWave();
|
||||
|
||||
virtual Bool_t NeedGlobalPart() const { return false; }
|
||||
virtual void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
virtual Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
@ -407,10 +351,6 @@ public:
|
||||
TLambdaDWave();
|
||||
virtual ~TLambdaDWave();
|
||||
|
||||
virtual Bool_t NeedGlobalPart() const { return false; }
|
||||
virtual void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
virtual Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
@ -429,10 +369,6 @@ public:
|
||||
TLambdaAnSWave();
|
||||
virtual ~TLambdaAnSWave();
|
||||
|
||||
virtual Bool_t NeedGlobalPart() const { return false; }
|
||||
virtual void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
virtual Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
@ -451,10 +387,6 @@ public:
|
||||
TLambdaNonMonDWave1();
|
||||
virtual ~TLambdaNonMonDWave1();
|
||||
|
||||
virtual Bool_t NeedGlobalPart() const { return false; }
|
||||
virtual void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
virtual Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
@ -473,10 +405,6 @@ public:
|
||||
TLambdaNonMonDWave2();
|
||||
virtual ~TLambdaNonMonDWave2();
|
||||
|
||||
virtual Bool_t NeedGlobalPart() const { return false; }
|
||||
virtual void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
virtual Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
@ -495,10 +423,6 @@ public:
|
||||
TLambdaPowerLaw() {}
|
||||
virtual ~TLambdaPowerLaw() {}
|
||||
|
||||
virtual Bool_t NeedGlobalPart() const { return false; }
|
||||
virtual void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
virtual Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
@ -516,10 +440,6 @@ public:
|
||||
TLambdaInvSWave();
|
||||
virtual ~TLambdaInvSWave();
|
||||
|
||||
virtual Bool_t NeedGlobalPart() const { return false; }
|
||||
virtual void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
virtual Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
@ -538,10 +458,6 @@ public:
|
||||
TLambdaInvPointPWave();
|
||||
virtual ~TLambdaInvPointPWave();
|
||||
|
||||
virtual Bool_t NeedGlobalPart() const { return false; }
|
||||
virtual void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
virtual Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
@ -560,10 +476,6 @@ public:
|
||||
TLambdaInvLinePWave();
|
||||
virtual ~TLambdaInvLinePWave();
|
||||
|
||||
virtual Bool_t NeedGlobalPart() const { return false; }
|
||||
virtual void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
virtual Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
@ -582,10 +494,6 @@ public:
|
||||
TLambdaInvDWave();
|
||||
virtual ~TLambdaInvDWave();
|
||||
|
||||
virtual Bool_t NeedGlobalPart() const { return false; }
|
||||
virtual void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
virtual Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
@ -604,10 +512,6 @@ public:
|
||||
TLambdaInvAnSWave();
|
||||
virtual ~TLambdaInvAnSWave();
|
||||
|
||||
virtual Bool_t NeedGlobalPart() const { return false; }
|
||||
virtual void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
virtual Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
@ -626,10 +530,6 @@ public:
|
||||
TLambdaInvNonMonDWave1();
|
||||
virtual ~TLambdaInvNonMonDWave1();
|
||||
|
||||
virtual Bool_t NeedGlobalPart() const { return false; }
|
||||
virtual void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
virtual Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
@ -648,10 +548,6 @@ public:
|
||||
TLambdaInvNonMonDWave2();
|
||||
virtual ~TLambdaInvNonMonDWave2();
|
||||
|
||||
virtual Bool_t NeedGlobalPart() const { return false; }
|
||||
virtual void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
virtual Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
@ -670,10 +566,6 @@ public:
|
||||
TLambdaInvPowerLaw() {}
|
||||
virtual ~TLambdaInvPowerLaw() {}
|
||||
|
||||
virtual Bool_t NeedGlobalPart() const { return false; }
|
||||
virtual void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
virtual Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
@ -691,10 +583,6 @@ public:
|
||||
TFilmMagnetizationDWave();
|
||||
virtual ~TFilmMagnetizationDWave();
|
||||
|
||||
virtual Bool_t NeedGlobalPart() const { return false; }
|
||||
virtual void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
virtual Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
|
4
src/external/libGbGLF/PGbGLF.h
vendored
4
src/external/libGbGLF/PGbGLF.h
vendored
@ -44,10 +44,6 @@ class PGbGLF : public PUserFcnBase
|
||||
PGbGLF() {}
|
||||
virtual ~PGbGLF() {}
|
||||
|
||||
virtual Bool_t NeedGlobalPart() const { return false; }
|
||||
virtual void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) {}
|
||||
virtual Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
virtual Double_t operator()(Double_t t, const std::vector<Double_t> ¶m) const;
|
||||
|
||||
private:
|
||||
|
24
src/external/libLFRelaxation/TLFRelaxation.h
vendored
24
src/external/libLFRelaxation/TLFRelaxation.h
vendored
@ -58,10 +58,6 @@ public:
|
||||
TLFStatGssKT();
|
||||
~TLFStatGssKT();
|
||||
|
||||
Bool_t NeedGlobalPart() const { return false; }
|
||||
void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
@ -85,10 +81,6 @@ public:
|
||||
TLFStatExpKT();
|
||||
~TLFStatExpKT();
|
||||
|
||||
Bool_t NeedGlobalPart() const { return false; }
|
||||
void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
@ -119,10 +111,6 @@ public:
|
||||
TLFDynGssKT();
|
||||
~TLFDynGssKT();
|
||||
|
||||
Bool_t NeedGlobalPart() const { return false; }
|
||||
void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
@ -172,10 +160,6 @@ public:
|
||||
TLFDynExpKT();
|
||||
~TLFDynExpKT();
|
||||
|
||||
Bool_t NeedGlobalPart() const { return false; }
|
||||
void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
@ -227,10 +211,6 @@ public:
|
||||
TLFDynSG();
|
||||
~TLFDynSG();
|
||||
|
||||
Bool_t NeedGlobalPart() const { return false; }
|
||||
void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
@ -255,10 +235,6 @@ public:
|
||||
TLFSGInterpolation();
|
||||
~TLFSGInterpolation();
|
||||
|
||||
Bool_t NeedGlobalPart() const { return false; }
|
||||
void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
|
@ -8,7 +8,7 @@
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
* Copyright (C) 2013-2019 by Andreas Suter *
|
||||
* Copyright (C) 2013-2021 by Andreas Suter *
|
||||
* andreas.suter@psi.ch *
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
@ -43,11 +43,6 @@ class PPhotoMeissner : public PUserFcnBase
|
||||
|
||||
virtual Bool_t IsValid() { return fValid; }
|
||||
|
||||
// global user-function-access functions, here without any functionality
|
||||
virtual Bool_t NeedGlobalPart() const { return false; }
|
||||
void SetGlobalPart(std::vector<void*> &globalPart, UInt_t idx) { }
|
||||
Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
// function operator
|
||||
Double_t operator()(Double_t, const std::vector<Double_t>&) const;
|
||||
|
||||
|
@ -43,11 +43,6 @@ class PSkewedLorentzian : public PUserFcnBase
|
||||
|
||||
virtual Bool_t IsValid() { return fValid; }
|
||||
|
||||
// global user-function-access functions, here without any functionality
|
||||
virtual Bool_t NeedGlobalPart() const { return false; }
|
||||
void SetGlobalPart(std::vector<void*> &globalPart, UInt_t idx) { }
|
||||
Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
// function operator
|
||||
Double_t operator()(Double_t, const std::vector<Double_t>&) const;
|
||||
|
||||
|
12
src/external/libZFRelaxation/ZFRelaxation.h
vendored
12
src/external/libZFRelaxation/ZFRelaxation.h
vendored
@ -50,10 +50,6 @@ public:
|
||||
ZFMagGss(){} ///< default constructor
|
||||
~ZFMagGss(){} ///< default destructor
|
||||
|
||||
Bool_t NeedGlobalPart() const { return false; }
|
||||
void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
ClassDef(ZFMagGss,1)
|
||||
@ -75,10 +71,6 @@ public:
|
||||
ZFMagExp(){} ///< default constructor
|
||||
~ZFMagExp(){} ///< default destructor
|
||||
|
||||
Bool_t NeedGlobalPart() const { return false; }
|
||||
void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
ClassDef(ZFMagExp,1)
|
||||
@ -99,10 +91,6 @@ public:
|
||||
UniaxialStatGssKT();
|
||||
virtual ~UniaxialStatGssKT();
|
||||
|
||||
virtual Bool_t NeedGlobalPart() const { return false; }
|
||||
virtual void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) { }
|
||||
virtual Bool_t GlobalPartIsValid() const { return true; }
|
||||
|
||||
double operator()(double, const std::vector<double>&) const;
|
||||
|
||||
private:
|
||||
|
@ -42,12 +42,12 @@
|
||||
class PUserFcnBase : public TObject
|
||||
{
|
||||
public:
|
||||
PUserFcnBase();
|
||||
virtual ~PUserFcnBase();
|
||||
PUserFcnBase() {}
|
||||
virtual ~PUserFcnBase() {}
|
||||
|
||||
virtual Bool_t NeedGlobalPart() const = 0; ///< if a user function needs a global part this function should return true, otherwise false
|
||||
virtual void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) = 0; ///< if a user function is using a global part, this function is used to invoke and retrieve the proper global object
|
||||
virtual Bool_t GlobalPartIsValid() const = 0; ///< if a user function is using a global part, this function returns if the global object part is valid
|
||||
virtual Bool_t NeedGlobalPart() const { return false; } ///< if a user function needs a global part this function should return true, otherwise false (default: false)
|
||||
virtual void SetGlobalPart(std::vector<void *> &globalPart, UInt_t idx) {} ///< if a user function is using a global part, this function is used to invoke and retrieve the proper global object
|
||||
virtual Bool_t GlobalPartIsValid() const { return false; } ///< if a user function is using a global part, this function returns if the global object part is valid (default: false)
|
||||
|
||||
virtual Double_t operator()(Double_t t, const std::vector<Double_t> ¶m) const = 0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user