Load DataBase Data From Chain
void DbTest(){
// Baseline shared libraries
gSystem->Load("St_base");
gSystem->Load("StChain");
gSystem->Load("St_Tables");
// DB-specific (& Db-Root) libs
gSystem->Load("StDbLib");
gSystem->Load("StDbBroker");
gSystem->Load("St_db_Maker");
// create makers connecting to databases RunParams, Geometry, & Calibrations
StChain * mchain = new StChain("DbTest");
St_db_Maker *dbMk = new St_db_Maker("RunParams","MySQL:RunParams");
St_db_Maker *dbMk2 = new St_db_Maker("Geometry","MySQL:Geometry");
St_db_Maker *dbMk3 = new St_db_Maker("Calib","MySQL:Calib");
// Initialize [database]_hierarchy structures in to St_db_Maker
mchain->Init();
// Make requests for data
p = mchain->GetDataBase("RunParams/tpc");
p2 = mchain->GetDataBase("Geometry/tpc");
p3 = mchain->GetDataBase("Calibrations/tpc");
// Browse these requests
TBrowser *b = new TBrowser("RunParams",p);
TBrowser *b2 = new TBrowser("Geometry",p2);
TBrowser *b3 = new TBrowser("Calib",p3);
}
ROOT page - Class index - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.