Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
CorrFit3DCFSquare.cxx
1
/*
2
* CorrFit3DSquare.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 "CorrFit3DCFSquare.h"
10
11
12
namespace
Hal
{
13
14
CorrFit3DCF_Square::CorrFit3DCF_Square
(Int_t pol) :
CorrFit3DCF
(7) {
15
SetParameterName
(
AxID
(),
"A_{x}"
);
16
SetParameterName
(
AyID
(),
"A_{y}"
);
17
SetParameterName
(
AzID
(),
"A_{z}"
);
18
SetParameterName
(
BxID
(),
"B_{x}"
);
19
SetParameterName
(
ByID
(),
"B_{y}"
);
20
SetParameterName
(
BzID
(),
"B_{z}"
);
21
if
(pol < 1) {
22
SetParameterName
(
AxID
(),
"A_{x}(not used)"
);
23
SetParameterName
(
AyID
(),
"A_{y}(not used)"
);
24
SetParameterName
(
AzID
(),
"A_{z}(not used)"
);
25
FixParameter
(
AxID
(), 0);
26
FixParameter
(
AyID
(), 0);
27
FixParameter
(
AzID
(), 0);
28
}
29
if
(pol < 2) {
30
SetParameterName
(
BxID
(),
"B_{x}(not used)"
);
31
SetParameterName
(
ByID
(),
"B_{y}(not used)"
);
32
SetParameterName
(
BzID
(),
"B_{z}(not used)"
);
33
FixParameter
(
BxID
(), 0);
34
FixParameter
(
ByID
(), 0);
35
FixParameter
(
BzID
(), 0);
36
}
37
}
38
39
Double_t
CorrFit3DCF_Square::CalculateCF
(
const
Double_t* x,
const
Double_t* params)
const
{
40
return
params[
NormID
()]
41
* (1.0 + +TMath::Abs(x[0]) * params[
AxID
()] + x[0] * x[0] * params[
BxID
()] + TMath::Abs(x[1]) * params[
AyID
()]
42
+ x[1] * x[1] * params[
ByID
()] + TMath::Abs(x[2]) * params[
AzID
()] + x[2] * x[2] * params[
BzID
()]);
43
}
44
45
CorrFit3DCF_Square::~CorrFit3DCF_Square() {}
46
}
// namespace Hal
Hal::CorrFit3DCF_Square::BzID
Int_t BzID() const
Definition
CorrFit3DCFSquare.h:65
Hal::CorrFit3DCF_Square::CorrFit3DCF_Square
CorrFit3DCF_Square(Int_t pol=2)
Definition
CorrFit3DCFSquare.cxx:14
Hal::CorrFit3DCF_Square::ByID
Int_t ByID() const
Definition
CorrFit3DCFSquare.h:55
Hal::CorrFit3DCF_Square::CalculateCF
Double_t CalculateCF(const Double_t *x, const Double_t *params) const
Definition
CorrFit3DCFSquare.cxx:39
Hal::CorrFit3DCF_Square::AzID
Int_t AzID() const
Definition
CorrFit3DCFSquare.h:60
Hal::CorrFit3DCF_Square::AyID
Int_t AyID() const
Definition
CorrFit3DCFSquare.h:50
Hal::CorrFit3DCF_Square::AxID
Int_t AxID() const
Definition
CorrFit3DCFSquare.h:40
Hal::CorrFit3DCF_Square::BxID
Int_t BxID() const
Definition
CorrFit3DCFSquare.h:45
Hal::CorrFit3DCF
Definition
CorrFit3DCF.h:26
Hal::CorrFitFunc::NormID
Int_t NormID() const
Definition
CorrFitFunc.h:394
Hal::CorrFit::FixParameter
void FixParameter(Int_t par, Double_t val)
Definition
CorrFit.cxx:106
Hal::CorrFit::SetParameterName
void SetParameterName(Int_t par, TString name)
Definition
CorrFit.cxx:110
Hal
Definition
EventAnaChain.cxx:28
analysis
femto
corrfit
fittingfunctions
CorrFit3DCFSquare.cxx
Generated on Wed Oct 23 2024 15:07:50 for Heavy ion Analysis Libriares by
1.12.0