Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
CorrFit1DCFSquare.cxx
1/*
2 * CorrFit1DSquare.cxx
3 *
4 * Created on: 22 mar 2016
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9#include "CorrFit1DCFSquare.h"
10
11namespace Hal {
12
14 SetParameterName(AID(), "A");
15 SetParameterName(BID(), "B");
16 if (pol < 1) {
17 SetParameterName(AID(), "A (not used)");
18 SetParLimits(AID(), 0, 0.1);
19 FixParameter(AID(), 0);
20 }
21 if (pol < 2) {
22 SetParameterName(BID(), "B (not used)");
23 FixParameter(BID(), 0);
24 SetParLimits(BID(), 0, 0.1);
25 }
26 }
27
28 Double_t CorrFit1DCF_Square::CalculateCF(const Double_t* x, const Double_t* params) const {
29 return (params[NormID()]) * (1.0 + params[AID()] * x[0] + params[BID()] * x[0] * x[0]);
30 }
31
32 CorrFit1DCF_Square::~CorrFit1DCF_Square() {}
33} // namespace Hal
Double_t CalculateCF(const Double_t *x, const Double_t *params) const
Int_t NormID() const
void FixParameter(Int_t par, Double_t val)
Definition CorrFit.cxx:106
void SetParameterName(Int_t par, TString name)
Definition CorrFit.cxx:110
void SetParLimits(Int_t par, Double_t min, Double_t max)
Definition CorrFit.cxx:102