Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DD4hep
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cepc
externals
mirroring
DD4hep
Commits
14bab0bb
Commit
14bab0bb
authored
8 years ago
by
Markus Frank
Browse files
Options
Downloads
Patches
Plain Diff
Try again to find the database
parent
15a5a228
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
examples/DDDB/CMakeLists.txt
+108
-103
108 additions, 103 deletions
examples/DDDB/CMakeLists.txt
examples/DDDB/scripts/extract_dddb.sh
+8
-0
8 additions, 0 deletions
examples/DDDB/scripts/extract_dddb.sh
with
116 additions
and
103 deletions
examples/DDDB/CMakeLists.txt
+
108
−
103
View file @
14bab0bb
...
...
@@ -19,108 +19,113 @@
#==========================================================================
cmake_minimum_required
(
VERSION 2.8.3 FATAL_ERROR
)
include
(
${
DD4hep_DIR
}
/cmake/DD4hep.cmake
)
#-----------------------------------------------------------------------------------
dd4hep_configure_output
()
dd4hep_package
(
DDDB MAJOR 0 MINOR 0 PATCH 1
USES [XERCESC REQUIRED]
[ROOT REQUIRED COMPONENTS Geom]
[DD4hep REQUIRED COMPONENTS DDCore DDDB]
)
#---Package installation procedure(s) -----------------------------------------
install
(
PROGRAMS scripts/run_dddb.sh DESTINATION bin
)
install
(
PROGRAMS scripts/extract_dddb.sh DESTINATION bin
)
install
(
FILES data/DDDB.tar.gz DESTINATION examples/DDDB
)
#---Testing--------------------------------------------------------------------
dd4hep_configure_scripts
(
DDDB DEFAULT_SETUP WITH_TESTS
)
#
#---Testing: Extract DDDB data from zip archive -------------------------------
dd4hep_add_test_reg
(
test_DDDB_extract
COMMAND
"
${
CMAKE_INSTALL_PREFIX
}
/bin/run_test_DDDB.sh"
EXEC_ARGS
${
CMAKE_INSTALL_PREFIX
}
/bin/extract_dddb.sh
REGEX_PASS
"DDDB Database successfully installed."
)
#
#---Testing: Load the geometry from archive -----------------------------------
dd4hep_add_test_reg
(
test_DDDB_load
COMMAND
"
${
CMAKE_INSTALL_PREFIX
}
/bin/run_test_DDDB.sh"
EXEC_ARGS
${
CMAKE_INSTALL_PREFIX
}
/bin/run_dddb.sh
REGEX_PASS
"Converted 12768 placements"
)
#
#---Testing: Load the geometry + conditions from archive ----------------------
dd4hep_add_test_reg
(
test_DDDB_conditions
COMMAND
"
${
CMAKE_INSTALL_PREFIX
}
/bin/run_test_DDDB.sh"
EXEC_ARGS
${
CMAKE_INSTALL_PREFIX
}
/bin/run_dddb.sh
-config DD4hep_ConditionsManagerInstaller
REGEX_PASS
"Converted 9353 conditions"
)
#
#---Testing: Load the geometry + conditions dump as view from DetElement ------
dd4hep_add_test_reg
(
test_DDDB_conditions_dump_simple
COMMAND
"
${
CMAKE_INSTALL_PREFIX
}
/bin/run_test_DDDB.sh"
EXEC_ARGS
${
CMAKE_INSTALL_PREFIX
}
/bin/run_dddb.sh
-config DD4hep_ConditionsManagerInstaller
-exec DDDB_ConditionsDump
REGEX_PASS
"Path:/dd/Conditions/ReadoutConf/Velo/Tell1Module03 Class:5 .DD4hep::Conditions::AbstractMap."
)
#
#---Testing: Load the geometry + dump detector elemets ------------------------
dd4hep_add_test_reg
(
test_DDDB_det_elements
COMMAND
"
${
CMAKE_INSTALL_PREFIX
}
/bin/run_test_DDDB.sh"
EXEC_ARGS
${
CMAKE_INSTALL_PREFIX
}
/bin/run_dddb.sh
-config DD4hep_ConditionsManagerInstaller
-exec DDDB_DetectorDump
REGEX_PASS
"Detector: /world/LHCb/UpstreamRegion #Dau:5"
)
#
#---Testing: Load the geometry + dump volumes ---------------------------------
dd4hep_add_test_reg
(
test_DDDB_det_volumes
COMMAND
"
${
CMAKE_INSTALL_PREFIX
}
/bin/run_test_DDDB.sh"
EXEC_ARGS
${
CMAKE_INSTALL_PREFIX
}
/bin/run_dddb.sh
-config DD4hep_ConditionsManagerInstaller
-exec DDDB_DetectorVolumeDump
REGEX_PASS
"Detector: /world/LHCb/MagnetRegion/BcmDown #Dau:10"
)
#
#---Testing: Load the geometry + dump condition keys --------------------------
dd4hep_add_test_reg
(
test_DDDB_det_conditions_keys
COMMAND
"
${
CMAKE_INSTALL_PREFIX
}
/bin/run_test_DDDB.sh"
EXEC_ARGS
${
CMAKE_INSTALL_PREFIX
}
/bin/run_dddb.sh
-config DD4hep_ConditionsManagerInstaller
-exec DDDB_DetectorConditionKeysDump
REGEX_PASS
"Key: D88E83E7 -> 20537B67 -> /dd/Conditions/ReadoutConf/Prs/Readout"
)
#
#---Testing: Load the geometry + dump condition keys --------------------------
dd4hep_add_test_reg
(
test_DDDB_det_conditions_data
COMMAND
"
${
CMAKE_INSTALL_PREFIX
}
/bin/run_test_DDDB.sh"
EXEC_ARGS
${
CMAKE_INSTALL_PREFIX
}
/bin/run_dddb.sh
-config DD4hep_ConditionsManagerInstaller
-exec DDDB_DetectorConditionDump
REGEX_PASS
"Path:/dd/Conditions/Alignment/Spd/SpdCSystem Class:6 .DD4hep::Conditions::AbstractMap."
)
#
#---Testing: Load the geometry + dump condition keys --------------------------
dd4hep_add_test_reg
(
test_DDDB_det_conditions_align
COMMAND
"
${
CMAKE_INSTALL_PREFIX
}
/bin/run_test_DDDB.sh"
EXEC_ARGS
${
CMAKE_INSTALL_PREFIX
}
/bin/run_dddb.sh
-config DD4hep_ConditionsManagerInstaller
-exec DDDB_DetectorAlignmentDump
REGEX_PASS
"Number of attached alignments: 2496"
)
#
#---Testing: Load the geometry + conditions dump as view from DetElement ------
dd4hep_add_test_reg
(
test_DDDB_detelement_conditions_dump
COMMAND
"
${
CMAKE_INSTALL_PREFIX
}
/bin/run_test_DDDB.sh"
EXEC_ARGS
${
CMAKE_INSTALL_PREFIX
}
/bin/run_dddb.sh
-config DD4hep_ConditionsManagerInstaller
-exec DDDB_DetElementConditionDump
REGEX_PASS
"Path:/dd/Conditions/Alignment/Spd/SpdCSystem Class:6 .DD4hep::Conditions::AbstractMap."
)
if
(
DD4HEP_USE_XERCESC
)
include
(
${
DD4hep_DIR
}
/cmake/DD4hep.cmake
)
#
#---Testing: Load the geometry + conditions + conditions derives
dd4hep_add_test_reg
(
test_DDDB_derived_conditions
COMMAND
"
${
CMAKE_INSTALL_PREFIX
}
/bin/run_test_DDDB.sh"
EXEC_ARGS
${
CMAKE_INSTALL_PREFIX
}
/bin/run_dddb.sh
-config DD4hep_ConditionsManagerInstaller
-exec DDDB_DerivedCondTest
REGEX_PASS
"Building dependent condition: /dd/Conditions/Alignment/TT/TTbVLayerR1Module3B/derived_3"
)
#
#---Testing: Extract DDDB data from zip archive -------------------------------
dd4hep_add_test_reg
(
test_DDDB_clean
COMMAND
"
${
CMAKE_INSTALL_PREFIX
}
/bin/run_test_DDDB.sh"
EXEC_ARGS
${
CMAKE_INSTALL_PREFIX
}
/bin/extract_dddb.sh -clean
REGEX_PASS
"DDDB Database successfully removed"
)
#-----------------------------------------------------------------------------------
dd4hep_configure_output
()
dd4hep_package
(
DDDB MAJOR 0 MINOR 0 PATCH 1
USES [XERCESC REQUIRED]
[ROOT REQUIRED COMPONENTS Geom]
[DD4hep REQUIRED COMPONENTS DDCore DDDB]
)
#---Package installation procedure(s) -----------------------------------------
install
(
PROGRAMS scripts/run_dddb.sh DESTINATION bin
)
install
(
PROGRAMS scripts/extract_dddb.sh DESTINATION bin
)
install
(
FILES data/DDDB.tar.gz DESTINATION examples/DDDB
)
#---Testing--------------------------------------------------------------------
dd4hep_configure_scripts
(
DDDB DEFAULT_SETUP WITH_TESTS
)
#
#---Testing: Extract DDDB data from zip archive -------------------------------
dd4hep_add_test_reg
(
test_DDDB_extract
COMMAND
"
${
CMAKE_INSTALL_PREFIX
}
/bin/run_test_DDDB.sh"
EXEC_ARGS
${
CMAKE_INSTALL_PREFIX
}
/bin/extract_dddb.sh
REGEX_PASS
"DDDB Database successfully installed."
)
#
#---Testing: Load the geometry from archive -----------------------------------
dd4hep_add_test_reg
(
test_DDDB_load
COMMAND
"
${
CMAKE_INSTALL_PREFIX
}
/bin/run_test_DDDB.sh"
EXEC_ARGS
${
CMAKE_INSTALL_PREFIX
}
/bin/run_dddb.sh
REGEX_PASS
"Converted 12768 placements"
)
#
#---Testing: Load the geometry + conditions from archive ----------------------
dd4hep_add_test_reg
(
test_DDDB_conditions
COMMAND
"
${
CMAKE_INSTALL_PREFIX
}
/bin/run_test_DDDB.sh"
EXEC_ARGS
${
CMAKE_INSTALL_PREFIX
}
/bin/run_dddb.sh
-config DD4hep_ConditionsManagerInstaller
REGEX_PASS
"Converted 9353 conditions"
)
#
#---Testing: Load the geometry + conditions dump as view from DetElement ------
dd4hep_add_test_reg
(
test_DDDB_conditions_dump_simple
COMMAND
"
${
CMAKE_INSTALL_PREFIX
}
/bin/run_test_DDDB.sh"
EXEC_ARGS
${
CMAKE_INSTALL_PREFIX
}
/bin/run_dddb.sh
-config DD4hep_ConditionsManagerInstaller
-exec DDDB_ConditionsDump
REGEX_PASS
"Path:/dd/Conditions/ReadoutConf/Velo/Tell1Module03 Class:5 .DD4hep::Conditions::AbstractMap."
)
#
#---Testing: Load the geometry + dump detector elemets ------------------------
dd4hep_add_test_reg
(
test_DDDB_det_elements
COMMAND
"
${
CMAKE_INSTALL_PREFIX
}
/bin/run_test_DDDB.sh"
EXEC_ARGS
${
CMAKE_INSTALL_PREFIX
}
/bin/run_dddb.sh
-config DD4hep_ConditionsManagerInstaller
-exec DDDB_DetectorDump
REGEX_PASS
"Detector: /world/LHCb/UpstreamRegion #Dau:5"
)
#
#---Testing: Load the geometry + dump volumes ---------------------------------
dd4hep_add_test_reg
(
test_DDDB_det_volumes
COMMAND
"
${
CMAKE_INSTALL_PREFIX
}
/bin/run_test_DDDB.sh"
EXEC_ARGS
${
CMAKE_INSTALL_PREFIX
}
/bin/run_dddb.sh
-config DD4hep_ConditionsManagerInstaller
-exec DDDB_DetectorVolumeDump
REGEX_PASS
"Detector: /world/LHCb/MagnetRegion/BcmDown #Dau:10"
)
#
#---Testing: Load the geometry + dump condition keys --------------------------
dd4hep_add_test_reg
(
test_DDDB_det_conditions_keys
COMMAND
"
${
CMAKE_INSTALL_PREFIX
}
/bin/run_test_DDDB.sh"
EXEC_ARGS
${
CMAKE_INSTALL_PREFIX
}
/bin/run_dddb.sh
-config DD4hep_ConditionsManagerInstaller
-exec DDDB_DetectorConditionKeysDump
REGEX_PASS
"Key: D88E83E7 -> 20537B67 -> /dd/Conditions/ReadoutConf/Prs/Readout"
)
#
#---Testing: Load the geometry + dump condition keys --------------------------
dd4hep_add_test_reg
(
test_DDDB_det_conditions_data
COMMAND
"
${
CMAKE_INSTALL_PREFIX
}
/bin/run_test_DDDB.sh"
EXEC_ARGS
${
CMAKE_INSTALL_PREFIX
}
/bin/run_dddb.sh
-config DD4hep_ConditionsManagerInstaller
-exec DDDB_DetectorConditionDump
REGEX_PASS
"Path:/dd/Conditions/Alignment/Spd/SpdCSystem Class:6 .DD4hep::Conditions::AbstractMap."
)
#
#---Testing: Load the geometry + dump condition keys --------------------------
dd4hep_add_test_reg
(
test_DDDB_det_conditions_align
COMMAND
"
${
CMAKE_INSTALL_PREFIX
}
/bin/run_test_DDDB.sh"
EXEC_ARGS
${
CMAKE_INSTALL_PREFIX
}
/bin/run_dddb.sh
-config DD4hep_ConditionsManagerInstaller
-exec DDDB_DetectorAlignmentDump
REGEX_PASS
"Number of attached alignments: 2496"
)
#
#---Testing: Load the geometry + conditions dump as view from DetElement ------
dd4hep_add_test_reg
(
test_DDDB_detelement_conditions_dump
COMMAND
"
${
CMAKE_INSTALL_PREFIX
}
/bin/run_test_DDDB.sh"
EXEC_ARGS
${
CMAKE_INSTALL_PREFIX
}
/bin/run_dddb.sh
-config DD4hep_ConditionsManagerInstaller
-exec DDDB_DetElementConditionDump
REGEX_PASS
"Path:/dd/Conditions/Alignment/Spd/SpdCSystem Class:6 .DD4hep::Conditions::AbstractMap."
)
#
#---Testing: Load the geometry + conditions + conditions derives
dd4hep_add_test_reg
(
test_DDDB_derived_conditions
COMMAND
"
${
CMAKE_INSTALL_PREFIX
}
/bin/run_test_DDDB.sh"
EXEC_ARGS
${
CMAKE_INSTALL_PREFIX
}
/bin/run_dddb.sh
-config DD4hep_ConditionsManagerInstaller
-exec DDDB_DerivedCondTest
REGEX_PASS
"Building dependent condition: /dd/Conditions/Alignment/TT/TTbVLayerR1Module3B/derived_3"
)
#
#---Testing: Extract DDDB data from zip archive -------------------------------
dd4hep_add_test_reg
(
test_DDDB_clean
COMMAND
"
${
CMAKE_INSTALL_PREFIX
}
/bin/run_test_DDDB.sh"
EXEC_ARGS
${
CMAKE_INSTALL_PREFIX
}
/bin/extract_dddb.sh -clean
REGEX_PASS
"DDDB Database successfully removed"
)
endif
()
This diff is collapsed.
Click to expand it.
examples/DDDB/scripts/extract_dddb.sh
+
8
−
0
View file @
14bab0bb
...
...
@@ -60,6 +60,14 @@ while [[ "$1" == -* ]]; do
shift
;
done
;
#
# Seems like cmake install is not really deterministic and installs files either with or without
# data source directory name....if input is not present try to add /data/.
#
if
test
!
-f
${
source
}
;
then
base
=
`
basename
${
source
}
`
;
dir
=
`
dirname
${
source
}
`
;
source
=
${
dir
}
/data/
${
base
}
;
fi
;
# Now do the installation
if
test
-d
${
target
}
/DDDB
;
then
if
test
"
${
clean
}
"
=
"YES"
;
then
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment