Commit 89d02e0a authored by Whitney Armstrong's avatar Whitney Armstrong
Browse files

modified: bin/make_dawn_views

	modified:   scripts/view3/.DAWN_1.history
	modified:   scripts/view3/generate_eps
parent 54e44886
......@@ -86,6 +86,8 @@ done
set -- "${POSITIONAL[@]}" # restore positional parameters
rm -f *.prim
if [ "${DETECTOR_ONLY}" -eq "1" ] ; then
./scripts/run_topside.py -i scripts/input_data/few_events.hepmc \
......
......@@ -4,7 +4,7 @@
1
384.5
0
154.615
44817.3
1.2
5
0.001
......
......@@ -43,12 +43,20 @@ do
done
set -- "${POSITIONAL[@]}" # restore positional parameters
cp ${INPUT_FILE} ${FILE_TAG}_input.prim
# units are mm
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
#jcp ${INPUT_FILE} ${FILE_TAG}_input.prim
#j# units are mm
#jdawncut 0 0 -1 -1500 ${INPUT_FILE} ${FILE_TAG}.prim
#jdawn -d ${FILE_TAG}.prim
#jps2pdf ${FILE_TAG}.eps ${FILE_TAG}.pdf
#jpdftoppm ${FILE_TAG}.pdf ${FILE_TAG} -png -singlefile
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
dawn -d ${FILE_TAG}a.prim
ps2pdf ${FILE_TAG}a.eps ${FILE_TAG}a_full.pdf
gs -o ${FILE_TAG}a.pdf -sDEVICE=pdfwrite \
-c "[/CropBox [50 175 550 675] /PAGES pdfmark" \
-f ${FILE_TAG}a_full.pdf
pdftoppm ${FILE_TAG}a.pdf ${FILE_TAG}a -png -singlefile -cropbox
#https://geant4.kek.jp/~tanaka/DAWN/About_DAWNCUT.html
......
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