Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:12:33

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 // please choose a unique name, if it is your username it's easier to see who created it
0012   rc->set_StringFlag("CDB_GLOBALTAG","ProdA_2024"); 
0013   rc->set_uint64Flag("TIMESTAMP",54280);
0014 // 1000000 is the insert timestamp. Higher timestamps work, lower time stamps do not
0015   CDBInterface *cdb = CDBInterface::instance();
0016   cout <<"INTT_HotMap : "<< cdb->getUrl("INTT_HotMap") << endl;
0017   cout <<"INTT_HOTMAP : " <<cdb->getUrl("INTT_HOTMAP") << endl;
0018   cout <<"INTT_BCOMAP : " <<cdb->getUrl("INTT_BCOMAP") << endl;
0019   cout <<"INTT_DACMAP : " <<cdb->getUrl("INTT_DACMAP") << endl;
0020   
0021   gSystem->Exit(0);
0022   return;
0023 }