From 1654824379e1ea33bee363761659bd08f1bf0f62 Mon Sep 17 00:00:00 2001 From: Whitney Armstrong <warmstrong@anl.gov> Date: Fri, 21 May 2021 03:15:05 -0500 Subject: [PATCH] modified: part2/adding_detectors.md --- src/docs/part2/adding_detectors.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/docs/part2/adding_detectors.md b/src/docs/part2/adding_detectors.md index 2fa7f4f..f398ce1 100644 --- a/src/docs/part2/adding_detectors.md +++ b/src/docs/part2/adding_detectors.md @@ -135,7 +135,7 @@ attribute defined. We will return to this later. #### Critical parts of build_detector -We will now look at the function in `src/TrapEndcapTracker_geo.cpp`. +We will now look at the function in `src/GEMTrackerDisc_geo.cpp`. Note that **this is not a good example to copy**, rather it is a simple example to walk through. ```cpp @@ -192,6 +192,7 @@ static Ref_t create_detector(Detector& lcdd, xml_h e, SensitiveDetector sens) assembly->GetShape()->ComputeBBox() ; return sdet; } +DECLARE_DETELEMENT(my_GEMTracker, create_detector) ``` Here is the XML again: ```xml -- GitLab