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