Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
QAPlotAxis.h
1/*
2 * QAPlotAxis.h
3 *
4 * Created on: 17 sie 2022
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9#ifndef HAL_ANALYSIS_QA_QAPLOTAXIS_H_
10#define HAL_ANALYSIS_QA_QAPLOTAXIS_H_
11
12#include <RtypesCore.h>
13#include <TNamed.h>
14
15namespace Hal {
16
17 class QAPlotAxis : public TObject {
18 Int_t fFlag;
19 Int_t fNBins;
20 Double_t fMin;
21 Double_t fMax;
22
23 public:
24 QAPlotAxis();
25 QAPlotAxis(Int_t flag, Int_t bins, Double_t min, Double_t max);
26 Int_t GetNBins() const { return fNBins; }
27 Int_t GetFlag() const { return fFlag; }
28 Double_t GetMax() const { return fMax; }
29 Double_t GetMin() const { return fMin; }
30 void SetBins(Int_t bins) { fNBins = bins; }
31 void SetFlag(Int_t flag) { fFlag = flag; }
32 void SetMax(Double_t max) { fMax = max; }
33 void SetMin(Double_t min) { fMin = min; }
34 void SetRange(Double_t min, Double_t max) {
35 fMin = min;
36 fMax = max;
37 }
38 QAPlotAxis(const QAPlotAxis& other) = default;
39 QAPlotAxis& operator=(const QAPlotAxis& other) = default;
40 virtual ~QAPlotAxis();
41 ClassDef(QAPlotAxis, 1)
42 };
43
44} /* namespace Hal */
45
46#endif /* HAL_ANALYSIS_QA_QAPLOTAXIS_H_ */