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
12namespace Hal {
13
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
Double_t CalculateCF(const Double_t *x, const Double_t *params) const
Int_t NormID() const
void FixParameter(Int_t par, Double_t val)
Definition CorrFit.cxx:106
void SetParameterName(Int_t par, TString name)
Definition CorrFit.cxx:110