StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
DbBroker.C
1 void DbBroker(){
2 
3  // Baseline shared libraries
4  gSystem->Load("St_base");
5  gSystem->Load("StChain");
6  gSystem->Load("St_Tables");
7 
8  // DB-specific libs
9 
10  gSystem->Load("StDbLib");
11  gSystem->Load("StDbBroker");
12 
13  StDbBroker* myBroker = new StDbBroker();
14  int numRows;
15 
16  myBroker->setVerbose(1);
17  dbConfig_st* config=myBroker->InitConfig("StarDb",numRows);
18  cout << "Number of rows returned " << numRows << endl;
19 
20  myBroker->SetDateTime(20000101,120000);
21 
22  // I happen to know in this test that tabID=60 for this.
23  tpcDedxPidAmpDb_st* dedx=myBroker->Use(60,57);
24  cout << "Dedx Gas Calibration "<<dedx->gasCalib << endl;
25 
26 }
27 
28