CbmRoot
PDataBase Class Reference

#include <PDataBase.h>

Inheritance diagram for PDataBase:
[legend]
Collaboration diagram for PDataBase:
[legend]

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
 

Detailed Description

Definition at line 27 of file PDataBase.h.

Constructor & Destructor Documentation

◆ PDataBase()

Member Function Documentation

◆ AddEntry() [1/2]

Int_t PDataBase::AddEntry ( const char *  name)

Definition at line 531 of file PDataBase.cxx.

References AddEntry(), and lastkey.

◆ AddEntry() [2/2]

Bool_t PDataBase::AddEntry ( Int_t  key,
const char *  name 
)

◆ AddListEntry()

Int_t PDataBase::AddListEntry ( const char *  name,
const char *  count,
const char *  link,
const char *  newname 
)

◆ CheckEntry()

Bool_t PDataBase::CheckEntry ( Int_t  key)
private

◆ ClassDef()

PDataBase::ClassDef ( PDataBase  ,
 
)

◆ ConvertParamKey()

Int_t PDataBase::ConvertParamKey ( const char *&  newparamname,
Int_t  key 
)
private

Definition at line 206 of file PDataBase.cxx.

References GetParamInt(), and i.

Referenced by GetParamDouble(), GetParamInt(), GetParamString(), and GetParamTObj().

◆ GetDescription()

char * PDataBase::GetDescription ( const char *  paramname)

◆ GetEntry()

◆ GetEntryInt() [1/2]

◆ GetEntryInt() [2/2]

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.

◆ GetFastParamDouble()

void PDataBase::GetFastParamDouble ( const char *  paramname,
Int_t *  pkey 
)
inline

Definition at line 100 of file PDataBase.h.

◆ GetFastParamInt()

void PDataBase::GetFastParamInt ( const char *  paramname,
Int_t *  pkey 
)
inline

Definition at line 94 of file PDataBase.h.

Referenced by Performance().

◆ GetFastParamString()

void PDataBase::GetFastParamString ( const char *  paramname,
Int_t *  pkey 
)
inline

Definition at line 97 of file PDataBase.h.

◆ GetFastParamTObj()

void PDataBase::GetFastParamTObj ( const char *  paramname,
Int_t *  pkey 
)
inline

Definition at line 103 of file PDataBase.h.

◆ GetName()

const char * PDataBase::GetName ( Int_t  key)

Definition at line 102 of file PDataBase.cxx.

References lastkey, and strings.

Referenced by PStaticData::PrintParticleByKey().

◆ GetParamDouble() [1/6]

Bool_t PDataBase::GetParamDouble ( const char *  name,
const char *  paramname,
Double_t **  result 
)
inline

Definition at line 141 of file PDataBase.h.

◆ GetParamDouble() [2/6]

Int_t PDataBase::GetParamDouble ( const char *  paramname)

◆ GetParamDouble() [3/6]

Bool_t PDataBase::GetParamDouble ( const char *  paramname1,
Int_t  value1,
const char *  paramname2,
Double_t **  result 
)
inline

Definition at line 160 of file PDataBase.h.

◆ GetParamDouble() [4/6]

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().

◆ GetParamDouble() [5/6]

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.

◆ GetParamDouble() [6/6]

Bool_t PDataBase::GetParamDouble ( Int_t  pkey1,
Int_t  value1,
Int_t  pkey2,
Double_t **  result 
)
inline

Definition at line 185 of file PDataBase.h.

◆ GetParamInt() [1/7]

Bool_t PDataBase::GetParamInt ( const char *  name,
const char *  paramname,
Int_t **  result 
)
inline

Definition at line 137 of file PDataBase.h.

◆ GetParamInt() [2/7]

Int_t PDataBase::GetParamInt ( const char *  paramname,
Int_t  length = -1 
)

◆ GetParamInt() [3/7]

Bool_t PDataBase::GetParamInt ( const char *  paramname1,
Int_t  value1,
const char *  paramname2,
Int_t **  result 
)
inline

Definition at line 154 of file PDataBase.h.

◆ GetParamInt() [4/7]

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.

◆ GetParamInt() [5/7]

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.

◆ GetParamInt() [6/7]

Bool_t PDataBase::GetParamInt ( Int_t  key,
Int_t  pkey,
Int_t *  result 
)
inline

Definition at line 126 of file PDataBase.h.

◆ GetParamInt() [7/7]

Bool_t PDataBase::GetParamInt ( Int_t  pkey1,
Int_t  value1,
Int_t  pkey2,
Int_t **  result 
)
inline

