Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
CorrFit1DCFGauss.cxx
1/*
2 * CorrFit1DCFGauss.cxx
3 *
4 * Created on: 03-04-2015
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9
10#include "CorrFit1DCFGauss.h"
11
12#include <TMath.h>
13
14namespace Hal {
15 CorrFit1DCF_Gauss::CorrFit1DCF_Gauss() : CorrFit1DCF(3) {}
16
17 Double_t CorrFit1DCF_Gauss::CalculateCF(const Double_t* x, const Double_t* params) const {
18 Double_t q = x[0];
19 if (fKinematics == Femto::EKinematics::kPRF) q = q * 2.0;
20 return params[NormID()]
21 * (1
22 + params[LambdaID()]
23 * TMath::Exp(-Femto::FmToGeV() * Femto::FmToGeV() * (q * q * params[RadiusID()] * params[RadiusID()])));
24 }
25
26 CorrFit1DCF_Gauss::~CorrFit1DCF_Gauss() {
27 // TODO Auto-generated destructor stub
28 }
29} // namespace Hal