Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
FemtoCorrFunc1D.h
1/*
2 * FemtoCorrFunc1Db.h
3 *
4 * Created on: 26 cze 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_BASE_CORRFUNC_FEMTOCORRFUNC1D_H_
10#define HAL_ANALYSIS_FEMTO_BASE_CORRFUNC_FEMTOCORRFUNC1D_H_
11
12#include "FemtoCorrFunc.h"
13namespace Hal {
18 protected:
22 const TString fLabel;
26 TH1D* fNumProp = {nullptr};
30 TH1D* fDenProp = {nullptr};
31 virtual Bool_t Angle() const { return kFALSE; }
32 Array_1<Float_t> fRange;
33 void SetBins(const std::initializer_list<double>& array);
34 virtual void AddHTMLCode(HtmlFile& /*file*/) const {};
35 virtual Double_t GetPairValNum(FemtoPair* pair) const = 0;
36 virtual Double_t GetPairValDenRot(FemtoPair* pair) const = 0;
37 virtual Double_t GetPairValDenPerf(FemtoPair* pair) const { return GetPairValNum(pair); };
38 virtual Double_t GetPairValDenHemi(FemtoPair* pair) const { return GetPairValDenRot(pair); };
39 virtual Double_t GetPairValDenChar(FemtoPair* pair) const { return GetPairValNum(pair); };
40 virtual Double_t GetPairValDenMix(FemtoPair* pair) const { return GetPairValNum(pair); };
46 Int_t ConvertVal(Double_t val) const;
47 FemtoCorrFunc1D(const DividedHisto1D& h,
48 std::initializer_list<Double_t> cuts,
49 Int_t bins,
50 TString xTitle,
51 TString xAxis,
52 TString yAxis);
53
54 public:
55 FemtoCorrFunc1D() : FemtoCorrFunc() {};
56 FemtoCorrFunc1D(const DividedHisto1D& h, std::initializer_list<Double_t> cuts, Int_t bins) :
57 FemtoCorrFunc1D(h, cuts, bins, "", "", "") {};
58 void FillNum(FemtoPair* pair);
59 void FillDenPerfect(FemtoPair* pair);
60 void FillDenRotated(FemtoPair* pair);
61 void FillDenMixed(FemtoPair* pair);
62 void FillDenHemisphere(FemtoPair* pair);
63 void FillDenCharged(FemtoPair* pair);
64 TH1D* GetNumMon() const { return fNumProp; };
65 TH1D* GetDenMon() const { return fDenProp; }
66 virtual Bool_t Check();
67 virtual void Add(const Object* pack);
68 virtual TString HTMLExtract(Int_t no, TString dir = "") const;
69 TString GetLabel() const { return fLabel; };
70 const Array_1<Float_t> GetRange() const { return fRange; };
71 virtual ~FemtoCorrFunc1D();
72 ClassDef(FemtoCorrFunc1D, 1)
73 };
74
75} /* namespace Hal */
76
77#endif /* HAL_ANALYSIS_FEMTO_BASE_CORRFUNC_FEMTOCORRFUNC1DB_H_ */
virtual Bool_t Check()
virtual void Add(const Object *pack)
void FillNum(FemtoPair *pair)
Int_t ConvertVal(Double_t val) const
virtual TString HTMLExtract(Int_t no, TString dir="") const
FemtoCorrFunc(const DividedHisto1D *h, Int_t size=0)