GSI Object Oriented Online Offline (Go4)
GO4-5.3.2
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Go4FitExample
Example2Func.cxx
Go to the documentation of this file.
1
// $Id: Example2Func.cxx 555 2010-01-27 12:40:54Z linev $
2
//-----------------------------------------------------------------------
3
// The GSI Online Offline Object Oriented (Go4) Project
4
// Experiment Data Processing at EE department, GSI
5
//-----------------------------------------------------------------------
6
// Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH
7
// Planckstr. 1, 64291 Darmstadt, Germany
8
// Contact: http://go4.gsi.de
9
//-----------------------------------------------------------------------
10
// This software can be used under the license agreements as stated
11
// in Go4License.txt file which is part of the distribution.
12
//-----------------------------------------------------------------------
13
14
#include <math.h>
15
16
extern
"C"
double
gaussian
(
double
*axis,
double
*pars)
17
{
18
double
pos = pars[0];
19
double
width = pars[1];
20
double
x = axis[0];
21
return
exp(-0.5*(x-pos)*(x-pos)/width/width);
22
}
gaussian
double gaussian(double *axis, double *pars)
Definition:
Example2Func.cxx:16
Generated on Fri Oct 26 2018 08:34:52 for GSI Object Oriented Online Offline (Go4) by
1.8.8