Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
CorrFitMapKstarRstar.h
1/*
2 * CorrFitMap1D.h
3 *
4 * Created on: 18 paź 2021
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9#ifndef HALFEMTO_ANALYSIS_FEMTO_CORRFIT_HALCORRFITMAPKSTARRSTAR_H_
10#define HALFEMTO_ANALYSIS_FEMTO_CORRFIT_HALCORRFITMAPKSTARRSTAR_H_
11
12#include "Splines.h"
13
14#include <TH2D.h>
15#include <TNamed.h>
16#include <TObject.h>
17
18#include "FemtoConst.h"
19#include "Object.h"
20namespace Hal {
21 class DividedHisto2D;
22
24 protected:
25 TH2D* fHisto2d;
26 Spline2D* fSplined;
27 Double_t fFrameScale;
28 Femto::EKinematics fFrame;
29
30 public:
31 CorrFitMapKstarRstar(TString name = "CF_map");
32 CorrFitMapKstarRstar(TString name,
33 Int_t binsKstar,
34 Double_t minKstar,
35 Double_t maxKstar,
36 Int_t binsR,
37 Double_t minR,
38 Double_t maxR,
39 Femto::EKinematics kin = Femto::EKinematics::kPRF);
40 CorrFitMapKstarRstar(const TH2D& h, Femto::EKinematics kin = Femto::EKinematics::kPRF);
42 virtual void Recalc(TString extrOpt = "");
43 virtual void Add(const Object* pack);
44 void SetFrameScale(Femto::EKinematics kin);
45 Int_t GetNRbins() const { return fHisto2d->GetYaxis()->GetNbins(); };
46 Int_t GetNKstrbins() const { return fHisto2d->GetXaxis()->GetNbins(); };
47 Double_t GetRmin() const { return fHisto2d->GetYaxis()->GetBinLowEdge(1); };
48 Double_t GetRmax() const { return fHisto2d->GetYaxis()->GetBinUpEdge(GetNRbins()); };
49 Double_t GetKstarMin() const { return fHisto2d->GetXaxis()->GetBinLowEdge(1); };
50 Double_t GetKstarMax() const { return fHisto2d->GetXaxis()->GetBinUpEdge(GetNKstrbins()); };
51 Double_t Eval(Double_t q, Double_t R) const;
52 Double_t EvalNumError(Double_t q, Double_t R) const;
53 Double_t EvalNumErrorBin(Int_t x, Int_t y) const { return fSplined->ErrorBin(x, y) * 1.5; }
54 Femto::EKinematics GetFrame() const { return fFrame; };
55 TH2D* GetHisto() const { return fHisto2d; }
56 CorrFitMapKstarRstar& operator=(const CorrFitMapKstarRstar& other);
57 virtual ~CorrFitMapKstarRstar();
58 ClassDef(CorrFitMapKstarRstar, 1)
59 };
60
62 DividedHisto2D* fHistoDiv2d;
63
64 public:
65 CorrFitMapKstarRstarDiv(TString name = "CF_map");
67 CorrFitMapKstarRstarDiv(const DividedHisto2D& other, Femto::EKinematics kin);
68 CorrFitMapKstarRstarDiv& operator=(const CorrFitMapKstarRstarDiv& other);
69 virtual void Recalc(TString extrOpt = "");
70 virtual void Add(const Object* pack);
72 ClassDef(CorrFitMapKstarRstarDiv, 1)
73 };
74} // namespace Hal
75
76#endif /* HALFEMTO_ANALYSIS_FEMTO_CORRFIT_HALCORRFITMAPKSTARRSTAR_H_ */
virtual void Add(const Object *pack)
virtual void Add(const Object *pack)
Double_t ErrorBin(Int_t bin_x, Int_t bin_y) const
Definition Splines.cxx:356