Skip to content
Snippets Groups Projects
Commit 651a30c7 authored by Frank Gaede's avatar Frank Gaede
Browse files

- fixed naming of volumes (using "%03d")

parent cdaa6774
No related branches found
No related tags found
No related merge requests found
...@@ -81,11 +81,11 @@ static Ref_t create_element(LCDD& lcdd, xml_h e, SensitiveDetector sens) { ...@@ -81,11 +81,11 @@ static Ref_t create_element(LCDD& lcdd, xml_h e, SensitiveDetector sens) {
for(int i=0 ; i < nTPClayer ; ++i){ for(int i=0 ; i < nTPClayer ; ++i){
Tube gas_tubL( r0 + (2*i) * dR , r0 + (2*i+1) * dR , zh ); Tube gas_tubL( r0 + (2*i) * dR , r0 + (2*i+1) * dR , zh );
Volume gas_volL( _toString( i, "tpc_row_lower_%2d") , gas_tubL, part_mat); Volume gas_volL( _toString( i, "tpc_row_lower_%03d") , gas_tubL, part_mat);
part_vol.placeVolume( gas_volL, Rotation(0,0,0) ); part_vol.placeVolume( gas_volL, Rotation(0,0,0) );
Tube gas_tubU( r0 + (2*i+1) * dR , r0 + (2*i+2) * dR , zh ); Tube gas_tubU( r0 + (2*i+1) * dR , r0 + (2*i+2) * dR , zh );
Volume gas_volU( _toString( i, "tpc_row_upper_%2d") , gas_tubU, part_mat); Volume gas_volU( _toString( i, "tpc_row_upper_%03d") , gas_tubU, part_mat);
gas_volU.setSensitiveDetector( sens ); gas_volU.setSensitiveDetector( sens );
part_vol.placeVolume( gas_volU, Rotation(0,0,0) ).addPhysVolID("layer",i) ; part_vol.placeVolume( gas_volU, Rotation(0,0,0) ).addPhysVolID("layer",i) ;
......
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