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 = 0, Double_t min = 0.0, Double_t max = 0.0);
46 AliRsnValue(const char *name, EValueType type, Double_t min, Double_t max, Double_t step);
47 AliRsnValue(const char *name, EValueType type, Int_t n, Double_t *array);
48 AliRsnValue(const AliRsnValue& copy) : TNamed(copy),fType(copy.fType),fValue(copy.fValue),fArray(copy.fArray) {}
49 AliRsnValue& operator=(const AliRsnValue& copy) {SetName(copy.GetName());fType=copy.fType;fValue=copy.fValue;fArray=copy.fArray;return (*this);}
50 virtual ~AliRsnValue() { }
52 TArrayD GetArray() const {return fArray;}
53 Double_t GetValue() const {return fValue;}
54 EValueType GetValueType() {return fType;}
56 void SetValueType(EValueType type) {fType = type;}
57 void SetBins(Int_t n, Double_t min, Double_t max);
58 void SetBins(Double_t min, Double_t max, Double_t step);
59 void SetBins(Int_t n, Double_t *array);
61 Bool_t Eval(AliRsnMother * const mother, AliRsnPairDef * const pairDef, AliRsnEvent * const event);
65 EValueType fType; // value type
66 Double_t fValue; // computed value
67 TArrayD fArray; // array of bins (when necessary)
70 ClassDef(AliRsnValue, 1)