Giter Club home page Giter Club logo

cpop's Introduction

CPOP 2.0

The Cell Population modeler is combined to Geant4 simulations in order to tackle how energy depositions are allocated to cells, especially when enhancing radiation outcomes using high-Z nanoparticles. CPOP is fully interfaced with the Geant4 Monte Carlo toolkit and is able to directly emulate Geant4 simulations after compilation.

CPOP structuration:

cpop-2.0/
	cmake/
	config/
	example/
	source/
	test/
	tool/

Dependencies

To build CPOP, you need:

Additionally, you will need to have some libraries installed. For Debian-likes:

  • libgmp-dev
  • libmpfr-dev
  • libboost-system1.71-dev

CGAL

Download:

git clone https://github.com/CGAL/cgal
cd cgal
git checkout v5.5.1

Build and install:

mkdir cgal_build
cd cgal_build
cmake -DCMAKE_BUILD_TYPE=Release -DCGAL_DONT_OVERRIDE_CMAKE_FLAGS=OFF -DCMAKE_INSTALL_PREFIX="${CGAL_DIR}" ../cgal
make install

CLHEP

Download:

git clone https://gitlab.cern.ch/CLHEP/CLHEP.git
cd CLHEP
git checkout CLHEP_2_4_6_1

Build and install:

mkdir clhep_build
cd clhep_build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="${CLHEP_DIR}" ../CLHEP
make -j4
make install

ROOT

Download:

git clone https://github.com/root-project/root.git
cd root
git checkout v6-26-10

Build and install:

mkdir root_build
cd root_build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="${ROOT_DIR}" ../root
make -j4
make install

Geant4

Download:

git clone https://github.com/Geant4/geant4.git
cd geant4
git checkout v11.1.0

Note: if you want to use CPOP with GATE9, you need to disable Geant4 multithreading.

Build and install:

mkdir geant4_build
cd geant4_build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_CXX_FLAGS=-std=c++17 -DCMAKE_INSTALL_PREFIX="${GEANT4_DIR}" -DGEANT4_INSTALL_DATA=ON -DGEANT4_INSTALL_DATADIR="${GEANT4_DIR}/data" -DGEANT4_BUILD_VERBOSE_CODE=OFF -DGEANT4_USE_QT=ON -DGEANT4_USE_OPENGL_X11=ON -DGEANT4_USE_GDML=ON -DGEANT4_BUILD_MULTITHREADED=ON ..
make -j4
make install

Building CPOP

mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCGAL_DIR="${CGAL_DIR}/lib/cmake/CGAL" -DCLHEP_DIR="${CLHEP_DIR}/lib/CLHEP-2.4.6.1" -DROOT_DIR="${ROOT_DIR}/lib/cmake" -DGeant4_DIR="${GEANT4_DIR}/lib/cmake/Geant4" -DOpenGL_GL_PREFERENCE=LEGACY ..
make -j4
make install

Colophon

Tested on:

  • Ubuntu 22.04

cpop's People

Contributors

alexis-pereda avatar victorlevrague avatar

Watchers

 avatar

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.