Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
FemtoCFPainter.h
1/*
2 * FemtoFuncPainter.h
3 *
4 * Created on: 22 lip 2024
5 * Author: daniel
6 */
7
8#ifndef HAL_ANALYSIS_PAINTERS_FEMTOFUNCPAINTER_H_
9#define HAL_ANALYSIS_PAINTERS_FEMTOFUNCPAINTER_H_
10
11#include "Painter.h"
12#include "Style.h"
13
14#include <iostream>
15
16class TH1;
17
18namespace Hal {
25 class FemtoCFPainter : public Painter {
26 friend class CorrFitPainter;
27
28 protected:
29 Double_t fRangeX[2] = {0, 0};
30 Double_t fRangeY[2] = {0, 0};
31 static const int kNumBit, kDenBit, kCFBit, kHideTitles;
32 Double_t fScale = {1.0};
33 Double_t fDrawScale = {1.0};
34 TString fDefDrawFlag = "SAME+P";
35 std::vector<std::vector<TH1*>> fHistograms;
36
37 virtual ULong64_t SetOptionInternal(TString opt, ULong64_t prev = 0);
38 TH1* CloneHist(TH1*) const;
39 void DeleteHistograms();
40 virtual void MakeHistograms() = 0;
41 virtual void ScaleHistograms();
42 virtual void DrawHistograms();
43 ULong64_t PrepBitTemplate(std::initializer_list<int> temps) const;
50 Bool_t AreSimiliar(ULong64_t current, ULong64_t pattern) const;
51 virtual void InnerPaint();
52 virtual void InnerRepaint();
53
54 public:
62 std::pair<Double_t, Double_t> GetMinMax(Int_t x = 0, Int_t y = 0) const;
63 virtual void Rescale(Double_t newScale);
64
69 virtual TString GetOptionForCorrFit() const { return ""; };
70 virtual ~FemtoCFPainter();
71 ClassDef(FemtoCFPainter, 0)
72 };
73} // namespace Hal
74
75#endif /* HAL_ANALYSIS_PAINTERS_FEMTOFUNCPAINTER_H_ */
std::pair< Double_t, Double_t > GetMinMax(Int_t x=0, Int_t y=0) const
virtual void InnerRepaint()
virtual void InnerPaint()
Bool_t AreSimiliar(ULong64_t current, ULong64_t pattern) const
virtual ULong64_t SetOptionInternal(TString opt, ULong64_t prev=0)
virtual TString GetOptionForCorrFit() const