Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
EIC
tutorials
eic_tutorial
Commits
16548243
Commit
16548243
authored
May 21, 2021
by
Whitney Armstrong
Browse files
modified: part2/adding_detectors.md
parent
2a8d9c0d
Pipeline
#10151
passed with stage
in 1 minute and 33 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/docs/part2/adding_detectors.md
View file @
16548243
...
...
@@ -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/
TrapEndcap
Tracker_geo.cpp
`.
We will now look at the function in `
src/
GEM
Tracker
Disc
_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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment