Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
CorrFit3DCFGaussCross.cxx
1/*
2 * CorrFit3DCFGaus.cxx
3 *
4 * Created on: 01-05-2015
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9
10#include "CorrFit3DCFGaussCross.h"
11
12#include <TMath.h>
13
14namespace Hal {
15 CorrFit3DCF_GaussCross::CorrFit3DCF_GaussCross() : CorrFit3DCF(e3DMode::kNormal6R, 8) {
16 SetParameterName(Routside(), "R_{out-side}");
17 FixParameter(Routside(), 0);
18 SetParameterName(Routlong(), "R_{out-long}");
19 FixParameter(Routlong(), 0);
20 SetParameterName(Rsidelong(), "R_{side-long}");
21 FixParameter(Rsidelong(), 0);
22 }
23
24 CorrFit3DCF_GaussCross::~CorrFit3DCF_GaussCross() {}
25 Double_t CorrFit3DCF_GaussCross::CalculateCF(const Double_t* x, const Double_t* params) const {
26 Double_t scale = 1;
27 if (fKinematics == Hal::Femto::EKinematics::kPRF) { scale = 4.0; }
28 return params[NormID()]
29 * (1
30 + params[LambdaID()]
31 * TMath::Exp(-25.76578 * scale
32 * (x[0] * x[0] * params[RoutID()] * params[RoutID()]
33 + x[1] * x[1] * params[RsideID()] * params[RsideID()]
34 + x[2] * x[2] * params[RlongID()] * params[RlongID()]
35 + 2.0 * x[0] * x[1] * TMath::Abs(params[Routside()]) * params[Routside()]
36 + 2.0 * x[0] * x[2] * TMath::Abs(params[Routlong()]) * params[Routlong()]
37 + 2.0 * x[1] * x[2] * TMath::Abs(params[Rsidelong()]) * params[Rsidelong()])));
38 }
39} // namespace Hal