Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
CorrFit3DCFGauss2.cxx
1/*
2 * CorrFit3DCFGauss2.cxx
3 *
4 * Created on: 21 mar 2016
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9#include "CorrFit3DCFGauss2.h"
10
11#include <TMath.h>
12
13namespace Hal {
14
15 CorrFit3DCF_Gauss2::CorrFit3DCF_Gauss2() : CorrFit3DCF(9) {
16 SetParameterName(NormID(), "Norm");
17 SetParameterName(Lambda1ID(), "#Lambda_{1}");
18 SetParameterName(Lambda2ID(), "#Lambda_{2}");
19 SetParameterName(Rout1ID(), "R_{out1}");
20 SetParameterName(Rout2ID(), "R_{out2}");
21 SetParameterName(Rside1ID(), "R_{side1}");
22 SetParameterName(Rside2ID(), "R_{side2}");
23 SetParameterName(Rlong1ID(), "R_{long1}");
24 SetParameterName(Rlong2ID(), "R_{long2}");
25 }
26
27 Double_t CorrFit3DCF_Gauss2::CalculateCF(const Double_t* x, const Double_t* params) const {
28 return params[NormID()]
29 * (1.0
30 + params[this->Lambda1ID()]
31 * TMath::Exp(-Femto::FmToGeV() * Femto::FmToGeV()
32 * (TMath::Power(x[0] * params[this->Rout1ID()], 2)
33 + TMath::Power(x[1] * params[this->Rside1ID()], 2)
34 + TMath::Power(x[2] * params[this->Rlong1ID()], 2)))
35 + params[this->Lambda2ID()]
36 * TMath::Exp(-Femto::FmToGeV() * Femto::FmToGeV()
37 * (TMath::Power(x[0] * params[this->Rout2ID()], 2)
38 + TMath::Power(x[1] * params[this->Rside2ID()], 2)
39 + TMath::Power(x[2] * params[this->Rlong2ID()], 2))));
40 }
41
42 CorrFit3DCF_Gauss2::~CorrFit3DCF_Gauss2() {}
43} // namespace Hal