21 void storetofPhaseOffsetdAu()
27 gSystem->Load(
"St_base");
28 gSystem->Load(
"StChain");
29 gSystem->Load(
"StUtilities");
30 gSystem->Load(
"St_Tables.so");
32 gSystem->Load(
"StDbLib.so");
33 gSystem->Load(
"libStDb_Tables.so");
39 StDbConfigNode* configNode = dbManager->initConfig(
"Calibrations_tof");
42 TString ZStoreTime =
"2008-01-25 00:00:00";
45 StDbTable* tofPhaseOffset = configNode->addDbTable(
"tofPhaseOffset");
48 tofPhaseOffset_st *phaseDiff =
new tofPhaseOffset_st[1];
50 phaseDiff[0].T0[0] = -14722.;
51 phaseDiff[0].T0[1] = -0.9196;
54 tofPhaseOffset->
SetTable((
char*)phaseDiff, 1);
56 dbManager->setStoreTime(ZStoreTime.Data());
59 dbManager->storeDbTable(tofPhaseOffset);
60 cout<<
"uploaded"<<endl;
virtual void SetTable(char *data, int nrows, int *idList=0)
calloc'd version of data for StRoot
static StDbManager * Instance()
strdup(..) is not ANSI