Coder Social home page Coder Social logo

k4simgeant4's Introduction

k4SimGeant4

Gaudi Components for Geant4 Simulation in the Key4HEP software framework. See the FCC Tutorials for documentation on the usage in FCC.

This is a standard Gaudi/CMake based project:

source /cvmfs/sw.hsf.org/key4hep/setup.sh

mkdir build install
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=../install
make install

To build also Doxygen generated reference documentation run

cd build
make doc

xdg-open doxygen/html/index.html

Dependencies

  • Gaudi (=>v35r0)
  • k4FWCore (=>1.0)
  • Geant4
  • DD4hep
  • EDM4HEP

k4simgeant4's People

Contributors

adarshp avatar alicerobson avatar andresailer avatar armin-ilg avatar atolosadelgado avatar brieucf avatar clementhelsens avatar coralieneubueser avatar dellacqu avatar drasal avatar faltovaj avatar fdplacido avatar gganis avatar giovannimarchiori avatar hegner avatar javiercvilla avatar jlingema avatar jmcarcell avatar kjvbrt avatar nalipour avatar sanghyunko avatar selvaggi avatar tmadlener avatar vvolkl avatar zaborowska avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

k4simgeant4's Issues

New tag

The latest tag is from October 2022 and doesn't include fixes like:
#25 or #35
The key4hep releases (not the nightlies) pick up the latest tag so the problems that are solved there would still appear. I suggest making a new tag whenever other people want; I don't need it now.

Issue with SimG4SaveTrackerHits

Hi, I've noticed that the code crashes while running k4run and trying to save TrackerHits.

The crash occurred within the function SimG4SaveTrackerHits::saveOutput(G4Event const&) in the shared library libSimG4Components.so.

This appeared to work fine until Friday 21/07, but on monday it didn't.
I tried sourcing key4hep-spack of friday or even previous days but it fails.

Is this something known? I don't quite understand also why if I source some older spack versions it does not work...

I attach a test file, using a geometry already on the repo.
Just source whatever key4hep version and k4run randomtest.py

Archivio.zip

Issues with SimG4FullSimDCHRegion

I was compiling on Alma 9 and got the following error:

==> Error: ProcessError: Command exited with status 2:
    '/cvmfs/sw-nightlies.hsf.org/key4hep/releases/2023-05-04/x86_64-almalinux9-gcc11.3.1-opt/gmake/4.4.1-u7jilx/bin/make' '-j8'

3 errors found in build log:
     343    #10 0x0000000000439bd4 in SmartIF<IProperty>::reset (ptr=0x0, this=0x7ffc2b91
            d390) at /tmp/root/spack-stage/spack-stage-gaudi-36.10-36vhs6gxxh4hfm3vmnl2in
            qzw5enmwtu/spack-src/GaudiKernel/include/GaudiKernel/SmartIF.h:98
     344    #11 configGenerator::genConfig (this=0x7ffc2b91e2e0, libs=..., userModule="")
             at /tmp/root/spack-stage/spack-stage-gaudi-36.10-36vhs6gxxh4hfm3vmnl2inqzw5e
            nmwtu/spack-src/GaudiKernel/src/Util/genconf.cpp:571
     345    #12 0x000000000042ee74 in main (argc=<optimized out>, argv=<optimized out>) a
            t /tmp/root/spack-stage/spack-stage-gaudi-36.10-36vhs6gxxh4hfm3vmnl2inqzw5enm
            wtu/spack-src/GaudiKernel/src/Util/genconf.cpp:408
     346    ===========================================================
     347    
     348    
  >> 349    make[2]: *** [SimG4Full/CMakeFiles/SimG4FullPlugins.dir/build.make:235: SimG4
            Full/libSimG4FullPlugins.so] Error 139
     350    make[2]: *** Deleting file 'SimG4Full/libSimG4FullPlugins.so'
     351    make[2]: Leaving directory '/tmp/root/spack-stage/spack-stage-k4simgeant4-621
            606e5f3a49751f29fe30254bc1c073a81c7e6=develop-kfbhhnde54tsxpnancyeifm5vdystid
            6/spack-build-kfbhhnd'
  >> 352    make[1]: *** [CMakeFiles/Makefile2:535: SimG4Full/CMakeFiles/SimG4FullPlugins
            .dir/all] Error 2
     353    make[1]: Leaving directory '/tmp/root/spack-stage/spack-stage-k4simgeant4-621
            606e5f3a49751f29fe30254bc1c073a81c7e6=develop-kfbhhnde54tsxpnancyeifm5vdystid
            6/spack-build-kfbhhnd'
  >> 354    make: *** [Makefile:139: all] Error 2

See build log for details:
  /tmp/root/spack-stage/spack-stage-k4simgeant4-621606e5f3a49751f29fe30254bc1c073a81c7e6=develop-kfbhhnde54tsxpnancyeifm5vdystid6/spack-build-out.txt

The traceback points to the destructor of SimG4FullSimDCHRegion (it's all the information that you can get from the traceback, I could probably reproduce but I don't have it anymore...) and this line looks very suspicious with a naked delete:
https://github.com/HEP-FCC/k4SimGeant4/blob/main/SimG4Full/src/components/SimG4FullSimDCHRegion.cpp#L23

I have compiled successfully on Centos 7 and Ubuntu 22.04 this repo in the last days so it's also a bit weird that I only saw this in Alma 9.

SimG4SaveTrackerHits only works with `readoutNames`

This works:

from Configurables import SimG4SaveTrackerHits
savetrackertool = SimG4SaveTrackerHits("SimG4SaveTrackerHits", readoutNames=["CDCHHits"])

This does not work:

from Configurables import SimG4SaveTrackerHits
savetrackertool = SimG4SaveTrackerHits("SimG4SaveTrackerHits", readoutNames="CDCHHits")

To reproduce you can follow the recipe here and run
k4run DCHdigi/test/runDCHsimpleDigitizerExtendedEdm.py

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.