CbmRoot
Loading...
Searching...
No Matches
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)
 
TString 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 33 of file PDataBase.h.

Constructor & Destructor Documentation

◆ PDataBase()

Member Function Documentation

◆ AddEntry() [1/2]

Int_t PDataBase::AddEntry ( const char * name)

Definition at line 524 of file PDataBase.cxx.

◆ AddEntry() [2/2]

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

Definition at line 508 of file PDataBase.cxx.

References CRASH.

Referenced by AddListEntry(), PStdData::fillDataBase(), and PStaticData::MakeDirectoryEntry().

◆ 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

Definition at line 86 of file PDataBase.cxx.

References lastkey, and strings.

◆ ClassDef()

PDataBase::ClassDef ( PDataBase ,
0  )

◆ ConvertParamKey()

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

Definition at line 206 of file PDataBase.cxx.

◆ GetDescription()

TString PDataBase::GetDescription ( const char * paramname)

Definition at line 226 of file PDataBase.cxx.

◆ GetEntry()

◆ GetEntryInt() [1/2]

◆ GetEntryInt() [2/2]

Int_t PDataBase::GetEntryInt ( Int_t pkey,
Int_t value )

Definition at line 475 of file PDataBase.cxx.

◆ GetFastParamDouble()

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

Definition at line 101 of file PDataBase.h.

References GetParamDouble().

◆ GetFastParamInt()

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

Definition at line 93 of file PDataBase.h.

References GetParamInt().

◆ GetFastParamString()

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

Definition at line 97 of file PDataBase.h.

References GetParamString().

◆ GetFastParamTObj()

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

Definition at line 105 of file PDataBase.h.

References GetParamTObj().

◆ GetName()

const char * PDataBase::GetName ( Int_t key)

Definition at line 96 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.

References GetEntry(), and GetParamDouble().

◆ 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 159 of file PDataBase.h.

References GetEntryInt(), and GetParamDouble().

◆ GetParamDouble() [4/6]

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

Definition at line 257 of file PDataBase.cxx.

◆ GetParamDouble() [5/6]

Bool_t PDataBase::GetParamDouble ( Int_t key,
Int_t pkey,
Double_t ** result )

Definition at line 275 of file PDataBase.cxx.

◆ GetParamDouble() [6/6]

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

Definition at line 178 of file PDataBase.h.

References GetEntryInt(), and GetParamDouble().

◆ 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.

References GetEntry(), and GetParamInt().

◆ 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 155 of file PDataBase.h.

References GetEntryInt(), and GetParamInt().

◆ GetParamInt() [4/7]

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

Definition at line 312 of file PDataBase.cxx.

◆ GetParamInt() [5/7]

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

Definition at line 332 of file PDataBase.cxx.

◆ 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.

References GetParamInt().

◆ GetParamInt() [7/7]

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

Definition at line 173 of file PDataBase.h.

References GetEntryInt(), and GetParamInt().

◆ 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.

References GetEntry(), and GetParamString().

◆ 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 163 of file PDataBase.h.

References GetEntryInt(), and GetParamString().

◆ GetParamString() [4/6]

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

Definition at line 285 of file PDataBase.cxx.

◆ GetParamString() [5/6]

Bool_t PDataBase::GetParamString ( Int_t key,
Int_t pkey,
const char ** result )

Definition at line 303 of file PDataBase.cxx.

◆ GetParamString() [6/6]

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

Definition at line 182 of file PDataBase.h.

References GetEntryInt(), and GetParamString().

◆ GetParamTObj() [1/6]

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

Definition at line 149 of file PDataBase.h.

References GetEntry(), and GetParamTObj().

◆ 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 167 of file PDataBase.h.

References GetEntryInt(), and GetParamTObj().

◆ GetParamTObj() [4/6]

Bool_t PDataBase::GetParamTObj ( Int_t key,
const char * paramname,
TObject ** result )

Definition at line 342 of file PDataBase.cxx.

◆ GetParamTObj() [5/6]

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

Definition at line 360 of file PDataBase.cxx.

◆ GetParamTObj() [6/6]

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

Definition at line 186 of file PDataBase.h.

References GetEntryInt(), and GetParamTObj().

◆ 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 602 of file PDataBase.cxx.

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 636 of file PDataBase.cxx.

◆ 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 )

Definition at line 123 of file PDataBase.cxx.

References PDATABASE_MAX_STRING_PARAM.

Referenced by PDataBase().

◆ MakeParamTObj()

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

Definition at line 155 of file PDataBase.cxx.

References PDATABASE_MAX_TOBJ_PARAM.

Referenced by PStdData::fillDataBase().

