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