Added param list class for upgrade sim/rec options
[u/mrichter/AliRoot.git] / STEER / STEER / AliParamList.h
CommitLineData
18327966 1#ifndef ALIPARAMLIST_H
2#define ALIPARAMLIST_H
3
4#include <TNamed.h>
5
6class TString;
7
8class 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);
14 ~AliParamList();
15 //
16 Int_t GetNParams() const {return fNPar;}
17 Double_t* GetParams() const {return (Double_t*)fParams;}
18 TString* GetNames() const {return (TString*) fNames;}
19 Double_t GetParameter(Int_t i) const {return fParams[i];}
20 const Char_t* GetParName(Int_t i) const {return fNames[i].Data();}
21 //
22 void SetNParams(Int_t n);
23 void SetParName(Int_t i, const char* nm);
24 void SetParameter(Int_t i, Double_t v, const char* nm=0);
25 void SetParameters(const Double_t* vals) {for (int i=0;i<fNPar;i++) SetParameter(i,vals[i]);}
26 //
27 virtual void Print(Option_t *opt="") const;
28 //
29 protected:
30 Int_t fNPar; // number of parameters
31 TString* fNames; //[fNPar] parameter names
32 Double_t* fParams; //[fNPar] parameter values
33 //
34 ClassDef(AliParamList,1)
35};
36
37#endif