Back to home page

sPhenix code displayed by LXR

 
 

    


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 // please choose a unique name, if it is your username it's easier to see who created it
0012 
0013   // rc->set_StringFlag("CDB_GLOBALTAG","2024p011"); 
0014   // rc->set_uint64Flag("TIMESTAMP",54280);
0015 
0016   rc->set_StringFlag("CDB_GLOBALTAG","ProdA_2024"); 
0017   rc->set_uint64Flag("TIMESTAMP",54912);
0018 
0019   // rc->set_StringFlag("CDB_GLOBALTAG","MDC2"); 
0020   // rc->set_uint64Flag("TIMESTAMP",6);
0021 
0022 
0023 // 1000000 is the insert timestamp. Higher timestamps work, lower time stamps do not
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 }