11 void storevpdDelay(
const Bool_t mTest = 1)
49 0.0, -1.201867, -0.531776, -5.477558, -6.167743, -5.575552, -9.801250, -10.958965, -10.591384, -4.773926,
50 -10.268874, -14.588154, -4.931171, -4.488882, -9.838172, -10.241304, -9.646428, -19.994028, -14.213135,
51 0.0, -0.668213, -0.479492, -4.870962, -6.054838, -5.567796, -10.370061, -10.805627, -11.034330, -3.716928,
52 -10.197979, -15.191838, -5.421011, -5.035720, -10.611328, -10.291655, -10.088323, -20.136475, -14.605093
54 TString ZStoreTime =
"2009-12-14 00:00:00";
60 gSystem->Load(
"St_base");
61 gSystem->Load(
"StChain");
62 gSystem->Load(
"StUtilities");
63 gSystem->Load(
"St_Tables.so");
64 gSystem->Load(
"StDbLib.so");
65 gSystem->Load(
"libStDb_Tables.so");
71 StDbConfigNode* configNode = dbManager->initConfig(
"Calibrations_tof");
74 StDbTable* vpdDelayTable = configNode->addDbTable(
"vpdDelay");
79 for(
int i=0;i<NVPD;i++) {
80 vpddelay.delay[i] = delay[i];
81 cout <<
" tubeId = " << i+1 <<
" delay = " << vpddelay.delay[i] << endl;
86 vpdDelayTable->
SetTable((
char*)&vpddelay, 1);
88 dbManager->setStoreTime(ZStoreTime.Data());
91 dbManager->storeDbTable(vpdDelayTable);
92 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