◆ Performance()

void PDataBase::Performance ( void )

Definition at line 851 of file PDataBase.cxx.

◆ Print()

◆ SetFastKey()

void PDataBase::SetFastKey ( Int_t pkey,
Int_t maxkey )

Definition at line 75 of file PDataBase.cxx.

References 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 200 of file PDataBase.h.

References GetEntry(), and SetParamDouble().

◆ 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 206 of file PDataBase.h.

References GetEntry(), and SetParamInt().

◆ SetParamInt() [2/2]

◆ SetParamString() [1/2]

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

Definition at line 212 of file PDataBase.h.

References GetEntry(), and SetParamString().

◆ SetParamString() [2/2]

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

Definition at line 388 of file PDataBase.cxx.

References Error.

Referenced by SetParamString().

◆ SetParamTObj() [1/3]

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

Definition at line 218 of file PDataBase.h.

References GetEntry(), and SetParamTObj().

◆ SetParamTObj() [2/3]

Bool_t PDataBase::SetParamTObj ( Int_t key,
const char * paramname,
TObject * result )

Definition at line 424 of file PDataBase.cxx.

References Error.

Referenced by SetParamTObj().

◆ SetParamTObj() [3/3]

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

Definition at line 442 of file PDataBase.cxx.

References Error.

Member Data Documentation

◆ doubles

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

Definition at line 58 of file PDataBase.h.

Referenced by PDataBase().

◆ ints

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

Definition at line 59 of file PDataBase.h.

Referenced by PDataBase().

◆ lastkey

Int_t PDataBase::lastkey
private

Definition at line 62 of file PDataBase.h.

Referenced by CheckEntry(), GetName(), and PDataBase().

◆ param_double_descr

const char* PDataBase::param_double_descr[PDATABASE_MAX_DOUBLE_PARAM]
private

Definition at line 41 of file PDataBase.h.

Referenced by MakeParamDouble(), and Print().

◆ param_double_name

const char* PDataBase::param_double_name[PDATABASE_MAX_DOUBLE_PARAM]
private

Definition at line 37 of file PDataBase.h.

Referenced by MakeParamDouble(), and Print().

◆ param_double_pointer

Int_t PDataBase::param_double_pointer
private

Definition at line 45 of file PDataBase.h.

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

◆ param_int_descr

const char* PDataBase::param_int_descr[PDATABASE_MAX_INT_PARAM]
private

Definition at line 43 of file PDataBase.h.

Referenced by Print().

◆ param_int_key

Int_t* PDataBase::param_int_key[PDATABASE_MAX_INT_PARAM]
private

Definition at line 52 of file PDataBase.h.

Referenced by PDataBase(), and SetFastKey().

◆ param_int_key_max

Int_t PDataBase::param_int_key_max[PDATABASE_MAX_INT_PARAM]
private

Definition at line 53 of file PDataBase.h.

Referenced by PDataBase(), and SetFastKey().

◆ param_int_name

const char* PDataBase::param_int_name[PDATABASE_MAX_INT_PARAM]
private

Definition at line 39 of file PDataBase.h.

Referenced by Print().

◆ param_int_pointer

Int_t PDataBase::param_int_pointer
private

Definition at line 47 of file PDataBase.h.

Referenced by PDataBase(), and Print().

◆ param_string_descr

const char* PDataBase::param_string_descr[PDATABASE_MAX_STRING_PARAM]
private

Definition at line 42 of file PDataBase.h.

Referenced by Print().

◆ param_string_name

const char* PDataBase::param_string_name[PDATABASE_MAX_STRING_PARAM]
private

Definition at line 38 of file PDataBase.h.

Referenced by Print().

◆ param_string_pointer

Int_t PDataBase::param_string_pointer
private

Definition at line 46 of file PDataBase.h.

Referenced by PDataBase(), and Print().

◆ param_tobj_descr

const char* PDataBase::param_tobj_descr[PDATABASE_MAX_INT_PARAM]
private

Definition at line 44 of file PDataBase.h.

Referenced by Print().

◆ param_tobj_name

const char* PDataBase::param_tobj_name[PDATABASE_MAX_INT_PARAM]
private

Definition at line 40 of file PDataBase.h.

Referenced by Print().

◆ param_tobj_pointer

Int_t PDataBase::param_tobj_pointer
private

Definition at line 48 of file PDataBase.h.

Referenced by PDataBase(), and Print().

◆ strings

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

Definition at line 57 of file PDataBase.h.

Referenced by CheckEntry(), GetName(), and PDataBase().

◆ tobjs

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

Definition at line 60 of file PDataBase.h.

Referenced by PDataBase().


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