Commit 16548243 authored by Whitney Armstrong's avatar Whitney Armstrong
Browse files

modified: part2/adding_detectors.md

parent 2a8d9c0d
Pipeline #10151 passed with stage
in 1 minute and 33 seconds
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment