diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..0fafefc1b4d047b8a19b3938fdaf4df8a0e2616d --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,15 @@ +cmake_minimum_required(VERSION 3.6) + +set( ATLAS_PROJECT Athena + CACHE STRING "The name of the project to build against" ) + +find_package( Athena ) + +atlas_ctest_setup() + +atlas_project( Faser 1.0.0 + USE ${ATLAS_PROJECT} ${${ATLAS_PROJECT}_VERSION} ) + +lcg_generate_env( SH_FILE ${CMAKE_BINARY_DIR}/${ATLAS_PLATFORM}/env_setup.sh ) +install( FILES ${CMAKE_BINARY_DIR}/${ATLAS_PLATFORM}/env_setup.sh + DESTINATION . ) diff --git a/DetectorDescription/GeoModel/FaserGeoModel/CMakeLists.txt b/DetectorDescription/GeoModel/FaserGeoModel/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..624967cacc8095c0ee3dc8a6a441ee0e435554b2 --- /dev/null +++ b/DetectorDescription/GeoModel/FaserGeoModel/CMakeLists.txt @@ -0,0 +1,18 @@ +############################### +# Package: FaserGeoModel +############################### + +# Declare package name +atlas_subdir( FaserGeoModel ) + +add_custom_command ( + OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/geomDB.db + COMMAND cat ${CMAKE_CURRENT_SOURCE_DIR}/data/geomDB.sql | sqlite3 ${CMAKE_CURRENT_BINARY_DIR}/geomDB.db + ) + +add_custom_target( geomDB ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/geomDB.db ) + +# Install the generated file: +install( FILES ${CMAKE_CURRENT_BINARY_DIR}/geomDB.db + DESTINATION ${CMAKE_INSTALL_DATADIR} ) + diff --git a/DetectorDescription/GeoModel/FaserGeoModel/data/geomDB.sql b/DetectorDescription/GeoModel/FaserGeoModel/data/geomDB.sql new file mode 100644 index 0000000000000000000000000000000000000000..eb62b6763e33d652dcd60fe56ec0495a7d7ba257 --- /dev/null +++ b/DetectorDescription/GeoModel/FaserGeoModel/data/geomDB.sql @@ -0,0 +1,32 @@ +BEGIN TRANSACTION; +CREATE TABLE IF NOT EXISTS "HVS_TAGCACHE" ( + "ROOTTAG" TEXT, + "CHILDNODE" TEXT, + "CHILDTAG" TEXT, + "CHILDTAGID" SLONGLONG +); +CREATE TABLE IF NOT EXISTS "HVS_TAG2NODE" ( + "NODE_ID" SLONGLONG, + "TAG_NAME" TEXT UNIQUE, + "TAG_ID" SLONGLONG UNIQUE, + "TAG_COMMENT" TEXT, + "LOCKED" BOOLEAN, + "REPLICATED" BOOLEAN, + "DATE_CREATED" DATE, + "DATE_LOCKED" DATE, + "SUPPORTED" INT +); +CREATE TABLE IF NOT EXISTS "HVS_NODE" ( + "NODE_ID" SLONGLONG UNIQUE, + "NODE_NAME" TEXT UNIQUE, + "PARENT_ID" SLONGLONG, + "BRANCH_FLAG" BOOLEAN, + "NODE_COMMENT" TEXT +); +CREATE TABLE IF NOT EXISTS "HVS_LTAG2LTAG" ( + "PARENT_NODE" SLONGLONG, + "PARENT_TAG" SLONGLONG, + "CHILD_NODE" SLONGLONG, + "CHILD_TAG" SLONGLONG +); +COMMIT;