Git Product home page Git Product logo

nutr's Issues

Usage of deprecated/removed g4root.hh/g4csv.hh/g4xml.hh

The cmake-variable OUTPUT_FORMAT selects the backend used for generating output files.
One can choose from root, csv and xml.
The corresponding header files g4root.hh, g4csv.hh and g4xml.hh that are included automatically were removed and no longer exist in geant4 11.0:

include/sensitive_detector/AnalysisManager.hh:37:10: fatal error: g4root.hh: No such file or directory
   37 | #include "g4root.hh"
      |          ^~~~~~~~~~~
compilation terminated.

Linking fails for TRACK_PRIMARY=ON

The TRACK_PRIMARY=ON compile-time option is broken since ad55df2:

$ mkdir -p build && cmake -S . -B build -DTRACK_PRIMARY=ON && cmake --build build
[…]
[ 86%] Linking CXX executable ../../../../2021-02-16_to_2021-04-10/gps_2021-02-16_to_2021-04-10
/nfs/cloud/home/user/.local/share/conda/envs/g11/bin/../lib/gcc/x86_64-conda-linux-gnu/10.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: ../../../sensitive_detector/libanalysisManager.a(AnalysisManager.cc.o): in function `AnalysisManager::FillNtupleColumns(G4GenericAnalysisManager*, G4Event const*, std::vector<std::shared_ptr<G4VHit>, std::allocator<std::shared_ptr<G4VHit> > >&)':
AnalysisManager.cc:(.text._ZN15AnalysisManager17FillNtupleColumnsEP24G4GenericAnalysisManagerPK7G4EventRSt6vectorISt10shared_ptrI6G4VHitESaIS8_EE+0x7e): undefined reference to `G4PrimaryVertex::GetPrimary(int) const'
collect2: error: ld returned 1 exit status
gmake[2]: *** [src/geometry/clover_array/2021-02-16_to_2021-04-10/CMakeFiles/gps_2021-02-16_to_2021-04-10.dir/build.make:191: 2021-02-16_to_2021-04-10/gps_2021-02-16_to_2021-04-10] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:3762: src/geometry/clover_array/2021-02-16_to_2021-04-10/CMakeFiles/gps_2021-02-16_to_2021-04-10.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2

Tested for geant4 11.0.3 and 11.1.1.

I assume analysisManager has to be linked against Geant4::G4particles.

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.