Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
topside
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
EIC
detectors
topside
Merge requests
!27
Updating view3
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Updating view3
view_update
into
master
Overview
0
Commits
2
Pipelines
0
Changes
2
Merged
Whitney Armstrong
requested to merge
view_update
into
master
4 years ago
Overview
0
Commits
2
Pipelines
0
Changes
2
Expand
modified: generate_eps
0
0
Merge request reports
Compare
master
version 1
b795e468
4 years ago
master (base)
and
latest version
latest version
7166ab75
2 commits,
4 years ago
version 1
b795e468
1 commit,
4 years ago
2 files
+
48
−
5
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
scripts/view3/generate_eps
+
47
−
4
Options
#!/bin/bash
#!/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
# units are mm
dawncut 0 0
-1
-1500
$
1
view3
.prim
dawncut 0 0
-1
-1500
$
{
INPUT_FILE
}
${
FILE_TAG
}
.prim
dawn
view3
.prim
dawn
-d
${
FILE_TAG
}
.prim
ps2pdf
view3.eps view3
.pdf
ps2pdf
${
FILE_TAG
}
.eps
${
FILE_TAG
}
.pdf
pdftoppm
view3.pdf view3
-png
-singlefile
pdftoppm
${
FILE_TAG
}
.pdf
${
FILE_TAG
}
-png
-singlefile
#https://geant4.kek.jp/~tanaka/DAWN/About_DAWNCUT.html
#https://geant4.kek.jp/~tanaka/DAWN/About_DAWNCUT.html
Loading