(F.Gaede, DESY )
These little examples serve as an ultra quick introduction on how to run iLCsoft standard simulation and reconstruction programs (for ILD). They can also be used as a mini-test after installation of a new (complete) ilcsoft release.
For more information on the iLCSoft tools refer to the iLCSoft Portal or directly to the source code documentation of the individual packages.
*) If you are using DESY Green Ubuntu Desktops (particular the Dell OptiPlex 760 and the new Dell OptiPlex 3020 Micro)
export LIBGL_ALWAYS_INDIRECT=1 # On your LOCAL computer
source /afs/desy.de/project/ilcsoft/sw/x86_64_gcc49_sl6/v01-19-04/init_ilcsoft.sh
ddsim --inputFiles ./bbudsc_3evt.stdhep --outputFile=./bbudsc_3evt.slcio --compactFile $lcgeo_DIR/ILD/compact/ILD_l4_v02/ILD_l4_v02.xml --steeringFile=./ddsim_steer.py
this creates the file: bbudsc_3evt.slcio
You can now examine the collections in the file:
anajob bbudsc_3evt.slcio
convertToGear default $lcgeo_DIR/ILD/compact/ILD_l4_v02/ILD_l4_v02.xml gear_ILD_l4_v02_dd4hep.xml
This creates a gear file for the ILD model and is currently still needed when running with DD4hep/lcgeo as some processors have not yet been updated
Marlin bbudsc_3evt_stdreco_dd4hep.xml \
--global.GearXMLFile=gear_ILD_l4_v02_dd4hep.xml \
--InitDD4hep.DD4hepXMLFile=$lcgeo_DIR/ILD/compact/ILD_l4_v02/ILD_l4_v02.xml
creates: bbudsc_3evt_REC.slcio and bbudsc_3evt_DST.slcio
We can now for example dump the details of the 2nd event in the DST file:
dumpevent bbudsc_3evt_DST.slcio 2 | less
*) If you are using DESY Green Ubuntu Desktops (particular the Dell OptiPlex 760 and the new Dell OptiPlex 3020 Micro)
And you want to run the following event display, on this remote computer (NAF2) you need to execute:
unset LIBGL_ALWAYS_INDIRECT # On the REMOTE computer
glced &
view REC or DST events:
Marlin bbudsc_3evt_viewer.xml
Marlin bbudsc_3evt_viewerDST.xml
ced2go -d gear_ILD_l4_v02_dd4hep.xml bbudsc_3evt_REC.slcio
Displays also the tracking surfaces:
ced2go -s 1 -d $lcgeo_DIR/ILD/compact/ILD_l4_v02/ILD_l4_v02.xml bbudsc_3evt_REC.slcio
Marlin lctuple.xml --global.GearXMLFile=gear_ILD_l4_v02_dd4hep.xml
creates: bbudsc_3evt_REC_lctuple.root which you can analyze with ROOT in the usual way - or run some examples:
root [0] .x ./draw_simhits.C("bbudsc_3evt_REC_lctuple.root")
root [1] .x ./draw_etot.C("bbudsc_3evt_REC_lctuple.root")