Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ddsim failing on latest IDEA geometry update #429

Open
1 task
doloresgarcia opened this issue Jan 30, 2025 · 2 comments
Open
1 task

ddsim failing on latest IDEA geometry update #429

doloresgarcia opened this issue Jan 30, 2025 · 2 comments
Labels

Comments

@doloresgarcia
Copy link

Check duplicate issues.

  • Checked for duplicates

Goal

I am running the following command:
ddsim --compactFile /k4geo/FCCee/IDEA/compact/IDEA_o1_v03/IDEA_o1_v03.xml --outputFile out_sim_edm4hep_background_1.root --inputFiles pairs.pairs --numberOfEvents 1 --random.seed 1 --part.keepAllParticles True --part.minimalKineticEnergy "0.001*MeV"

with key4hep version (03-10-2024)
which runs on the commit 0a49f40a1252ff7c43590b59b8d20d86b5bbb210
but does not run with the latest commit

The error message is

DDSim INFO Setting up SD for DRcalo with No Default
DDSim ERROR Cannot find Action for detector DRcalo. You have to extend "action.mapAction"
DDSim ERROR Failed setting up sensitive detector Cannot find Action
Traceback (most recent call last):
File "/cvmfs/sw.hsf.org/key4hep/releases/2024-10-03/x86_64-almalinux9-gcc14.2.0-opt/dd4hep/1.30-fx72h5/bin/ddsim", line 25, in
sys.exit(RUNNER.run())
^^^^^^^^^^^^
File "/cvmfs/sw.hsf.org/key4hep/releases/2024-10-03/x86_64-almalinux9-gcc14.2.0-opt/dd4hep/1.30-fx72h5/lib/python3.11/site-packages/DDSim/DD4hepSimulation.py", line 494, in run
self.__setupSensitiveDetectors(detectors, function, defFilter, defAction, abort)
File "/cvmfs/sw.hsf.org/key4hep/releases/2024-10-03/x86_64-almalinux9-gcc14.2.0-opt/dd4hep/1.30-fx72h5/lib/python3.11/site-packages/DDSim/DD4hepSimulation.py", line 651, in __setupSensitiveDetectors
raise RuntimeError("Cannot find Action")
RuntimeError: Cannot find Action
pure virtual method called
Segmentation fault (core dumped)

Operating System and Version

RHEL 9.5

compiler

GCC 14.2.0

The version of the key4hep stack

source /cvmfs/sw.hsf.org/key4hep/setup.sh -r 2024-10-03

Package Version

8bd7462

Reproducer

source /cvmfs/sw.hsf.org/key4hep/setup.sh -r 2024-10-03

ddsim --compactFile /k4geo/FCCee/IDEA/compact/IDEA_o1_v03/IDEA_o1_v03.xml --outputFile out_sim_edm4hep_background_1.root --inputFiles pairs.pairs --numberOfEvents 1 --random.seed 1 --part.keepAllParticles True --part.minimalKineticEnergy "0.001*MeV"

Additional context

No response

@atolosadelgado
Copy link
Collaborator

atolosadelgado commented Jan 30, 2025

Hola hola

the action that is missing is declared in a steering file [1] placed in example directory. Either you exclude the calorimeter from Idea compact file or use the steering file that maps the detector to the correct action :)

Could you please check that your simulation works if that steering file is used? I guess a more detailed explanation is needed in the readme, thanks for spotting it!

[1] https://github.com/key4hep/k4geo/blob/main/example/SteeringFile_IDEA_o1_v03.py

@BrieucF
Copy link
Contributor

BrieucF commented Jan 31, 2025

This also broke the FCC-Configs (https://github.com/HEP-FCC/FCC-config/actions/runs/13067010151/job/36460976142#step:3:612), can we propagate this change there?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants