Skip to content
Snippets Groups Projects
Commit 1dd74632 authored by myliu@ihep.ac.cn's avatar myliu@ihep.ac.cn
Browse files

@myliu-hub

parent 61de9a0c
No related branches found
No related tags found
No related merge requests found
......@@ -132,7 +132,7 @@ static dd4hep::Ref_t create_detector(dd4hep::Detector& theDetector,
layer_vol.setAttributes(theDetector,x_det.regionStr(),x_det.limitsStr(),x_det.visStr());
// - wire vol
if(layer_id==0) {
// if(layer_id==0) {
for(int icell=0; icell< numWire; icell++) {
double wire_phi = (icell+0.5)*layer_Phi + offset;
for(xml_coll_t c(x_det,_U(module)); c; ++c) {
......@@ -163,7 +163,7 @@ static dd4hep::Ref_t create_detector(dd4hep::Detector& theDetector,
dd4hep::PlacedVolume module_phy = layer_vol.placeVolume(module_vol,transform_module);
}
}
}
// }
dd4hep::Transform3D transform_layer(dd4hep::Rotation3D(),dd4hep::Position(0.,0.,0.));
dd4hep::PlacedVolume layer_phy = (*current_vol_ptr).placeVolume(layer_vol, transform_layer);
layer_phy.addPhysVolID("layer",layer_id);
......
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