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
cdf3785b
Commit
cdf3785b
authored
Dec 17, 2020
by
Whitney Armstrong
Browse files
modified: .DAWN_1.default
modified: .DAWN_1.history modified: generate_eps
parent
89d02e0a
Changes
3
Hide whitespace changes
Inline
Side-by-side
scripts/view3/.DAWN_1.default
View file @
cdf3785b
1.34392e+07
50.
0
0
180
1
0
0
491.1
1.2
5
0
0
8
1
0.001
0
1
...
...
scripts/view3/.DAWN_1.history
View file @
cdf3785b
1.34392e+07
5
0
1
80
1
384.5
28.
5
1
51.5
0
0
0
44817.3
1.2
5
0
8
1
0.001
0
1
...
...
scripts/view3/generate_eps
View file @
cdf3785b
#!/bin/bash
echo
"view2 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: view3)"
echo
" -i,--input input primfile (default: ../../g4_0000.prim)"
echo
" -t,--tag filename tag (default: view1)"
exit
}
...
...
@@ -43,21 +43,15 @@ do
done
set
--
"
${
POSITIONAL
[@]
}
"
# restore positional parameters
#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
# units are mm
dawncut 0 0
-1
1500
${
INPUT_FILE
}
${
FILE_TAG
}
.prim
dawn
${
FILE_TAG
}
.prim
ps2pdf
${
FILE_TAG
}
.eps
${
FILE_TAG
}
_full.pdf
gs
-o
${
FILE_TAG
}
.pdf
-sDEVICE
=
pdfwrite
\
-c
"[/CropBox [50 175 550 675] /PAGES pdfmark"
\
-f
${
FILE_TAG
}
_full.pdf
pdftoppm
${
FILE_TAG
}
.pdf
${
FILE_TAG
}
-png
-singlefile
-cropbox
#https://geant4.kek.jp/~tanaka/DAWN/About_DAWNCUT.html
# % dawncut a b c d input-file [output-file]
...
...
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