Skip to content

Commit

Permalink
Merge branch 'main' into UpdatesForAthenaOnMain
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosie-Hasan authored Jan 23, 2025
2 parents e9af305 + bbd3fcc commit 7769e85
Show file tree
Hide file tree
Showing 610 changed files with 13,922 additions and 10,101 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,11 @@ jobs:
include:
- image: ubuntu2204
std: 20
- image: ubuntu2204_clang
cxx: g++
- image: ubuntu2204
std: 20
container: ghcr.io/acts-project/${{ matrix.image }}:63
cxx: clang++
container: ghcr.io/acts-project/${{ matrix.image }}:71
env:
INSTALL_DIR: ${{ github.workspace }}/install
ACTS_LOG_FAILURE_THRESHOLD: WARNING
Expand Down Expand Up @@ -285,6 +287,7 @@ jobs:
ccache -z &&
cmake -B build -S .
--preset=github-ci
-DCMAKE_CXX_COMPILER=${{ matrix.cxx }}
-DCMAKE_CXX_STANDARD=${{ matrix.std }}
-DCMAKE_INSTALL_PREFIX="${INSTALL_DIR}"
-DPython_EXECUTABLE=$(which python3)
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ genConf
x86_64-slc6-gcc48-opt
x86_64-slc6-gcc49-opt
.*
build*
/build*
.asetup.save

#json output
Expand All @@ -30,7 +30,7 @@ build*

