Skip to content

Commit

Permalink
Using K4GEO detectors in tests (#63)
Browse files Browse the repository at this point in the history
* Using K4GEO detectors in tests

* Adjusting test CI
  • Loading branch information
kjvbrt authored Jan 24, 2024
1 parent 1db533f commit b99cfa0
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 10 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@ jobs:
fail-fast: false
matrix:
STACK: ['/cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh',
'/cvmfs/sw.hsf.org/key4hep/setup.sh']
OS: ['aidasoft/centos7', 'key4hep/key4hep-images/alma9']
# '/cvmfs/sw.hsf.org/key4hep/setup.sh'
]
OS: ['aidasoft/centos7',
'key4hep/key4hep-images/alma9',
'key4hep/key4hep-images/ubuntu22'
]
steps:
- uses: actions/checkout@v3
- uses: cvmfs-contrib/github-action-cvmfs@v3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
from Configurables import GeoSvc
GEOSERVICE = GeoSvc("GeoSvc")
# if FCC_DETECTORS is empty, this should use relative path to working directory
DETECTORPATH = os.environ.get("FCCDETECTORS", "")
DETECTORPATH = os.environ.get("K4GEO", "")
DETECTORS = [
'Detector/DetFCCeeIDEA-LAr/compact/FCCee_DectMaster.xml',
'FCCee/ALLEGRO/compact/ALLEGRO_o1_v01/ALLEGRO_o1_v01.xml'
]
for det in DETECTORS:
GEOSERVICE.detectors += [os.path.join(DETECTORPATH, det)]
Expand Down
4 changes: 2 additions & 2 deletions RecFCCeeCalorimeter/tests/options/reproduceSegfault.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@
from Configurables import GeoSvc
geoservice = GeoSvc("GeoSvc")
# if FCC_DETECTORS is empty, this should use relative path to working directory
path_to_detectors = os.environ.get("FCCDETECTORS", "")
path_to_detectors = os.environ.get("K4GEO", "")
detectors = [
'Detector/DetFCCeeIDEA-LAr/compact/FCCee_DectMaster.xml',
'FCCee/ALLEGRO/compact/ALLEGRO_o1_v01/ALLEGRO_o1_v01.xml'
]
# prefix all xmls with path_to_detectors
for det in detectors:
Expand Down
4 changes: 2 additions & 2 deletions RecFCCeeCalorimeter/tests/options/runCaloSim.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@
from Configurables import GeoSvc
geoservice = GeoSvc("GeoSvc")
# if FCC_DETECTORS is empty, this should use relative path to working directory
path_to_detectors = os.environ.get("FCCDETECTORS", "")
path_to_detectors = os.environ.get("K4GEO", "")
detectors = [
'Detector/DetFCCeeIDEA-LAr/compact/FCCee_DectMaster.xml',
'FCCee/ALLEGRO/compact/ALLEGRO_o1_v01/ALLEGRO_o1_v01.xml'
]
# prefix all xmls with path_to_detectors
for det in detectors:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
from Configurables import GeoSvc
geoservice = GeoSvc("GeoSvc")
# if FCC_DETECTORS is empty, this should use relative path to working directory
path_to_detectors = os.environ.get("FCCDETECTORS", "")
path_to_detectors = os.environ.get("K4GEO", "")
detectors = [
'Detector/DetFCCeeIDEA-LAr/compact/FCCee_DectMaster.xml'
'FCCee/ALLEGRO/compact/ALLEGRO_o1_v01/ALLEGRO_o1_v01.xml'
]
# prefix all xmls with path_to_detectors
for det in detectors:
Expand Down

0 comments on commit b99cfa0

Please sign in to comment.