Skip to content
Snippets Groups Projects
Commit 3deff377 authored by Chao Peng's avatar Chao Peng
Browse files

minor adjustment

parent 36af636c
No related branches found
No related tags found
No related merge requests found
......@@ -76,6 +76,7 @@ static Ref_t createDetector(Detector& desc, xml::Handle_t handle, SensitiveDetec
Material air = desc.air();
int det_id = x_det.id();
string det_name = x_det.nameStr();
xml_comp_t x_dim = x_det.dimensions();
double rmin = x_dim.rmin();
double rmax = x_dim.rmax();
......@@ -117,7 +118,6 @@ static Ref_t createDetector(Detector& desc, xml::Handle_t handle, SensitiveDetec
PolyhedraRegular l_hex(6, 0., rmod, l_thickness);
Volume l_vol(l_name,l_hex,air);
DetElement layer_DE(mod_DE, l_name, det_id);
l_vol.setVisAttributes(desc.invisible());
// Loop over the sublayers or slices for this layer.
int s_num = 1;
......@@ -182,7 +182,6 @@ static Ref_t createDetector(Detector& desc, xml::Handle_t handle, SensitiveDetec
auto amod = (nmod == 0 ? mod_DE : mod_DE.clone("module" + std::to_string(nmod+1), nmod+1));
amod.setPlacement(pv);
sdet.add(amod);
nmod++;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment