Skip to content
Snippets Groups Projects
Commit 34ebe828 authored by David Blyth's avatar David Blyth Committed by Andre Sailer
Browse files

CylindricalEndcapCalorimeter: Fixed factors of 2 in layer/slice thickness

parent 63cabf80
No related branches found
No related tags found
No related merge requests found
......@@ -47,14 +47,14 @@ static Ref_t create_detector(Detector& description, xml_h e, SensitiveDetector s
for(int i=0, im=0, repeat=x_layer.repeat(); i<repeat; ++i) {
double zlayer = z;
string layer_name = det_name + _toString(layer_num,"_layer%d");
Volume layer_vol(layer_name,Tube(rmin,rmax,layerWidth),air);
Volume layer_vol(layer_name,Tube(rmin,rmax,layerWidth * 0.5),air);
for(xml_coll_t l(x_layer,_U(slice)); l; ++l, ++im) {
xml_comp_t x_slice = l;
double w = x_slice.thickness();
string slice_name = layer_name + _toString(m+1,"slice%d");
Material slice_mat = description.material(x_slice.materialStr());
Volume slice_vol (slice_name,Tube(rmin,rmax,w),slice_mat);
Volume slice_vol (slice_name,Tube(rmin,rmax,w * 0.5),slice_mat);
if ( x_slice.isSensitive() ) {
sens.setType("calorimeter");
......
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