Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
CorrFit3DCFLorentz.cxx
1/*
2 * CorrFit3DCFLorentz.cxx
3 *
4 * Created on: 24 mar 2016
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9#include "CorrFit3DCFLorentz.h"
10
11
12namespace Hal {
13 CorrFit3DCF_Lorentz::CorrFit3DCF_Lorentz() : CorrFit3DCF(5) {}
14
15 Double_t CorrFit3DCF_Lorentz::CalculateCF(const Double_t* x, const Double_t* params) const {
16 Double_t X = x[0] * params[RoutID()] * Femto::FmToGeV();
17 Double_t Y = x[1] * params[RsideID()] * Femto::FmToGeV();
18 Double_t Z = x[2] * params[RlongID()] * Femto::FmToGeV();
19 return params[NormID()] * (1.0 + params[LambdaID()] / (X * X + Y * Y + Z * Z + 1));
20 }
21
22 CorrFit3DCF_Lorentz::~CorrFit3DCF_Lorentz() {}
23} // namespace Hal