Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
physics_benchmarks
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
benchmarks
physics_benchmarks
Commits
712bd3d2
Commit
712bd3d2
authored
Nov 21, 2020
by
Whitney Armstrong
Browse files
Options
Downloads
Patches
Plain Diff
modified: dvcs/dvcs.sh
modified: options/tracker_reconstruction.py
parent
680464ce
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
dvcs/dvcs.sh
+2
-4
2 additions, 4 deletions
dvcs/dvcs.sh
options/tracker_reconstruction.py
+4
-3
4 additions, 3 deletions
options/tracker_reconstruction.py
with
6 additions
and
7 deletions
dvcs/dvcs.sh
+
2
−
4
View file @
712bd3d2
...
@@ -34,7 +34,6 @@ pushd ${JUGGLER_DETECTOR}/build
...
@@ -34,7 +34,6 @@ pushd ${JUGGLER_DETECTOR}/build
cmake ../.
-DCMAKE_INSTALL_PREFIX
=
/usr/local
&&
make
-j30
install
cmake ../.
-DCMAKE_INSTALL_PREFIX
=
/usr/local
&&
make
-j30
install
popd
popd
pushd
${
JUGGLER_DETECTOR
}
curl
-o
test_proton_dvcs_eic.hepmc
"https://eicweb.phy.anl.gov/api/v4/projects/345/jobs/artifacts/master/raw/data/test_proton_dvcs_eic.hepmc?job=compile"
curl
-o
test_proton_dvcs_eic.hepmc
"https://eicweb.phy.anl.gov/api/v4/projects/345/jobs/artifacts/master/raw/data/test_proton_dvcs_eic.hepmc?job=compile"
if
[[
"
$?
"
-ne
"0"
]]
;
then
if
[[
"
$?
"
-ne
"0"
]]
;
then
...
@@ -42,13 +41,12 @@ if [[ "$?" -ne "0" ]] ; then
...
@@ -42,13 +41,12 @@ if [[ "$?" -ne "0" ]] ; then
exit
1
exit
1
fi
fi
## run geant4 simulations
## run geant4 simulations
npsim
--runType
batch
\
npsim
--runType
batch
\
--part
.minimalKineticEnergy 1000
*
GeV
\
--part
.minimalKineticEnergy 1000
*
GeV
\
-v
WARNING
\
-v
WARNING
\
--numberOfEvents
${
JUGGLER_N_EVENTS
}
\
--numberOfEvents
${
JUGGLER_N_EVENTS
}
\
--compactFile
${
JUGGLER_DETECTOR
}
.xml
\
--compactFile
${
JUGGLER_DETECTOR
}
/
${
JUGGLER_DETECTOR
}
.xml
\
--inputFiles
test_proton_dvcs_eic.hepmc
\
--inputFiles
test_proton_dvcs_eic.hepmc
\
--outputFile
${
JUGGLER_SIM_FILE
}
--outputFile
${
JUGGLER_SIM_FILE
}
if
[[
"
$?
"
-ne
"0"
]]
;
then
if
[[
"
$?
"
-ne
"0"
]]
;
then
...
@@ -58,7 +56,7 @@ fi
...
@@ -58,7 +56,7 @@ fi
# Need to figure out how to pass file name to juggler from the commandline
# Need to figure out how to pass file name to juggler from the commandline
xenv
-x
${
JUGGLER_INSTALL_PREFIX
}
/Juggler.xenv
\
xenv
-x
${
JUGGLER_INSTALL_PREFIX
}
/Juggler.xenv
\
gaudirun.py
../
options/tracker_reconstruction.py
gaudirun.py options/tracker_reconstruction.py
if
[[
"
$?
"
-ne
"0"
]]
;
then
if
[[
"
$?
"
-ne
"0"
]]
;
then
echo
"ERROR running juggler"
echo
"ERROR running juggler"
exit
1
exit
1
...
...
This diff is collapsed.
Click to expand it.
options/tracker_reconstruction.py
+
4
−
3
View file @
712bd3d2
...
@@ -13,9 +13,10 @@ input_sim_file = str(os.environ["JUGGLER_SIM_FILE"])
...
@@ -13,9 +13,10 @@ input_sim_file = str(os.environ["JUGGLER_SIM_FILE"])
output_rec_file
=
str
(
os
.
environ
[
"
JUGGLER_REC_FILE
"
])
output_rec_file
=
str
(
os
.
environ
[
"
JUGGLER_REC_FILE
"
])
n_events
=
str
(
os
.
environ
[
"
JUGGLER_N_EVENTS
"
])
n_events
=
str
(
os
.
environ
[
"
JUGGLER_N_EVENTS
"
])
detector_path
=
""
# This won't work
if
"
JUGGLER_DETECTOR_PATH
"
in
os
.
environ
:
#detector_path = ""
detector_path
=
str
(
os
.
environ
[
"
JUGGLER_DETECTOR_PATH
"
])
#if "JUGGLER_DETECTOR_PATH" in os.environ :
# detector_path = str(os.environ["JUGGLER_DETECTOR_PATH"])
geo_service
=
GeoSvc
(
"
GeoSvc
"
,
geo_service
=
GeoSvc
(
"
GeoSvc
"
,
detectors
=
[
"
{}/{}.xml
"
.
format
(
detector_name
,
detector_name
)])
detectors
=
[
"
{}/{}.xml
"
.
format
(
detector_name
,
detector_name
)])
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment