PandaRoot
PndHypGePeakFitFunction.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 /*
14  * THypGePeakFitFunction.h
15  *
16  * Copyright 2013 Marcell Steinen <steinen@kph.uni-mainz.de>
17  *
18  * This program is free software; you can redistribute it and/or modify
19  * it under the terms of the GNU General Public License as published by
20  * the Free Software Foundation; either version 2 of the License, or
21  * (at your option) any later version.
22  *
23  * This program is distributed in the hope that it will be useful,
24  * but WITHOUT ANY WARRANTY; without even the implied warranty of
25  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26  * GNU General Public License for more details.
27  *
28  * You should have received a copy of the GNU General Public License
29  * along with this program; if not, write to the Free Software
30  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
31  * MA 02110-1301, USA.
32  *
33  *
34  */
35 
36 // support class for peak fitting, ROOT needs this external construction (?)
37 #ifndef PNDHYPGEPEAKFITFUNCTION_H
38 #define PNDHYPGEPEAKFITFUNCTION_H
39 
40 #include "TMath.h"
41 
43  public:
45  Double_t PeakFunc(Double_t *x, Double_t *par);
46  Double_t PeakFuncGaussian(Double_t *x, Double_t *par);
47  Double_t PeakFuncFreeSkewedPosition(Double_t *x, Double_t *par);
48  Double_t PeakFuncFreeSkewedPositionWithoutFirstGausian(Double_t *x, Double_t *par);
49  Double_t PeakFuncDoubleGausian(Double_t *x, Double_t *par);
50 
51  Double_t NewFunction(Double_t *x, Double_t *par);
52 
53  Double_t GausOnly(Double_t *x, Double_t *par);
54  Double_t SmoothedStepOnly(Double_t *x, Double_t *par);
55  Double_t LinearOnly(Double_t *x, Double_t *par);
56  Double_t SkewedOnly(Double_t *x, Double_t *par);
57  Double_t FreeSkewedOnly(Double_t *x, Double_t *par);
58  Double_t SecondGausOnly(Double_t *x, Double_t *par);
59  Double_t NewSkewedOnly(Double_t *x, Double_t *par);
60 
61  private:
62  /* add your private declarations */
63 
64  ClassDef(PndHypGePeakFitFunction, 1) // This line must be used for Go4 and PANDAroot !!!!!!!!!!! gives "IsA()" Error if compiled with g++
65 };
66 
67 #endif /* PNDHYPGEPEAKFITFUNCTION_H */
Double_t LinearOnly(Double_t *x, Double_t *par)
Double_t PeakFuncFreeSkewedPosition(Double_t *x, Double_t *par)
Double_t SecondGausOnly(Double_t *x, Double_t *par)
Double_t PeakFunc(Double_t *x, Double_t *par)
Double_t NewFunction(Double_t *x, Double_t *par)
Double_t PeakFuncDoubleGausian(Double_t *x, Double_t *par)
Double_t SkewedOnly(Double_t *x, Double_t *par)
Double_t FreeSkewedOnly(Double_t *x, Double_t *par)
Double_t SmoothedStepOnly(Double_t *x, Double_t *par)
Double_t GausOnly(Double_t *x, Double_t *par)
Double_t PeakFuncGaussian(Double_t *x, Double_t *par)
Double_t NewSkewedOnly(Double_t *x, Double_t *par)
Double_t PeakFuncFreeSkewedPositionWithoutFirstGausian(Double_t *x, Double_t *par)