4 gSystem->Load(
"St_base");
5 gSystem->Load(
"StChain");
6 gSystem->Load(
"StBFChain");
7 gSystem->Load(
"StUtilities");
8 gSystem->Load(
"StIOMaker");
9 gSystem->Load(
"StarClassLibrary");
12 gSystem->Load(
"St_Tables");
13 gSystem->Load(
"StDbLib");
14 gSystem->Load(
"StDbBroker");
15 gSystem->Load(
"St_db_Maker");
21 dbMk->SetDateTime(20090425,55558);
22 dbMk->SetFlavor(
"ofl");
25 int runNumber = 10115007;
26 dbMk->InitRun(runNumber);
32 DB = dbMk->GetInputDB(
"RunLog/onl/trgDsmReg");
33 if (!DB) { std::cout <<
"ERROR: no db maker constructed?" << std::endl; }
43 St_trgDsmReg *desc = 0;
44 desc = (St_trgDsmReg*) DB->
Find(
"trgDsmReg");
47 trgDsmReg_st *table = desc->GetTable();
49 std::cout <<
"total rows for trgDsmReg, run " << runNumber <<
" found: " << numrows << std::endl;
51 for (
int i = 0; i < numrows; i++) {
52 std::cout << table[i].runNumber <<
", "
53 << (unsigned)table[i].dcObject <<
", "
54 << (
unsigned)table[i].dcIndex <<
", "
55 << table[i].dcRegister <<
", "
56 << table[i].dcLabel <<
", "
57 << table[i].dcValue <<
", "
58 << table[i].dcDefaultvalue <<
"\n";
61 std::cout <<
"WARNING: No data in trgDsmReg table (wrong timestamp?). Nothing to return, then.\n";
virtual Long_t GetNRows() const
Returns the number of the used rows for the wrapped table.
virtual TDataSet * Find(const char *path) const