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
44 AliRsnValue(const char *name, EValueType type, Int_t n, Double_t min, Double_t max);
45 AliRsnValue(const char *name, EValueType type, Double_t min, Double_t max, Double_t step);
46 AliRsnValue(const AliRsnValue& copy) : TNamed(copy),fType(copy.fType),fNBins(copy.fNBins),fMin(copy.fMin),fMax(copy.fMax),fValue(copy.fValue) {}
47 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);}
48 virtual ~AliRsnValue() { }
50 //const char* GetName() const;
51 Int_t GetNBins() const {return fNBins;}
52 Double_t GetMin() const {return fMin;}
53 Double_t GetMax() const {return fMax;}
54 TArrayD GetArray() const;
55 Double_t GetValue() const {return fValue;}
56 EValueType GetValueType() {return fType;}
58 void SetValueType(EValueType type) {fType = type;}
59 void SetBins(Int_t n, Double_t min, Double_t max);
60 void SetBins(Double_t min, Double_t max, Double_t step);
62 Bool_t Eval(AliRsnMother *mother, const AliRsnPairDef *pairDef, AliRsnEvent *event);
66 EValueType fType; // value type
67 Int_t fNBins; // number of bins (when applicable)
68 Double_t fMin; // lower edge
69 Double_t fMax; // upper edge
70 Double_t fValue; // computed value
73 ClassDef(AliRsnValue, 1)