Skip to content
Snippets Groups Projects
Commit 16548243 authored by Whitney Armstrong's avatar Whitney Armstrong
Browse files

modified: part2/adding_detectors.md

parent 2a8d9c0d
Branches
No related tags found
No related merge requests found
Pipeline #10151 passed
...@@ -135,7 +135,7 @@ attribute defined. We will return to this later. ...@@ -135,7 +135,7 @@ attribute defined. We will return to this later.
#### Critical parts of build_detector #### 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. Note that **this is not a good example to copy**, rather it is a simple example to walk through.
```cpp ```cpp
...@@ -192,6 +192,7 @@ static Ref_t create_detector(Detector& lcdd, xml_h e, SensitiveDetector sens) ...@@ -192,6 +192,7 @@ static Ref_t create_detector(Detector& lcdd, xml_h e, SensitiveDetector sens)
assembly->GetShape()->ComputeBBox() ; assembly->GetShape()->ComputeBBox() ;
return sdet; return sdet;
} }
DECLARE_DETELEMENT(my_GEMTracker, create_detector)
``` ```
Here is the XML again: Here is the XML again:
```xml ```xml
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment