]>
Commit | Line | Data |
---|---|---|
18327966 | 1 | #ifndef ALIPARAMLIST_H |
2 | #define ALIPARAMLIST_H | |
3 | ||
4 | #include <TNamed.h> | |
5 | ||
6 | class TString; | |
7 | ||
8 | class AliParamList : public TNamed | |
9 | { | |
10 | public: | |
11 | AliParamList(Int_t n=0, const Double_t *parVal=0); | |
12 | AliParamList(const AliParamList& src); | |
13 | AliParamList& operator=(const AliParamList& src); | |
58285df7 | 14 | virtual ~AliParamList(); |
18327966 | 15 | // |
d0a8f0b5 | 16 | Int_t GetID() const {return fID;} |
18327966 | 17 | Int_t GetNParams() const {return fNPar;} |
18 | Double_t* GetParams() const {return (Double_t*)fParams;} | |
19 | TString* GetNames() const {return (TString*) fNames;} | |
20 | Double_t GetParameter(Int_t i) const {return fParams[i];} | |
d0a8f0b5 | 21 | const Char_t* GetParName(Int_t i) const; |
18327966 | 22 | // |
d0a8f0b5 | 23 | void SetID(Int_t id) {fID = id;} |
18327966 | 24 | void SetNParams(Int_t n); |
25 | void SetParName(Int_t i, const char* nm); | |
26 | void SetParameter(Int_t i, Double_t v, const char* nm=0); | |
27 | void SetParameters(const Double_t* vals) {for (int i=0;i<fNPar;i++) SetParameter(i,vals[i]);} | |
28 | // | |
29 | virtual void Print(Option_t *opt="") const; | |
30 | // | |
31 | protected: | |
d0a8f0b5 | 32 | Int_t fID; // user defined id |
18327966 | 33 | Int_t fNPar; // number of parameters |
34 | TString* fNames; //[fNPar] parameter names | |
35 | Double_t* fParams; //[fNPar] parameter values | |
36 | // | |
37 | ClassDef(AliParamList,1) | |
38 | }; | |
39 | ||
40 | #endif |