3 gSystem->Setenv(
"DB_ACCESS_MODE",
"write");
5 gROOT->Macro(
"LoadLogger.C");
6 gSystem->Load(
"St_base.so");
7 gSystem->Load(
"libStDb_Tables.so");
8 gSystem->Load(
"StDbLib.so");
13 StDbTable* dbtable = node->addDbTable(
"fgtSimuParams");
14 TString storeTime =
"2011-11-11 11:11:12";
15 mgr->setStoreTime(storeTime.Data());
18 fgtSimuParams_st table;
19 memset(table.param,0,
sizeof(table.param));
24 strncpy(table.comment,
" reasonable fgt-slow-simu parametrization, ver=102, by Jan",192);
29 table.param[1] = 9992;
30 table.param[2] = 40. ;
31 table.param[3] = 80.e-9;
32 table.param[4] = 0.035 ;
33 table.param[5] = 0.005;
34 table.param[6] = 0.017;
36 table.param[8] = -1008;
37 table.param[9] = -1009;
40 table.param[10] = 5.0;
41 table.param[11] = 1000;
42 table.param[12] = 2.0;
43 table.param[13] = 0.45;
45 table.param[14] = -1014;
46 table.param[15] = -1015;
56 mgr->storeDbTable(dbtable);
virtual void SetTable(char *data, int nrows, int *idList=0)
calloc'd version of data for StRoot
static StDbManager * Instance()
strdup(..) is not ANSI