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

Add Geant4TVUserParticleHandler #1303

Merged
merged 3 commits into from
Jul 30, 2024
Merged

Conversation

Zehvogel
Copy link
Contributor

@Zehvogel Zehvogel commented Jul 24, 2024

BEGINRELEASENOTES

ENDRELEASENOTES

fixes #1302

@Zehvogel Zehvogel force-pushed the tracking-volume branch 2 times, most recently from ddcb853 to db12239 Compare July 25, 2024 06:52
@Zehvogel
Copy link
Contributor Author

It compiles but when I try to use it the following happens

Geant4UI         INFO  +++ ParticleHandler> Install Geant4 control directory:/ddg4/ParticleHandler/
BasicGrammar     ERROR FAILED to look up non existent registry: 1D1060F340C0E413 [dd4hep::Volume]
Traceback (most recent call last):
  File "/home/lreichen/work/DD4hep/install/bin/ddsim", line 25, in <module>
    sys.exit(RUNNER.run())
  File "/home/lreichen/work/DD4hep/install/lib/python3.10/site-packages/DDSim/DD4hepSimulation.py", line 473, in run
    self.part.setupUserParticleHandler(part, kernel, DDG4)
  File "/home/lreichen/work/DD4hep/install/lib/python3.10/site-packages/DDSim/Helper/ParticleHandler.py", line 157, in setupUserParticleHandler
    user = DDG4.Action(kernel, "%s/UserParticleHandler" % self.userParticleHandler)
  File "/home/lreichen/work/DD4hep/install/lib/python3.10/site-packages/DDG4.py", line 201, in Action
    return Interface.createAction(kernel, str(nam), shared)
cppyy.gbl.std.runtime_error: static dd4hep::sim::ActionHandle dd4hep::sim::Geant4ActionCreation::createAction(dd4hep::sim::KernelHandle& kernel, const string& name_type, bool shared) =>
    runtime_error: BasicGrammar: FAILED to look up non existent registry: 1D1060F340C0E413 [dd4hep::Volume]
pure virtual method called
./sim-e.sh: line 21: 103524 Segmentation fault      (core dumped) ddsim --compactFile $COMPACT_FILE --outputFile $PARTICLE.$NEVT.SIM.edm4hep.root --steeringFile $CLDCONFIG/share/CLDConfig/cld_steer.py --part.userParticleHandler Geant4TVUserParticleHandler --numberOfEvents $NEVT --enableGun --gun.particle=$PARTICLE --gun.distribution=uniform --gun.momentumMin=10*GeV --gun.momentumMax=100*GeV --gun.thetaMin=50*mrad --gun.thetaMax=100*mrad --crossingAngleBoost=0

So I guess I still need to add something somewhere or my local setup is weird? The error is emitted here:

dd4hep::except("BasicGrammar","FAILED to look up non existent registry: %016llX [%s]",

but I don't know what any of this grammar stuff is or is supposed to do... is there any documentation?

@andresailer
Copy link
Member

Can you share or link to the geometry with the tracking volume?

@Zehvogel
Copy link
Contributor Author

Can you share or link to the geometry with the tracking volume?

Yes I pushed it here now:
https://github.com/Zehvogel/k4geo/tree/cld-trackingvolume/FCCee/CLD/compact/CLD_o2_v06

@Zehvogel Zehvogel marked this pull request as ready for review July 29, 2024 12:58
Copy link

Test Results

   14 files     14 suites   8h 14m 46s ⏱️
  365 tests   365 ✅ 0 💤 0 ❌
2 510 runs  2 510 ✅ 0 💤 0 ❌

Results for commit 6ffa0da.

@andresailer andresailer enabled auto-merge (rebase) July 30, 2024 12:48
@andresailer andresailer merged commit 9f142b8 into AIDASoft:master Jul 30, 2024
13 checks passed
@Zehvogel Zehvogel deleted the tracking-volume branch August 22, 2024 14:38
@Zehvogel Zehvogel mentioned this pull request Aug 22, 2024
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ddsim: support non-cylindrical tracking region
2 participants