Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
0688602
Move SimParticle to new location.
omar-moreno Mar 21, 2022
2d223a3
First hdf5 version of SimParticle.
omar-moreno Mar 22, 2022
f3cdece
Re-enable sim particle writing.
omar-moreno Mar 22, 2022
ee2ebf0
Minor cleanup.
omar-moreno Mar 22, 2022
7d2d10a
First iteration of the event builder.
omar-moreno Mar 22, 2022
3088c46
Add event sources and fire::io dependency to the build.
omar-moreno Mar 22, 2022
f698b2b
Fix typo in attach method.
omar-moreno Mar 23, 2022
7e1b994
SD's will be moved to an external folder and dynamically loaded.
omar-moreno Mar 23, 2022
a01a674
Rootless.
omar-moreno Mar 23, 2022
18d08fc
Add stream. Change types of variables to reasonable values i.e. not e…
omar-moreno Mar 23, 2022
e0a9d3b
Move to new location.
omar-moreno Mar 23, 2022
2dcef06
Update SimCalorimeterHit so it's compatible with fire.
omar-moreno Mar 24, 2022
67675c7
Update SimTrackerHit so it's compatible with fire.
omar-moreno Mar 25, 2022
631a056
Remove debug.
omar-moreno Mar 25, 2022
b7cb0b6
Add SimTrackerHit to the build.
omar-moreno Mar 25, 2022
17d5868
Add parameter class. This will be used to update the information cla…
omar-moreno Mar 25, 2022
84a1365
Cleanup style.
omar-moreno Mar 25, 2022
ca29263
Add the RecordConfig method back.
omar-moreno Mar 28, 2022
9f52265
Add dark bream back to sim.
omar-moreno Mar 28, 2022
84a2d60
Rename Geo --> geo.
omar-moreno Mar 28, 2022
6001fd5
Rename DarkBrem --> darkbrem
omar-moreno Mar 28, 2022
c54c96c
Add dark brem process back to RunManager.
omar-moreno Mar 28, 2022
db49af5
Rename BiasOperators --> biasing. Update the operators so they are co…
omar-moreno Mar 28, 2022
85aef5f
Export targets.
omar-moreno May 7, 2022
cfb3576
Cleanup.
omar-moreno May 19, 2022
c345c5f
Install biasing python scripts.
omar-moreno May 20, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 60 additions & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,33 @@ find_package (Boost REQUIRED COMPONENTS log)
find_package (fire REQUIRED)
find_package (Eigen3 REQUIRED NO_MODULE)

set (biasing_sources
${g4fire_SOURCE_DIR}/src/g4fire/biasing/DarkBrem.cxx
${g4fire_SOURCE_DIR}/src/g4fire/biasing/ElectroNuclear.cxx
${g4fire_SOURCE_DIR}/src/g4fire/biasing/GammaToMuPair.cxx
${g4fire_SOURCE_DIR}/src/g4fire/biasing/K0LongInelastic.cxx
${g4fire_SOURCE_DIR}/src/g4fire/biasing/NeutronInelastic.cxx
${g4fire_SOURCE_DIR}/src/g4fire/biasing/PhotoNuclear.cxx
)

set (dark_brem_sources
${g4fire_SOURCE_DIR}/src/g4fire/DarkBrem/APrimePhysics.cxx
${g4fire_SOURCE_DIR}/src/g4fire/DarkBrem/G4APrime.cxx
${g4fire_SOURCE_DIR}/src/g4fire/DarkBrem/DarkBremVertexLibraryModel.cxx
${g4fire_SOURCE_DIR}/src/g4fire/DarkBrem/G4eDarkBremsstrahlung.cxx
${g4fire_SOURCE_DIR}/src/g4fire/darkbrem/APrimePhysics.cxx
${g4fire_SOURCE_DIR}/src/g4fire/darkbrem/G4APrime.cxx
${g4fire_SOURCE_DIR}/src/g4fire/darkbrem/DarkBremVertexLibraryModel.cxx
${g4fire_SOURCE_DIR}/src/g4fire/darkbrem/G4eDarkBremsstrahlung.cxx
)

