Warning, /DD4hep/examples/DDG4_MySensDet/README.txt is written in an unsupported language. File is not indexed.
0001 This is an example how to implement a specialized sensitive detector in DDG4.
0002 The sensitive detector is called MyTrackerSD.
0003 As a hit class it uses the Geant4TrackerHit class.
0004
0005 1) The example should illustrate how to setup the factory for a specialized sensitive detector action
0006 2) In the scripts area there is a simple example to illustrate how to setup a small
0007 simulation and use this factory. (scripts/MyTrackerSD_sim.py)
0008
0009
0010 For issues concerning the MC truth and the (consistent) persistency
0011 please visit the MyTrackerHit include file.
0012
0013 After running DDG4 with the command line:
0014 $> python $DD4hepExamplesINSTALL/examples/DDG4_MySensDet/scripts/MyTrackerSD_siy \
0015 --compact=file:$DD4hepExamplesINSTALL/examples/ClientTests/compact/SiliconBlock.xml
0016
0017 You can then directly inspect the produced hits and the energy deposits:
0018
0019 $> root.exe
0020 ------------------------------------------------------------
0021 | Welcome to ROOT 6.12/06 http://root.cern.ch |
0022 | (c) 1995-2017, The ROOT Team |
0023 | Built for linuxx8664gcc |
0024 | From tag v6-12-06, 9 February 2018 |
0025 | Try '.help', '.demo', '.license', '.credits', '.quit'/'.q' |
0026 ------------------------------------------------------------
0027
0028 root [0] gSystem->Load("libDDG4_MySensDet.so")
0029 (int) 0
0030 root [1] gSystem->Load("libDDG4Plugins.so")
0031 (int) 0
0032 root [2] TFile* f=TFile::Open("MySD_2018-06-26_19-03.root")
0033 (TFile *) 0x41a4ba0
0034 root [3] TBrowser b
0035 (TBrowser &) Name: Browser Title: ROOT Object Browser
0036 root [4]
0037 root [4]
0038
0039 Then click through the browser into the file....