14 #define PDATABASE_MAX_DOUBLE_PARAM 20
15 #define PDATABASE_MAX_STRING_PARAM 20
16 #define PDATABASE_MAX_INT_PARAM 150
17 #define PDATABASE_MAX_TOBJ_PARAM 10
19 #define PDATABASE_MAX_LINES 1000
31 const char* param_double_name
36 const char* param_double_descr
61 CheckEntry(Int_t key);
62 Int_t ConvertParamKey(
const char*& newparamname, Int_t key);
68 void Performance(
void);
70 void SetFastKey(Int_t pkey, Int_t maxkey);
74 MakeParamDouble(
const char* paramname,
77 MakeParamString(
const char* paramname,
79 Int_t MakeParamInt(
const char* paramname,
81 Int_t MakeParamTObj(
const char* paramname,
85 GetParamDouble(
const char* paramname);
87 GetParamString(
const char* paramname);
88 Int_t GetParamInt(
const char* paramname,
90 Int_t GetParamTObj(
const char* paramname);
92 char* GetDescription(
const char* paramname);
95 if ((*pkey) < 0) *pkey = GetParamInt(paramname);
98 if ((*pkey) < 0) *pkey = GetParamString(paramname);
101 if ((*pkey) < 0) *pkey = GetParamDouble(paramname);
104 if ((*pkey) < 0) *pkey = GetParamTObj(paramname);
107 using TObject::GetName;
108 const char* GetName(Int_t key);
111 Bool_t GetParamDouble(Int_t key,
const char* paramname, Double_t** result);
112 Bool_t GetParamString(Int_t key,
const char* paramname,
const char** result);
113 Bool_t GetParamInt(Int_t key,
114 const char* paramname,
117 Bool_t GetParamTObj(Int_t key,
const char* paramname, TObject** result);
120 Bool_t GetParamInt(Int_t key, Int_t pkey, Int_t** result);
121 Bool_t GetParamString(Int_t key, Int_t pkey,
const char** result);
122 Bool_t GetParamDouble(Int_t key, Int_t pkey, Double_t** result);
123 Bool_t GetParamTObj(Int_t key, Int_t pkey, TObject** result);
128 Bool_t b = GetParamInt(key, pkey, &p);
137 Bool_t
GetParamInt(
const char* name,
const char* paramname, Int_t** result) {
138 return GetParamInt(GetEntry(name), paramname, result);
142 return GetParamDouble(GetEntry(name), paramname, result);
146 return GetParamString(GetEntry(name), paramname, result);
149 GetParamTObj(
const char* name,
const char* paramname, TObject** result) {
150 return GetParamTObj(GetEntry(name), paramname, result);
156 const char* paramname2,
158 return GetParamInt(GetEntryInt(paramname1, value1), paramname2, result);
162 const char* paramname2,
164 return GetParamDouble(GetEntryInt(paramname1, value1), paramname2, result);
168 const char* paramname2,
169 const char** result) {
170 return GetParamString(GetEntryInt(paramname1, value1), paramname2, result);
174 const char* paramname2,
176 return GetParamTObj(GetEntryInt(paramname1, value1), paramname2, result);
180 Bool_t
GetParamInt(Int_t pkey1, Int_t value1, Int_t pkey2, Int_t** result) {
182 return GetParamInt(GetEntryInt(pkey1, value1), pkey2, result);
186 return GetParamDouble(GetEntryInt(pkey1, value1), pkey2, result);
190 return GetParamString(GetEntryInt(pkey1, value1), pkey2, result);
193 GetParamTObj(Int_t pkey1, Int_t value1, Int_t pkey2, TObject** result) {
194 return GetParamTObj(GetEntryInt(pkey1, value1), pkey2, result);
198 Bool_t SetParamDouble(Int_t key,
const char* paramname, Double_t* result);
199 Bool_t SetParamString(Int_t key,
const char* paramname,
char* result);
200 Bool_t SetParamInt(Int_t key,
const char* paramname, Int_t* result);
201 Bool_t SetParamTObj(Int_t key,
const char* paramname, TObject* result);
204 Bool_t SetParamTObj(Int_t key, Int_t pp, TObject* result);
208 Int_t key = GetEntry(name);
209 if (key < 0)
return kFALSE;
210 return SetParamDouble(key, paramname,
new Double_t(result));
212 Bool_t
SetParamInt(
const char* name,
const char* paramname, Int_t result) {
213 Int_t key = GetEntry(name);
214 if (key < 0)
return kFALSE;
215 return SetParamInt(key, paramname,
new Int_t(result));
218 Int_t key = GetEntry(name);
219 if (key < 0)
return kFALSE;
220 return SetParamString(key, paramname, result);
223 SetParamTObj(
const char* name,
const char* paramname, TObject* result) {
224 Int_t key = GetEntry(name);
225 if (key < 0)
return kFALSE;
226 return SetParamTObj(key, paramname, result);
230 Bool_t AddEntry(Int_t key,
const char* name);
231 Int_t AddEntry(
const char* name);
232 Int_t GetEntry(
const char* name);
233 Int_t GetEntryInt(
const char* paramname, Int_t value);
234 Int_t GetEntryInt(Int_t pkey, Int_t value);
237 Int_t AddListEntry(
const char* name,
240 const char* newname);
241 Bool_t MakeListIterator(Int_t key,
245 Bool_t MakeListIterator(Int_t key, Int_t count, Int_t link, Int_t* listkey);
248 ListEntries(Int_t key = -1, Int_t option = 0,
const char* pattern =
nullptr);
250 void Print(
const Option_t* delme)
const;