Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
QAHistoSettings.h
1/*
2 * QAHistoSettings.h
3 *
4 * Created on: 05-05-2022
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9#ifndef HALQAHISTOSETTINGS_H_
10#define HALQAHISTOSETTINGS_H_
11
12#include <TNamed.h>
13#include <TVector3.h>
14
15#include <vector>
16
17class TH1;
18namespace Hal {
19 class QAHistoSettings : public TNamed {
20 Int_t fSize;
21 Int_t fFillFlagIdX, fFillFlagIdY, fFillFlagIdZ;
22 Bool_t fCustom;
23 TString fFlag;
24 TString fAxisNameX, fAxisNameY, fAxisNameZ;
25 TVector3 fBinsX, fBinsY, fBinsZ;
26
27 public:
28 QAHistoSettings(Int_t dim = 0) : fSize(dim), fFillFlagIdX(0), fFillFlagIdY(0), fFillFlagIdZ(0), fCustom(kFALSE) {};
29 QAHistoSettings& operator=(const QAHistoSettings& other) = default;
30 QAHistoSettings(const QAHistoSettings& other) = default;
31 virtual void Print(Option_t* option = "") const;
32 void SetFlag(TString flag) { fFlag = flag; };
33 void SetCustomized(Bool_t custom = kTRUE) { fCustom = custom; };
34 void SetXaxis(Int_t nbins, Double_t min, Double_t max) { fBinsX.SetXYZ(nbins, min, max); }
35 void SetYaxis(Int_t nbins, Double_t min, Double_t max) { fBinsY.SetXYZ(nbins, min, max); }
36 void SetZaxis(Int_t nbins, Double_t min, Double_t max) { fBinsZ.SetXYZ(nbins, min, max); }
37 void SetXaxisName(TString name) { fAxisNameX = name; };
38 void SetYaxisName(TString name) { fAxisNameY = name; };
39 void SetZaxisName(TString name) { fAxisNameZ = name; };
40 void SetFillFlagX(Int_t flagID) { fFillFlagIdX = flagID; };
41 void SetFillFlagY(Int_t flagID) { fFillFlagIdY = flagID; };
42 void SetFillFlagZ(Int_t flagID) { fFillFlagIdZ = flagID; };
43 Int_t GetFillFlagX() const { return fFillFlagIdX; };
44 Int_t GetFillFlagY() const { return fFillFlagIdY; };
45 Int_t GetFillFlagZ() const { return fFillFlagIdZ; };
50 Int_t GetNDim() const { return fSize; }
55 Bool_t IsCustom() const { return fCustom; };
60 TString GetFullTitle() const;
65 TString GetFlag() const { return fFlag; };
66 TH1* MakeHisto() const;
67 virtual ~QAHistoSettings() {};
68 ClassDef(QAHistoSettings, 1)
69 };
70} // namespace Hal
71
72#endif /* HALQAHISTOSETTINGS_H_ */
TString GetFlag() const
TString GetFullTitle() const
Bool_t IsCustom() const