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
89d02e0a
Commit
89d02e0a
authored
Dec 17, 2020
by
Whitney Armstrong
Browse files
modified: bin/make_dawn_views
modified: scripts/view3/.DAWN_1.history modified: scripts/view3/generate_eps
parent
54e44886
Changes
3
Hide whitespace changes
Inline
Side-by-side
bin/make_dawn_views
View file @
89d02e0a
...
...
@@ -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
\
...
...
scripts/view3/.DAWN_1.history
View file @
89d02e0a
...
...
@@ -4,7 +4,7 @@
1
384.5
0
154.615
44817.3
1.2
5
0.001
...
...
scripts/view3/generate_eps
View file @
89d02e0a
...
...
@@ -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
...
...
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