Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
CorrelationHisto.h
1/*
2 * CorrHisto.h
3 *
4 * Created on: 11 kwi 2024
5 * Author: daniel
6 */
7
8#ifndef HAL_FEATURES_HIST_CORRELATIONHISTO_H_
9#define HAL_FEATURES_HIST_CORRELATIONHISTO_H_
10
11#include <RtypesCore.h>
12#include <TString.h>
13#include <initializer_list>
14#include <vector>
15
16#include "HistogramManager.h"
17#include "Object.h"
18
19class TH2D;
20
21namespace Hal {
22
23 class CorrelationHisto : public Object {
24 std::vector<HistogramAxisConf> fAxesConf;
25 std::vector<std::vector<double>> fTestValues;
26 Int_t fNHistograms = {0};
27 Int_t fNParams = {0};
28 Int_t fNTest = {0};
29 TH2D** fHistograms = {nullptr}; //[fNHistograms]
30 Bool_t fAutoFill = {kFALSE};
31
32 void Initialize();
33 void AutoInitialize();
34
35 public:
41 CorrelationHisto(Int_t nParams = 1, Int_t nTest = 1000);
42 void ConfigParam(Int_t par, Int_t bins, Double_t min, Double_t max, TString name);
47 CorrelationHisto(std::initializer_list<std::initializer_list<Double_t>> vals, Int_t nTest = 1000);
48 void Fill(std::vector<Double_t> params);
49 void FillUnchecked(std::vector<Double_t> params);
50 void Draw(Option_t* opt = "");
51 virtual ~CorrelationHisto();
52 ClassDef(CorrelationHisto, 1)
53 };
54
55} // namespace Hal
56
57#endif /* HAL_FEATURES_HIST_CORRELATIONHISTO_H_ */
CorrelationHisto(Int_t nParams=1, Int_t nTest=1000)