set (event_sources
${g4fire_SOURCE_DIR}/src/g4fire/event/EventBuilder.cxx
${g4fire_SOURCE_DIR}/src/g4fire/event/SimParticle.cxx
${g4fire_SOURCE_DIR}/src/g4fire/event/SimCalorimeterHit.cxx
${g4fire_SOURCE_DIR}/src/g4fire/event/SimTrackerHit.cxx
)

set (geo_sources
${g4fire_SOURCE_DIR}/src/g4fire/Geo/AuxInfoReader.cxx
${g4fire_SOURCE_DIR}/src/g4fire/Geo/GDMLParser.cxx
${g4fire_SOURCE_DIR}/src/g4fire/Geo/ParserFactory.cxx
${g4fire_SOURCE_DIR}/src/g4fire/geo/AuxInfoReader.cxx
${g4fire_SOURCE_DIR}/src/g4fire/geo/GDMLParser.cxx
${g4fire_SOURCE_DIR}/src/g4fire/geo/ParserFactory.cxx
)

set (sim_sources
Expand Down Expand Up @@ -82,23 +98,57 @@ set (sim_sources
)

add_library(g4fire SHARED
${biasing_sources}
${dark_brem_sources}
${sim_sources}
${event_sources}
${geo_sources}
${sim_sources}
)
target_link_libraries(g4fire PUBLIC
Geant4::Interface fire::framework Eigen3::Eigen)
target_include_directories(g4fire PUBLIC ${g4fire_SOURCE_DIR}/include/)
Geant4::Interface fire::io fire::framework Eigen3::Eigen)

target_include_directories(g4fire PUBLIC
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>"
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_PREFIX}/include>"
)

install(TARGETS g4fire
EXPORT g4fire-targets
LIBRARY DESTINATION lib
RUNTIME DESTINATION bin
INCLUDES DESTINATION include
)

# need pattern to exclude version header configured by CMake above
install(DIRECTORY include/ DESTINATION include/ FILES_MATCHING PATTERN "*.h")

configure_file(${g4fire_SOURCE_DIR}/python/g4fire/_bias_operators.py.in
${CMAKE_CURRENT_BINARY_DIR}/python/g4fire/_bias_operators.py)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/python/g4fire/_bias_operators.py
DESTINATION ${CMAKE_INSTALL_PREFIX}/python/g4fire)
install(DIRECTORY python/ DESTINATION python FILES_MATCHING
PATTERN "*.py"
)

install(EXPORT g4fire-targets
FILE g4fire-targets.cmake
NAMESPACE g4fire::
DESTINATION lib/cmake/g4fire
)

include(CMakePackageConfigHelpers)
configure_package_config_file(
"${CMAKE_CURRENT_SOURCE_DIR}/g4fireConfig.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/g4fireConfig.cmake"
INSTALL_DESTINATION "lib/cmake/g4fire"
)

install(FILES
"${CMAKE_CURRENT_BINARY_DIR}/g4fireConfig.cmake"
DESTINATION "lib/cmake/g4fire"
)


# Unpack the example dark brem vertex library (or libraries)
#file(GLOB vertex_libraries data/*.tar.gz)

Expand Down
3 changes: 3 additions & 0 deletions g4fireConfig.cmake.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@PACKAGE_INIT@

include("${CMAKE_CURRENT_LIST_DIR}/g4fire-targets.cmake")
79 changes: 0 additions & 79 deletions include/g4fire/CalorimeterSD.h

This file was deleted.

2 changes: 1 addition & 1 deletion include/g4fire/DetectorConstruction.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#include "fire/config/Parameters.h"

#include "g4fire/Geo/Parser.h"
#include "g4fire/geo/Parser.h"

namespace g4fire::geo {
class Parser;
Expand Down
102 changes: 0 additions & 102 deletions include/g4fire/EcalHitIO.h

This file was deleted.

79 changes: 0 additions & 79 deletions include/g4fire/EcalSD.h

This file was deleted.

Loading