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
GitLab 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
Expand sidebar
Merged
New geometry
new-geometry
into
main
Overview
0
Commits
18
Pipelines
17
Changes
24
Merged
New geometry
Wouter Deconinck
requested to merge
new-geometry
into
main
Mar 12, 2022
Overview
0
Commits
18
Pipelines
17
Changes
24
Not expected to pass CI
0
0
Merge request reports
Compare
main
version 15
0304fa8d
Mar 23, 2022
version 14
1f6d7fb4
Mar 23, 2022
version 13
a0f6659b
Mar 23, 2022
version 12
f9f020ee
Mar 23, 2022
version 11
efee3994
Mar 23, 2022
version 10
685218c2
Mar 23, 2022
version 9
99aa613f
Mar 23, 2022
version 8
fd827ee4
Mar 23, 2022
version 7
43c93e81
Mar 12, 2022
version 6
18652ced
Mar 12, 2022
version 5
3a91e9d4
Mar 12, 2022
version 4
008b9df9
Mar 12, 2022
version 3
3586f1e3
Mar 12, 2022
version 2
2336a16e
Mar 12, 2022
version 1
41001d90
Mar 12, 2022
main (base)
and
latest version
latest version
aeef3556
18 commits,
Mar 23, 2022
version 15
0304fa8d
17 commits,
Mar 23, 2022
version 14
1f6d7fb4
16 commits,
Mar 23, 2022
version 13
a0f6659b
15 commits,
Mar 23, 2022
version 12
f9f020ee
14 commits,
Mar 23, 2022
version 11
efee3994
13 commits,
Mar 23, 2022
version 10
685218c2
12 commits,
Mar 23, 2022
version 9
99aa613f
11 commits,
Mar 23, 2022
version 8
fd827ee4
10 commits,
Mar 23, 2022
version 7
43c93e81
9 commits,
Mar 12, 2022
version 6
18652ced
8 commits,
Mar 12, 2022
version 5
3a91e9d4
6 commits,
Mar 12, 2022
version 4
008b9df9
5 commits,
Mar 12, 2022
version 3
3586f1e3
4 commits,
Mar 12, 2022
version 2
2336a16e
3 commits,
Mar 12, 2022
version 1
41001d90
2 commits,
Mar 12, 2022
24 files
+
2787
−
2
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
24
bin/dawn_tweak
0 → 100755
+
149
−
0
View file @ aeef3556
Edit in single-file editor
Open in Web IDE
#!/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