Definition at line 180 of file PDataBase.h.

◆ GetParamString() [1/6]

Bool_t PDataBase::GetParamString ( const char *  name,
const char *  paramname,
const char **  result 
)
inline

Definition at line 145 of file PDataBase.h.

◆ GetParamString() [2/6]

Int_t PDataBase::GetParamString ( const char *  paramname)

◆ GetParamString() [3/6]

Bool_t PDataBase::GetParamString ( const char *  paramname1,
Int_t  value1,
const char *  paramname2,
const char **  result 
)
inline

Definition at line 166 of file PDataBase.h.

◆ GetParamString() [4/6]

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.

◆ GetParamString() [5/6]

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.

◆ GetParamString() [6/6]

Bool_t PDataBase::GetParamString ( Int_t  pkey1,
Int_t  value1,
Int_t  pkey2,
const char **  result 
)
inline

Definition at line 189 of file PDataBase.h.

◆ GetParamTObj() [1/6]

Bool_t PDataBase::GetParamTObj ( const char *  name,
const char *  paramname,
TObject **  result 
)
inline

Definition at line 149 of file PDataBase.h.

◆ GetParamTObj() [2/6]

Int_t PDataBase::GetParamTObj ( const char *  paramname)

◆ GetParamTObj() [3/6]

Bool_t PDataBase::GetParamTObj ( const char *  paramname1,
Int_t  value1,
const char *  paramname2,
TObject **  result 
)
inline

Definition at line 172 of file PDataBase.h.

◆ GetParamTObj() [4/6]

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.

◆ GetParamTObj() [5/6]

Bool_t PDataBase::GetParamTObj ( Int_t  key,
Int_t  pkey,
TObject **  result 
)

Definition at line 371 of file PDataBase.cxx.

References CheckEntry(), and tobjs.

◆ GetParamTObj() [6/6]

Bool_t PDataBase::GetParamTObj ( Int_t  pkey1,
Int_t  value1,
Int_t  pkey2,
TObject **  result 
)
inline

Definition at line 193 of file PDataBase.h.

◆ ListEntries()

Bool_t PDataBase::ListEntries ( Int_t  key = -1,
Int_t  option = 0,
const char *  pattern = nullptr 
)

◆ MakeListIterator() [1/2]

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().

◆ MakeListIterator() [2/2]

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().

◆ MakeParamDouble()

Int_t PDataBase::MakeParamDouble ( const char *  paramname,
const char *  descr 
)

◆ MakeParamInt()

Int_t PDataBase::MakeParamInt ( const char *  paramname,
const char *  descr 
)

◆ MakeParamString()

Int_t PDataBase::MakeParamString ( const char *  paramname,
const char *  descr 
)

◆ MakeParamTObj()

Int_t PDataBase::MakeParamTObj ( const char *  paramname,
const char *  descr 
)

◆ Performance()

void PDataBase::Performance ( void  )

Definition at line 866 of file PDataBase.cxx.

References GetEntry(), GetFastParamInt(), GetParamInt(), i, and strings.

◆ Print()

◆ SetFastKey()

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().

◆ SetParamDouble() [1/2]

Bool_t PDataBase::SetParamDouble ( const char *  name,
const char *  paramname,
Double_t  result 
)
inline

Definition at line 207 of file PDataBase.h.

◆ SetParamDouble() [2/2]

Bool_t PDataBase::SetParamDouble ( Int_t  key,
const char *  paramname,
Double_t *  result 
)

◆ SetParamInt() [1/2]

Bool_t PDataBase::SetParamInt ( const char *  name,
const char *  paramname,
Int_t  result 
)
inline

Definition at line 212 of file PDataBase.h.

◆ SetParamInt() [2/2]

◆ SetParamString() [1/2]

Bool_t PDataBase::SetParamString ( const char *  name,
const char *  paramname,
char *  result 
)
inline

Definition at line 217 of file PDataBase.h.

◆ SetParamString() [2/2]

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.

◆ SetParamTObj() [1/3]

Bool_t PDataBase::SetParamTObj ( const char *  name,
const char *  paramname,
TObject *  result 
)
inline

Definition at line 223 of file PDataBase.h.

◆ SetParamTObj() [2/3]

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.

◆ SetParamTObj() [3/3]

Bool_t PDataBase::SetParamTObj ( Int_t  key,
Int_t  pp,
TObject *  result 
)

Definition at line 453 of file PDataBase.cxx.

References CheckEntry(), and tobjs.

Member Data Documentation

