Commit 632b3c6d authored by Whitney Armstrong's avatar Whitney Armstrong
Browse files

Updating view3

parent 11810c40
#!/bin/bash
echo "view3 produces a series of XY slices a different z locations."
function print_the_help {
echo "USAGE: $0 <PRIM_FILE> "
echo " OPTIONS: "
echo " -t,--tag filename tag (default: view1)"
exit
}
FILE_TAG="view2"
INPUT_FILE="g4_0000.prim"
POSITIONAL=()
while [[ $# -gt 0 ]]
do
key="$1"
case $key in
-h|--help)
shift # past argument
print_the_help
;;
-t|--tag)
FILE_TAG="$2"
shift # past argument
shift # past value
;;
-i|--input)
INPUT_FILE="$2"
shift # past argument
shift # past value
;;
*) # unknown option
#POSITIONAL+=("$1") # save it in an array for later
echo "unknown option $1"
print_the_help
shift # past argument
;;
esac
done
set -- "${POSITIONAL[@]}" # restore positional parameters
# units are mm
dawncut 0 0 -1 -1500 $1 view3.prim
dawn view3.prim
ps2pdf view3.eps view3.pdf
pdftoppm view3.pdf view3 -png -singlefile
dawncut 0 0 -1 -1500 ${INPUT_FILE} ${FILE_TAG}.prim
dawn -d ${FILE_TAG}.prim
ps2pdf ${FILE_TAG}.eps ${FILE_TAG}.pdf
pdftoppm ${FILE_TAG}.pdf ${FILE_TAG} -png -singlefile
#https://geant4.kek.jp/~tanaka/DAWN/About_DAWNCUT.html
......
......@@ -107,7 +107,6 @@
<!--
-->
<!--
<include ref="topside/beampipe.xml"/>
<include ref="topside/vertex_tracker.xml"/>
<include ref="topside/silicon_tracker.xml"/>
......@@ -115,6 +114,7 @@
<include ref="topside/hcal.xml"/>
<include ref="topside/solenoid.xml"/>
<include ref="topside/topside_rich.xml"/>
<!--
-->
<include ref="topside/roman_pots.xml"/>
<include ref="eic/forward_ion_beamline.xml"/>
......
Supports Markdown
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