Getting Started with SiD DD4HEP


At the moment, our code is committed to the DESY SVN repository, where the core DD4hep software and the CLIC and ILD models are stored as well. This is to make it easier to include SiD in the standard tests. The latest/work version is labelled SiD_o1_v03. The XML configuration is located in lcgeo/SiD/compact/SiD_o1_v01 and the C++ drivers are located in lcgeo/detector/

Browse or check out the code via https://svnsrv.desy.de/websvn/wsvn/General.ddsim/lcgeo

If needed for read access, a new basic account can be registered for anyone, by anyone else who has a grid certificate, at:
https://svnsrv.desy.de/admin/svn

We are running on SL6 machines and haven't tried other architectures. Note that you must have cvmfs installed (ask your local sysadmin).

Latest update: 5 Sept 16, using the latest ilcsoft release v01-17-10 for everything


Build example:

# [first five steps are one-time only]
svn co https://svnsrv.desy.de/basic/ddsim/lcgeo/trunk lcgeo
rm lcgeo/detector/calorimeter/SHcal*
rm lcgeo/detector/calorimeter/SEcal*
rm lcgeo/detector/CaloTB/CaloPrototype*
mkdir lcgeo/build
# [setups you do every time: ]
source /cvmfs/sft.cern.ch/lcg/releases/gcc/4.8.4/x86_64-slc6/setup.sh
source /cvmfs/ilc.desy.de/sw/x86_64_gcc48_sl6/v01-17-10/init_ilcsoft.sh
cd lcgeo/build
# [cmake you only need do after you have added/removed/moved files from the directories]
cmake -DCMAKE_CXX_COMPILER=`which g++` -DCMAKE_C_COMPILER=`which gcc` -C /cvmfs/ilc.desy.de/sw/x86_64_gcc48_sl6/v01-17-10/ILCSoft.cmake ..
# [make you only need to do after you have changed files]
make -j4
make install
# [setup you need to do every time: ]
source ../bin/thislcgeo.sh

Run example for ddsim:

# [assuming you are in the lcgeo directory you created above, but these instructions are for a clean login]
source /cvmfs/sft.cern.ch/lcg/releases/gcc/4.8.4/x86_64-slc6/setup.sh 
source /cvmfs/ilc.desy.de/sw/x86_64_gcc48_sl6/v01-17-10/init_ilcsoft.sh
export LCGRELEASES=/cvmfs/sft.cern.ch/lcg/releases/LCG_84
export PYTHONDIR=/cvmfs/sft.cern.ch/lcg/releases/LCG_84/Python/2.7.10/x86_64-slc6-gcc48-opt
export PATH=/cvmfs/sft.cern.ch/lcg/releases/LCG_84/Python/2.7.10/x86_64-slc6-gcc48-opt/bin:$PATH
export LD_LIBRARY_PATH=$PYTHONDIR/lib:$LD_LIBRARY_PATH 
export PYTOOLSDIR=/cvmfs/sft.cern.ch/lcg/releases/LCG_84/pytools/1.9_python2.7/x86_64-slc6-gcc48-opt
export PYTHONPATH=/cvmfs/sft.cern.ch/lcg/releases/LCG_84/pytools/1.9_python2.7/x86_64-slc6-gcc48-opt/lib/python2.7/site-packages:$PYTHONPATH 
export PATH=$PYTOOLSDIR/bin:$PATH
source bin/thislcgeo.sh
python example/lcio_particle_gun.py
ddsim --compactFile=SiD/compact/SiD_o1_v01/SiD_o1_v03.xml --runType=batch --inputFile mcparticles.slcio -N=1 --outputFile=testSiD_o1_v03.slcio


Then to look at the output:

dumpevent testSiD_o1_v03.slcio 1

or

anajob testSiD_o1_v03.slcio

To run reconstruction:

# [assuming you are in the lcgeo directory you created above, but these instructions are for a clean login]
source /cvmfs/ilc.desy.de/sw/x86_64_gcc48_sl6/v01-17-10/init_ilcsoft.sh
#use the latest SiDReconstruction.xml attached to this twiki page,
#  where you have edited the LCIOInputFiles and DD4hepXMLFile parameters for your local area.
#  You also need to have the basic gear_sid.xml file (attached to this twiki page) in your directory.
Marlin SiDReconstruction_v03_160711.xml

To visualize the output using CED:

Note that for the event display to wokr I had to ask my local sysadmin to install freeglut (e.g. for SLC6, freeglut-2.6.0-1.el6.x86_64) so that the library libglut.so was available.

source /cvmfs/ilc.desy.de/sw/x86_64_gcc48_sl6/v01-17-10/init_ilcsoft.sh
# point to a CED installation with glced:
export PATH=/cvmfs/ilc.desy.de/sw/x86_64_gcc44_sl6/CED/v01-09-02/bin/:$PATH
# this needs a few extra parameters that were missing from the SiD_o1_v03.xml in v01-17-10
#   so put the modified SiD_o1_v03a.xml attached to this page in your local
#   lcgeo/SiD/compact/SiD_o1_v01/ directory
ced2go -d <path_to_my_local_lcgeo_directory>/SiD/compact/SiD_o1_v01/SiD_o1_v03.xml <input_file.slcio>

-- Aidan Robson - 2016-07-11

Comments


Topic attachments
I Attachment History Action Size Date Who Comment
XMLxml SiDReconstruction_v03_160711.xml r1 manage 38.1 K 2016-07-11 - 15:16 AidanRobson  
XMLxml SiD_o1_v03a.xml r1 manage 8.4 K 2016-09-07 - 11:27 AidanRobson minor modified SiD_o1_v03.xml for ced event display
XMLxml gear_sid.xml r1 manage 0.3 K 2016-09-05 - 13:47 AidanRobson basic gear file to satisfy reconstruction
Edit | Attach | Print version | History: r28 | r7 < r6 < r5 < r4 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r5 - 2016-09-07 - AidanRobson
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback