Commit 54a18293 authored by Whitney Armstrong's avatar Whitney Armstrong
Browse files

Change the geant4 vis

parent d7ff9438
Pipeline #9185 failed with stages
in 6 minutes and 4 seconds
......@@ -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"
......
......@@ -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
......@@ -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
......@@ -29,5 +29,5 @@
evince
0
0
1
3
n
1.34392e+07
0
180
19
185.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.001
0.001
0.001
1
70
0.01
0.001
1
1
1
......
......@@ -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 \
......
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