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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIC
benchmarks
physics_benchmarks
Commits
4ca2efc1
Commit
4ca2efc1
authored
3 years ago
by
Wouter Deconinck
Browse files
Options
Downloads
Patches
Plain Diff
npsim all files
parent
3d6fbb0a
Branches
Branches containing commit
Tags
v2.0.0
Tags containing commit
1 merge request
!106
Resolve "Include synchrotron radiation benchmark"
This commit is part of merge request
!106
. Comments created here will be created in the context of that merge request.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
benchmarks/synchrotron/synchrotron.sh
+5
-4
5 additions, 4 deletions
benchmarks/synchrotron/synchrotron.sh
with
5 additions
and
4 deletions
benchmarks/synchrotron/synchrotron.sh
+
5
−
4
Edit
View file @
4ca2efc1
...
...
@@ -73,7 +73,7 @@ print_env.sh
FILE_NAME_TAG
=
"synchrotron"
DATA_URL
=
"S3/eictest/ATHENA/EVGEN/SR/SR.10GeV_5kVthreshold_hepmc/"
export
JUGGLER_MC_FILES
=
"
${
LOCAL_DATA_PATH
}
/mc_
${
FILE_NAME_TAG
}
/
*.hepmc
"
export
JUGGLER_MC_FILES
=
"
${
LOCAL_DATA_PATH
}
/mc_
${
FILE_NAME_TAG
}
/"
export
JUGGLER_SIM_FILE
=
"
${
LOCAL_DATA_PATH
}
/sim_
${
FILE_NAME_TAG
}
.root"
export
JUGGLER_REC_FILE
=
"
${
LOCAL_DATA_PATH
}
/rec_
${
FILE_NAME_TAG
}
.root"
...
...
@@ -90,7 +90,7 @@ echo "JUGGLER_DETECTOR = ${JUGGLER_DETECTOR}"
## Step 1. Get the data
if
[[
-n
"
${
DATA_INIT
}
"
||
-n
"
${
DO_ALL
}
"
]]
;
then
mc
-C
.
config host add S3 https://dtn01.sdcc.bnl.gov:9000
$S3_ACCESS_KEY
$S3_SECRET_KEY
mc
-C
.
cp
--insecure
--recursive
${
DATA_URL
}
"
${
LOCAL_DATA_PATH
}
/mc_
${
FILE_NAME_TAG
}
/
"
mc
-C
.
cp
--insecure
--recursive
${
DATA_URL
}
"
${
JUGGLER_MC_FILES
}
"
if
[[
"
$?
"
-ne
"0"
]]
;
then
echo
"Failed to download hepmc files"
exit
1
...
...
@@ -100,14 +100,15 @@ fi
### Step 2. Run the simulation (geant4)
if
[[
-n
"
${
DO_SIM
}
"
||
-n
"
${
DO_ALL
}
"
]]
;
then
## run geant4 simulations
export
JUGGLER_N_EVENTS
=
1000000
npsim
--runType
batch
\
--part
.minimalKineticEnergy 1000
*
GeV
\
--filter
.tracker edep0
\
-v
ERROR
\
--numberOfEvents
${
JUGGLER_N_EVENTS
}
\
--compactFile
${
DETECTOR_PATH
}
/
${
JUGGLER_DETECTOR
}
.xml
\
--inputFiles
"
${
JUGGLER_MC_FILES
}
"
\
--outputFile
${
JUGGLER_SIM_FILE
}
--inputFiles
${
JUGGLER_MC_FILES
}
/
*
.hepmc
\
--outputFile
${
JUGGLER_SIM_FILE
}
if
[[
"
$?
"
-ne
"0"
]]
;
then
echo
"ERROR running npsim"
exit
1
...
...
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
register
or
sign in
to comment