# dont ignore hidden configs
!.clang-format
!.github/**
!.github
!.gitignore
!.gitlab-ci.yml
!.clang-tidy
Expand Down
92 changes: 50 additions & 42 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,19 @@ variables:

DEPENDENCY_TAG: v5

.ccache_base:
cache:
- key: ccache-${CI_JOB_NAME}-${CCACHE_KEY_SUFFIX}-${CLONE_URL}_${HEAD_REF}
fallback_keys:
- ccache-${CI_JOB_NAME}-${CCACHE_KEY_SUFFIX}-https://github.com/acts-project/acts.git-main
when: always
paths:
- ${CCACHE_DIR}


clang_tidy:
stage: build
image: ghcr.io/acts-project/ubuntu2404:63
image: registry.cern.ch/ghcr.io/acts-project/ubuntu2404:63
tags:
- large
artifacts:
Expand Down Expand Up @@ -61,19 +71,14 @@ clang_tidy:

build_exatrkx_cpu:
stage: build
image: ghcr.io/acts-project/ubuntu2204_exatrkx:63
image: registry.cern.ch/ghcr.io/acts-project/ubuntu2204_exatrkx:63
variables:
DEPENDENCY_URL: https://acts.web.cern.ch/ACTS/ci/ubuntu-22.04/deps.$DEPENDENCY_TAG.tar.zst
tags:
- large

cache:
key: ccache-${CI_JOB_NAME}-${CI_COMMIT_REF_SLUG}-${CCACHE_KEY_SUFFIX}
fallback_keys:
- ccache-${CI_JOB_NAME}-${CI_DEFAULT_BRANCH}-${CCACHE_KEY_SUFFIX}
when: always
paths:
- ${CCACHE_DIR}
- !reference [.ccache_base, cache]

script:
- export PATH=/usr/local/sbin:/usr/sbin:/sbin:$PATH
Expand All @@ -99,19 +104,14 @@ build_exatrkx_cpu:

build_exatrkx:
stage: build
image: ghcr.io/acts-project/ubuntu2204_exatrkx:63
image: registry.cern.ch/ghcr.io/acts-project/ubuntu2204_exatrkx:63
variables:
DEPENDENCY_URL: https://acts.web.cern.ch/ACTS/ci/ubuntu-22.04/deps.$DEPENDENCY_TAG.tar.zst
tags:
- large

cache:
key: ccache-${CI_JOB_NAME}-${CI_COMMIT_REF_SLUG}-${CCACHE_KEY_SUFFIX}
fallback_keys:
- ccache-${CI_JOB_NAME}-${CI_DEFAULT_BRANCH}-${CCACHE_KEY_SUFFIX}
when: always
paths:
- ${CCACHE_DIR}
- !reference [.ccache_base, cache]

artifacts:
paths:
Expand Down Expand Up @@ -146,7 +146,7 @@ test_exatrkx_unittests:
stage: test
needs:
- build_exatrkx
image: ghcr.io/acts-project/ubuntu2204_exatrkx:63
image: registry.cern.ch/ghcr.io/acts-project/ubuntu2204_exatrkx:63
variables:
DEPENDENCY_URL: https://acts.web.cern.ch/ACTS/ci/ubuntu-22.04/deps.$DEPENDENCY_TAG.tar.zst
tags:
Expand All @@ -159,13 +159,13 @@ test_exatrkx_unittests:
- git checkout $HEAD_SHA
- source CI/dependencies.sh
- cd ..
- ctest --test-dir build -R ExaTrkX
- ctest --test-dir build -R "(ExaTrkX|ConnectedComponentsCuda)"

test_exatrkx_python:
stage: test
needs:
- build_exatrkx
image: ghcr.io/acts-project/ubuntu2204_exatrkx:63
image: registry.cern.ch/ghcr.io/acts-project/ubuntu2204_exatrkx:63
variables:
DEPENDENCY_URL: https://acts.web.cern.ch/ACTS/ci/ubuntu-22.04/deps.$DEPENDENCY_TAG.tar.zst
tags:
Expand All @@ -188,17 +188,12 @@ test_exatrkx_python:

build_linux_ubuntu:
stage: build
image: ghcr.io/acts-project/ubuntu2404:63
image: registry.cern.ch/ghcr.io/acts-project/ubuntu2404:63
variables:
DEPENDENCY_URL: https://acts.web.cern.ch/ACTS/ci/ubuntu-24.04/deps.$DEPENDENCY_TAG.tar.zst

cache:
key: ccache-${CI_JOB_NAME}-${CI_COMMIT_REF_SLUG}-${CCACHE_KEY_SUFFIX}
fallback_keys:
- ccache-${CI_JOB_NAME}-${CI_DEFAULT_BRANCH}-${CCACHE_KEY_SUFFIX}
when: always
paths:
- ${CCACHE_DIR}
- !reference [.ccache_base, cache]

artifacts:
paths:
Expand Down Expand Up @@ -231,9 +226,29 @@ build_linux_ubuntu:
- cmake --build build -- -j6
- ccache -s

- ctest --test-dir build -j$(nproc)
- cmake --build build --target integrationtests

# Install main project
- cmake --install build

# Downstream configure
- >
cmake -B build-downstream -S src/Tests/DownstreamProject
-GNinja
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_CXX_FLAGS=-Werror
-DCMAKE_PREFIX_PATH="${INSTALL_DIR}"
# Downstream build
- cmake --build build-downstream

# Downstream run
- ./build-downstream/bin/ShowActsVersion

linux_test_examples:
stage: test
image: ghcr.io/acts-project/ubuntu2404:63
image: registry.cern.ch/ghcr.io/acts-project/ubuntu2404:63
variables:
DEPENDENCY_URL: https://acts.web.cern.ch/ACTS/ci/ubuntu-24.04/deps.$DEPENDENCY_TAG.tar.zst
needs: [build_linux_ubuntu]
Expand All @@ -257,7 +272,7 @@ linux_test_examples:

linux_physmon:
stage: test
image: ghcr.io/acts-project/ubuntu2404:63
image: registry.cern.ch/ghcr.io/acts-project/ubuntu2404:63
variables:
DEPENDENCY_URL: https://acts.web.cern.ch/ACTS/ci/ubuntu-24.04/deps.$DEPENDENCY_TAG.tar.zst
needs: [build_linux_ubuntu]
Expand Down Expand Up @@ -299,16 +314,12 @@ linux_physmon:
.linux_ubuntu_extra:
variables:
INSTALL_DIR: ${CI_PROJECT_DIR}/install
CXX: g++

stage: build

cache:
key: ccache-${CI_JOB_NAME}-${CI_COMMIT_REF_SLUG}-${CCACHE_KEY_SUFFIX}
fallback_keys:
- ccache-${CI_JOB_NAME}-${CI_DEFAULT_BRANCH}-${CCACHE_KEY_SUFFIX}
when: always
paths:
- ${CCACHE_DIR}
- !reference [.ccache_base, cache]

script:
- git clone $CLONE_URL src
Expand All @@ -326,6 +337,7 @@ linux_physmon:
--preset=gitlab-ci
-DPython_EXECUTABLE=$(which python3)
-DCMAKE_CXX_STANDARD=${CXXSTD}
-DCMAKE_CXX_COMPILER=${CXX}
- ccache -z
- cmake --build build -- -j6
Expand Down Expand Up @@ -357,22 +369,23 @@ linux_ubuntu_2204:
variables:
CXXSTD: 20
DEPENDENCY_URL: https://acts.web.cern.ch/ACTS/ci/ubuntu-22.04/deps.$DEPENDENCY_TAG.tar.zst
image: ghcr.io/acts-project/ubuntu2204:63
image: registry.cern.ch/ghcr.io/acts-project/ubuntu2204:71

linux_ubuntu_2204_clang:
extends: .linux_ubuntu_extra
variables:
CXX: clang++
CXXSTD: 20
DEPENDENCY_URL: https://acts.web.cern.ch/ACTS/ci/ubuntu-22.04/deps.$DEPENDENCY_TAG.tar.zst
image: ghcr.io/acts-project/ubuntu2204_clang:63
image: registry.cern.ch/ghcr.io/acts-project/ubuntu2204:71


######################
### LCG JOB MATRIX ###
######################

.lcg_base_job:
image: ghcr.io/acts-project/${OS}-base:63
image: registry.cern.ch/ghcr.io/acts-project/${OS}-base:63
stage: build
tags:
- cvmfs
Expand All @@ -384,12 +397,7 @@ linux_ubuntu_2204_clang:
SETUP:

cache:
key: ccache-${CI_JOB_NAME}-${CI_COMMIT_REF_SLUG}-${CCACHE_KEY_SUFFIX}
fallback_keys:
- ccache-${CI_JOB_NAME}-${CI_DEFAULT_BRANCH}-${CCACHE_KEY_SUFFIX}
when: always
paths:
- ${CCACHE_DIR}
- !reference [.ccache_base, cache]

before_script:
- 'echo "LCG_VERSION: ${LCG_VERSION}"'
Expand Down
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ repos:
- id: end-of-file-fixer
exclude: \.(diff|patch)$
- id: check-yaml
exclude: \.gitlab-ci.yml$
- id: check-added-large-files


Expand Down
31 changes: 14 additions & 17 deletions CI/codespell_ignore.txt
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
aline
ans
boxs
bu
strack
compres
coner
dependees
dthe
iself
sortings
exprot
gaus
te
parm
writet
localy
iself
lastr
exprot
localy
millepede
parm
pixelx
pring
aline
boxs
ans
dthe
dthe
sortings
strack
te
vart
pixelx
millepede
dependees
writet
Binary file modified CI/physmon/reference/simulation/particles_fatras_hist.root
Binary file not shown.
Binary file modified CI/physmon/reference/simulation/particles_geant4_hist.root
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
13 changes: 4 additions & 9 deletions CI/physmon/workflows/physmon_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from acts.examples.simulation import (
addFatras,
addGeant4,
ParticleSelectorConfig,
addPythia8,
)

Expand Down Expand Up @@ -58,7 +57,7 @@
acts.PdgParticle.eElectron,
]
],
outputParticles="particles_input",
outputParticles="particles_generated",
outputVertices="vertices_input",
randomNumbers=rnd,
)
Expand All @@ -67,7 +66,7 @@
s.addWriter(
acts.examples.RootParticleWriter(
level=acts.logging.INFO,
inputParticles="particles_input",
inputParticles="particles_generated",
filePath=tp / "particles.root",
)
)
Expand All @@ -78,9 +77,7 @@
setup.field,
rnd,
enableInteractions=True,
preSelectParticles=None,
postSelectParticles=ParticleSelectorConfig(removeSecondaries=True),
inputParticles="particles_input",
inputParticles="particles_generated",
outputParticles="particles_fatras",
outputSimHits="simhits_fatras",
outputDirRoot=tp / "fatras",
Expand All @@ -92,12 +89,10 @@
setup.trackingGeometry,
setup.field,
rnd,
preSelectParticles=None,
postSelectParticles=ParticleSelectorConfig(removeSecondaries=True),
killVolume=setup.trackingGeometry.highestTrackingVolume,
killAfterTime=25 * u.ns,
killSecondaries=True,
inputParticles="particles_input",
inputParticles="particles_generated",
outputParticles="particles_geant4",
outputSimHits="simhits_geant4",
outputDirRoot=tp / "geant4",
Expand Down
17 changes: 11 additions & 6 deletions CI/physmon/workflows/physmon_trackfinding_1muon.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@
EtaConfig,
PhiConfig,
ParticleConfig,
ParticleSelectorConfig,
addFatras,
addDigitization,
ParticleSelectorConfig,
addDigiParticleSelection,
)

from acts.examples.reconstruction import (
Expand Down Expand Up @@ -72,11 +73,6 @@ def run_ckf_tracking(label, seeding):
setup.field,
enableInteractions=True,
rnd=rnd,
postSelectParticles=ParticleSelectorConfig(
pt=(0.9 * u.GeV, None),
hits=(9, None),
removeNeutral=True,
),
)

addDigitization(
Expand All @@ -87,6 +83,15 @@ def run_ckf_tracking(label, seeding):
rnd=rnd,
)

addDigiParticleSelection(
s,
ParticleSelectorConfig(
pt=(0.9 * u.GeV, None),
measurements=(9, None),
removeNeutral=True,
),
)

addSeeding(
s,
setup.trackingGeometry,
Expand Down
Loading

0 comments on commit 7769e85

Please sign in to comment.