Skip to content
Snippets Groups Projects
Commit b7a7386b authored by Jihee Kim's avatar Jihee Kim
Browse files

Added Sensitive detector type

parent 41ca68bd
No related branches found
No related tags found
1 merge request!11Resolve "Implement ffi_ZDC"
......@@ -24,6 +24,8 @@ static Ref_t createDetector(Detector& desc, xml_h e, SensitiveDetector sens)
// Create Global Volume
Box ffi_ZDC_GVol_Solid(Width * 0.5, Width * 0.5, Thickness * 0.5);
Volume detVol("ffi_ZDC_GVol_Logic", ffi_ZDC_GVol_Solid, Vacuum);
detVol.setSensitiveDetector(sens);
sens.setType("calorimeter");
detVol.setVisAttributes(desc.visAttributes(x_det.visStr()));
......@@ -31,6 +33,7 @@ static Ref_t createDetector(Detector& desc, xml_h e, SensitiveDetector sens)
Volume motherVol = desc.pickMotherVolume(det);
Transform3D tr(RotationZYX(rot.z(), rot.y(), rot.x()), Position(pos.x(), pos.y(), pos.z()));
PlacedVolume detPV = motherVol.placeVolume(detVol, tr);
detPV.addPhysVolID("system", detID).addPhysVolID("module",0);
det.setPlacement(detPV);
return det;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment