]>
Commit | Line | Data |
---|---|---|
b9bbd271 | 1 | #ifndef ALIRSNVALUE_H |
2 | #define ALIRSNVALUE_H | |
3 | ||
7356f978 | 4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
7 | //////////////////////////////////////////////////////////////////////////////// | |
8 | // | |
9 | // Collection of all values which can be computed within the package | |
10 | // | |
11 | //////////////////////////////////////////////////////////////////////////////// | |
12 | ||
2dab9030 | 13 | #include "TArrayD.h" |
c865cb1d | 14 | |
32992791 | 15 | #include "AliRsnTarget.h" |
b9bbd271 | 16 | |
2a1c7696 | 17 | class AliRsnValue : public AliRsnTarget { |
18 | public: | |
19 | ||
2a1c7696 | 20 | AliRsnValue(); |
c865cb1d | 21 | AliRsnValue(const char *name, Int_t nbins = 0, Double_t min = 0.0, Double_t max = 0.0); |
22 | AliRsnValue(const char *name, Double_t min, Double_t max, Double_t step); | |
23 | AliRsnValue(const char *name, Int_t nbins, Double_t *array); | |
2a1c7696 | 24 | AliRsnValue(const AliRsnValue& copy); |
25 | AliRsnValue& operator=(const AliRsnValue& copy); | |
c865cb1d | 26 | virtual ~AliRsnValue() { } |
2a1c7696 | 27 | |
c865cb1d | 28 | TArrayD GetArray() const {return fBinArray;} |
29 | const Double_t* GetArrayValues() const {return fBinArray.GetArray();} | |
30 | Double_t GetComputedValue() const {return fComputedValue;} | |
2a1c7696 | 31 | |
c865cb1d | 32 | void SetBins(Int_t n, Double_t min, Double_t max); |
33 | void SetBins(Int_t n, Double_t *array); | |
34 | void SetBins(Double_t min, Double_t max, Double_t step); | |
2a1c7696 | 35 | |
c865cb1d | 36 | virtual Bool_t Eval(TObject *object, Bool_t useMC = kFALSE); |
37 | virtual void Print(Option_t *option = "") const; | |
2a1c7696 | 38 | |
39 | protected: | |
b9bbd271 | 40 | |
c865cb1d | 41 | Double_t fComputedValue; // computed value |
42 | TArrayD fBinArray; // array of bins (when used for a histogram axis) | |
b9bbd271 | 43 | |
c865cb1d | 44 | ClassDef(AliRsnValue, 3) // AliRsnValue base class |
b9bbd271 | 45 | }; |
46 | ||
47 | #endif |