4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
7 ////////////////////////////////////////////////////////////////////////////////
9 // Collection of all values which can be computed within the package
11 ////////////////////////////////////////////////////////////////////////////////
15 #include "AliRsnTarget.h"
17 class AliRsnValue : public AliRsnTarget {
20 AliRsnValue(const char *name = "", AliRsnTarget::ETargetType type = AliRsnTarget::kTargetTypes);
21 AliRsnValue(const AliRsnValue& copy);
22 AliRsnValue& operator=(const AliRsnValue& copy);
23 virtual ~AliRsnValue() { }
25 TArrayD& GetArray() {return fBinArray;}
26 const Double_t* GetArrayValues() const {return fBinArray.GetArray();}
27 Double_t GetComputedValue() const {return fComputedValue;}
29 void SetUseMCInfo(Bool_t yn = kTRUE) {fUseMCInfo = yn;}
30 void SetBins(Int_t n, Double_t min, Double_t max);
31 void SetBins(Int_t n, Double_t *array);
32 void SetBins(Double_t min, Double_t max, Double_t step);
34 virtual Bool_t Eval(TObject *object);
35 virtual void Print(Option_t *option = "") const;
39 Bool_t fUseMCInfo; // flag to choose MC info when choice is possible
40 Double_t fComputedValue; // computed value
41 TArrayD fBinArray; // array of bins (when used for a histogram axis)
43 ClassDef(AliRsnValue, 3) // AliRsnValue base class