Page MenuHomeHEPForge

EvtItgThreeCoeffFcn.hh
No OneTemporary

Size
2 KB
Referenced Files
None
Subscribers
None

EvtItgThreeCoeffFcn.hh

/***********************************************************************
* Copyright 1998-2020 CERN for the benefit of the EvtGen authors *
* *
* This file is part of EvtGen. *
* *
* EvtGen is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
* *
* EvtGen is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with EvtGen. If not, see <https://www.gnu.org/licenses/>. *
***********************************************************************/
#ifndef EVTITTHREECOEFFFCN_HH
#define EVTITTHREECOEFFFCN_HH
#include <vector>
//-------------
// C Headers --
//-------------
extern "C" {
}
#include "EvtGenModels/EvtItgAbsFunction.hh"
// Description:
// Class describing a function with three vectors of coefficients.
class EvtItgThreeCoeffFcn : public EvtItgAbsFunction {
public:
EvtItgThreeCoeffFcn( double ( *theFunction )( double,
const std::vector<double>&,
const std::vector<double>&,
const std::vector<double>& ),
double lowerRange, double upperRange,
const std::vector<double>& coeffs1,
const std::vector<double>& coeffs2,
const std::vector<double>& coeffs3 );
void setCoeff( int, int, double ) override;
double getCoeff( int, int ) override;
protected:
double myFunction( double x ) const override;
private:
// Data members
double ( *_myFunction )( double x, const std::vector<double>& coeffs1,
const std::vector<double>& coeffs2,
const std::vector<double>& coeffs3 );
std::vector<double> _coeffs1;
std::vector<double> _coeffs2;
std::vector<double> _coeffs3;
};
#endif // EvtITGPTRFUNCTION_HH

File Metadata

Mime Type
text/x-c
Expires
Tue, Sep 30, 4:43 AM (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6489640
Default Alt Text
EvtItgThreeCoeffFcn.hh (2 KB)

Event Timeline