#include "geantdef.h" #include "hgeomcreatesetup.h" #include "hgeominterface.h" #include "hgeomgeant3builder.h" #include "hgeantinput.h" #include "cfortran.h" #ifdef ORACLE_SUPPORT #include "hgeomora2io.h" #endif void hgeomcreatesetup(int* runid) { extern HGeantInput geantInput; HGeomInterface interface; HGeomGeant3Builder* builder=new HGeomGeant3Builder(); interface.setGeomBuilder(builder); if (geantInput.getDebugFile().Length()>0) { builder->openDebugFile(geantInput.getDebugFile().Data()); } Int_t rid=geantInput.getSimulRefRunId(); #ifdef ORACLE_SUPPORT HGeomOra2Io* oraInput=0; if (strcmp(geantInput.getDbSupport(),"ON")==0) { oraInput=new HGeomOra2Io; oraInput->open(); interface.setOracleInput(oraInput); if (geantInput.getHistoryDate().Length()>0) { oraInput->setHistoryDate(geantInput.getHistoryDate()); } if (geantInput.getSimulRefRun().Length()>0) { oraInput->setSimulRefRun(geantInput.getSimulRefRun()); rid=oraInput->getCurrentRunId(); } } else { cout <<"*---------------------------------*\n"; cout <<"| Oracle Support is OFF |\n"; cout <<"*---------------------------------*\n"; } #endif for (int i=0;i