Commit 3cab195d authored by Alfonso's avatar Alfonso
Browse files

primo commit

parents
Loading
Loading
Loading
Loading

.gitignore

0 → 100644
+17 −0
Original line number Diff line number Diff line
CMakeCache.txt 
CMakeFiles/*
CMakeScripts/*
build/*
cmake_install.cmake
*.build/*
*.root
Debug/*
.DS_Store
*.xcodeproj
*.root
*.fits
*.dat
response_matrix*/*
results*/*
background*/*
test.gdml

CMakeLists.txt

0 → 100644
+70 −0
Original line number Diff line number Diff line
#----------------------------------------------------------------------------
# Setup the project
#
cmake_minimum_required(VERSION 3.8 FATAL_ERROR)
project(xgis_m7-main)

#----------------------------------------------------------------------------
# Find Geant4 package, activating all available UI and Vis drivers by default.
# You can set WITH_GEANT4_UIVIS to OFF via the command line or ccmake/cmake-gui
# to build a batch mode only executable
#
option(WITH_GEANT4_UIVIS "Build example with Geant4 UI and Vis drivers" ON)
if(WITH_GEANT4_UIVIS)
  find_package(Geant4 REQUIRED ui_all vis_all)
else()
  find_package(Geant4 REQUIRED)
endif()

#----------------------------------------------------------------------------
# Setup Geant4 include directories and compile definitions
# Setup include directory for this project (superfluo)
#
include(${Geant4_USE_FILE})
include_directories(${PROJECT_SOURCE_DIR}/include)

#----------------------------------------------------------------------------
# Locate sources and headers for this project
# NB: headers are included so they will show up in IDEs
#
file(GLOB sources ${PROJECT_SOURCE_DIR}/src/*.cc)
file(GLOB headers ${PROJECT_SOURCE_DIR}/include/*.hh)

#----------------------------------------------------------------------------
# Add the executable, and link it to the Geant4 libraries
#
add_executable(xgis_M7 xgis_M7.cc ${sources} ${headers})
target_link_libraries(xgis_M7 ${Geant4_LIBRARIES})

#----------------------------------------------------------------------------
# compiler meno rigoroso
#
set(CMAKE_CXX_FLAGS "-fpermissive")

#----------------------------------------------------------------------------
# Copy all scripts to the build directory, i.e. the directory in which we
# build xgis. This is so that we can run the executable directly because it
# relies on these scripts being in the current working directory.
# (serve solo se fai la build directory)

set(MACROS_SCRIPTS 
  )

foreach(_script ${MACROS_SCRIPTS})
  configure_file(
    ${PROJECT_SOURCE_DIR}/${_script}
    ${PROJECT_BINARY_DIR}/${_script}
    COPYONLY
    )
endforeach()

#----------------------------------------------------------------------------
# For internal Geant4 use - but has no effect if you build this
# example standalone
#
add_custom_target(xgis_m7-main DEPENDS xgis_M7)

#----------------------------------------------------------------------------
# Install the executable to 'bin' directory under CMAKE_INSTALL_PREFIX
#
install(TARGETS xgis_M7 DESTINATION bin)

Makefile

0 → 100644
+0 −0

File added.

Preview size limit exceeded, changes collapsed.

areadati.txt

0 → 100644
+25 −0
Original line number Diff line number Diff line
# dati area efficace
# Energy[keV] Ndet/Ngen    SDD   Scint
    0.1          0.5002   50020    0
    1            0.4999   49999    0
    10           0.4898   48988    0
    20           0.4125   17916   23338
    30           0.4065    6556   34096
    40           0.4087    4927   35943
    50           0.4120    3350   37854
    60           0.4152    2510   39016
   100           0.4235    1319   41039
 #  150           0.4522     970   44257
 #  200           0.4425     969   43288
 #  300           0.6232    1047   61281
 #  400           0.6256    1005   61558
 #  500           0.6064    1008   59634
 #  600           0.5859    1033   57560
 #  700           0.5655     994   55562
 #  800           0.5466     999   53661
 # 1000           0.5137     947   50425
 # 2000           0.4208    1012   41075
 # 3000           0.3926    1213   38051
 # 5000           0.3880    1512   37296
 # 7000           0.4020    2045   38163
 #10000           0.4281    2934   39880

detector_params.inp

0 → 100644
+0 −0

File added.

Preview size limit exceeded, changes collapsed.