]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG2/RESONANCES/AliRsnHistoDef.h
new class missed in previous commit
[u/mrichter/AliRoot.git] / PWG2 / RESONANCES / AliRsnHistoDef.h
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     virtual ~AliRsnHistoDef() { }
21
22     Int_t    GetNBins() const {return fNBins;}
23     Double_t GetMin() const {return fMin;}
24     Double_t GetMax() const {return fMax;}
25
26     void     SetBins(Int_t n, Double_t min, Double_t max);
27
28   private:
29
30     Int_t     fNBins;   // number of bins
31     Double_t  fMin;     // lower edge
32     Double_t  fMax;     // upper edge
33
34     // ROOT dictionary
35     ClassDef(AliRsnHistoDef, 1)
36 };
37
38 #endif