Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
CorrFitHDFunc1D.h
1/*
2 * CorrFitHDFunc1Da.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_CORRFITHDFUNC1D_H_
10#define HAL_ANALYSIS_FEMTO_CORRFIT_HD_FUNC_CORRFITHDFUNC1D_H_
11
12#include "Array.h"
13#include "CorrFitHDFunc.h"
14#include "CorrFitMask1D.h"
15
16#include <RtypesCore.h>
17
18namespace Hal {
27 Array_1<Double_t> fDenominatorHD;
28 Array_1<Double_t> fDenominatorSum;
29 Array_1<Double_t> fMapHD;
30
31 Array_1<Int_t> fBins;
32 Array_1<Int_t> fBinsHD;
33 void CalculateBinsArrays(const CorrFitMask1D& mask, Bool_t hd);
34
35 public:
41 inline Int_t GetNbins() const { return fBins.GetSize(); };
47 inline Int_t GetBin(Int_t no) const { return fBins.Get(no); };
54 void SetMask(const CorrFitMask& mask, TH1* denominator, Bool_t hd);
61 Double_t GetBinCFVal(Int_t bin, Bool_t extrapolated) const;
67 inline Double_t EvalHD(Double_t hdBin) const { return fMins[0] + fSteps[0] * hdBin; }
68 inline Array_1<Int_t>& GetBinsHD() { return fBinsHD; };
69 inline Array_1<Double_t>& GetCFMapHD() { return fMapHD; }
70 inline Array_1<Double_t>& GetDenominatorHD() { return fDenominatorHD; };
71 inline Array_1<Double_t>& GetDenominatorSum() { return fDenominatorSum; };
72 virtual ~CorrFitHDFunc1D();
73 ClassDef(CorrFitHDFunc1D, 1)
74 };
75} // namespace Hal
76#endif /* HAL_ANALYSIS_FEMTO_CORRFIT_HD_FUNC_CORRFITHDFUNC1DA_H_ */
T Get(Int_t i) const
Definition Array.h:97
Int_t GetSize() const
Definition Array.h:50
Int_t GetBin(Int_t no) const
Double_t EvalHD(Double_t hdBin) const
Double_t GetBinCFVal(Int_t bin, Bool_t extrapolated) const
void SetMask(const CorrFitMask &mask, TH1 *denominator, Bool_t hd)