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
c026732c
Commit
c026732c
authored
3 years ago
by
Wouter Deconinck
Browse files
Options
Downloads
Patches
Plain Diff
Debugging by printing variables
parent
b13602a3
Branches
Branches containing commit
No related tags found
1 merge request
!157
Benchmarks for TCS on FF reconstructed particles
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
benchmarks/tcs/tcs.sh
+12
-7
12 additions, 7 deletions
benchmarks/tcs/tcs.sh
with
12 additions
and
7 deletions
benchmarks/tcs/tcs.sh
+
12
−
7
View file @
c026732c
...
...
@@ -91,12 +91,13 @@ set -- "${POSITIONAL[@]}" # restore positional parameters
# assuming something like .local/bin/env.sh has already been sourced.
print_env.sh
FILE_NAME_TAG
=
"tcs"
FILE_NAME_TAG
=
"tcs
_
${
EBEAM
}
x
${
PBEAM
}
_
${
TAG
}
_
${
JUGGLER_N_EVENTS
}
"
DATA_URL
=
"S3/eictest/ATHENA/EVGEN/EXCLUSIVE/TCS_ABCONV/
${
EBEAM
}
x
${
PBEAM
}
/hel_minus/TCS_gen_ab_hiAcc_
${
EBEAM
}
x
${
PBEAM
}
m_
${
TAG
}
_novtx.hepmc.gz"
export
JUGGLER_MC_FILE
=
"
${
LOCAL_DATA_PATH
}
/mc_
${
FILE_NAME_TAG
}
.hepmc"
export
JUGGLER_SIM_FILE
=
"
${
LOCAL_DATA_PATH
}
/sim_
${
FILE_NAME_TAG
}
.edm4hep.root"
export
JUGGLER_REC_FILE
=
"
${
LOCAL_DATA_PATH
}
/rec_
${
FILE_NAME_TAG
}
.root"
export
TMP_PATH
=
"
${
LOCAL_DATA_PATH
}
/tmp/tcs/
${
EBEAM
}
x
${
PBEAM
}
"
export
JUGGLER_MC_FILE
=
"
${
TMP_PATH
}
/mc_
${
FILE_NAME_TAG
}
.hepmc"
export
JUGGLER_SIM_FILE
=
"
${
TMP_PATH
}
/sim_
${
FILE_NAME_TAG
}
.edm4hep.root"
export
JUGGLER_REC_FILE
=
"
${
TMP_PATH
}
/rec_
${
FILE_NAME_TAG
}
.root"
echo
"FILE_NAME_TAG =
${
FILE_NAME_TAG
}
"
echo
"JUGGLER_N_EVENTS =
${
JUGGLER_N_EVENTS
}
"
...
...
@@ -121,6 +122,7 @@ fi
### Step 2. Run the simulation (geant4)
if
[[
-n
"
${
DO_SIM
}
"
||
-n
"
${
DO_ALL
}
"
]]
;
then
## run geant4 simulations
ls
-al
"
${
JUGGLER_MC_FILE
}
"
ddsim
--runType
batch
\
--part
.minimalKineticEnergy 1000
*
GeV
\
--filter
.tracker edep0
\
...
...
@@ -128,28 +130,31 @@ if [[ -n "${DO_SIM}" || -n "${DO_ALL}" ]] ; then
--numberOfEvents
${
JUGGLER_N_EVENTS
}
\
--compactFile
${
DETECTOR_PATH
}
/
${
JUGGLER_DETECTOR_CONFIG
}
.xml
\
--inputFiles
"
${
JUGGLER_MC_FILE
}
"
\
--outputFile
${
JUGGLER_SIM_FILE
}
--outputFile
"
${
JUGGLER_SIM_FILE
}
"
if
[
"
$?
"
-ne
"0"
]
;
then
echo
"ERROR running ddsim"
exit
1
fi
rootls
-t
"
${
JUGGLER_SIM_FILE
}
"
fi
### Step 3. Run the reconstruction (juggler)
export
PBEAM
if
[[
-n
"
${
DO_REC
}
"
||
-n
"
${
DO_ALL
}
"
]]
;
then
rootls
-t
"
${
JUGGLER_SIM_FILE
}
"
for
rec
in
options/
*
.py
;
do
unset
tag
[[
$(
basename
${
rec
}
.py
)
=
~
(
.
*
)
\.
(
.
*
)
]]
&&
tag
=
".
${
BASH_REMATCH
[2]
}
"
JUGGLER_REC_FILE
=
${
JUGGLER_REC_FILE
/.root/
${
tag
:-}
.root
}
\
gaudirun.py
${
rec
}
||
[
$?
-eq
4
]
rootls
-t
"
${
JUGGLER_REC_FILE
}
"
done
root_filesize
=
$(
stat
--format
=
%s
"
${
JUGGLER_REC_FILE
}
"
)
if
[[
"
${
JUGGLER_N_EVENTS
}
"
-lt
"500"
]]
;
then
# file must be less than 10 MB to upload
if
[[
"
${
root_filesize
}
"
-lt
"10000000"
]]
;
then
cp
${
JUGGLER_REC_FILE
}
results/.
cp
"
${
JUGGLER_REC_FILE
}
"
results/.
fi
fi
fi
...
...
@@ -157,7 +162,7 @@ fi
### Step 4. Run the analysis code
if
[[
-n
"
${
DO_ANALYSIS
}
"
||
-n
"
${
DO_ALL
}
"
]]
;
then
echo
"Running analysis scripts"
rootls
-t
${
JUGGLER_REC_FILE
}
rootls
-t
"
${
JUGGLER_REC_FILE
}
"
# Store all plots here (preferribly png and pdf files)
mkdir
-p
results/tcs
...
...
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