Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
compton
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
Show more breadcrumbs
EIC
detectors
compton
Merge requests
!1
New geometry
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
New geometry
new-geometry
into
main
Overview
0
Commits
18
Pipelines
17
Changes
24
Merged
Wouter Deconinck
requested to merge
new-geometry
into
main
3 years ago
Overview
0
Commits
18
Pipelines
17
Changes
24
Expand
Not expected to pass CI
0
0
Merge request reports
Compare
main
version 15
0304fa8d
3 years ago
version 14
1f6d7fb4
3 years ago
version 13
a0f6659b
3 years ago
version 12
f9f020ee
3 years ago
version 11
efee3994
3 years ago
version 10
685218c2
3 years ago
version 9
99aa613f
3 years ago
version 8
fd827ee4
3 years ago
version 7
43c93e81
3 years ago
version 6
18652ced
3 years ago
version 5
3a91e9d4
3 years ago
version 4
008b9df9
3 years ago
version 3
3586f1e3
3 years ago
version 2
2336a16e
3 years ago
version 1
41001d90
3 years ago
main (base)
and
latest version
latest version
aeef3556
18 commits,
3 years ago
version 15
0304fa8d
17 commits,
3 years ago
version 14
1f6d7fb4
16 commits,
3 years ago
version 13
a0f6659b
15 commits,
3 years ago
version 12
f9f020ee
14 commits,
3 years ago
version 11
efee3994
13 commits,
3 years ago
version 10
685218c2
12 commits,
3 years ago
version 9
99aa613f
11 commits,
3 years ago
version 8
fd827ee4
10 commits,
3 years ago
version 7
43c93e81
9 commits,
3 years ago
version 6
18652ced
8 commits,
3 years ago
version 5
3a91e9d4
6 commits,
3 years ago
version 4
008b9df9
5 commits,
3 years ago
version 3
3586f1e3
4 commits,
3 years ago
version 2
2336a16e
3 commits,
3 years ago
version 1
41001d90
2 commits,
3 years ago
24 files
+
2787
−
2
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
24
Search (e.g. *.vue) (Ctrl+P)
bin/dawn_tweak
0 → 100755
+
149
−
0
Options
#!/bin/bash
#git clone --depth 1 https://eicweb.phy.anl.gov/EIC/datasets.git
export
DAWN_PS_PREVIEWER
=
"ls"
OUT_FILE
=
".DAWN_1.history"
function
print_the_help
{
echo
"USAGE:
${
0
}
[-s <skip_events>] -d <dawn_run_dir> "
echo
" OPTIONS: "
echo
" -x targeted x coordinate position"
echo
" -y targeted x coordinate position"
echo
" -z targeted x coordinate position"
echo
" --theta viewing angle"
echo
" --phi viewing angle"
echo
" -m,--mag magnification"
echo
" --draw draw style "
echo
" -d,--dawn-dir <dawn_run_dir> Directory with the .DAWN files and a generate script "
exit
}
function
yes_or_no
{
while
true
;
do
read
-p
"
$*
[y/n]: "
yn
case
$yn
in
[
Yy]
*
)
return
0
;;
[
Nn]
*
)
echo
"No entered"
;
return
1
;;
esac
done
}
if
[[
$#
-eq
0
]]
;
then
print_the_help
exit
fi
SKIP_EVENTS
=
0
DETECTOR_ONLY
=
0
FILE_TAG
=
"view"
DAWN_RUN_DIR
=
"."
POSITIONAL
=()
while
[[
$#
-gt
0
]]
do
key
=
"
$1
"
case
$key
in
-h
|
--help
)
shift
# past argument
print_the_help
;;
-x
)
echo
"updating x coordinate to
${
2
}
"
sed
-i
'5d'
${
DAWN_RUN_DIR
}
/
${
OUT_FILE
}
sed
-i
'5i'
${
2
}
${
DAWN_RUN_DIR
}
/
${
OUT_FILE
}
shift
# past argument
shift
# past value
;;
-y
)
echo
"updating y coordinate to
${
2
}
"
sed
-i
'6d'
${
DAWN_RUN_DIR
}
/
${
OUT_FILE
}
sed
-i
'6i'
${
2
}
${
DAWN_RUN_DIR
}
/
${
OUT_FILE
}
shift
# past argument
shift
# past value
;;
-z
)
echo
"updating z coordinate to
${
2
}
"
sed
-i
'7d'
${
DAWN_RUN_DIR
}
/
${
OUT_FILE
}
sed
-i
'7i'
${
2
}
${
DAWN_RUN_DIR
}
/
${
OUT_FILE
}
shift
# past argument
shift
# past value
;;
--theta
)
echo
"updating theta angle to
${
2
}
"
sed
-i
'3d'
${
DAWN_RUN_DIR
}
/
${
OUT_FILE
}
sed
-i
'3i'
${
2
}
${
DAWN_RUN_DIR
}
/
${
OUT_FILE
}
shift
# past argument
shift
# past value
;;
--phi
)
echo
"updating phi angle to
${
2
}
"
sed
-i
'2d'
${
DAWN_RUN_DIR
}
/
${
OUT_FILE
}
sed
-i
'2i'
${
2
}
${
DAWN_RUN_DIR
}
/
${
OUT_FILE
}
shift
# past argument
shift
# past value
;;
--mag
)
echo
"updating magnification to
${
2
}
"
sed
-i
'8d'
${
DAWN_RUN_DIR
}
/
${
OUT_FILE
}
sed
-i
'8i'
${
2
}
${
DAWN_RUN_DIR
}
/
${
OUT_FILE
}
shift
# past argument
shift
# past value
;;
--draw
)
echo
"updating drawing to
${
2
}
"
sed
-i
'9d'
${
DAWN_RUN_DIR
}
/
${
OUT_FILE
}
sed
-i
'9i'
${
2
}
${
DAWN_RUN_DIR
}
/
${
OUT_FILE
}
shift
# past argument
shift
# past value
;;
--light-theta
)
echo
"updating drawing to
${
2
}
"
sed
-i
'19d'
${
DAWN_RUN_DIR
}
/
${
OUT_FILE
}
sed
-i
'19i'
${
2
}
${
DAWN_RUN_DIR
}
/
${
OUT_FILE
}
shift
# past argument
shift
# past value
;;
--light-phi
)
echo
"updating drawing to
${
2
}
"
sed
-i
'18d'
${
DAWN_RUN_DIR
}
/
${
OUT_FILE
}
sed
-i
'18i'
${
2
}
${
DAWN_RUN_DIR
}
/
${
OUT_FILE
}
shift
# past argument
shift
# past value
;;
-i
|
--input
)
OUT_FILE
=
"
$2
"
shift
# past argument
shift
# past value
;;
-o
|
--ouput-dir
)
OUTPUT_DIR
=
"
$2
"
shift
# past argument
shift
# past value
;;
-D
|
--detector-only
)
DETECTOR_ONLY
=
1
shift
# past argument
#shift # past value
;;
-d
|
--dawn-dir
)
DAWN_RUN_DIR
=
$2
shift
# past argument
shift
# past value
;;
-t
|
--tag
)
FILE_TAG
=
$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
Loading