musrfit
1.9.2
PUserFcn.cpp
Go to the documentation of this file.
1
/***************************************************************************
2
3
PUserFcn.cpp
4
5
Author: Andreas Suter
6
e-mail: andreas.suter@psi.ch
7
8
***************************************************************************/
9
10
/***************************************************************************
11
* Copyright (C) 2007-2023 by Andreas Suter *
12
* andreas.suter@psi.ch *
13
* *
14
* This program is free software; you can redistribute it and/or modify *
15
* it under the terms of the GNU General Public License as published by *
16
* the Free Software Foundation; either version 2 of the License, or *
17
* (at your option) any later version. *
18
* *
19
* This program is distributed in the hope that it will be useful, *
20
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
21
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
22
* GNU General Public License for more details. *
23
* *
24
* You should have received a copy of the GNU General Public License *
25
* along with this program; if not, write to the *
26
* Free Software Foundation, Inc., *
27
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
28
***************************************************************************/
29
30
#include <cassert>
31
32
#include "
PUserFcn.h
"
33
34
ClassImp
(
PUserFcn
)
35
36
//------------------------------------------------------
40
PUserFcn::PUserFcn
()
41
{
42
}
43
44
//------------------------------------------------------
48
PUserFcn::~PUserFcn
()
49
{
50
}
51
52
//------------------------------------------------------
65
Double_t
PUserFcn::operator()
(Double_t t,
const
std::vector<Double_t> ¶m)
const
66
{
67
// expected parameters: c0, c1, c2, c3
68
69
assert(param.size() == 4);
70
71
return
param[0] + param[1]*t + param[2]*t*t + param[3]*t*t*t;
72
}
PUserFcn::operator()
Double_t operator()(Double_t t, const std::vector< Double_t > ¶m) const
Definition:
PUserFcn.cpp:65
PUserFcn
Definition:
PUserFcn.h:40
PUserFcn::~PUserFcn
~PUserFcn()
Definition:
PUserFcn.cpp:48
PUserFcn::PUserFcn
PUserFcn()
PUserFcn.h
ClassImp
ClassImp(PUserFcn) PUserFcn
Definition:
PUserFcn.cpp:34
src
classes
PUserFcn.cpp
Generated by
1.8.14