CbmRoot
|
#include <PDataBase.h>
Public Member Functions | |
PDataBase () | |
void | Performance (void) |
void | SetFastKey (Int_t pkey, Int_t maxkey) |
Int_t | MakeParamDouble (const char *paramname, const char *descr) |
Int_t | MakeParamString (const char *paramname, const char *descr) |
Int_t | MakeParamInt (const char *paramname, const char *descr) |
Int_t | MakeParamTObj (const char *paramname, const char *descr) |
Int_t | GetParamDouble (const char *paramname) |
Int_t | GetParamString (const char *paramname) |
Int_t | GetParamInt (const char *paramname, Int_t length=-1) |
Int_t | GetParamTObj (const char *paramname) |
char * | GetDescription (const char *paramname) |
void | GetFastParamInt (const char *paramname, Int_t *pkey) |
void | GetFastParamString (const char *paramname, Int_t *pkey) |
void | GetFastParamDouble (const char *paramname, Int_t *pkey) |
void | GetFastParamTObj (const char *paramname, Int_t *pkey) |
const char * | GetName (Int_t key) |
Bool_t | GetParamDouble (Int_t key, const char *paramname, Double_t **result) |
Bool_t | GetParamString (Int_t key, const char *paramname, const char **result) |
Bool_t | GetParamInt (Int_t key, const char *paramname, Int_t **result, Int_t length=-1) |
Bool_t | GetParamTObj (Int_t key, const char *paramname, TObject **result) |
Bool_t | GetParamInt (Int_t key, Int_t pkey, Int_t **result) |
Bool_t | GetParamString (Int_t key, Int_t pkey, const char **result) |
Bool_t | GetParamDouble (Int_t key, Int_t pkey, Double_t **result) |
Bool_t | GetParamTObj (Int_t key, Int_t pkey, TObject **result) |
Bool_t | GetParamInt (Int_t key, Int_t pkey, Int_t *result) |
Bool_t | GetParamInt (const char *name, const char *paramname, Int_t **result) |
Bool_t | GetParamDouble (const char *name, const char *paramname, Double_t **result) |
Bool_t | GetParamString (const char *name, const char *paramname, const char **result) |
Bool_t | GetParamTObj (const char *name, const char *paramname, TObject **result) |
Bool_t | GetParamInt (const char *paramname1, Int_t value1, const char *paramname2, Int_t **result) |
Bool_t | GetParamDouble (const char *paramname1, Int_t value1, const char *paramname2, Double_t **result) |
Bool_t | GetParamString (const char *paramname1, Int_t value1, const char *paramname2, const char **result) |
Bool_t | GetParamTObj (const char *paramname1, Int_t value1, const char *paramname2, TObject **result) |
Bool_t | GetParamInt (Int_t pkey1, Int_t value1, Int_t pkey2, Int_t **result) |
Bool_t | GetParamDouble (Int_t pkey1, Int_t value1, Int_t pkey2, Double_t **result) |
Bool_t | GetParamString (Int_t pkey1, Int_t value1, Int_t pkey2, const char **result) |
Bool_t | GetParamTObj (Int_t pkey1, Int_t value1, Int_t pkey2, TObject **result) |
Bool_t | SetParamDouble (Int_t key, const char *paramname, Double_t *result) |
Bool_t | SetParamString (Int_t key, const char *paramname, char *result) |
Bool_t | SetParamInt (Int_t key, const char *paramname, Int_t *result) |
Bool_t | SetParamTObj (Int_t key, const char *paramname, TObject *result) |
Bool_t | SetParamTObj (Int_t key, Int_t pp, TObject *result) |
Bool_t | SetParamDouble (const char *name, const char *paramname, Double_t result) |
Bool_t | SetParamInt (const char *name, const char *paramname, Int_t result) |
Bool_t | SetParamString (const char *name, const char *paramname, char *result) |
Bool_t | SetParamTObj (const char *name, const char *paramname, TObject *result) |
Bool_t | AddEntry (Int_t key, const char *name) |
Int_t | AddEntry (const char *name) |
Int_t | GetEntry (const char *name) |
Int_t | GetEntryInt (const char *paramname, Int_t value) |
Int_t | GetEntryInt (Int_t pkey, Int_t value) |
Int_t | AddListEntry (const char *name, const char *count, const char *link, const char *newname) |
Bool_t | MakeListIterator (Int_t key, const char *count, const char *link, Int_t *listkey) |
Bool_t | MakeListIterator (Int_t key, Int_t count, Int_t link, Int_t *listkey) |
Bool_t | ListEntries (Int_t key=-1, Int_t option=0, const char *pattern=nullptr) |
void | Print (const Option_t *delme) const |
ClassDef (PDataBase, 0) | |
Private Member Functions | |
Bool_t | CheckEntry (Int_t key) |
Int_t | ConvertParamKey (const char *&newparamname, Int_t key) |
Private Attributes | |
const char * | param_double_name [PDATABASE_MAX_DOUBLE_PARAM] |
const char * | param_string_name [PDATABASE_MAX_STRING_PARAM] |
const char * | param_int_name [PDATABASE_MAX_INT_PARAM] |
const char * | param_tobj_name [PDATABASE_MAX_INT_PARAM] |
const char * | param_double_descr [PDATABASE_MAX_DOUBLE_PARAM] |
const char * | param_string_descr [PDATABASE_MAX_STRING_PARAM] |
const char * | param_int_descr [PDATABASE_MAX_INT_PARAM] |
const char * | param_tobj_descr [PDATABASE_MAX_INT_PARAM] |
Int_t | param_double_pointer |
Int_t | param_string_pointer |
Int_t | param_int_pointer |
Int_t | param_tobj_pointer |
Int_t * | param_int_key [PDATABASE_MAX_INT_PARAM] |
Int_t | param_int_key_max [PDATABASE_MAX_INT_PARAM] |
const char * | strings [PDATABASE_MAX_LINES][PDATABASE_MAX_STRING_PARAM] |
Double_t * | doubles [PDATABASE_MAX_LINES][PDATABASE_MAX_DOUBLE_PARAM] |
Int_t * | ints [PDATABASE_MAX_LINES][PDATABASE_MAX_INT_PARAM] |
TObject * | tobjs [PDATABASE_MAX_LINES][PDATABASE_MAX_TOBJ_PARAM] |
Int_t | lastkey |
Definition at line 27 of file PDataBase.h.
PDataBase::PDataBase | ( | ) |
Definition at line 29 of file PDataBase.cxx.
References doubles, i, ints, lastkey, MakeParamString(), param_double_pointer, param_int_key, param_int_key_max, param_int_pointer, param_string_pointer, param_tobj_pointer, PDATABASE_MAX_DOUBLE_PARAM, PDATABASE_MAX_INT_PARAM, PDATABASE_MAX_LINES, PDATABASE_MAX_STRING_PARAM, PDATABASE_MAX_TOBJ_PARAM, strings, and tobjs.
Int_t PDataBase::AddEntry | ( | const char * | name | ) |
Definition at line 531 of file PDataBase.cxx.
References AddEntry(), and lastkey.
Bool_t PDataBase::AddEntry | ( | Int_t | key, |
const char * | name | ||
) |
Definition at line 516 of file PDataBase.cxx.
References CheckEntry(), CRASH, GetEntry(), GetParamString(), and strings.
Referenced by AddEntry(), AddListEntry(), PStdData::fillDataBase(), and PStaticData::MakeDirectoryEntry().
Int_t PDataBase::AddListEntry | ( | const char * | name, |
const char * | count, | ||
const char * | link, | ||
const char * | newname | ||
) |
Definition at line 539 of file PDataBase.cxx.
References AddEntry(), GetEntry(), GetParamInt(), makeDataBase(), MakeListIterator(), and SetParamInt().
Referenced by PStaticData::AddAlias(), PStaticData::AddParticle(), PStdData::fillDataBase(), and PStaticData::MakeDirectoryEntry().
|
private |
Definition at line 93 of file PDataBase.cxx.
References lastkey, and strings.
Referenced by AddEntry(), GetParamDouble(), GetParamInt(), GetParamString(), GetParamTObj(), SetParamDouble(), SetParamInt(), SetParamString(), and SetParamTObj().
PDataBase::ClassDef | ( | PDataBase | , |
0 | |||
) |
|
private |
Definition at line 206 of file PDataBase.cxx.
References GetParamInt(), and i.
Referenced by GetParamDouble(), GetParamInt(), GetParamString(), and GetParamTObj().
char * PDataBase::GetDescription | ( | const char * | paramname | ) |
Definition at line 228 of file PDataBase.cxx.
References GetParamDouble(), GetParamInt(), GetParamString(), GetParamTObj(), param_double_descr, param_int_descr, param_string_descr, and param_tobj_descr.
Referenced by ListEntries().
Int_t PDataBase::GetEntry | ( | const char * | name | ) |
Definition at line 464 of file PDataBase.cxx.
References i, lastkey, and strings.
Referenced by AddEntry(), AddListEntry(), PStaticData::AddParticle(), PStaticData::GetAliasParent(), PStaticData::MakeDirectoryEntry(), Performance(), PStaticData::PStaticData(), and PStaticData::SetDecayBR().
Int_t PDataBase::GetEntryInt | ( | const char * | paramname, |
Int_t | value | ||
) |
Definition at line 473 of file PDataBase.cxx.
References GetParamInt(), i, and lastkey.
Referenced by PStaticData::AddParticle(), PStdData::fillDataBase(), PStaticData::GetDecayIdx(), PStaticData::GetDecayKey(), PStaticData::NormParticleBR(), PStaticData::SetPWidthMesh(), PStaticData::SetTF1(), and PStaticData::SetTWidthMesh().
Int_t PDataBase::GetEntryInt | ( | Int_t | pkey, |
Int_t | value | ||
) |
Definition at line 483 of file PDataBase.cxx.
References GetParamInt(), i, lastkey, param_int_key, and param_int_key_max.
|
inline |
Definition at line 100 of file PDataBase.h.
|
inline |
Definition at line 94 of file PDataBase.h.
Referenced by Performance().
|
inline |
Definition at line 97 of file PDataBase.h.
|
inline |
Definition at line 103 of file PDataBase.h.
const char * PDataBase::GetName | ( | Int_t | key | ) |
Definition at line 102 of file PDataBase.cxx.
References lastkey, and strings.
Referenced by PStaticData::PrintParticleByKey().
|
inline |
Definition at line 141 of file PDataBase.h.
Int_t PDataBase::GetParamDouble | ( | const char * | paramname | ) |
Definition at line 175 of file PDataBase.cxx.
References i, param_double_name, and param_double_pointer.
Referenced by PStaticData::GetBatchValue(), GetDescription(), GetParamDouble(), ListEntries(), MakeParamDouble(), PStaticData::PStaticData(), and SetParamDouble().
|
inline |
Definition at line 160 of file PDataBase.h.
Bool_t PDataBase::GetParamDouble | ( | Int_t | key, |
const char * | paramname, | ||
Double_t ** | result | ||
) |
Definition at line 258 of file PDataBase.cxx.
References CheckEntry(), ConvertParamKey(), doubles, and GetParamDouble().
Bool_t PDataBase::GetParamDouble | ( | Int_t | key, |
Int_t | pkey, | ||
Double_t ** | result | ||
) |
Definition at line 279 of file PDataBase.cxx.
References CheckEntry(), and doubles.
|
inline |
Definition at line 185 of file PDataBase.h.
|
inline |
Definition at line 137 of file PDataBase.h.
Int_t PDataBase::GetParamInt | ( | const char * | paramname, |
Int_t | length = -1 |
||
) |
Definition at line 188 of file PDataBase.cxx.
References i, param_int_name, and param_int_pointer.
Referenced by AddListEntry(), ConvertParamKey(), GetDescription(), GetEntryInt(), GetParamInt(), ListEntries(), MakeListIterator(), MakeParamInt(), Performance(), PStaticData::PStaticData(), CbmPlutoGenerator::ReadEvent(), and SetParamInt().
|
inline |
Definition at line 154 of file PDataBase.h.
Bool_t PDataBase::GetParamInt | ( | Int_t | key, |
const char * | paramname, | ||
Int_t ** | result, | ||
Int_t | length = -1 |
||
) |
Definition at line 317 of file PDataBase.cxx.
References CheckEntry(), ConvertParamKey(), GetParamInt(), and ints.
Bool_t PDataBase::GetParamInt | ( | Int_t | key, |
Int_t | pkey, | ||
Int_t ** | result | ||
) |
Definition at line 342 of file PDataBase.cxx.
References CheckEntry(), and ints.
|
inline |
Definition at line 126 of file PDataBase.h.
|
inline |
Definition at line 180 of file PDataBase.h.
|
inline |
Definition at line 145 of file PDataBase.h.
Int_t PDataBase::GetParamString | ( | const char * | paramname | ) |
Definition at line 181 of file PDataBase.cxx.
References i, param_string_name, and param_string_pointer.
Referenced by AddEntry(), GetDescription(), GetParamString(), PStaticData::GetParticleName(), ListEntries(), MakeParamString(), PStaticData::PStaticData(), and SetParamString().
|
inline |
Definition at line 166 of file PDataBase.h.
Bool_t PDataBase::GetParamString | ( | Int_t | key, |
const char * | paramname, | ||
const char ** | result | ||
) |
Definition at line 288 of file PDataBase.cxx.
References CheckEntry(), ConvertParamKey(), GetParamString(), and strings.
Bool_t PDataBase::GetParamString | ( | Int_t | key, |
Int_t | pkey, | ||
const char ** | result | ||
) |
Definition at line 309 of file PDataBase.cxx.
References CheckEntry(), and strings.
|
inline |
Definition at line 189 of file PDataBase.h.
|
inline |
Definition at line 149 of file PDataBase.h.
Int_t PDataBase::GetParamTObj | ( | const char * | paramname | ) |
Definition at line 200 of file PDataBase.cxx.
References i, param_tobj_name, and param_tobj_pointer.
Referenced by GetDescription(), GetParamTObj(), ListEntries(), MakeParamTObj(), PStaticData::PStaticData(), and SetParamTObj().
|
inline |
Definition at line 172 of file PDataBase.h.
Bool_t PDataBase::GetParamTObj | ( | Int_t | key, |
const char * | paramname, | ||
TObject ** | result | ||
) |
Definition at line 352 of file PDataBase.cxx.
References CheckEntry(), ConvertParamKey(), GetParamTObj(), and tobjs.
Bool_t PDataBase::GetParamTObj | ( | Int_t | key, |
Int_t | pkey, | ||
TObject ** | result | ||
) |
Definition at line 371 of file PDataBase.cxx.
References CheckEntry(), and tobjs.
|
inline |
Definition at line 193 of file PDataBase.h.
Bool_t PDataBase::ListEntries | ( | Int_t | key = -1 , |
Int_t | option = 0 , |
||
const char * | pattern = nullptr |
||
) |
Definition at line 680 of file PDataBase.cxx.
References GetDescription(), GetParamDouble(), GetParamInt(), GetParamString(), GetParamTObj(), i, PDATABASE_MAX_DOUBLE_PARAM, PDATABASE_MAX_INT_PARAM, PDATABASE_MAX_LINES, PDATABASE_MAX_STRING_PARAM, PDATABASE_MAX_TOBJ_PARAM, and x.
Referenced by listParticle(), PStaticData::PrintDecayByKey(), and PStaticData::PrintParticleByKey().
Bool_t PDataBase::MakeListIterator | ( | Int_t | key, |
const char * | count, | ||
const char * | link, | ||
Int_t * | listkey | ||
) |
Definition at line 609 of file PDataBase.cxx.
References GetParamInt().
Referenced by AddListEntry().
Bool_t PDataBase::MakeListIterator | ( | Int_t | key, |
Int_t | count, | ||
Int_t | link, | ||
Int_t * | listkey | ||
) |
Definition at line 644 of file PDataBase.cxx.
References GetParamInt().
Int_t PDataBase::MakeParamDouble | ( | const char * | paramname, |
const char * | descr | ||
) |
Definition at line 110 of file PDataBase.cxx.
References GetParamDouble(), param_double_descr, param_double_name, param_double_pointer, and PDATABASE_MAX_DOUBLE_PARAM.
Referenced by PStdData::fillDataBase(), and PStaticData::GetBatchValue().
Int_t PDataBase::MakeParamInt | ( | const char * | paramname, |
const char * | descr | ||
) |
Definition at line 143 of file PDataBase.cxx.
References GetParamInt(), param_int_descr, param_int_name, param_int_pointer, and PDATABASE_MAX_INT_PARAM.
Referenced by PStdData::fillDataBase(), PStaticData::MakeDirectoryEntry(), and PStaticData::PStaticData().
Int_t PDataBase::MakeParamString | ( | const char * | paramname, |
const char * | descr | ||
) |
Definition at line 127 of file PDataBase.cxx.
References GetParamString(), param_string_descr, param_string_name, param_string_pointer, and PDATABASE_MAX_STRING_PARAM.
Referenced by PDataBase().
Int_t PDataBase::MakeParamTObj | ( | const char * | paramname, |
const char * | descr | ||
) |
Definition at line 159 of file PDataBase.cxx.
References GetParamTObj(), param_tobj_descr, param_tobj_name, param_tobj_pointer, and PDATABASE_MAX_TOBJ_PARAM.
Referenced by PStdData::fillDataBase().
void PDataBase::Performance | ( | void | ) |
Definition at line 866 of file PDataBase.cxx.
References GetEntry(), GetFastParamInt(), GetParamInt(), i, and strings.
void PDataBase::Print | ( | const Option_t * | delme | ) | const |
Definition at line 59 of file PDataBase.cxx.
References i, param_double_descr, param_double_name, param_double_pointer, param_int_descr, param_int_name, param_int_pointer, param_string_descr, param_string_name, param_string_pointer, param_tobj_descr, param_tobj_name, param_tobj_pointer, PDATABASE_MAX_DOUBLE_PARAM, PDATABASE_MAX_INT_PARAM, PDATABASE_MAX_STRING_PARAM, and PDATABASE_MAX_TOBJ_PARAM.
void PDataBase::SetFastKey | ( | Int_t | pkey, |
Int_t | maxkey | ||
) |
Definition at line 83 of file PDataBase.cxx.
References i, param_int_key, and param_int_key_max.
Referenced by PStdData::fillDataBase().
|
inline |
Definition at line 207 of file PDataBase.h.
Bool_t PDataBase::SetParamDouble | ( | Int_t | key, |
const char * | paramname, | ||
Double_t * | result | ||
) |
Definition at line 381 of file PDataBase.cxx.
References CheckEntry(), doubles, and GetParamDouble().
Referenced by PStaticData::AddParticle(), PStdData::fillDataBase(), PStaticData::GetBatchValue(), PStaticData::PStaticData(), PStaticData::SetParticleLMass(), and PStaticData::SetParticleUMass().
|
inline |
Definition at line 212 of file PDataBase.h.
Bool_t PDataBase::SetParamInt | ( | Int_t | key, |
const char * | paramname, | ||
Int_t * | result | ||
) |
Definition at line 418 of file PDataBase.cxx.
References CheckEntry(), GetParamInt(), and ints.
Referenced by AddListEntry(), PStaticData::AddParticle(), PStdData::fillDataBase(), PStaticData::SetParticleBaryon(), PStaticData::SetParticleCharge(), PStaticData::SetParticleIsospin(), PStaticData::SetParticleLepton(), PStaticData::SetParticleMeson(), PStaticData::SetParticleParity(), and PStaticData::SetParticleSpin().
|
inline |
Definition at line 217 of file PDataBase.h.
Bool_t PDataBase::SetParamString | ( | Int_t | key, |
const char * | paramname, | ||
char * | result | ||
) |
Definition at line 400 of file PDataBase.cxx.
References CheckEntry(), GetParamString(), and strings.
|
inline |
Definition at line 223 of file PDataBase.h.
Bool_t PDataBase::SetParamTObj | ( | Int_t | key, |
const char * | paramname, | ||
TObject * | result | ||
) |
Definition at line 436 of file PDataBase.cxx.
References CheckEntry(), GetParamTObj(), and tobjs.
Bool_t PDataBase::SetParamTObj | ( | Int_t | key, |
Int_t | pp, | ||
TObject * | result | ||
) |
Definition at line 453 of file PDataBase.cxx.
References CheckEntry(), and tobjs.
|
private |
Definition at line 54 of file PDataBase.h.
Referenced by GetParamDouble(), PDataBase(), and SetParamDouble().
|
private |
Definition at line 55 of file PDataBase.h.
Referenced by GetParamInt(), PDataBase(), and SetParamInt().
|
private |
Definition at line 58 of file PDataBase.h.
Referenced by AddEntry(), CheckEntry(), GetEntry(), GetEntryInt(), GetName(), and PDataBase().
|
private |
Definition at line 36 of file PDataBase.h.
Referenced by GetDescription(), MakeParamDouble(), and Print().
|
private |
Definition at line 31 of file PDataBase.h.
Referenced by GetParamDouble(), MakeParamDouble(), and Print().
|
private |
Definition at line 41 of file PDataBase.h.
Referenced by GetParamDouble(), MakeParamDouble(), PDataBase(), and Print().
|
private |
Definition at line 39 of file PDataBase.h.
Referenced by GetDescription(), MakeParamInt(), and Print().
|
private |
Definition at line 48 of file PDataBase.h.
Referenced by GetEntryInt(), PDataBase(), and SetFastKey().
|
private |
Definition at line 49 of file PDataBase.h.
Referenced by GetEntryInt(), PDataBase(), and SetFastKey().
|
private |
Definition at line 34 of file PDataBase.h.
Referenced by GetParamInt(), MakeParamInt(), and Print().
|
private |
Definition at line 43 of file PDataBase.h.
Referenced by GetParamInt(), MakeParamInt(), PDataBase(), and Print().
|
private |
Definition at line 38 of file PDataBase.h.
Referenced by GetDescription(), MakeParamString(), and Print().
|
private |
Definition at line 33 of file PDataBase.h.
Referenced by GetParamString(), MakeParamString(), and Print().
|
private |
Definition at line 42 of file PDataBase.h.
Referenced by GetParamString(), MakeParamString(), PDataBase(), and Print().
|
private |
Definition at line 40 of file PDataBase.h.
Referenced by GetDescription(), MakeParamTObj(), and Print().
|
private |
Definition at line 35 of file PDataBase.h.
Referenced by GetParamTObj(), MakeParamTObj(), and Print().
|
private |
Definition at line 44 of file PDataBase.h.
Referenced by GetParamTObj(), MakeParamTObj(), PDataBase(), and Print().
|
private |
Definition at line 53 of file PDataBase.h.
Referenced by AddEntry(), CheckEntry(), GetEntry(), GetName(), GetParamString(), PDataBase(), Performance(), and SetParamString().
|
private |
Definition at line 56 of file PDataBase.h.
Referenced by GetParamTObj(), PDataBase(), and SetParamTObj().