AHCAL Engineering Prototype Simulation Framework

/!\ From now on, the recommended simulation framework is DD4hep. Only the data from July/August 2015 should be compared to Mokka and DD4hep frameworks. /!\ For DD4hep, the ilcsoft version to use has to be >= v01-17-10.

Mokka Simulation

/!\ Only valid for the Testbeam July and August 2015 /!\

For the simulation, the main framework used is Mokka. It is directly available from the ilcsoft afs repository. The latest Mokka version is 08-05-01 working with Geant4 10.01. First you need to copy the Mokka software from the ilcsoft repository to a personal folder. Then copy the Mokka drivers (all *.cc and *.hh files) available in the calice_sim package in simAhc2 of the testbeam model to :

$ cd /yourMokkafolder/source/Geometry/tbeam/include
$ cp /path2simAhc2/include/* /yourMokkafolder/source/Geometry/tbeam/include
$ cd /yourMokkafolder/source/Geometry/tbeam/src
$ cp /path2simAhc2/src/* /yourMokkafolder/source/Geometry/tbeam/src

The next step is to compile Mokka. Go to :

$ cd /yourMokkafolder/build/
$ rm -rf *
$ cmake -C $ILCSOFT/ILCSoft.cmake ..
$ make -j5
$ make install

This will normally compile Mokka. If you want to use your Mokka version, you need then to initialize it in a custom init_ilcsoft.sh where you specified your Mokka PATH instead of the ilcsoft one.

#--------------------------------------------------------------------------------
#     Mokka
#--------------------------------------------------------------------------------
#export MOKKA="/afs/desy.de/project/ilcsoft/sw/x86_64_gcc44_sl6/v01-17-09/Mokka/mokka-08-05-01"
export MOKKA="/yourMokkafolder/"
export PATH="$MOKKA/bin:$PATH"

You can use this script (Mokka_Submission_File_10GeV.sub) to submit jobs to the BIRD on the NAF. Just modify the needed pathes inside the file as well as the type and energy of the beam particle. Then submit the array of job by doing (for example to submit 100 jobs):

$ qsub -t 1-100 Mokka_Submission_File_10GeV.sub

DD4hep Simulation

One advantage of DD4HEP is that describing the geometry of the detector is much more simple and transparent using lcgeo. You can define in a steering file the layer structure including materials and their properties. The model for SPS July 2015 is already available in the calice_dd_testbeams package.

Testbeam July/August 2015

The driver for this testbeam is special due to the nature of the geometry (different HBU/EBU size and absorber). /!\ This driver has only been tested and work for July 2015 with Iron absorber /!\.

First it needs to be installed. Download the folder by doing:

$ svn co https://svnsrv.desy.de/public/calice/calice_dd_testbeams/2015_SPS_July_AHCAL/ 2015_SPS_July_AHCAL/
$ cd 2015_SPS_July_AHCAL/
$ mkdir build
$ cd build
$ cmake -C $ILCSOFT/ILCSoft.cmake ..
$ make install

A README file is available in the same folder with the instructions.

You can check the simulation model by doing:

$ source bin/thislcgeo.sh
$ geoDisplay -compact compact/TBModel_SPSJuly2015.xml

TBModelJuly2015.png

To run the simulation:

$ source bin/thislcgeo.sh
$ ddsim --runType run --enableG4GPS --macroFile <Geant4GunfileParameters> --compactFile <PATH/TO/COMPACTFILE> --outputFile <LCIOfilename> --physics.list <physListName> --physics.pdgfile /afs/desy.de/project/ilcsoft/sw/x86_64_gcc48_sl6/v01-17-10/DD4hep/v00-16/examples/DDG4/examples/particle.tbl --enableDetailedShowerMode --random.seed <seed_value> --physics.rangecut 0.05 --action.calo Geant4ScintillatorCalorimeterAction

You can use this script (DD4hep_Submission_File_10GeV.sub) to submit jobs to the BIRD on the NAF. Just modify the needed pathes inside the file as well as the type and energy of the beam particle. Then submit the array of job by doing (for example to submit 100 jobs):

$ qsub -t 1-100 DD4hep_Submission_File_10GeV.sub

Other Testbeams (July 2016/May 2017)

/!\ No installation is needed! Only compact files! /!\

A preliminary compact file is available in the calice_dd_testbeams package. These 2 testbeams are using a much simpler model structure (a calorimeter box with same height/width). The generic driver is already available on the ilcsoft afs in lcgeo (https://github.com/iLCSoft/lcgeo/blob/master/detector/CaloTB/CaloPrototype_v02.cpp). To run it, simply initialise ilcsoft and type:

For similar particle gun as Mokka (using Geant4 particle gun):

$ ddsim --runType run --enableG4GPS --macroFile <Geant4GunfileParameters> --compactFile <PATH/TO/COMPACTFILE> --outputFile <LCIOfilename> --physics.list <physListName> --physics.pdgfile /afs/desy.de/project/ilcsoft/sw/x86_64_gcc48_sl6/v01-17-10/DD4hep/v00-16/examples/DDG4/examples/particle.tbl --enableDetailedShowerMode --random.seed <seed_value> --physics.rangecut 0.05 --action.calo Geant4ScintillatorCalorimeterAction

AHCAL_EPT_Simulation_Framework (last edited 2017-06-12 17:16:10 by EldwanBrianne)