File indexing completed on 2025-08-06 08:12:39
0001 #include <ffamodules/CDBInterface.h>
0002
0003 #include <phool/recoConsts.h>
0004
0005 R__LOAD_LIBRARY(libffamodules.so)
0006 R__LOAD_LIBRARY(libphool.so)
0007
0008 void TestCDBRead()
0009 {
0010 recoConsts *rc = recoConsts::instance();
0011
0012
0013
0014
0015
0016 rc->set_StringFlag("CDB_GLOBALTAG","ProdA_2024");
0017 rc->set_uint64Flag("TIMESTAMP",54912);
0018
0019
0020
0021
0022
0023
0024 CDBInterface *cdb = CDBInterface::instance();
0025 cout <<"INTT_HotMap : "<< cdb->getUrl("INTT_HotMap") << endl;
0026 cout <<"INTT_HOTMAP : " <<cdb->getUrl("INTT_HOTMAP") << endl;
0027 cout <<"INTT_BCOMAP : " <<cdb->getUrl("INTT_BCOMAP") << endl;
0028 cout <<"INTT_DACMAP : " <<cdb->getUrl("INTT_DACMAP") << endl;
0029 cout <<"Tracking_Geometry : " <<cdb->getUrl("Tracking_Geometry") << endl;
0030 cout <<"TRACKINGALIGNMENT : " <<cdb->getUrl("TRACKINGALIGNMENT") << endl;
0031
0032 gSystem->Exit(0);
0033 return;
0034 }