Back to home page

sPhenix code displayed by LXR

 
 

    


Warning, file /macros/TpcProduction/GarfieldProduction/TestGarfield.C was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 #include <phool/recoConsts.h>
0002 #include <ffamodules/CDBInterface.h>
0003 
0004 #include <TSystem.h>
0005 
0006 #include <iostream>
0007 
0008 R__LOAD_LIBRARY(libffamodules.so)
0009 R__LOAD_LIBRARY(libphool.so)
0010 
0011 void TestGarfield()
0012 {
0013   recoConsts *rc = recoConsts::instance();
0014   rc->set_StringFlag("CDB_GLOBALTAG","newcdbtag"); 
0015   rc->set_uint64Flag("TIMESTAMP",6);
0016   CDBInterface *cdb = CDBInterface::instance();
0017   std::cout << cdb->getUrl("PHGARFIELD_GAS") << std::endl;
0018   gSystem->Exit(0);
0019   return;
0020 }