Skip to content

Commit

Permalink
Removed commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
rete committed Mar 2, 2020
1 parent caa9080 commit 4077621
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions detector/calorimeter/Yoke05_Barrel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,6 @@ static Ref_t create_detector(Detector& theDetector, xml_h element, SensitiveDete

Box s_box(slab_dim_x,slab_dim_y,slab_dim_z);
Volume s_vol(det_name+"_"+l_name+"_"+s_name,s_box,slice_material);
// DetElement slice(layer,s_name,det_id);

nRadiationLengths += s_thickness/(2.*slice_material.radLength());
nInteractionLengths += s_thickness/(2.*slice_material.intLength());
Expand Down Expand Up @@ -346,9 +345,7 @@ static Ref_t create_detector(Detector& theDetector, xml_h element, SensitiveDete
s_pos_y += s_thickness/2.;

Position s_pos(0,s_pos_y,0); // Position of the layer.
// PlacedVolume s_phv =
ChamberLog.placeVolume(s_vol,s_pos);
// slice.setPlacement(s_phv);
ChamberLog.placeVolume(s_vol,s_pos);

// Increment x position for next slice.
s_pos_y += s_thickness/2.;
Expand Down Expand Up @@ -383,10 +380,7 @@ static Ref_t create_detector(Detector& theDetector, xml_h element, SensitiveDete
layer_phv.addPhysVolID("layer", l_num).addPhysVolID("stave",j+1);
string stave_name = _toString(j+1,"stave%d");
string stave_layer_name = stave_name+_toString(l_num,"layer%d");
// DetElement stave(stave_layer_name,det_id);;
// stave.setPlacement(layer_phv);
// sdet.add(stave);
plvec.push_back({stave_layer_name,layer_phv});
plvec.push_back({stave_layer_name,layer_phv});
phirot -= M_PI/symmetry*2.0;

}
Expand Down

0 comments on commit 4077621

Please sign in to comment.