◆ doubles

Double_t* PDataBase::doubles[PDATABASE_MAX_LINES][PDATABASE_MAX_DOUBLE_PARAM]
private

Definition at line 54 of file PDataBase.h.

Referenced by GetParamDouble(), PDataBase(), and SetParamDouble().

◆ ints

Int_t* PDataBase::ints[PDATABASE_MAX_LINES][PDATABASE_MAX_INT_PARAM]
private

Definition at line 55 of file PDataBase.h.

Referenced by GetParamInt(), PDataBase(), and SetParamInt().

◆ lastkey

Int_t PDataBase::lastkey
private

Definition at line 58 of file PDataBase.h.

Referenced by AddEntry(), CheckEntry(), GetEntry(), GetEntryInt(), GetName(), and PDataBase().

◆ param_double_descr

const char* PDataBase::param_double_descr[PDATABASE_MAX_DOUBLE_PARAM]
private

Definition at line 36 of file PDataBase.h.

Referenced by GetDescription(), MakeParamDouble(), and Print().

◆ param_double_name

const char* PDataBase::param_double_name[PDATABASE_MAX_DOUBLE_PARAM]
private

Definition at line 31 of file PDataBase.h.

Referenced by GetParamDouble(), MakeParamDouble(), and Print().

◆ param_double_pointer

Int_t PDataBase::param_double_pointer
private

Definition at line 41 of file PDataBase.h.

Referenced by GetParamDouble(), MakeParamDouble(), PDataBase(), and Print().

◆ param_int_descr

const char* PDataBase::param_int_descr[PDATABASE_MAX_INT_PARAM]
private

Definition at line 39 of file PDataBase.h.

Referenced by GetDescription(), MakeParamInt(), and Print().

◆ param_int_key

Int_t* PDataBase::param_int_key[PDATABASE_MAX_INT_PARAM]
private

Definition at line 48 of file PDataBase.h.

Referenced by GetEntryInt(), PDataBase(), and SetFastKey().

◆ param_int_key_max

Int_t PDataBase::param_int_key_max[PDATABASE_MAX_INT_PARAM]
private

Definition at line 49 of file PDataBase.h.

Referenced by GetEntryInt(), PDataBase(), and SetFastKey().

◆ param_int_name

const char* PDataBase::param_int_name[PDATABASE_MAX_INT_PARAM]
private

Definition at line 34 of file PDataBase.h.

Referenced by GetParamInt(), MakeParamInt(), and Print().

◆ param_int_pointer

Int_t PDataBase::param_int_pointer
private

Definition at line 43 of file PDataBase.h.

Referenced by GetParamInt(), MakeParamInt(), PDataBase(), and Print().

◆ param_string_descr

const char* PDataBase::param_string_descr[PDATABASE_MAX_STRING_PARAM]
private

Definition at line 38 of file PDataBase.h.

Referenced by GetDescription(), MakeParamString(), and Print().

◆ param_string_name

const char* PDataBase::param_string_name[PDATABASE_MAX_STRING_PARAM]
private

Definition at line 33 of file PDataBase.h.

Referenced by GetParamString(), MakeParamString(), and Print().

◆ param_string_pointer

Int_t PDataBase::param_string_pointer
private

Definition at line 42 of file PDataBase.h.

Referenced by GetParamString(), MakeParamString(), PDataBase(), and Print().

◆ param_tobj_descr

const char* PDataBase::param_tobj_descr[PDATABASE_MAX_INT_PARAM]
private

Definition at line 40 of file PDataBase.h.

Referenced by GetDescription(), MakeParamTObj(), and Print().

◆ param_tobj_name

const char* PDataBase::param_tobj_name[PDATABASE_MAX_INT_PARAM]
private

Definition at line 35 of file PDataBase.h.

Referenced by GetParamTObj(), MakeParamTObj(), and Print().

◆ param_tobj_pointer

Int_t PDataBase::param_tobj_pointer
private

Definition at line 44 of file PDataBase.h.

Referenced by GetParamTObj(), MakeParamTObj(), PDataBase(), and Print().

◆ strings

const char* PDataBase::strings[PDATABASE_MAX_LINES][PDATABASE_MAX_STRING_PARAM]
private

◆ tobjs

TObject* PDataBase::tobjs[PDATABASE_MAX_LINES][PDATABASE_MAX_TOBJ_PARAM]
private

Definition at line 56 of file PDataBase.h.

Referenced by GetParamTObj(), PDataBase(), and SetParamTObj().


The documentation for this class was generated from the following files: