2 // Class AliRsnFunctionAxis
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.
11 #ifndef ALIRSNFunctionAxis_H
12 #define ALIRSNFunctionAxis_H
16 class AliRsnFunctionAxis : public TObject
44 AliRsnFunctionAxis(EAxisType type, Int_t n, Double_t min, Double_t max);
45 AliRsnFunctionAxis(EAxisType type, Double_t min, Double_t max, Double_t step);
46 virtual ~AliRsnFunctionAxis() { }
48 virtual const char* GetName() const;
50 Int_t GetNBins() const {return fNBins;}
51 Double_t GetMin() const {return fMin;}
52 Double_t GetMax() const {return fMax;}
53 EAxisObject GetAxisObject();
55 void SetType(EAxisType type) {fType = type;}
56 void SetBins(Int_t n, Double_t min, Double_t max);
57 void SetBins(Double_t min, Double_t max, Double_t step);
59 Double_t Eval(AliRsnDaughter *daughter);
60 Double_t Eval(AliRsnPairParticle *pair, AliRsnPairDef *pairDef);
61 Double_t Eval(AliRsnEvent *event);
65 EAxisType fType; // binning type
67 Int_t fNBins; // number of bins
68 Double_t fMin; // lower edge
69 Double_t fMax; // upper edge
72 ClassDef(AliRsnFunctionAxis, 1)