Skip to content
Snippets Groups Projects
Commit 145e0d73 authored by lintao@ihep.ac.cn's avatar lintao@ihep.ac.cn
Browse files

Merge branch 'lintao/ci/auto-geo-conv' into 'master'

Test the geometry convert from DD4hep to TGeo

See merge request cepc/CEPCSW!56
parents 89be6ef0 64ecaf7a
No related branches found
No related tags found
No related merge requests found
...@@ -58,5 +58,7 @@ build:lcg:el7: ...@@ -58,5 +58,7 @@ build:lcg:el7:
artifacts: artifacts:
paths: paths:
- InstallArea - InstallArea
- TDR_o1_v01.tgeo.root
- TDR_o1_v02.tgeo.root
reports: reports:
junit: build.${CEPCSW_LCG_VERSION}.${CEPCSW_LCG_PLATFORM}/cepcsw-ctest-result.xml junit: build.${CEPCSW_LCG_VERSION}.${CEPCSW_LCG_PLATFORM}/cepcsw-ctest-result.xml
...@@ -35,14 +35,24 @@ install(TARGETS DetCRD ...@@ -35,14 +35,24 @@ install(TARGETS DetCRD
# Add tests # Add tests
################################################################################ ################################################################################
add_test( foreach(detoption TDR_o1_v01 TDR_o1_v02)
NAME Test_TDR_o1_v01_Sim add_test(
COMMAND gaudirun.py Detector/DetCRD/scripts/TDR_o1_v01/sim.py NAME Test_${detoption}_Sim
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} COMMAND gaudirun.py Detector/DetCRD/scripts/${detoption}/sim.py
) WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
)
add_test( add_test(
NAME Test_TDR_o1_v01_Rec NAME Test_${detoption}_Rec
COMMAND gaudirun.py Detector/DetCRD/scripts/TDR_o1_v01/tracking.py COMMAND gaudirun.py Detector/DetCRD/scripts/${detoption}/tracking.py
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
) )
add_test(
NAME Test_${detoption}_DD4hep2TGeo
COMMAND geoConverter -compact2tgeo
-input Detector/DetCRD/compact/${detoption}/${detoption}.xml
-output ${detoption}.tgeo.root
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
)
endforeach()
...@@ -185,6 +185,9 @@ ...@@ -185,6 +185,9 @@
<limitset name="cal_limits"> <limitset name="cal_limits">
<limit name="step_length_max" particles="*" value="5.0" unit="mm" /> <limit name="step_length_max" particles="*" value="5.0" unit="mm" />
</limitset> </limitset>
<limitset name="tpc_limits">
<limit name="step_length_max" particles="*" value="10.0" unit="mm" />
</limitset>
<limitset name="dc_limits"> <limitset name="dc_limits">
<limit name="step_length_max" particles="*" value="10.0" unit="mm" /> <limit name="step_length_max" particles="*" value="10.0" unit="mm" />
</limitset> </limitset>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment