Skip to content
Snippets Groups Projects
Commit 3c5cb7e3 authored by Markus Frank's avatar Markus Frank Committed by MarkusFrankATcernch
Browse files

Fix checksum example after modification of MiniTel

parent de7a70cc
No related branches found
No related tags found
No related merge requests found
......@@ -379,7 +379,7 @@ dd4hep_add_test_reg( MiniTel_check_checksum_Minitel3
COMMAND "${CMAKE_INSTALL_PREFIX}/bin/run_test_CLICSiD.sh"
EXEC_ARGS geoPluginRun -input ${ClientTestsEx_INSTALL}/compact/MiniTelGenerate.xml
-plugin DD4hepDetectorChecksum -readout -detector Minitel3
REGEX_PASS "Combined hash code 36773df7c4d6cf2b \\(52 sub-codes\\)"
REGEX_PASS "Combined hash code 96566298cb469f79 \\(54 sub-codes\\)"
REGEX_FAIL "Exception;EXCEPTION;ERROR"
)
#
......@@ -388,7 +388,7 @@ dd4hep_add_test_reg( MiniTel_check_checksum_full
COMMAND "${CMAKE_INSTALL_PREFIX}/bin/run_test_CLICSiD.sh"
EXEC_ARGS geoPluginRun -input ${ClientTestsEx_INSTALL}/compact/MiniTelGenerate.xml
-plugin DD4hepDetectorChecksum -readout
REGEX_PASS "Combined hash code 99b55eb7a563d587 \\(201 sub-codes\\)"
REGEX_PASS "Combined hash code 97ecf7772fe1d462 \\(207 sub-codes\\)"
REGEX_FAIL "Exception;EXCEPTION;ERROR"
)
#
......
......@@ -89,22 +89,23 @@ static Ref_t create_detector(Detector &description, xml_h e, SensitiveDetector s
xml_comp_t x_pos = m;
if ( x_pos.z() > env_dim_max.z() ) {
env_dim_max.SetZ(x_pos.z());
printout(ALWAYS,"","z_max = %f",x_pos.z());
printout(DEBUG,"MiniTel","Envelope z_max = %f",x_pos.z());
}
if ( x_pos.z() < env_dim_min.z() ) {
env_dim_min.SetZ(x_pos.z());
printout(ALWAYS,"","z_min = %f",x_pos.z());
printout(DEBUG,"MiniTel","Envelope z_min = %f",x_pos.z());
}
}
Volume side_vol;
if ( x_det.hasChild(_U(assembly)) ) {
side_vol = Assembly("side_0");
printout(DEBUG,"MiniTel","Using assembly envelope");
}
else {
Box side_box(env_dim_max.x(), env_dim_max.y(), (env_dim_max.z()-env_dim_min.z())/2.0+sensor_box.z() + epsilon);
printout(ALWAYS,"","Box = %f",side_box.z());
side_vol = Volume("side_0", side_box, description.air());
printout(DEBUG,"MiniTel","Envelope Box = %f",side_box.z());
}
side_det = DetElement(sdet,"side_0", x_det.id());
if ( x_det.hasChild(_U(side_position)) ) {
......
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