]>
Commit | Line | Data |
---|---|---|
1 | // | |
2 | // Class AliRsnHistoDef | |
3 | // | |
4 | // Histogram definition. | |
5 | // Contains required informations to create a histogram | |
6 | // with fixed bin size: number of bins, minimum and maximum. | |
7 | // Variable bin sizes are not considered because they are | |
8 | // not used as typical output of analysis in this package. | |
9 | // | |
10 | ||
11 | #ifndef ALIRSNHISTODEF_H | |
12 | #define ALIRSNHISTODEF_H | |
13 | ||
14 | class AliRsnHistoDef : public TObject | |
15 | { | |
16 | public: | |
17 | ||
18 | AliRsnHistoDef(); | |
19 | AliRsnHistoDef(Int_t n, Double_t min, Double_t max); | |
20 | AliRsnHistoDef(Double_t min, Double_t max, Double_t step); | |
21 | virtual ~AliRsnHistoDef() { } | |
22 | ||
23 | Int_t GetNBins() const {return fNBins;} | |
24 | Double_t GetMin() const {return fMin;} | |
25 | Double_t GetMax() const {return fMax;} | |
26 | ||
27 | void SetBins(Int_t n, Double_t min, Double_t max); | |
28 | void SetBins(Double_t min, Double_t max, Double_t step); | |
29 | ||
30 | private: | |
31 | ||
32 | Int_t fNBins; // number of bins | |
33 | Double_t fMin; // lower edge | |
34 | Double_t fMax; // upper edge | |
35 | ||
36 | // ROOT dictionary | |
37 | ClassDef(AliRsnHistoDef, 1) | |
38 | }; | |
39 | ||
40 | #endif |