]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/STEER/AliParamList.h
Disable test of requested CDB objects similarity in sim and rec in case the sim has...
[u/mrichter/AliRoot.git] / STEER / STEER / AliParamList.h
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);
14   virtual ~AliParamList();
15   //
16   Int_t         GetID()                const {return fID;}
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];}
21   const Char_t* GetParName(Int_t i)    const;
22   //
23   void          SetID(Int_t id)              {fID = id;}
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:
32   Int_t     fID;       // user defined id
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