Skip to content

DRDCalo/DD4hepTutorials

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DD4hepTutorials for DRD6

Welcome to the DD4hep Tutorials for DRD6 repository!

This repository contains hands-on exercises to help you learn DD4hep, a powerful detector description framework. The exercises are organized into separate folders:

  • simplecalo1: Learn the fundamentals of DD4hep by building your first simplified calorimeter.
  • simplecalo2: Build on simplecalo1 and explore how to set up a custom Geant4 Sensitive Detector.

The tutorials should be run after sourcing the Key4hep environment. To do this, you will need access to an Alma9 machine with CVMFS.

The first step is to build the repository:

# Login to an Alma9 machine with CVMFS mounted, e.g. lxplus
source /cvmfs/sw.hsf.org/key4hep/setup.sh
git clone git@github.com:DRD6/DD4hepTutorials.git
cd DD4hepTutorials
mkdir build install
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=../install -Wno-dev
make install -j 8
cd ..
# The following command configures the environment to ensure the system can locate the DD4hep detector builders:
k4_local_repo

For instructions on simplecalo1 and simplecalo2 follow this presentation.

Happy coding! 🚀

About

Key4hep example of a calorimeter simulation. Superseeded by https://github.com/DRDCalo/SoftwareTutorials

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •