diff --git a/CMakeLists.txt b/CMakeLists.txt index f159227a8b73138f0d5698859e698d4382354ba9..5da53d9faa50f73b10967b93d5bcb43cd7204f91 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,6 +6,7 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake) #---Options------------------------------------------------------------------------- option(DD4HEP_USE_XERCESC "Enable 'Detector Builders' based on XercesC" OFF) option(DD4HEP_USE_PYROOT "Enable 'Detector Builders' based on PyROOT" ON) +option(DD3HEP_WITH_GEANT4 "Enable the simulation part based on Geant4" ON) find_package(ROOT REQUIRED) if(DD4HEP_USE_XERCESC) @@ -14,15 +15,18 @@ endif() #---Packages------------------------------------------------------------------------ add_subdirectory(DDCore) -add_subdirectory(DDGeant4) +if(DD3HEP_WITH_GEANT4) + add_subdirectory(DDGeant4) +endif() +#---Examples------------------------------------------------------------------------ add_subdirectory(DDExamples/ILDExDet) add_subdirectory(DDExamples/CLICSiD) - add_subdirectory(DDExamples/ILDExDisplay) add_subdirectory(DDExamples/ILDExReco) -add_subdirectory(DDExamples/ILDExSimu) - +if(DD3HEP_WITH_GEANT4) + add_subdirectory(DDExamples/ILDExSimu) +endif() #---Configuration------------------------------------------------------------------- configure_file(cmake/thisdd4hep.csh thisdd4hep.csh @ONLY) diff --git a/ReadMe.txt b/ReadMe.txt index b9a30fbc90bf8f939182d83e6f354e88ee201c08..cfb0bbc78dde07e859ea620693919843af44d297 100644 --- a/ReadMe.txt +++ b/ReadMe.txt @@ -20,6 +20,14 @@ on the C++ XercesC parser, and another one based on Python and using the PyROOT DD4HEP_USE_PYROOT:BOOL DD4HEP_USE_XERCESC:BOOL +- DDGeant4 + + Is the package that contains the conversion of DD4hep geometry into Geant4 geometry to be used for +simulation. The conversion is currently based on the Virtual Geometry Modeler (VGM) package that is +build internally when required. + The option DD4HEP_WITH_GEANT4:BOOL controls the building or not of this package that has the dependency +to Geant4. The Geant4 installation needs to be located using the variable -DGeant4_DIR=<G4 installation> + - DDExamples Contains different detector examples (CLICSiD, ILDEx) together with example applications to illustrate