Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Getting Started with SiD DD4HEP | ||||||||
Changed: | ||||||||
< < | 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/ . | |||||||
> > | At the moment, our code is on GitHub (https://github.com/iLCSoft/lcgeo), where the core DD4hep software and the CLIC and ILD models are stored as well. The latest/work version is labelled SiD_o2_v02. The XML configuration is located in lcgeo/SiD/compact/SiD_o2_v02 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 | ||||||||
Line: 10 to 10 | ||||||||
Changed: | ||||||||
< < | Important version notes | |||||||
> > | Important version notes (updated 16 March 2017) | |||||||
We are running on SL6 machines and haven't tried other architectures. Note that you must have cvmfs installed (ask your local sysadmin). | ||||||||
Changed: | ||||||||
< < | Latest update was on 5 Sept 16, using the latest ilcsoft release v01-17-10 for everything. | |||||||
> > | Latest update was on 16 March 2017, using the latest ilcsoft release v01-19-01 for everything. Make sure you replace correct latest versions in all examples below. | |||||||
Building the detector model (lcgeo) |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Getting Started with SiD DD4HEP | ||||||||
Line: 37 to 37 | ||||||||
Prepare the build environment (note the ending double-dots!):
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 .. | ||||||||
Added: | ||||||||
> > | cmake -DCMAKE_CXX_COMPILER=`which g++` -DCMAKE_C_COMPILER=`which gcc` -DILCUTIL_DIR=/cvmfs/ilc.desy.de/sw/x86_64_gcc49_sl6/v01-19-01/ILCSOFT.cmake -C $ILCSOFT/ILCSoft.cmake .. (with new v01-19-01 release) | |||||||
Build the code with |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Getting Started with SiD DD4HEP | ||||||||
Line: 181 to 181 | ||||||||
-DILCUTIL_DIR=/cvmfs/ilc.desy.de/sw/x86_64_gcc48_sl6/v01-17-10/ilcutil/v01-03/ -C $ILCSOFT/ILCSoft.cmake .. make -j4 install | ||||||||
Changed: | ||||||||
< < | Edit HitResiduals.xml to make sure you have the right input file and detector model. Then run with | |||||||
> > | Edit HitResiduals.xml to make sure you have the right input file and detector model. Make the new processor known to Marlin | |||||||
cd ../ CWD=`pwd` export MARLIN_DLL=$MARLIN_DLL:$CWD/lib/libTrackAna.so | ||||||||
Added: | ||||||||
> > | Do this export only once, else Marlin will complain about duplicate libraries! Then run your new processor with | |||||||
Marlin HitResiduals.xml
This will produce a file named hitresiduals.root which contains something like this: |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Getting Started with SiD DD4HEP | ||||||||
Line: 53 to 53 | ||||||||
Modifying the code | ||||||||
Changed: | ||||||||
< < | If you modify the detector model, lcgeo needs to be rebuilt. | |||||||
> > | If you modify the detector model, lcgeo needs to be rebuilt. See this wiki about how to tweak the drivers. | |||||||
If you add, remove, or move files from the directories, you have to rerun cmake as above (note the double-dots .. at the end) |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Getting Started with SiD DD4HEP |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Getting Started with SiD DD4HEP | ||||||||
Line: 152 to 152 | ||||||||
ddsim --compactFile=SiD/compact/SiD_o1_v01/SiD_o1_v03.xml --runType=batch --inputFile mcparticles.slcio -N=1000 --outputFile=testSiD_o1_v03.slcio Marlin SiDReconstruction_v03_160711.xml | ||||||||
Changed: | ||||||||
< < | For more options of running Marlin:
Marlin -? Particularly useful: Marlin -c SiDReconstruction_v03_160711.xml (check given steering file for consistency) | |||||||
> > | ||||||||
Now the files testSiD_o1_v03.slcio and sitracks.slcio each contain 1000 events.
Our example analysis code can be found here. From lcgeo do |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Getting Started with SiD DD4HEP | ||||||||
Line: 152 to 152 | ||||||||
ddsim --compactFile=SiD/compact/SiD_o1_v01/SiD_o1_v03.xml --runType=batch --inputFile mcparticles.slcio -N=1000 --outputFile=testSiD_o1_v03.slcio Marlin SiDReconstruction_v03_160711.xml | ||||||||
Added: | ||||||||
> > | For more options of running Marlin:
Marlin -? Particularly useful: Marlin -c SiDReconstruction_v03_160711.xml (check given steering file for consistency) | |||||||
Now the files testSiD_o1_v03.slcio and sitracks.slcio each contain 1000 events.
Our example analysis code can be found here. From lcgeo do |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Getting Started with SiD DD4HEP | ||||||||
Line: 113 to 113 | ||||||||
anajob testSiD_o1_v03.slcio | ||||||||
Changed: | ||||||||
< < | Running reconstruction | |||||||
> > | Running digitization and reconstruction | |||||||
Use the latest SiDReconstruction.xml attached to this twiki page. You also need to have the basic gear_sid.xml file in your directory. For example (assuming you are in the lcgeo directory): |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Getting Started with SiD DD4HEP | ||||||||
Line: 85 to 85 | ||||||||
source bin/thislcgeo.sh | ||||||||
Added: | ||||||||
> > | Depending on your setup, you might also have to do
export LCGRELEASES=/cvmfs/sft.cern.ch/lcg/releases/LCG_84 export PYTHONDIR=$LCGRELEASES/Python/2.7.10/x86_64-slc6-gcc48-opt export PATH=$PYTHONDIR/bin:$PATH export LD_LIBRARY_PATH=$PYTHONDIR/lib:$LD_LIBRARY_PATH export PYTOOLSDIR=$LCGRELEASES/pytools/1.9_python2.7/x86_64-slc6-gcc48-opt export PYTHONPATH=$PYTOOLSDIR/lib/python2.7/site-packages:$PYTHONPATH export PATH=$PYTOOLSDIR/bin:$PATH | |||||||
Running simulation |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Getting Started with SiD DD4HEP | ||||||||
Line: 181 to 181 | ||||||||
Added: | ||||||||
> > | TroubleshootingThere were problems with libraries from/cvmfs/sft.cern.ch/ that might have been due to a faulty CVMFS repository (see this report). | |||||||
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Getting Started with SiD DD4HEP | ||||||||
Line: 85 to 85 | ||||||||
source bin/thislcgeo.sh | ||||||||
Deleted: | ||||||||
< < | Depending on your system, you might have to type the following 7 commands
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 | |||||||
Running simulation |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Getting Started with SiD DD4HEP | ||||||||
Line: 135 to 135 | ||||||||
export PATH=/cvmfs/ilc.desy.de/sw/x86_64_gcc44_sl6/CED/v01-09-02/bin/:$PATH | ||||||||
Changed: | ||||||||
< < | 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. | |||||||
> > | A few extra parameters are missing from the SiD_o1_v03.xml in v01-17-10 , so download and put the modified SiD_o1_v03a.xml attached to this page in your local lcgeo/SiD/compact/SiD_o1_v01/ directory. | |||||||
You may need to make the following environment modification, depending on your local machine and how you connect to it:
unset LIBGL_ALWAYS_INDIRECT |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Getting Started with SiD DD4HEP | ||||||||
Line: 47 to 47 | ||||||||
You will now have to update your environment to include the newly created apps | ||||||||
Changed: | ||||||||
< < | source ../bin/thislcgeo.sh | |||||||
> > | cd ../ source bin/thislcgeo.sh | |||||||
Modifying the code | ||||||||
Line: 56 to 57 | ||||||||
If you add, remove, or move files from the directories, you have to rerun cmake as above (note the double-dots .. at the end) | ||||||||
Added: | ||||||||
> > | cd build/ | |||||||
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 ..
Note: to suppress all warnings add option -DCMAKE_CXX_FLAGS="-w" to the above cmake command. |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Getting Started with SiD DD4HEP | ||||||||
Line: 58 to 58 | ||||||||
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 .. | ||||||||
Added: | ||||||||
> > | Note: to suppress all warnings add option -DCMAKE_CXX_FLAGS="-w" to the above cmake command. | |||||||
If you edit files (source code) you need re-run make :
make -j4 |
Line: 1 to 1 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Getting Started with SiD DD4HEP | |||||||||||
Line: 20 to 20 | |||||||||||
Download the code and remove some unneeded ILD drivers (these first five steps are to be done one time only): | |||||||||||
Changed: | |||||||||||
< < | svn co https://svnsrv.desy.de/basic/ddsim/lcgeo/trunk lcgeo | ||||||||||
> > | svn co https://svnsrv.desy.de/public/ddsim/lcgeo/trunk lcgeo | ||||||||||
rm lcgeo/detector/calorimeter/SHcal* rm lcgeo/detector/calorimeter/SEcal* rm lcgeo/detector/CaloTB/CaloPrototype* | |||||||||||
Line: 139 to 139 | |||||||||||
Then run, assuming you are still in the lcgeo directory: | |||||||||||
Changed: | |||||||||||
< < | ced2go -d SiD/compact/SiD_o1_v01/SiD_o1_v03.xml sitracks.slcio | ||||||||||
> > | ced2go -d SiD/compact/SiD_o1_v01/SiD_o1_v03a.xml sitracks.slcio | ||||||||||
Analysing the output | |||||||||||
Line: 151 to 151 | |||||||||||
Now the files testSiD_o1_v03.slcio and sitracks.slcio each contain 1000 events. | |||||||||||
Changed: | |||||||||||
< < | Our example analysis code can be found here, and it will contain | ||||||||||
> > | Our example analysis code can be found here. From lcgeo do
cd ../ wget https://twiki.ppe.gla.ac.uk/pub/LinearCollider/GlaSiDGettingStarted/TrackAna.tgz tar -zxvf TrackAna.tgz ls Tracking/and you will see | ||||||||||
CMakeLists.txt gear_sid.xml | |||||||||||
Line: 170 to 177 | |||||||||||
-DILCUTIL_DIR=/cvmfs/ilc.desy.de/sw/x86_64_gcc48_sl6/v01-17-10/ilcutil/v01-03/ -C $ILCSOFT/ILCSoft.cmake .. make -j4 install | |||||||||||
Changed: | |||||||||||
< < | Now we run processor with | ||||||||||
> > | Edit HitResiduals.xml to make sure you have the right input file and detector model. Then run with | ||||||||||
cd ../ CWD=`pwd` | |||||||||||
Line: 182 to 188 | |||||||||||
Deleted: | |||||||||||
< < |
| ||||||||||
| |||||||||||
Added: | |||||||||||
> > |
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Getting Started with SiD DD4HEP | ||||||||
Line: 74 to 74 | ||||||||
Session initialisation | ||||||||
Changed: | ||||||||
< < | You must run these commands at the beginning of every session: | |||||||
> > | You must run these commands at the beginning of every session (assuming you are in the lcgeo directory): | |||||||
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 | ||||||||
Line: 95 to 95 | ||||||||
Running simulation | ||||||||
Changed: | ||||||||
< < | Assuming you are in the lcgeo directory, and that you have initialised your session as above, do | |||||||
> > | Assuming you are in the lcgeo directory (else do cd ../ ), and that you have initialised your session as above, do | |||||||
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 | ||||||||
Line: 112 to 112 | ||||||||
Running reconstruction | ||||||||
Changed: | ||||||||
< < | Use the latest SiDReconstruction.xml attached to this twiki page, after 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 as well) in your directory. Assuming you are in the lcgeo directory, and you have initialised your session as above, run | |||||||
> > | Use the latest SiDReconstruction.xml attached to this twiki page. You also need to have the basic gear_sid.xml file in your directory. For example (assuming you are in the lcgeo directory):
wget https://twiki.ppe.gla.ac.uk/pub/LinearCollider/GlaSiDGettingStarted/SiDReconstruction_v03_160711.xml wget https://twiki.ppe.gla.ac.uk/pub/LinearCollider/GlaSiDGettingStarted/gear_sid.xmlOnce you've done this, and assuming you are still in the lcgeo directory, and you have initialised your session as above, run | |||||||
Marlin SiDReconstruction_v03_160711.xml | ||||||||
Line: 177 to 182 | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Getting Started with SiD DD4HEP | ||||||||
Changed: | ||||||||
< < | 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/ | |||||||
> > | 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 | ||||||||
Line: 146 to 146 | ||||||||
Now the files testSiD_o1_v03.slcio and sitracks.slcio each contain 1000 events. | ||||||||
Changed: | ||||||||
< < | Our example analysis code can be found [[/pub/LinearCollider/GlaSiDGettingStarted/TrackAna.tgz][here], and it will contain | |||||||
> > | Our example analysis code can be found here, and it will contain | |||||||
CMakeLists.txt gear_sid.xml |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Getting Started with SiD DD4HEP | ||||||||
Line: 117 to 117 | ||||||||
Marlin SiDReconstruction_v03_160711.xml | ||||||||
Added: | ||||||||
> > | and this will produce a file named sitracks.slcio located in the current directory. | |||||||
Visualizing the output using CED | ||||||||
Line: 140 to 141 | ||||||||
We could run a simple analysis and draw a few plots. For this let us re-run ddsim and ddreco with a few more events | ||||||||
Changed: | ||||||||
< < | ddsim --compactFile=SiD/compact/SiD_o1_v01/SiD_o1_v03.xml --runType=batch --inputFile mcparticles.slcio -N=1000 --outputFile=SiD_o1_v03.slcio | |||||||
> > | ddsim --compactFile=SiD/compact/SiD_o1_v01/SiD_o1_v03.xml --runType=batch --inputFile mcparticles.slcio -N=1000 --outputFile=testSiD_o1_v03.slcio | |||||||
Marlin SiDReconstruction_v03_160711.xml | ||||||||
Changed: | ||||||||
< < | Now the files SiD_o1_v03.slcio contains 1000 events. | |||||||
> > | Now the files testSiD_o1_v03.slcio and sitracks.slcio each contain 1000 events. | |||||||
Changed: | ||||||||
< < | Our example analysis code can be found here, and it will contain | |||||||
> > | Our example analysis code can be found [[/pub/LinearCollider/GlaSiDGettingStarted/TrackAna.tgz][here], and it will contain | |||||||
CMakeLists.txt gear_sid.xml HitResiduals.xml | ||||||||
Added: | ||||||||
> > | include/fpcompare.h | |||||||
include/LinkDef.h include/HitResiduals.h src/HitResiduals.cc | ||||||||
Line: 167 to 169 | ||||||||
Now we run processor with
cd ../ | ||||||||
Changed: | ||||||||
< < | export MARLIN_DLL=$MARLIN_DLL:./lib/libTrackAna.so | |||||||
> > | CWD=`pwd` export MARLIN_DLL=$MARLIN_DLL:$CWD/lib/libTrackAna.so | |||||||
Marlin HitResiduals.xml | ||||||||
Changed: | ||||||||
< < | This will produce a file named hitresiduals.root which contains the results. | |||||||
> > | This will produce a file named hitresiduals.root which contains something like this:
| |||||||
| ||||||||
Added: | ||||||||
> > |
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Getting Started with SiD DD4HEP | ||||||||
Line: 143 to 143 | ||||||||
ddsim --compactFile=SiD/compact/SiD_o1_v01/SiD_o1_v03.xml --runType=batch --inputFile mcparticles.slcio -N=1000 --outputFile=SiD_o1_v03.slcio Marlin SiDReconstruction_v03_160711.xml | ||||||||
Changed: | ||||||||
< < | Now the files SiD_o1_v03.slcio and sitracks.slcio contain 1000 events. | |||||||
> > | Now the files SiD_o1_v03.slcio contains 1000 events.
Our example analysis code can be found here, and it will contain
CMakeLists.txt gear_sid.xml HitResiduals.xml include/LinkDef.h include/HitResiduals.h src/HitResiduals.ccAssuming you are in the lcgeo directory, and you have initialised your session as above, let us compile the example with: cd Tracking mkdir build lib cd build cmake -DCMAKE_CXX_COMPILER=`which g++` -DCMAKE_C_COMPILER=`which gcc` \ -DILCUTIL_DIR=/cvmfs/ilc.desy.de/sw/x86_64_gcc48_sl6/v01-17-10/ilcutil/v01-03/ -C $ILCSOFT/ILCSoft.cmake .. make -j4 installNow we run processor with cd ../ export MARLIN_DLL=$MARLIN_DLL:./lib/libTrackAna.so Marlin HitResiduals.xmlThis will produce a file named hitresiduals.root which contains the results. | |||||||
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Getting Started with SiD DD4HEP | ||||||||
Line: 126 to 126 | ||||||||
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. | ||||||||
Changed: | ||||||||
< < | You may need to make the following environment modification, depending on your local machine: | |||||||
> > | You may need to make the following environment modification, depending on your local machine and how you connect to it: | |||||||
unset LIBGL_ALWAYS_INDIRECT | ||||||||
Line: 143 to 143 | ||||||||
ddsim --compactFile=SiD/compact/SiD_o1_v01/SiD_o1_v03.xml --runType=batch --inputFile mcparticles.slcio -N=1000 --outputFile=SiD_o1_v03.slcio Marlin SiDReconstruction_v03_160711.xml | ||||||||
Changed: | ||||||||
< < | Now the output file SiD_o1_v03.slcio contains 1000 events. | |||||||
> > | Now the files SiD_o1_v03.slcio and sitracks.slcio contain 1000 events. | |||||||
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Getting Started with SiD DD4HEP | ||||||||
Line: 18 to 18 | ||||||||
Building the detector model (lcgeo) | ||||||||
Changed: | ||||||||
< < | Download the code and removing some unwanted drivers (these first five steps are to be done one time only): | |||||||
> > | Download the code and remove some unneeded ILD drivers (these first five steps are to be done one time only): | |||||||
svn co https://svnsrv.desy.de/basic/ddsim/lcgeo/trunk lcgeo rm lcgeo/detector/calorimeter/SHcal* | ||||||||
Line: 54 to 54 | ||||||||
If you modify the detector model, lcgeo needs to be rebuilt. | ||||||||
Changed: | ||||||||
< < | If you add, remove, or move files from the directories, you have to rerun cmake as above (note the doble-dots at the end) | |||||||
> > | If you add, remove, or move files from the directories, you have to rerun cmake as above (note the double-dots .. at the end) | |||||||
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 .. | ||||||||
Line: 66 to 66 | ||||||||
(or simply make -j4 install ) | ||||||||
Deleted: | ||||||||
< < | ||||||||
Running simulation and reconstruction | ||||||||
Changed: | ||||||||
< < | To run the code, you have to initialise your environment at the beginning of your work session (i.e. when starting a new shell, after ssh). Remember that you also have to rebuild the code in case you modify any of the source files. | |||||||
> > | To run the code, you have to initialise your environment at the beginning of your work session (i.e. when starting a new shell, after ssh).
Remember that you also have to rebuild the code in case you modify any of the source files.
If you've just built lcgeo as above, you've already initialised your environment, so you can skip the next subsection. | |||||||
Session initialisation | ||||||||
Line: 132 to 133 | ||||||||
Then run, assuming you are still in the lcgeo directory: | ||||||||
Changed: | ||||||||
< < | ced2go -d SiD/compact/SiD_o1_v01/SiD_o1_v03.xml <input_file.slcio> | |||||||
> > | ced2go -d SiD/compact/SiD_o1_v01/SiD_o1_v03.xml sitracks.slcio | |||||||
Analysing the output |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Getting Started with SiD DD4HEP | ||||||||
Changed: | ||||||||
< < | 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 | |||||||
> > | 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/ | |||||||
Changed: | ||||||||
< < | We are running on SL6 machines and haven't tried other architectures. Note that you must have cvmfs installed (ask your local sysadmin). | |||||||
> > | Browse or check out the code via https://svnsrv.desy.de/websvn/wsvn/General.ddsim/lcgeo | |||||||
Changed: | ||||||||
< < | Latest update: 5 Sept 16, using the latest ilcsoft release v01-17-10 for everything | |||||||
> > | 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 | |||||||
Changed: | ||||||||
< < | Build example: # [first five steps are one-time only] | |||||||
> > |
Important version notesWe are running on SL6 machines and haven't tried other architectures. Note that you must havecvmfs installed (ask your local sysadmin).
Latest update was on 5 Sept 16, using the latest ilcsoft release v01-17-10 for everything.
Building the detector model (lcgeo)Download the code and removing some unwanted drivers (these first five steps are to be done 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 | ||||||||
Changed: | ||||||||
< < | # [setups you do every time: ] | |||||||
> > | Setup the environment (these steps will have to be repeated at the beginning of every session): | |||||||
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 | ||||||||
Changed: | ||||||||
< < | cd lcgeo/build # [cmake you only need do after you have added/removed/moved files from the directories] | |||||||
> > | cd lcgeo/build/
Prepare the build environment (note the ending double-dots!):
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 ..Build the code with make -j4 make installYou will now have to update your environment to include the newly created apps source ../bin/thislcgeo.sh Modifying the codeIf you modify the detector model,lcgeo needs to be rebuilt.
If you add, remove, or move files from the directories, you have to rerun cmake as above (note the doble-dots at the end) | |||||||
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 .. | ||||||||
Changed: | ||||||||
< < | # [make you only need to do after you have changed files] | |||||||
> > |
If you edit files (source code) you need re-run make : | |||||||
make -j4 make install | ||||||||
Changed: | ||||||||
< < | # [setup you need to do every time: ] source ../bin/thislcgeo.sh | |||||||
> > |
(or simply make -j4 install )
Running simulation and reconstruction | |||||||
Changed: | ||||||||
< < | Run example for ddsim: | |||||||
> > | To run the code, you have to initialise your environment at the beginning of your work session (i.e. when starting a new shell, after ssh). Remember that you also have to rebuild the code in case you modify any of the source files.
Session initialisationYou must run these commands at the beginning of every session: | |||||||
Deleted: | ||||||||
< < | # [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 | ||||||||
Added: | ||||||||
> > | source bin/thislcgeo.sh Depending on your system, you might have to type the following 7 commands | |||||||
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 | ||||||||
Line: 39 to 89 | ||||||||
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 | ||||||||
Changed: | ||||||||
< < | 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 | |||||||
> > | ||||||||
Changed: | ||||||||
< < | Then to look at the output: dumpevent testSiD_o1_v03.slcio 1 | |||||||
> > | Running simulationAssuming you are in thelcgeo directory, and that you have initialised your session as above, do
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 | |||||||
Added: | ||||||||
> > | Then to inspect the output use:
dumpevent testSiD_o1_v03.slcio 1 | |||||||
or | ||||||||
Changed: | ||||||||
< < | anajob testSiD_o1_v03.slcio | |||||||
> > | anajob testSiD_o1_v03.slcio | |||||||
Changed: | ||||||||
< < | To run reconstruction: | |||||||
> > | Running reconstruction | |||||||
Changed: | ||||||||
< < | # [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. | |||||||
> > | Use the latest SiDReconstruction.xml attached to this twiki page, after 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 as well) in your directory. Assuming you are in the lcgeo directory, and you have initialised your session as above, run | |||||||
Marlin SiDReconstruction_v03_160711.xml | ||||||||
Deleted: | ||||||||
< < | ||||||||
Changed: | ||||||||
< < | 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. | |||||||
> > | Visualizing the output using CED | |||||||
Changed: | ||||||||
< < | source /cvmfs/ilc.desy.de/sw/x86_64_gcc48_sl6/v01-17-10/init_ilcsoft.sh # point to a CED installation with glced: | |||||||
> > | Note that for the event display to work 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. Point to a CED installation with glced: | |||||||
export PATH=/cvmfs/ilc.desy.de/sw/x86_64_gcc44_sl6/CED/v01-09-02/bin/:$PATH | ||||||||
Changed: | ||||||||
< < | # 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 # You may need to make the following environment modification, depending on your local machine: | |||||||
> > |
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.
You may need to make the following environment modification, depending on your local machine: | |||||||
unset LIBGL_ALWAYS_INDIRECT | ||||||||
Changed: | ||||||||
< < | # then run:
ced2go -d | |||||||
> > | ||||||||
Changed: | ||||||||
< < | -- Aidan Robson - 2016-07-11 | |||||||
> > | Then run, assuming you are still in the lcgeo directory:
ced2go -d SiD/compact/SiD_o1_v01/SiD_o1_v03.xml <input_file.slcio> | |||||||
Changed: | ||||||||
< < | Comments | |||||||
> > | Analysing the output | |||||||
Changed: | ||||||||
< < | ||||||||
> > | We could run a simple analysis and draw a few plots. For this let us re-run ddsim and ddreco with a few more events
ddsim --compactFile=SiD/compact/SiD_o1_v01/SiD_o1_v03.xml --runType=batch --inputFile mcparticles.slcio -N=1000 --outputFile=SiD_o1_v03.slcio Marlin SiDReconstruction_v03_160711.xmlNow the output file SiD_o1_v03.slcio contains 1000 events. | |||||||
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Getting Started with SiD DD4HEP | ||||||||
Line: 66 to 63 | ||||||||
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. | ||||||||
Added: | ||||||||
> > | ||||||||
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 | ||||||||
Added: | ||||||||
> > | # You may need to make the following environment modification, depending on your local machine: unset LIBGL_ALWAYS_INDIRECT # then run: | |||||||
ced2go -d |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Getting Started with SiD DD4HEP | ||||||||
Line: 60 to 63 | ||||||||
Added: | ||||||||
> > | 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 | ||||||||
Line: 68 to 82 | ||||||||
| ||||||||
Added: | ||||||||
> > |
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Getting Started with SiD DD4HEP | ||||||||
Changed: | ||||||||
< < | 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_v01. 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 | |||||||
> > | 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 | |||||||
Changed: | ||||||||
< < | We are running on SL6 machines and haven't tried other architectures. Note that you must have cvmfs installed (ask your local sysadmin). Build example: | |||||||
> > | 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* | ||||||||
Line: 13 to 17 | ||||||||
mkdir lcgeo/build # [setups you do every time: ] source /cvmfs/sft.cern.ch/lcg/releases/gcc/4.8.4/x86_64-slc6/setup.sh | ||||||||
Changed: | ||||||||
< < | source /cvmfs/ilc.desy.de/sw/x86_64_gcc48_sl6/v01-17-09/init_ilcsoft.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] | ||||||||
Changed: | ||||||||
< < | cmake -DCMAKE_CXX_COMPILER=`which g++` -DCMAKE_C_COMPILER=`which gcc` -C /cvmfs/ilc.desy.de/sw/x86_64_gcc48_sl6/ILCSoft.cmake .. | |||||||
> > | 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 | ||||||||
Line: 27 to 31 | ||||||||
# [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 | ||||||||
Changed: | ||||||||
< < | source /cvmfs/ilc.desy.de/sw/x86_64_gcc48_sl6/v01-17-09/init_ilcsoft.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 | ||||||||
Line: 37 to 41 | ||||||||
export PATH=$PYTOOLSDIR/bin:$PATH source bin/thislcgeo.sh python example/lcio_particle_gun.py | ||||||||
Changed: | ||||||||
< < | ddsim --compactFile=SiD/compact/SiD_o1_v01/SiD_o1_v01.xml --runType=batch --inputFile mcparticles.slcio -N=1 --outputFile=testSiD_o1_v01.slcio | |||||||
> > | 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: | ||||||||
Changed: | ||||||||
< < | dumpevent testSiD_o1_v01.slcio 1 | |||||||
> > | dumpevent testSiD_o1_v03.slcio 1 | |||||||
or | ||||||||
Changed: | ||||||||
< < | anajob testSiD_o1_v01.slcio | |||||||
> > | anajob testSiD_o1_v03.slcio | |||||||
To run reconstruction: | ||||||||
Changed: | ||||||||
< < | We are currently using a more recent CLIC release.
#In a fresh login shell: source /afs/cern.ch/eng/clic/work/ilcsoft/HEAD-2016-02-19/init_ilcsoft.sh | |||||||
> > | # [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, | ||||||||
Changed: | ||||||||
< < | # where you have edited the LCIOInputFiles and DD4hepXMLFile parameters for your local area: | |||||||
> > | # 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 | ||||||||
Line: 63 to 67 | ||||||||
| ||||||||
Added: | ||||||||
> > |
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Getting Started with SiD DD4HEP | ||||||||
Line: 46 to 45 | ||||||||
or
anajob testSiD_o1_v01.slcio | ||||||||
Changed: | ||||||||
< < | -- Aidan Robson - 2016-06-27 | |||||||
> > | To run reconstruction:
We are currently using a more recent CLIC release.
#In a fresh login shell: source /afs/cern.ch/eng/clic/work/ilcsoft/HEAD-2016-02-19/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: Marlin SiDReconstruction_v03_160711.xml-- Aidan Robson - 2016-07-11 | |||||||
Comments | ||||||||
Changed: | ||||||||
< < | ||||||||
> > |
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Getting Started with SiD DD4HEP | ||||||||
Changed: | ||||||||
< < | 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_v01. 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 Build example: | |||||||
> > | 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_v01. 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 | |||||||
Changed: | ||||||||
< < | svn co https://svnsrv.desy.de/basic/ddsim/lcgeo/trunk lcgeo | |||||||
> > | We are running on SL6 machines and haven't tried other architectures. Note that you must have cvmfs installed (ask your local sysadmin). 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-09/init_ilcsoft.sh | ||||||||
Changed: | ||||||||
< < | cd lcgeo/ rm detector/detector/calorimeter/SHcal* rm detector/detector/calorimeter/SEcal* rm detector/detector/CaloTB/CaloPrototype* mkdir build cd build | |||||||
> > | 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/ILCSoft.cmake .. | ||||||||
Added: | ||||||||
> > | # [make you only need to do after you have changed files] | |||||||
make -j4 make install | ||||||||
Added: | ||||||||
> > | # [setup you need to do every time: ] | |||||||
source ../bin/thislcgeo.sh Run example for ddsim: | ||||||||
Line: 19 to 25 | ||||||||
source ../bin/thislcgeo.sh Run example for ddsim: | ||||||||
Deleted: | ||||||||
< < | ||||||||
Added: | ||||||||
> > | # [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-09/init_ilcsoft.sh export LCGRELEASES=/cvmfs/sft.cern.ch/lcg/releases/LCG_84 | ||||||||
Line: 32 to 38 | ||||||||
export PATH=$PYTOOLSDIR/bin:$PATH source bin/thislcgeo.sh python example/lcio_particle_gun.py | ||||||||
Changed: | ||||||||
< < | ddsim --compactFile=SiD/compact/SiD_o1_v01.xml --runType=batch --inputFile mcparticles.slcio -N=1 --outputFile=testSiD_o1_v01.slcio | |||||||
> > | ddsim --compactFile=SiD/compact/SiD_o1_v01/SiD_o1_v01.xml --runType=batch --inputFile mcparticles.slcio -N=1 --outputFile=testSiD_o1_v01.slcio | |||||||
Then to look at the output: | ||||||||
Deleted: | ||||||||
< < | ||||||||
dumpevent testSiD_o1_v01.slcio 1or |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Added: | ||||||||
> > |
Getting Started with SiD DD4HEPAt 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_v01. 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 Build example: svn co https://svnsrv.desy.de/basic/ddsim/lcgeo/trunk lcgeo 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-09/init_ilcsoft.sh cd lcgeo/ rm detector/detector/calorimeter/SHcal* rm detector/detector/calorimeter/SEcal* rm detector/detector/CaloTB/CaloPrototype* mkdir build cd build cmake -DCMAKE_CXX_COMPILER=`which g++` -DCMAKE_C_COMPILER=`which gcc` -C /cvmfs/ilc.desy.de/sw/x86_64_gcc48_sl6/ILCSoft.cmake .. make -j4 make install source ../bin/thislcgeo.shRun example for ddsim: 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-09/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.xml --runType=batch --inputFile mcparticles.slcio -N=1 --outputFile=testSiD_o1_v01.slcio Then to look at the output: dumpevent testSiD_o1_v01.slcio 1or anajob testSiD_o1_v01.slcio-- Aidan Robson - 2016-06-27 Comments |