Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
CorrFitHDFunc3D.h
1/*
2 * CorrFitHDFunc3D.h
3 *
4 * Created on: 12 lut 2023
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9#ifndef HAL_ANALYSIS_FEMTO_CORRFIT_HD_FUNC_CORRFITHDFUNC3D_H_
10#define HAL_ANALYSIS_FEMTO_CORRFIT_HD_FUNC_CORRFITHDFUNC3D_H_
11
12#include "Array.h"
13#include "CorrFitHDFunc.h"
14#include "CorrFitMask.h"
15
16#include <RtypesCore.h>
17
18
19namespace Hal {
20
22 Array_3<Double_t> fDenominatorHD;
23 Array_3<Double_t> fDenominatorSum;
24 Array_3<Double_t> fMapHD;
25 Array_1<Int_t> fBinsX;
26 Array_1<Int_t> fBinsY;
27 Array_1<Int_t> fBinsZ;
28 Array_1<Int_t> fBinsHDX;
29 Array_1<Int_t> fBinsHDY;
30 Array_1<Int_t> fBinsHDZ;
31 void CalculateBinsArrays(const CorrFitMask3D& mask, Bool_t hd);
32
33 public:
35 void SetMask(const CorrFitMask& mask, TH1* denominator, Bool_t hd);
44 Double_t GetBinCFVal(Int_t binX, Int_t binY, Int_t binZ, Bool_t extrapolated) const;
50 inline Int_t GetXBin(Int_t i) const { return fBinsX.Get(i); };
56 inline Int_t GetYBin(Int_t i) const { return fBinsY.Get(i); };
62 inline Int_t GetZBin(Int_t i) const { return fBinsZ.Get(i); };
63 inline Array_1<Int_t>& GetBinsHDX() { return fBinsHDX; };
64 inline Array_1<Int_t>& GetBinsHDY() { return fBinsHDY; };
65 inline Array_1<Int_t>& GetBinsHDZ() { return fBinsHDZ; };
66 inline Array_3<Double_t>& CFMapHD() { return fMapHD; }
67 inline Array_3<Double_t>& GetDenominatorHD() { return fDenominatorHD; };
68 inline Array_3<Double_t>& GetDenominatorSum() { return fDenominatorSum; };
69 inline Int_t GetNBins() const { return fBinsX.GetSize(); };
70 inline Double_t EvalHDX(Double_t hdBin) const { return fMins[0] + fSteps[0] * hdBin; }
71 inline Double_t EvalHDY(Double_t hdBin) const { return fMins[1] + fSteps[1] * hdBin; }
72 inline Double_t EvalHDZ(Double_t hdBin) const { return fMins[2] + fSteps[2] * hdBin; }
73 virtual ~CorrFitHDFunc3D() {};
74 ClassDef(CorrFitHDFunc3D, 1)
75 };
76} // namespace Hal
77
78#endif /* HAL_ANALYSIS_FEMTO_CORRFIT_HD_FUNC_CORRFITHDFUNC3D_H_ */
T Get(Int_t i) const
Definition Array.h:97
Int_t GetSize() const
Definition Array.h:50
Double_t GetBinCFVal(Int_t binX, Int_t binY, Int_t binZ, Bool_t extrapolated) const
Int_t GetYBin(Int_t i) const
Int_t GetXBin(Int_t i) const
Int_t GetZBin(Int_t i) const
void SetMask(const CorrFitMask &mask, TH1 *denominator, Bool_t hd)