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

Fix error

parent 9c1bca0a
No related branches found
No related tags found
No related merge requests found
...@@ -205,7 +205,7 @@ static dd4hep::Ref_t create_detector(dd4hep::Detector& theDetector, ...@@ -205,7 +205,7 @@ static dd4hep::Ref_t create_detector(dd4hep::Detector& theDetector,
// | | // | |
// | F0 F1 F2 F3| // | F0 F1 F2 F3|
// ----------------------- // -----------------------
if(layer_id == -1) { // if(layer_id == -1) {
for(int icell=0; icell< numWire; icell++) { for(int icell=0; icell< numWire; icell++) {
double wire_phi = (icell+0.5)*layer_Phi + offset; double wire_phi = (icell+0.5)*layer_Phi + offset;
// - signal wire // - signal wire
...@@ -223,7 +223,7 @@ static dd4hep::Ref_t create_detector(dd4hep::Detector& theDetector, ...@@ -223,7 +223,7 @@ static dd4hep::Ref_t create_detector(dd4hep::Detector& theDetector,
Module_phy = layer_vol.placeVolume(Module_vol,transform_Module); Module_phy = layer_vol.placeVolume(Module_vol,transform_Module);
} }
} }
} // }
dd4hep::Transform3D transform_layer(dd4hep::Rotation3D(),dd4hep::Position(0.,0.,0.)); dd4hep::Transform3D transform_layer(dd4hep::Rotation3D(),dd4hep::Position(0.,0.,0.));
dd4hep::PlacedVolume layer_phy = (*current_vol_ptr).placeVolume(layer_vol, transform_layer); dd4hep::PlacedVolume layer_phy = (*current_vol_ptr).placeVolume(layer_vol, transform_layer);
......
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