3 gSystem->Load(
"St_base");
4 gSystem->Load(
"StChain");
5 gSystem->Load(
"StUtilities");
6 gSystem->Load(
"StIOMaker");
7 gSystem->Load(
"StarClassLibrary");
10 gSystem->Load(
"St_Tables");
11 gSystem->Load(
"StDbLib");
12 gSystem->Load(
"StDbBroker");
13 gSystem->Load(
"St_db_Maker");
17 dbMk->SetDateTime(20120301,0);
18 dbMk->SetFlavor(
"ofl");
24 DB = dbMk->GetDataBase(
"Calibrations/fgt/fgtSimuParams");
26 std::cout <<
"ERROR: no table found in db, or malformed local db config" << std::endl;
29 St_fgtSimuParams *dataset = 0;
30 dataset = (St_fgtSimuParams*) DB->
Find(
"fgtSimuParams");
31 Int_t rows = dataset->GetNRows();
33 std::cout <<
"BAD INFO: found INDEXED table with " << rows <<
" rows, abort" << std::endl;
38 fgtSimuParams_st *table = dataset->GetTable();
40 printf(
" print fgtSimuParams: comment=%s=\n", table[irow].comment);
41 for (Int_t i = 0; i < 15; i++) {
43 std::cout << i <<
"th param : " << table[irow].param[i] << std::endl;
46 std::cout <<
"ERROR: dataset does not contain requested table" << std::endl;
virtual TDataSet * Find(const char *path) const