4 // Definition of a single value which can be computed
5 // from any of the defined input objects implemented
6 // in the resonance package.
17 class AliRsnValue : public TObject
39 AliRsnValue(EValueType type, Int_t n, Double_t min, Double_t max);
40 AliRsnValue(EValueType type, Double_t min, Double_t max, Double_t step);
41 AliRsnValue(const AliRsnValue& copy) : TObject(copy),fType(copy.fType),fNBins(copy.fNBins),fMin(copy.fMin),fMax(copy.fMax),fValue(copy.fValue) {}
42 AliRsnValue& operator=(const AliRsnValue& copy) {fType=copy.fType;fNBins=copy.fNBins;fMin=copy.fMin;fMax=copy.fMax;fValue=copy.fValue;return (*this);}
43 virtual ~AliRsnValue() { }
45 const char* GetName() const;
46 Int_t GetNBins() const {return fNBins;}
47 Double_t GetMin() const {return fMin;}
48 Double_t GetMax() const {return fMax;}
49 TArrayD GetArray() const;
50 Double_t GetValue() const {return fValue;}
51 EValueType GetValueType() {return fType;}
53 void SetValueType(EValueType type) {fType = type;}
54 void SetBins(Int_t n, Double_t min, Double_t max);
55 void SetBins(Double_t min, Double_t max, Double_t step);
57 Bool_t Eval(AliRsnMother *mother, const AliRsnPairDef *pairDef, AliRsnEvent *event);
61 EValueType fType; // value type
62 Int_t fNBins; // number of bins (when applicable)
63 Double_t fMin; // lower edge
64 Double_t fMax; // upper edge
65 Double_t fValue; // computed value
68 ClassDef(AliRsnValue, 1)