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
Merge requests
!8
First DVMP analysis
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
First DVMP analysis
dvmp_ana
into
master
Overview
0
Commits
11
Pipelines
0
Changes
16
Merged
Sylvester Joosten
requested to merge
dvmp_ana
into
master
4 years ago
Overview
0
Commits
11
Pipelines
0
Changes
16
Expand
0
0
Merge request reports
Compare
master
version 10
01b9c84e
4 years ago
version 9
3ef3b82d
4 years ago
version 8
5fc2a180
4 years ago
version 7
da8e0123
4 years ago
version 6
ad6e4ac7
4 years ago
version 5
46e44c64
4 years ago
version 4
ff148744
4 years ago
version 3
8da4d540
4 years ago
version 2
10916cae
4 years ago
version 1
18eb7613
4 years ago
master (base)
and
latest version
latest version
a94f86fe
11 commits,
4 years ago
version 10
01b9c84e
11 commits,
4 years ago
version 9
3ef3b82d
11 commits,
4 years ago
version 8
5fc2a180
8 commits,
4 years ago
version 7
da8e0123
7 commits,
4 years ago
version 6
ad6e4ac7
7 commits,
4 years ago
version 5
46e44c64
5 commits,
4 years ago
version 4
ff148744
4 commits,
4 years ago
version 3
8da4d540
3 commits,
4 years ago
version 2
10916cae
2 commits,
4 years ago
version 1
18eb7613
1 commit,
4 years ago
16 files
+
674
−
133
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
16
Search (e.g. *.vue) (Ctrl+P)
config/env.sh
+
67
−
16
Options
#!/bin/bash
if
[[
!
-n
"
${
JUGGLER_DETECTOR
}
"
]]
;
then
## =============================================================================
## Global configuration variables for the benchmark scripts
## The script defines the following environment variables that are meant to
## be overriden by the Gitlab continuous integration (CI)
##
## - JUGGLER_DETECTOR: detector package to be used for the benchmark
## - JUGGLER_N_EVENTS: #events processed by simulation/reconstruction
## - JUGGLER_INSTALL_PREFIX: location where Juggler (digi/recon) is installed
##
## It also defines the following additional variables for internal usage
## - LOCAL_PREFIX: prefix for packages installed during the benchmark
## - DETECTOR_PREFIX: prefix for the detector definitions
## - DETECTOR_PATH: actual path with the detector definitions
##
## Finally, it makes sure LOCAL_PREFIX and JUGGLER_PREFIX are added to PATH
## and LD_LIBRARY_PATH
## =============================================================================
echo
"Setting up the Physics Benchmarks environment"
## =============================================================================
## Default variable definitions, normally these should be set
## by the CI. In case of local development you may want to change these
## in case you would like to modify the detector package or
## number of events to be analyzed during the benchmark
## Detector package to be used during the benchmark process
if
[
!
-n
"
${
JUGGLER_DETECTOR
}
"
]
;
then
export
JUGGLER_DETECTOR
=
"topside"
fi
echo
"JUGGLER_DETECTOR:
${
JUGGLER_DETECTOR
}
"
if
[[
!
-n
"
${
JUGGLER_N_EVENTS
}
"
]]
;
then
## Number of events that will be processed by the reconstruction
if
[
!
-n
"
${
JUGGLER_N_EVENTS
}
"
]
;
then
export
JUGGLER_N_EVENTS
=
100
fi
echo
"JUGGLER_N_EVENTS:
${
JUGGLER_N_EVENTS
}
"
if
[[
!
-n
"
${
JUGGLER_INSTALL_PREFIX
}
"
]]
;
then
## Install prefix for juggler, needed to locate the Juggler xenv files.
## Also used by the CI as install prefix for other packages where needed.
## You should not have to touch this. Note that for local usage a different
## prefix structure is automatically used.
if
[
!
-n
"
${
JUGGLER_INSTALL_PREFIX
}
"
]
;
then
export
JUGGLER_INSTALL_PREFIX
=
"/usr/local"
fi
## Ensure the juggler prefix is an absolute path
export
JUGGLER_INSTALL_PREFIX
=
`
realpath
${
JUGGLER_INSTALL_PREFIX
}
`
echo
"JUGGLER_INSTALL_PREFIX:
${
JUGGLER_INSTALL_PREFIX
}
"
# not sure this is needed
if
[[
!
-n
"
${
DETECTOR_PREFIX
}
"
]]
;
then
# reuse the custom juggler install prefix for detector
export
DETECTOR_INSTALL_PREFIX
=
${
JUGGLER_INSTALL_PREFIX
}
fi
## =============================================================================
## Other utility variables that govern how some of the dependent packages
## are built and installed. You should not have to change these.
## ensure absolute paths
# not sure this is needed either
export
JUGGLER_INSTALL_PREFIX
=
`
realpath
${
JUGGLER_INSTALL_PREFIX
}
`
export
DETECTOR_INSTALL_PREFIX
=
`
realpath
${
DETECTOR_INSTALL_PREFIX
}
`
## local prefix to be used for local storage of packages
## downloaded/installed during the benchmark process
LOCAL_PREFIX
=
".local"
mkdir
-p
${
LOCAL_PREFIX
}
export
LOCAL_PREFIX
=
`
realpath
${
LOCAL_PREFIX
}
`
echo
"LOCAL_PREFIX:
${
LOCAL_PREFIX
}
"
## detector prefix: prefix for the detector definitions
export
DETECTOR_PREFIX
=
"
${
LOCAL_PREFIX
}
/detector"
mkdir
-p
${
DETECTOR_PREFIX
}
echo
"DETECTOR_PREFIX:
${
DETECTOR_PREFIX
}
"
## detector path: actual detector definition path
export
DETECTOR_PATH
=
"
${
DETECTOR_PREFIX
}
/
${
JUGGLER_DETECTOR
}
"
echo
"DETECTOR_PATH:
${
DETECTOR_PATH
}
"
## =============================================================================
## Setup PATH and LD_LIBRARY_PATH to include our prefixes
echo
"Adding JUGGLER_INSTALL_PREFIX and LOCAL_PREFIX to PATH and LD_LIBRARY_PATH"
export
PATH
=
${
JUGGLER_INSTALL_PREFIX
}
/bin:
${
LOCAL_PREFIX
}
/bin:
${
PATH
}
export
LD_LIBRARY_PATH
=
${
JUGGLER_INSTALL_PREFIX
}
/lib:
${
LOCAL_PREFIX
}
/lib:
${
LD_LIBRARY_PATH
}
## setup root results artifact path
# this should be in the CI File instead
# https://docs.gitlab.com/ee/ci/yaml/README.html#variables
# export RESULTS_PATH=`realpath results`
## =============================================================================
## That's all!
echo
"Environment setup complete."
Loading