<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="">Hi gate-users,<div class=""><br class=""></div><div class="">I was wondering if someone on the forum knows the answer to my stumbling point.</div><div class=""><br class=""></div><div class="">The geometry I have is very simple:</div><div class=""><br class=""></div><div class="">world -> phantom (several layers)</div><div class="">world -> system (scanner) -> sensor (crystalSD)</div><div class=""><br class=""></div><div class="">I let Gate simulate a beam of 10000 protons, which first goes through the phantom, and then hits my system, where I am recording the "Hits" information. My question is regarding the "Hits" tree I get in the root file. Below is the top 10 entries of that tree after I converted it to pandas DataFrame. As you see, the entry has several subentries. All subentries have exactly the same information except for the volumeID column. Only one volumeID is unique. My questions are: </div><div class="">1) Why is there so much redundant information stored? </div><div class="">2) Why does the unique volumeID (in the example below it is 4) change depending on the number of the phantom layers I put in front of the system?</div><div class=""><br class=""></div><div class="">I am using Gate version I got from GitHub:</div><div class=""><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(252, 253, 85);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">commit 1b0cf2066cb682177095cd32d63c605130d5bcc0 (</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(78, 240, 255);" class=""><b class="">HEAD -> </b></span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(87, 255, 63);" class=""><b class="">develop</b></span><span style="font-variant-ligatures: no-common-ligatures" class="">, </span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(255, 76, 56);" class=""><b class="">origin/develop</b></span><span style="font-variant-ligatures: no-common-ligatures" class="">, </span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(255, 76, 56);" class=""><b class="">origin/HEAD</b></span><span style="font-variant-ligatures: no-common-ligatures" class="">)</span></div></div><div class="">I appreciate any help.</div><div class=""><br class=""></div><div class="">Cheers,</div><div class=""><br class=""></div><div class="">Dmitry</div><div class=""><div class=""><br class=""></div><div class=""><table class="dataframe" border="1"><thead class=""><tr style="text-align: right;" class=""><th class=""></th>
      <th class=""></th>
      <th class="">PDGEncoding</th>
      <th class="">trackID</th>
      <th class="">parentID</th>
      <th class="">trackLocalTime</th>
      <th class="">time</th>
      <th class="">edep</th>
      <th class="">stepLength</th>
      <th class="">trackLength</th>
      <th class="">posX</th>
      <th class="">posY</th>
      <th class="">...</th>
      <th class="">axialPos</th>
      <th class="">rotationAngle</th>
      <th class="">volumeID</th>
      <th class="">processName</th>
      <th class="">comptVolName</th>
      <th class="">RayleighVolName</th>
      <th class="">septalNb</th>
      <th class="">sourceType</th>
      <th class="">decayType</th>
      <th class="">gammaType</th>
    </tr>
    <tr class="">
      <th class="">entry</th>
      <th class="">subentry</th>
      <th class=""></th>
      <th class=""></th>
      <th class=""></th>
      <th class=""></th>
      <th class=""></th>
      <th class=""></th>
      <th class=""></th>
      <th class=""></th>
      <th class=""></th>
      <th class=""></th>
      <th class=""></th>
      <th class=""></th>
      <th class=""></th>
      <th class=""></th>
      <th class=""></th>
      <th class=""></th>
      <th class=""></th>
      <th class=""></th>
      <th class=""></th>
      <th class=""></th>
      <th class=""></th>
    </tr>
  </thead>
  <tbody class="">
    <tr class="">
      <th rowspan="10" valign="top" class="">0</th>
      <th class="">0</th>
      <td class="">2212</td>
      <td class="">1</td>
      <td class="">0</td>
      <td class="">1.907216e-09</td>
      <td class="">1.907216e-09</td>
      <td class="">0.003591</td>
      <td class="">0.007155</td>
      <td class="">349.921783</td>
      <td class="">-3.058881</td>
      <td class="">-99.907158</td>
      <td class="">...</td>
      <td class="">0.0</td>
      <td class="">0.0</td>
      <td class="">0</td>
      <td class="">protonInelastic</td>
      <td class="">NULL</td>
      <td class="">NULL</td>
      <td class="">0</td>
      <td class="">0</td>
      <td class="">0</td>
      <td class="">0</td>
    </tr>
    <tr class="">
      <th class="">1</th>
      <td class="">2212</td>
      <td class="">1</td>
      <td class="">0</td>
      <td class="">1.907216e-09</td>
      <td class="">1.907216e-09</td>
      <td class="">0.003591</td>
      <td class="">0.007155</td>
      <td class="">349.921783</td>
      <td class="">-3.058881</td>
      <td class="">-99.907158</td>
      <td class="">...</td>
      <td class="">0.0</td>
      <td class="">0.0</td>
      <td class="">4</td>
      <td class="">protonInelastic</td>
      <td class="">NULL</td>
      <td class="">NULL</td>
      <td class="">0</td>
      <td class="">0</td>
      <td class="">0</td>
      <td class="">0</td>
    </tr>
    <tr class="">
      <th class="">2</th>
      <td class="">2212</td>
      <td class="">1</td>
      <td class="">0</td>
      <td class="">1.907216e-09</td>
      <td class="">1.907216e-09</td>
      <td class="">0.003591</td>
      <td class="">0.007155</td>
      <td class="">349.921783</td>
      <td class="">-3.058881</td>
      <td class="">-99.907158</td>
      <td class="">...</td>
      <td class="">0.0</td>
      <td class="">0.0</td>
      <td class="">0</td>
      <td class="">protonInelastic</td>
      <td class="">NULL</td>
      <td class="">NULL</td>
      <td class="">0</td>
      <td class="">0</td>
      <td class="">0</td>
      <td class="">0</td>
    </tr>
    <tr class="">
      <th class="">3</th>
      <td class="">2212</td>
      <td class="">1</td>
      <td class="">0</td>
      <td class="">1.907216e-09</td>
      <td class="">1.907216e-09</td>
      <td class="">0.003591</td>
      <td class="">0.007155</td>
      <td class="">349.921783</td>
      <td class="">-3.058881</td>
      <td class="">-99.907158</td>
      <td class="">...</td>
      <td class="">0.0</td>
      <td class="">0.0</td>
      <td class="">-1</td>
      <td class="">protonInelastic</td>
      <td class="">NULL</td>
      <td class="">NULL</td>
      <td class="">0</td>
      <td class="">0</td>
      <td class="">0</td>
      <td class="">0</td>
    </tr>
    <tr class="">
      <th class="">4</th>
      <td class="">2212</td>
      <td class="">1</td>
      <td class="">0</td>
      <td class="">1.907216e-09</td>
      <td class="">1.907216e-09</td>
      <td class="">0.003591</td>
      <td class="">0.007155</td>
      <td class="">349.921783</td>
      <td class="">-3.058881</td>
      <td class="">-99.907158</td>
      <td class="">...</td>
      <td class="">0.0</td>
      <td class="">0.0</td>
      <td class="">-1</td>
      <td class="">protonInelastic</td>
      <td class="">NULL</td>
      <td class="">NULL</td>
      <td class="">0</td>
      <td class="">0</td>
      <td class="">0</td>
      <td class="">0</td>
    </tr>
    <tr class="">
      <th class="">5</th>
      <td class="">2212</td>
      <td class="">1</td>
      <td class="">0</td>
      <td class="">1.907216e-09</td>
      <td class="">1.907216e-09</td>
      <td class="">0.003591</td>
      <td class="">0.007155</td>
      <td class="">349.921783</td>
      <td class="">-3.058881</td>
      <td class="">-99.907158</td>
      <td class="">...</td>
      <td class="">0.0</td>
      <td class="">0.0</td>
      <td class="">-1</td>
      <td class="">protonInelastic</td>
      <td class="">NULL</td>
      <td class="">NULL</td>
      <td class="">0</td>
      <td class="">0</td>
      <td class="">0</td>
      <td class="">0</td>
    </tr>
    <tr class="">
      <th class="">6</th>
      <td class="">2212</td>
      <td class="">1</td>
      <td class="">0</td>
      <td class="">1.907216e-09</td>
      <td class="">1.907216e-09</td>
      <td class="">0.003591</td>
      <td class="">0.007155</td>
      <td class="">349.921783</td>
      <td class="">-3.058881</td>
      <td class="">-99.907158</td>
      <td class="">...</td>
      <td class="">0.0</td>
      <td class="">0.0</td>
      <td class="">-1</td>
      <td class="">protonInelastic</td>
      <td class="">NULL</td>
      <td class="">NULL</td>
      <td class="">0</td>
      <td class="">0</td>
      <td class="">0</td>
      <td class="">0</td>
    </tr>
    <tr class="">
      <th class="">7</th>
      <td class="">2212</td>
      <td class="">1</td>
      <td class="">0</td>
      <td class="">1.907216e-09</td>
      <td class="">1.907216e-09</td>
      <td class="">0.003591</td>
      <td class="">0.007155</td>
      <td class="">349.921783</td>
      <td class="">-3.058881</td>
      <td class="">-99.907158</td>
      <td class="">...</td>
      <td class="">0.0</td>
      <td class="">0.0</td>
      <td class="">-1</td>
      <td class="">protonInelastic</td>
      <td class="">NULL</td>
      <td class="">NULL</td>
      <td class="">0</td>
      <td class="">0</td>
      <td class="">0</td>
      <td class="">0</td>
    </tr>
    <tr class="">
      <th class="">8</th>
      <td class="">2212</td>
      <td class="">1</td>
      <td class="">0</td>
      <td class="">1.907216e-09</td>
      <td class="">1.907216e-09</td>
      <td class="">0.003591</td>
      <td class="">0.007155</td>
      <td class="">349.921783</td>
      <td class="">-3.058881</td>
      <td class="">-99.907158</td>
      <td class="">...</td>
      <td class="">0.0</td>
      <td class="">0.0</td>
      <td class="">-1</td>
      <td class="">protonInelastic</td>
      <td class="">NULL</td>
      <td class="">NULL</td>
      <td class="">0</td>
      <td class="">0</td>
      <td class="">0</td>
      <td class="">0</td>
    </tr>
    <tr class="">
      <th class="">9</th>
      <td class="">2212</td>
      <td class="">1</td>
      <td class="">0</td>
      <td class="">1.907216e-09</td>
      <td class="">1.907216e-09</td>
      <td class="">0.003591</td>
      <td class="">0.007155</td>
      <td class="">349.921783</td>
      <td class="">-3.058881</td>
      <td class="">-99.907158</td>
      <td class="">...</td>
      <td class="">0.0</td>
      <td class=""></td></tr></tbody></table><div class=""><br class=""></div></div><div class=""><br class=""></div><div class=""><br class="">
<br class=""></div></div></body></html>