<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Dear Paul,
<div class=""><br class="">
</div>
<div class="">have you tried accessing the componentID, volumeID, pixelID etc. stored in the root tree? These variables should enable you to figure out in which element of your system an event was registered.</div>
<div class=""><br class="">
</div>
<div class="">Best regards,</div>
<div class="">David </div>
<div class=""><br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 25 May2022, at 15:01, Klever, Paul <<a href="mailto:paul.klever@alumni.fh-aachen.de" class="">paul.klever@alumni.fh-aachen.de</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div id="divtagdefaultwrapper" dir="ltr" style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;" class="">
<div style="margin-top: 0px; margin-bottom: 0px;" class="">Dear Users,</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">I am currently working on a cylindrical PET system with heterostructured scintillators. At first I am designing a one block detector and want to get a proper readout done before creating a whole scanner.</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">Goal of this is to simulate a couple of materials and calculate their CTRs. My problem is that eventhough I assigned the two different layers as separate sensitive detectors, I only get one root tree
for the energy deposited in the singles tree.<span class="Apple-converted-space"> </span><br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">I've tried it with one crystal for each layer, or with just one crystal for both layers. I've tried the DoseActor, but the created File seems to have as many entries as I define in the macro with the
variable z in "/setResolution x y z", eventhough I dont have that many hits or singles. So I don't think thats a proper way to get the deposited energy for each layer.</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">There is not much to find about that topic, neither in the mailing list archive nor in the benchmarks.</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">I appreciate any advice.</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">Best regards</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">Paul K.<br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">Here is my macro. I use Gate 9.1 with geant4-10-07. I've installed the precompiled version of Gate and recompiled it, to activate photons and surfaces. </div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class="">
</div>
<p style="margin-top: 0px; margin-bottom: 0px;" class=""></p>
<div class=""># M A T E R I A L F I L E<br class="">
<br class="">
/gate/geometry/setMaterialDatabase data/GateMaterials.db<br class="">
/gate/geometry/setIonisationPotential EJ232 64.7 eV<br class="">
<br class="">
<br class="">
#===============================================================<br class="">
<br class="">
# W O R L D<br class="">
<br class="">
/gate/world/geometry/setXLength 100. cm<br class="">
/gate/world/geometry/setYLength 100. cm<br class="">
/gate/world/geometry/setZLength 100. cm<br class="">
#/gate/world/setMaterial Air<br class="">
<br class="">
#==============================================================<br class="">
<br class="">
# S Y S T E M<br class="">
<br class="">
/gate/world/daughters/name cylindricalPET<br class="">
/gate/world/daughters/systemType cylindricalPET<br class="">
/gate/world/daughters/insert box<br class="">
/gate/cylindricalPET/setMaterial Air<br class="">
/gate/cylindricalPET/geometry/setXLength 15 mm<br class="">
/gate/cylindricalPET/geometry/setYLength 2.1 mm<br class="">
/gate/cylindricalPET/geometry/setZLength 3. mm<br class="">
/gate/cylindricalPET/placement/setTranslation 0 0 -1.5 mm<br class="">
/gate/cylindricalPET/vis/setColor gray<br class="">
/gate/cylindricalPET/vis/forceWireframe<br class="">
<br class="">
#==============================================================<br class="">
<br class="">
# P H A N T O M<br class="">
<br class="">
<br class="">
#==============================================================<br class="">
<br class="">
# R S E C T O R<span class="Apple-converted-space"> </span><br class="">
<br class="">
/gate/cylindricalPET/daughters/name rsector<br class="">
/gate/cylindricalPET/daughters/insert box<br class="">
/gate/rsector/placement/setTranslation 0 0 0 mm<br class="">
/gate/rsector/geometry/setXLength 15. mm<br class="">
/gate/rsector/geometry/setYLength 2.1 mm<br class="">
/gate/rsector/geometry/setZLength 3. mm<br class="">
/gate/rsector/vis/setColor green<br class="">
/gate/rsector/vis/forceWireframe<br class="">
<br class="">
#==============================================================<br class="">
<br class="">
# M O D U L E<br class="">
<br class="">
/gate/rsector/daughters/name module<br class="">
/gate/rsector/daughters/insert box<br class="">
/gate/module/placement/setTranslation 0 0 0 mm<br class="">
/gate/module/geometry/setXLength 15. mm<br class="">
/gate/module/geometry/setYLength 2.1 mm<br class="">
/gate/module/geometry/setZLength 3. mm<br class="">
/gate/module/vis/setColor blue<br class="">
/gate/module/vis/forceWireframe<br class="">
<br class="">
#=============================================================<br class="">
<br class="">
# C R Y S T A L 0<br class="">
<br class="">
/gate/module/daughters/name crystal<br class="">
/gate/module/daughters/insert box<span class="Apple-converted-space"> </span><br class="">
/gate/crystal/geometry/setXLength 15. mm<span class="Apple-converted-space"> </span><br class="">
/gate/crystal/geometry/setYLength 2.1 mm<span class="Apple-converted-space"> </span><br class="">
/gate/crystal/geometry/setZLength 3. mm<span class="Apple-converted-space"> </span><br class="">
/gate/crystal/placement/setTranslation 0 0. 0 mm<span class="Apple-converted-space"> </span><br class="">
/gate/crystal/setMaterial Air<span class="Apple-converted-space"> </span><br class="">
/gate/crystal/vis/forceWireframe<span class="Apple-converted-space"> </span><br class="">
/gate/crystal/vis/setColor yellow<br class="">
/gate/crystal/vis/setVisible false<br class="">
<br class="">
<br class="">
<br class="">
# L A Y E R 0<br class="">
<br class="">
/gate/crystal/daughters/name LYSO<br class="">
/gate/crystal/daughters/insert box<br class="">
/gate/LYSO/geometry/setXLength 15. mm<span class="Apple-converted-space"> </span><br class="">
/gate/LYSO/geometry/setYLength 0.1 mm<span class="Apple-converted-space"> </span><br class="">
/gate/LYSO/geometry/setZLength 3. mm<span class="Apple-converted-space"> </span><br class="">
/gate/LYSO/placement/setTranslation 0 0 0 mm<span class="Apple-converted-space"> </span><br class="">
/gate/LYSO/setMaterial LYSO<br class="">
/gate/LYSO/vis/forceSolid<br class="">
/gate/LYSO/vis/setColor yellow<br class="">
<br class="">
<br class="">
# L A Y E R 1<br class="">
<br class="">
/gate/crystal/daughters/name EJ232<br class="">
/gate/crystal/daughters/insert box<br class="">
/gate/EJ232/geometry/setXLength 15. mm<span class="Apple-converted-space"> </span><br class="">
/gate/EJ232/geometry/setYLength 0.1 mm<span class="Apple-converted-space"> </span><br class="">
/gate/EJ232/geometry/setZLength 3. mm<span class="Apple-converted-space"> </span><br class="">
/gate/EJ232/placement/setTranslation 0 0 0 mm<span class="Apple-converted-space"> </span><br class="">
/gate/EJ232/setMaterial EJ232<br class="">
/gate/EJ232/vis/forceSolid<br class="">
/gate/EJ232/vis/setColor red<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
#=============================================================<br class="">
# R E P E A T C R Y S T A L<br class="">
<br class="">
/gate/LYSO/repeaters/insert cubicArray<br class="">
/gate/LYSO/cubicArray/setRepeatNumberX 1<br class="">
/gate/LYSO/cubicArray/setRepeatNumberY 11<br class="">
/gate/LYSO/cubicArray/setRepeatNumberZ 1<br class="">
/gate/LYSO/cubicArray/setRepeatVector 0. 0.2 0. mm<br class="">
<br class="">
/gate/EJ232/repeaters/insert cubicArray<br class="">
/gate/EJ232/cubicArray/setRepeatNumberX 1<br class="">
/gate/EJ232/cubicArray/setRepeatNumberY 10<br class="">
/gate/EJ232/cubicArray/setRepeatNumberZ 1<br class="">
/gate/EJ232/cubicArray/setRepeatVector 0. 0.2 0. mm<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
#=============================================================<br class="">
<br class="">
# R E P E A T M O D U L E<span class="Apple-converted-space"> </span><br class="">
<br class="">
#/gate/module/repeaters/insert linear<br class="">
#/gate/module/linear/setRepeatNumber 33<br class="">
#/gate/module/linear/setRepeatVector 0. 0. 3.01 mm<br class="">
<br class="">
# R E P E A T R S E C T O R<br class="">
<br class="">
#/gate/rsector/repeaters/insert ring<br class="">
#/gate/rsector/ring/setRepeatNumber 250<br class="">
<br class="">
#/gate/cylindricalPET/placement/setRotationAxis 0 0 1<br class="">
<br class="">
#=============================================================<br class="">
<br class="">
# A T T A C H S Y S T E M<br class="">
<br class="">
/gate/LYSO/attachCrystalSD<br class="">
/gate/EJ232/attachCrystalSD<br class="">
<br class="">
/gate/systems/cylindricalPET/rsector/attach rsector<br class="">
/gate/systems/cylindricalPET/module/attach module<br class="">
/gate/systems/cylindricalPET/crystal/attach crystal<br class="">
/gate/systems/cylindricalPET/layer0/attach LYSO<br class="">
/gate/systems/cylindricalPET/layer1/attach EJ232<br class="">
<br class="">
<br class="">
# A C T O R<br class="">
<br class="">
/gate/actor/addActor DoseActor MyActor0<br class="">
/gate/actor/MyActor0/save EdepLYSO.txt<br class="">
/gate/actor/MyActor0/attachTo LYSO<br class="">
/gate/actor/MyActor0/stepHitType random<br class="">
/gate/actor/MyActor0/setResolution 1 1 3000<br class="">
/gate/actor/MyActor0/enableEdep true<br class="">
/gate/actor/MyActor0/enableDose false<br class="">
<br class="">
/gate/actor/addActor DoseActor MyActor1<br class="">
/gate/actor/MyActor1/save EdepEJ232.txt<br class="">
/gate/actor/MyActor1/attachTo EJ232<br class="">
/gate/actor/MyActor1/stepHitType random<br class="">
/gate/actor/MyActor1/setResolution 1 1 3000<br class="">
/gate/actor/MyActor1/enableEdep true<br class="">
/gate/actor/MyActor1/enableDose false<br class="">
<br class="">
<br class="">
#=============================================================<br class="">
<br class="">
#A T T A C H L A Y E R SD<br class="">
<br class="">
<br class="">
#/gate/my_phantom/attachPhantomSD<br class="">
<br class="">
<br class="">
#=============================================================<br class="">
#=====================================================<br class="">
# VISUALISATION<br class="">
#=====================================================<br class="">
<br class="">
# V I E W E R #<br class="">
#/vis/open OGLSX<br class="">
<br class="">
# set the view angle<br class="">
#/vis/viewer/set/viewpointThetaPhi 45 45<br class="">
<br class="">
<br class="">
# define the zoom factor<br class="">
#/vis/viewer/zoom 50.<br class="">
<br class="">
<br class="">
# set the drawing style<br class="">
#/vis/viewer/set/style wireframe<br class="">
#/vis/viewer/set/style surface<br class="">
<br class="">
# tell the viewer to draw the volume<br class="">
#/vis/drawVolume<br class="">
<br class="">
#/vis/viewer/flush<br class="">
#/tracking/verbose 2<br class="">
<br class="">
# The trajectories for each run should be drawn together<br class="">
# don't store trajectories = 0; store trajectories = 1<br class="">
#/tracking/storeTrajectory 1<br class="">
#/vis/scene/add/trajectories<br class="">
<br class="">
# Requests viewer to refresh hits, tracks, etc., at end of event.<br class="">
# Or to accumulate drawings. Detector remains or is redrawn.<br class="">
#/vis/scene/endOfEventAction accumulate<span class="Apple-converted-space"> </span><br class="">
<br class="">
#=====================================================<br class="">
# PHYSICS<br class="">
#=====================================================<br class="">
<br class="">
/gate/physics/addPhysicsList emstandard_opt4<br class="">
#/gate/physics/addPhysicsList emlivermore<br class="">
<br class="">
<br class="">
/gate/physics/addProcess Scintillation<br class="">
/gate/physics/addProcess OpticalAbsorption<br class="">
/gate/physics/addProcess OpticalRayleigh<br class="">
#/gate/physics/addProcess OpticalBoundary<br class="">
#/gate/physics/addProcess OpticalMie<br class="">
/gate/physics/addProcess OpticalWLS<br class="">
<br class="">
<br class="">
#/gate/physics/addPhysicsList emlivermore<br class="">
#/gate/physics/addProcess Scintillation<br class="">
<br class="">
<br class="">
#/gate/physics/addProcess RadioactiveDecay<br class="">
<br class="">
#/gate/physics/processList Enabled<br class="">
#/gate/physics/processList Initialized<br class="">
<br class="">
#=====================================================<br class="">
# INITIALISATION<br class="">
#=====================================================<br class="">
<br class="">
/gate/run/initialize<br class="">
<br class="">
/gate/LYSO/surfaces/name surface1<br class="">
/gate/LYSO/surfaces/insert EJ232<br class="">
/gate/LYSO/surfaces/surface1/setSurface perfect_apd<br class="">
<br class="">
<br class="">
/gate/EJ232/surfaces/name surface2<br class="">
/gate/EJ232/surfaces/insert LYSO<br class="">
/gate/EJ232/surfaces/surface2/setSurface perfect_apd<br class="">
<br class="">
#=====================================================<br class="">
# D I G I T I Z E R: DETECTOR ELECTRONIC RESPONSE<br class="">
#=====================================================<br class="">
<br class="">
<br class="">
/gate/digitizer/Singles/insert opticaladder<br class="">
/gate/digitizer/Singles/insert readout<br class="">
/gate/digitizer/Singles/readout/setDepth 4 #Crystal | "5" Layer<br class="">
<br class="">
<br class="">
/gate/digitizer/Singles/insert blurring<br class="">
/gate/digitizer/Singles/blurring/setEnergyOfReference 511. keV<br class="">
<br class="">
<br class="">
#/gate/digitizer/verbose 1<br class="">
<br class="">
<br class="">
<br class="">
# C O I N C I D E N C E<br class="">
<br class="">
#/gate/digitizer/Coincidences/setWindow 4. ns<br class="">
#/gate/digitizer/Coincidences/setOffset 0. ns<span class="Apple-converted-space"> </span><br class="">
#/gate/digitizer/Coincidences/minSectorDifference 88<br class="">
<br class="">
#/gate/digitizer/DelCoinc/addSource prompts<br class="">
#/gate/digitizer/DelCoinc/addSource delayed<br class="">
<br class="">
<br class="">
#===================================================<br class="">
# D E F I N E T H E S O U R C E<br class="">
#===================================================<br class="">
<br class="">
# source: opticalPhoton<br class="">
<br class="">
/gate/source/addSource Mysource gps<br class="">
#/gate/source/Mysource/setType backtoback<br class="">
/gate/source/Mysource/gps/particle gamma<br class="">
/gate/source/Mysource/gps/pos/shape Sphere<br class="">
/gate/source/Mysource/gps/pos/radius 0.125 mm<br class="">
/gate/source/Mysource/gps/pos/centre 0. 0. 10.125 mm<br class="">
/gate/source/Mysource/gps/ene/type Mono<br class="">
/gate/source/Mysource/gps/ene/mono 511. keV<br class="">
/gate/source/Mysource/setActivity 100000. Bq<br class="">
/gate/source/Mysource/gps/ang/type iso<br class="">
#/gate/source/Mysource/gps/polarization 1 1 1<br class="">
<br class="">
<br class="">
/gate/source/Mysource/gps/ang/mintheta 0 deg<br class="">
/gate/source/Mysource/gps/ang/maxtheta 30 deg<br class="">
<br class="">
/gate/source/Mysource/gps/ang/minphi 0 deg<br class="">
/gate/source/Mysource/gps/ang/maxphi 360. deg<br class="">
<br class="">
<br class="">
#=====================================================<br class="">
# D A T A O U T P U T<br class="">
#=====================================================<br class="">
<br class="">
/gate/output/root/enable<br class="">
/gate/output/root/setFileName LYSOEJ232CP1<br class="">
#/gate/output/root/setRootSinglesAdderFlag 1<br class="">
#/gate/output/root/setRootSinglesReadoutFlag 1<br class="">
/gate/output/root/setRootHitFlag 1<br class="">
/gate/output/root/setRootSinglesFlag 1<br class="">
#/gate/output/root/setRootNtupleFlag 1<br class="">
#/gate/output/root/setRootCoincidencesFlag 1<br class="">
/gate/output/root/setRootOpticalFlag 1<br class="">
<br class="">
<br class="">
<br class="">
#/gate/output/fastanalysis/enable<br class="">
#/gate/output/analysis/enable<br class="">
<br class="">
#====================================================<br class="">
# R A N D O M E N G I N E A N D S E E D<br class="">
#====================================================<br class="">
# JamesRandom<br class="">
/gate/random/setEngineName JamesRandom<br class="">
/gate/random/setEngineSeed auto<br class="">
/gate/random/verbose 0<br class="">
<br class="">
#=====================================================<br class="">
# M E A S U R E M E N T S E T T I N G S<br class="">
#=====================================================<br class="">
<br class="">
/gate/application/setTimeSlice 1 s<br class="">
/gate/application/setTimeStart 0 s<br class="">
/gate/application/setTimeStop 1 s<br class="">
<br class="">
/gate/application/startDAQ<br class="">
<br class="">
</div>
<br class="">
<p style="margin-top: 0px; margin-bottom: 0px;" class=""></p>
</div>
<span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">_______________________________________________</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">Gate-users
mailing list</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<a href="mailto:Gate-users@lists.opengatecollaboration.org" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">Gate-users@lists.opengatecollaboration.org</a><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.opengatecollaboration.org_mailman_listinfo_gate-2Dusers&d=DwIGaQ&c=XYzUhXBD2cD-CornpT4QE19xOJBbRy-TBPLK0X9U2o8&r=lfXR69GFfS7NT-Wp5HZqbtBDrbYoilDdmNEG7fKW7aM&m=juE_LVJk8AxwoV5bFLHu_Nwk0nwnFtYQrGJNYy7mhDOQ6-HfZMDrTGG-tVz5fmY0&s=Oez5zdU0jkAWMosbJGX6bSBdUGGZQlBXySX_5mN27C8&e=" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.opengatecollaboration.org_mailman_listinfo_gate-2Dusers&d=DwIGaQ&c=XYzUhXBD2cD-CornpT4QE19xOJBbRy-TBPLK0X9U2o8&r=lfXR69GFfS7NT-Wp5HZqbtBDrbYoilDdmNEG7fKW7aM&m=juE_LVJk8AxwoV5bFLHu_Nwk0nwnFtYQrGJNYy7mhDOQ6-HfZMDrTGG-tVz5fmY0&s=Oez5zdU0jkAWMosbJGX6bSBdUGGZQlBXySX_5mN27C8&e=</a><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class=""></span></div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>