Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eic_tutorial
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIC
tutorials
eic_tutorial
Commits
913db99c
Commit
913db99c
authored
3 years ago
by
Whitney Armstrong
Browse files
Options
Downloads
Patches
Plain Diff
modified: part1/simple_detector.md
parent
28a63dbb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/docs/part1/simple_detector.md
+38
-24
38 additions, 24 deletions
src/docs/part1/simple_detector.md
with
38 additions
and
24 deletions
src/docs/part1/simple_detector.md
+
38
−
24
View file @
913db99c
...
@@ -4,40 +4,55 @@ title: "Simple Detector"
...
@@ -4,40 +4,55 @@ title: "Simple Detector"
## Setup
## Setup
Note all these commands assume you are in an
`eic-shell`
singularity session.
```
bash
```
bash
git clone https://eicweb.phy.anl.gov/EIC/tutorials/ip6_tutorial_1.git part1
git clone https://eicweb.phy.anl.gov/EIC/tutorials/ip6_tutorial_1.git part1
cd
part1
cd
part1
```
```
You will find the following files and directories.
## Inspect files
```
shell
.
├── elements.xml
├── gem_tracker.xml
├── gps.mac
├── materials.xml
├── README.md
├── rootlogon.C
├── run_example
└── scripts
├── example_Acts.cxx
├── example_cell_size.cxx
├── example_digi.cxx
├── example_hit_recon.cxx
├── example_seg_size.cxx
├── example_tracking.cxx
└── mag_field.cxx
```
Look around see what's what.
The files
The files
[
`materials.xml`
](
https://eicweb.phy.anl.gov/EIC/tutorials/ip6_tutorial_1/blob/master/materials.xml
)
,
[
`
compact/
materials.xml`
](
https://eicweb.phy.anl.gov/EIC/tutorials/ip6_tutorial_1/blob/master/
compact/
materials.xml
)
,
[
`elements.xml`
](
https://eicweb.phy.anl.gov/EIC/tutorials/ip6_tutorial_1/blob/master/elements.xml
)
,
[
`
compact/
elements.xml`
](
https://eicweb.phy.anl.gov/EIC/tutorials/ip6_tutorial_1/blob/master/
compact/
elements.xml
)
,
and
and
[
`gem_tracker.xml`
](
https://eicweb.phy.anl.gov/EIC/tutorials/ip6_tutorial_1/blob/master/gem_tracker.xml
)
[
`gem_tracker.xml`
](
https://eicweb.phy.anl.gov/EIC/tutorials/ip6_tutorial_1/blob/master/gem_tracker.xml
)
are the compact detector description files. The first two files are included in
are the compact detector description files. The first two files are included in
the main
`gem_tracker.xml`
file. Note these files are conventionally found in
the main
`gem_tracker.xml`
file. Note these files are often found in
directories named compact.
directories named compact (but not always).
## Compile the detector library
```
mkdir build
cmake ../. -DCMAKE_INSTALL_PREFIX=../../local
make -j4 install
```
## Look at geometry
```
dd_web_display --export gem_tracker.xml
```
Copy the generated file
`detector_geometry.root`
to your local machine.
Then open the
[
web viewer
](
https://eic.phy.anl.gov/geoviewer/
)
, click on the
`...`
and open the local root file.
```
xml
<detector
id=
"2"
name=
"GEMTracker"
vis=
"RedVis"
type=
"my_GEMTracker"
readout=
"GEMTrackerHits"
>
<layer
id=
"1"
z=
"-100 *cm"
inner_r=
"40*cm"
outer_r=
"120*cm"
phi0_offset=
"0.0*deg"
/>
<layer
id=
"2"
z=
"-80 *cm"
inner_r=
"30*cm"
outer_r=
"90*cm"
phi0_offset=
"0.0*deg"
/>
<layer
id=
"3"
z=
"-60 *cm"
inner_r=
"20*cm"
outer_r=
"70*cm"
phi0_offset=
"0.0*deg"
/>
<layer
id=
"4"
z=
"-40 *cm"
inner_r=
"20*cm"
outer_r=
"50.0*cm"
phi0_offset=
"0.0*deg"
/>
<layer
id=
"5"
z=
" 40 *cm"
inner_r=
"20*cm"
outer_r=
"50.0*cm"
phi0_offset=
"0.0*deg"
/>
<layer
id=
"6"
z=
" 60 *cm"
inner_r=
"25*cm"
outer_r=
"70.0*cm"
phi0_offset=
"0.0*deg"
/>
<layer
id=
"7"
z=
" 80 *cm"
inner_r=
"30*cm"
outer_r=
"90.0*cm"
phi0_offset=
"0.0*deg"
/>
<layer
id=
"8"
z=
"100 *cm"
inner_r=
"40*cm"
outer_r=
"100.0*cm"
phi0_offset=
"0.0*deg"
/>
</detector>
```
...
@@ -50,7 +65,6 @@ ddsim --runType run --enableG4GPS \
...
@@ -50,7 +65,6 @@ ddsim --runType run --enableG4GPS \
--outputFile
gem_tracker_sim.root
--outputFile
gem_tracker_sim.root
```
```
This will run geant4 using the General Particle Source (GPS) tool.
This will run geant4 using the General Particle Source (GPS) tool.
The output will be a root file containing the generated events and GEM tracker hits.
The output will be a root file containing the generated events and GEM tracker hits.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment