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
2a492e2b
Commit
2a492e2b
authored
1 year ago
by
Markus Frank
Committed by
MarkusFrankATcernch
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix GDML examples
parent
b165e9d0
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/CLICSiD/CMakeLists.txt
+41
-41
41 additions, 41 deletions
examples/CLICSiD/CMakeLists.txt
examples/CLICSiD/compact/SiD_empty.xml
+39
-0
39 additions, 0 deletions
examples/CLICSiD/compact/SiD_empty.xml
with
80 additions
and
41 deletions
examples/CLICSiD/CMakeLists.txt
+
41
−
41
View file @
2a492e2b
...
...
@@ -86,47 +86,47 @@ dd4hep_add_test_reg( CLICSiD_multiple_inputs
REGEX_FAIL
"Exception;EXCEPTION;ERROR"
)
#
#
## Always false. Good for now!
if
(
"
${
ROOT_FIND_VERSION
}
"
VERSION_GREATER
"6.13.0"
)
# ROOT Geometry export to GDML
dd4hep_add
_test_
reg
(
CLICSiD
_GDML_export_LONGTEST
COMMAND
"
${
CMAKE_INSTALL_PREFIX
}
/bin/run_test_CLICSiD.sh"
EXEC_ARGS geoPluginRun -input file:
${
DD4hep_ROOT
}
/DDDetectors/compact/SiD.xml -print WARNING -destroy -volmgr
-plugin DD4hep_ROOTGDMLExtract -output Ecal
Barrel
.gdml -path /world/Ecal
Barrel
-plugin DD4hep_ROOTGDMLExtract -output
E
cal
Endcap
.gdml -path /world/
E
cal
Endcap
-plugin DD4hep_ROOTGDMLExtract -output Hcal
Barrel
.gdml -path /world/Hcal
Barrel
-plugin DD4hep_ROOTGDMLExtract -output Hcal
Endcap
.gdml -path /world/Hcal
Endcap
-plugin DD4hep_ROOTGDMLExtract -output
HcalPlug
.gdml
-path /world/
HcalPlug
-plugin DD4hep_ROOTGDMLExtract -output Muon
Barrel
.gdml -path /world/Muon
Barrel
-plugin DD4hep_ROOTGDMLExtract -output
MuonEndcap
.gdml -path /world/
MuonEndcap
-plugin DD4hep_ROOTGDMLExtract -output
Lumi
Cal.gdml -path /world/
Lumi
Cal
-plugin DD4hep_ROOTGDMLExtract -output
BeamCal.gdml -path /world/BeamCal
-plugin DD4hep_ROOTGDMLExtract -output LumiReadout_
For
ward.gdml
-path /world/LumiReadout_
For
ward
-plugin DD4hep_
ROOTGDMLExtract -output LumiReadout_Backward.gdml -path /world/LumiReadout_Backward
-plugin DD4hep_VolumeDump --topstat
REGEX_
PASS
"Checked 130738 physical volume placements
"
REGEX_FAIL
"Exception;EXCEPTION;ERROR"
)
#
# ROOT Geometry export to GDML
dd4hep_add_test_reg
(
CLICSiD_GDML_import_LONGTEST
COMMAND
"
${
CMAKE_INSTALL_PREFIX
}
/bin/run_test_CLICSiD.sh"
EXEC_ARGS geoPluginRun -input file:
${
DD4hep_ROOT
}
/DDDetectors
/compact/SiD.xml -print WARNING -destroy -volmgr
-plugin DD4hep_ROOTGDMLParse -input EcalBarrel.gdml -path /world/EcalBarrel
-plugin DD4hep_ROOTGDMLParse -input EcalEndcap.gdml -path /world/EcalEndcap
-plugin DD4hep_ROOTGDMLParse -input HcalBarrel.gdml -path /world/HcalBarrel
-plugin DD4hep_ROOTGDMLParse -input HcalEndcap.gdml -path /world/HcalEndcap
-plugin DD4hep_ROOTGDMLParse -input HcalPlug.gdml -path /world/HcalPlug
-plugin DD4hep_ROOTGDMLParse -input MuonBarrel.gdml -path /world/MuonBarrel
-plugin DD4hep_ROOTGDMLParse -input MuonEndcap.gdml -path /world/MuonEndcap
-plugin DD4hep_ROOTGDMLParse -input LumiCal.gdml -path /world/LumiCal
-plugin DD4hep_ROOTGDMLParse -input BeamCal.gdml -path /world/BeamCal
-plugin DD4hep_ROOTGDMLParse -input LumiReadout_Forward.gdml -path /world/LumiReadout_Forward
-plugin DD4hep_ROOTGDMLParse -input LumiReadout_Backward.gdml -path /world/LumiReadout_Backward
-plugin DD4hep_VolumeDump --topstat
DEPENDS CLICSiD_GDML_export_LONGTEST
REGEX_PASS
"Checked 1
30738
physical volume placements"
REGEX_FAIL
"Exception;EXCEPTION;ERROR"
)
#
if
(
"
${
ROOT_VERSION
}
"
VERSION_GREATER
"6.13.0"
)
# ROOT Geometry export to GDML
dd4hep_add_test_reg
(
CLICSiD_GDML_export_LONGTEST
COMMAND
"
${
CMAKE_INSTALL_PREFIX
}
/bin/run
_test_CLICSiD
.sh"
EXEC_ARGS geoPluginRun -input file:
${
DD4hep_ROOT
}
/DDDetectors/compact/SiD.xml -print WARNING -destroy -volmgr
-plugin DD4hep_ROOTGDMLExtract -output EcalBarrel.gdml -path /world/EcalBarrel
-plugin DD4hep_ROOTGDMLExtract -output Ecal
Endcap
.gdml -path /world/Ecal
Endcap
-plugin DD4hep_ROOTGDMLExtract -output
H
cal
Barrel
.gdml -path /world/
H
cal
Barrel
-plugin DD4hep_ROOTGDMLExtract -output Hcal
Endcap
.gdml -path /world/Hcal
Endcap
-plugin DD4hep_ROOTGDMLExtract -output Hcal
Plug
.gdml
-path /world/Hcal
Plug
-plugin DD4hep_ROOTGDMLExtract -output
MuonBarrel
.gdml -path /world/
MuonBarrel
-plugin DD4hep_ROOTGDMLExtract -output Muon
Endcap
.gdml -path /world/Muon
Endcap
-plugin DD4hep_ROOTGDMLExtract -output
LumiCal
.gdml
-path /world/
LumiCal
-plugin DD4hep_ROOTGDMLExtract -output
Beam
Cal.gdml -path /world/
Beam
Cal
-plugin DD4hep_ROOTGDMLExtract -output
LumiReadout_Forward.gdml -path /world/LumiReadout_Forward
-plugin DD4hep_ROOTGDMLExtract -output LumiReadout_
Back
ward.gdml -path /world/LumiReadout_
Back
ward
-plugin DD4hep_
VolumeDump --topstat
REGEX_PASS
"
\\
+
\\
+
\\
+ Checked 130882 physical volume placements."
REGEX_
FAIL
"Exception;EXCEPTION;ERROR
"
)
#
# ROOT Geometry export to GDML
dd4hep_add_test_reg
(
CLICSiD_GDML_import_LONGTEST
COMMAND
"
${
CMAKE_INSTALL_PREFIX
}
/bin/run_test_CLICSiD.sh"
EXEC_ARGS geoPluginRun -input file:
${
CLICSiDEx_INSTALL
}
/compact/SiD
_empty
.xml -print WARNING -destroy -volmgr
-plugin DD4hep_ROOTGDMLParse -input EcalBarrel.gdml -path /world/EcalBarrel
-plugin DD4hep_ROOTGDMLParse -input EcalEndcap.gdml -path /world/EcalEndcap
-plugin DD4hep_ROOTGDMLParse -input HcalBarrel.gdml -path /world/HcalBarrel
-plugin DD4hep_ROOTGDMLParse -input HcalEndcap.gdml -path /world/HcalEndcap
-plugin DD4hep_ROOTGDMLParse -input HcalPlug.gdml -path /world/HcalPlug
-plugin DD4hep_ROOTGDMLParse -input MuonBarrel.gdml -path /world/MuonBarrel
-plugin DD4hep_ROOTGDMLParse -input MuonEndcap.gdml -path /world/MuonEndcap
-plugin DD4hep_ROOTGDMLParse -input LumiCal.gdml -path /world/LumiCal
-plugin DD4hep_ROOTGDMLParse -input BeamCal.gdml -path /world/BeamCal
-plugin DD4hep_ROOTGDMLParse -input LumiReadout_Forward.gdml -path /world/LumiReadout_Forward
-plugin DD4hep_ROOTGDMLParse -input LumiReadout_Backward.gdml -path /world/LumiReadout_Backward
-plugin DD4hep_VolumeDump --topstat
DEPENDS CLICSiD_GDML_export_LONGTEST
REGEX_PASS
"
\\
+
\\
+
\\
+
Checked 1
1282
physical volume placements
.
"
REGEX_FAIL
"Exception;EXCEPTION;ERROR"
)
#
endif
()
#
# Checksum test of the EcalBarrel sub-detector
...
...
This diff is collapsed.
Click to expand it.
examples/CLICSiD/compact/SiD_empty.xml
0 → 100644
+
39
−
0
View file @
2a492e2b
<?xml version="1.0" encoding="UTF-8"?>
<lccdd>
<!-- #==========================================================================
# AIDA Detector description implementation
#==========================================================================
# Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
# All rights reserved.
#
# For the licensing terms see $DD4hepINSTALL/LICENSE.
# For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
#
#==========================================================================
-->
<info
name=
"GDML_Import"
title=
"GDML import test"
author=
"Markus Frank"
url=
"http://www.cern.ch/lhcb"
status=
"development"
version=
"1.0"
>
<comment>
GDML import test
</comment>
</info>
<includes>
<gdmlFile
ref=
"${DD4hepINSTALL}/DDDetectors/compact/elements.xml"
/>
<gdmlFile
ref=
"${DD4hepINSTALL}/DDDetectors/compact/materials.xml"
/>
</includes>
<display>
<vis
name=
"Invisible"
showDaughters=
"false"
visible=
"false"
/>
<vis
name=
"InvisibleWithChildren"
showDaughters=
"true"
visible=
"false"
/>
<vis
name=
"WorldVis"
alpha=
"0.8"
r=
"1.0"
g=
"1.0"
b=
"0.0"
showDaughters=
"false"
visible=
"true"
drawingStyle=
"solid"
lineStyle=
"solid"
/>
<vis
name=
"VisibleGreen"
alpha=
"1.0"
r=
"0.0"
g=
"1.0"
b=
"0.0"
showDaughters=
"true"
visible=
"true"
drawingStyle=
"solid"
lineStyle=
"solid"
/>
</display>
<world
material=
"Air"
>
<shape
type=
"Box"
dx=
"30*m"
dy=
"30*m"
dz=
"30*m"
/>
</world>
</lccdd>
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