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
detectors
topside
Commits
54a18293
Commit
54a18293
authored
May 06, 2021
by
Whitney Armstrong
Browse files
Change the geant4 vis
parent
d7ff9438
Pipeline
#9185
failed with stages
in 6 minutes and 4 seconds
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bin/dawn_tweak
View file @
54a18293
...
...
@@ -6,7 +6,7 @@ export DAWN_PS_PREVIEWER="ls"
OUT_FILE
=
".DAWN_1.history"
function
print_the_help
{
echo
"USAGE:
${
0
}
[-s <skip_events>]
-d <dawn_run_dir> "
echo
"USAGE:
${
0
}
-d <dawn_run_dir> "
echo
" OPTIONS: "
echo
" -x targeted x coordinate position"
echo
" -y targeted x coordinate position"
...
...
macro/dawn_picture.mac
View file @
54a18293
...
...
@@ -17,13 +17,30 @@
/vis/scene/add/volume
/vis/sceneHandler/attach
#/vis/scene/add/scale 1 m x 1 0 0 manual -0.5 -2 0 m
/vis/scene/add/scale 1 m y 1 0 0 manual 2 -0.75 -3 m
#
/vis/scene/add/scale 1 m y 1 0 0 manual 2 -0.75 -3 m
#/vis/scene/add/scale 2 m z 1 0 0 manual 0 -2 0 m
#/vis/scene/add/magneticField 6 lightArrow
/vis/viewer/flush
/vis/scene/add/trajectories
/vis/scene/add/hits
/tracking/storeTrajectory 1
# Create an attribute filter named attributeFilter-0
/vis/filtering/trajectories/create/attributeFilter
# Select attribute "IMag"
/vis/filtering/trajectories/attributeFilter-0/setAttribute IMag
# Select trajectories with 100 MeV <= IMag< 500 GeV
/vis/filtering/trajectories/attributeFilter-0/addInterval 5 GeV 500 GeV
# List available attributes
/vis/list
# List filters
/vis/filtering/trajectories/list
/run/beamOn 5
exit
macro/dawn_picture2.mac
View file @
54a18293
...
...
@@ -19,9 +19,24 @@
/vis/scene/add/trajectories
/vis/scene/add/hits
#/vis/scene/add/scale 1 m x 1 0 0 manual -0.5 -2 0 m
/vis/scene/add/scale 1 m y 1 0 0 manual 2 -0.75 -3 m
#
/vis/scene/add/scale 1 m y 1 0 0 manual 2 -0.75 -3 m
#/vis/scene/add/scale 2 m z 1 0 0 manual 0 -2 0 m
/tracking/storeTrajectory 1
# Create an attribute filter named attributeFilter-0
/vis/filtering/trajectories/create/attributeFilter
# Select attribute "IMag"
/vis/filtering/trajectories/attributeFilter-0/setAttribute IMag
# Select trajectories with 100 MeV <= IMag< 500 GeV
/vis/filtering/trajectories/attributeFilter-0/addInterval 5 GeV 500 GeV
# List available attributes
/vis/list
# List filters
/vis/filtering/trajectories/list
/run/beamOn 1
exit
scripts/view2/.DAWN_1.default
View file @
54a18293
...
...
@@ -29,5 +29,5 @@
evince
0
0
1
3
n
scripts/view2/.DAWN_1.history
View file @
54a18293
1.34392e+07
0
18
0
19
18
5.5
0
0
0
0
8
3
16
1
0.001
0
1
...
...
@@ -17,12 +17,12 @@
0.5
19
71
0.01
0.01
0.01
3
0.
0
01
0.
0
01
0.
0
01
1
70
0.01
0.
0
01
1
1
1
...
...
scripts/view2/generate_eps
View file @
54a18293
...
...
@@ -43,10 +43,15 @@ do
done
set
--
"
${
POSITIONAL
[@]
}
"
# restore positional parameters
echo
"INPUT_FILE =
${
INPUT_FILE
}
"
echo
"FILE_TAG =
${
FILE_TAG
}
"
ls
-lrth
${
INPUT_FILE
}
../../bin/dawn_tweak
--mag
16
--draw
1
# units are mm
dawncut 0 0
-1
1
${
INPUT_FILE
}
${
FILE_TAG
}
a_temp0.prim
dawncut 0 0 1
1
${
FILE_TAG
}
a_temp0.prim
${
FILE_TAG
}
a.prim
dawncut 0 0
-1
2
${
INPUT_FILE
}
${
FILE_TAG
}
a_temp0.prim
dawncut 0 0 1
2
${
FILE_TAG
}
a_temp0.prim
${
FILE_TAG
}
a.prim
dawn
-d
${
FILE_TAG
}
a.prim
ps2pdf
${
FILE_TAG
}
a.eps
${
FILE_TAG
}
a_full.pdf
gs
-o
${
FILE_TAG
}
a.pdf
-sDEVICE
=
pdfwrite
\
...
...
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