Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
CorrFitHDFunc.cxx
1/*
2 * CorrFitTempMaps.cxx
3 *
4 * Created on: 14 lut 2021
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9#include "CorrFitHDFunc.h"
10
11#include "Cout.h"
12
13#include <iostream>
14
15//#define DEBUG_FUNCHD
16namespace Hal {
17 CorrFitHDFunc::CorrFitHDFunc(Int_t dim) : fDummyVal(-100.01), fDim(dim) {
18 fParams = new Double_t[fDim];
19 fMins = new Double_t[fDim];
20 fSteps = new Double_t[fDim];
21 }
22
23 CorrFitHDFunc::~CorrFitHDFunc() {
24 delete[] fParams;
25 delete[] fMins;
26 delete[] fSteps;
27 }
28
29 void CorrFitHDFunc::RecalcHDBin(Int_t newSize) {
30 newSize = newSize * 2 + 1;
31 Int_t count = 1;
32 if (fHDToBin.GetSize() < newSize) fHDToBin.MakeBigger(newSize);
33 fHDToBin[0] = 0;
34 for (int i = 1; i < fHDToBin.GetSize(); i++) {
35 fHDToBin[i] = count;
36 if (i % 2 == 0) count++;
37 }
38 }
39
40} // namespace Hal