<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 Gate Users,<div class=""><br class=""></div><div class="">I am trying to understand the content of the ROOT file. </div><div class="">I have the following lines that are meant to specify what will be stored in it.</div><div class=""><br class=""></div><div class=""><pre style="background-color: rgb(255, 255, 255); color: rgb(74, 92, 110); font-family: "JetBrains Mono", monospace; font-size: 9.8pt;" class="">#==================================================<br class=""># OUTPUT<br class="">#==================================================<br class="">/gate/output/root/enable<br class="">/gate/output/root/setFileName TrackerHits<br class="">/gate/output/root/setRootHitFlag 1<br class="">/gate/output/root/setRootSinglesFlag 0<br class="">#/gate/output/root/setRootCoincidencesFlag 0<br class="">/gate/output/root/setRootNtupleFlag 0<br class="">/gate/output/root/setRootOpticalFlag 0<br class=""></pre><div class="">I commented out the CoincidencesFlag because it gives me an error.</div></div><div class=""><br class=""></div><div class="">My goal is to store "Hits" produced in a silicon sensor (see definition below).</div><div class=""><br class=""></div><div class=""><pre style="background-color: rgb(255, 255, 255); color: rgb(74, 92, 110); font-family: "JetBrains Mono", monospace; font-size: 9.8pt;" class=""><pre style="font-family: "JetBrains Mono", monospace; font-size: 9.8pt;" class="">#system<br class="">/gate/world/daughters/name scanner<br class="">/gate/world/daughters/insert box<br class="">/gate/scanner/geometry/setXLength 20 cm<br class="">/gate/scanner/geometry/setYLength 1 mm<br class="">/gate/scanner/geometry/setZLength 20 cm<br class="">/gate/scanner/placement/setTranslation 0.0 0.0 0.0 cm<br class="">/gate/scanner/setMaterial Air</pre></pre><pre style="background-color: rgb(255, 255, 255); color: rgb(74, 92, 110); font-family: "JetBrains Mono", monospace; font-size: 9.8pt;" class="">#sensor<br class="">/gate/scanner/daughters/name sensor1<br class="">/gate/scanner/daughters/insert box<br class="">/gate/sensor1/geometry/setXLength 20 cm<br class="">/gate/sensor1/geometry/setYLength 0.174 mm<br class="">/gate/sensor1/geometry/setZLength 20 cm<br class="">/gate/sensor1/setMaterial Silicon<br class="">/gate/sensor1/placement/setTranslation 0.0 0.0 0.0 cm<br class="">/gate/systems/scanner/level1/attach sensor1<br class="">/gate/sensor1/attachCrystalSD</pre><div class="">When I open my file with uproot I see the following objects inside:</div></div><div class=""><pre class="">['Hits;12',
'Hits;11',
'latest_event_ID;1',
'total_nb_primaries;1',
'pet_data;1',
'OpticalData;1']</pre><div class="">Here are my questions:</div></div><div class=""><div class=""><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">1. In the "Hits" tree, for each entry (event), I get 10 subentries (</span><font color="#000000" class="">sub-events) (see below). Each subentry has identical info with exception of the volumeID. The volumeID have values 0, 3 and -1.</font></div><div class=""><font color="#000000" class="">Does someone know:</font></div><div class=""><font color="#000000" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>- Why there are so many subentries? </font></div><div class=""><font color="#000000" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>- What is the meaning of the volumeID? I have only one sensor, shouldn't that mean only one volume?</font></div></div><div class="">2. Why is there two "Hits" trees? Comparing them tells me that they are identical.</div><div class="">3. Why the cycle numbers of the trees have such high numbers? (12 and 11) Are they re-written many times? What determines the cycle numbers?</div><div class="">4. Even though I set <span style="color: rgb(74, 92, 110); font-family: "JetBrains Mono", monospace; font-size: 9.8pt; background-color: rgb(255, 255, 255);" class="">setRootOpticalFlag 0</span><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""> </span><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">I</span><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""> still get OpticalData tree, why is that?</span></div><div class=""><font color="#000000" class="">5. One more thing I failed to understand after reading the manual. What is the meaning of the "level" in relation to the sensor? I randomly used "level1" but I am not sure if that was a correct choice. </font></div><div class=""><font color="#000000" class=""><br class=""></font></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="5" valign="top" class="">0</th>
<th class="">0</th>
<td class="">2212</td>
<td class="">1</td>
<td class="">0</td>
<td class="">8.399597e-10</td>
<td class="">8.399597e-10</td>
<td class="">0.0655</td>
<td class="">0.174008</td>
<td class="">250.097992</td>
<td class="">-3.211607</td>
<td class="">-0.087</td>
<td class="">...</td>
<td class="">0.0</td>
<td class="">0.0</td>
<td class="">0</td>
<td class="">Transportation</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="">8.399597e-10</td>
<td class="">8.399597e-10</td>
<td class="">0.0655</td>
<td class="">0.174008</td>
<td class="">250.097992</td>
<td class="">-3.211607</td>
<td class="">-0.087</td>
<td class="">...</td>
<td class="">0.0</td>
<td class="">0.0</td>
<td class="">3</td>
<td class="">Transportation</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="">8.399597e-10</td>
<td class="">8.399597e-10</td>
<td class="">0.0655</td>
<td class="">0.174008</td>
<td class="">250.097992</td>
<td class="">-3.211607</td>
<td class="">-0.087</td>
<td class="">...</td>
<td class="">0.0</td>
<td class="">0.0</td>
<td class="">0</td>
<td class="">Transportation</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="">8.399597e-10</td>
<td class="">8.399597e-10</td>
<td class="">0.0655</td>
<td class="">0.174008</td>
<td class="">250.097992</td>
<td class="">-3.211607</td>
<td class="">-0.087</td>
<td class="">...</td>
<td class="">0.0</td>
<td class="">0.0</td>
<td class="">-1</td>
<td class="">Transportation</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="">8.399597e-10</td>
<td class="">8.399597e-10</td>
<td class="">0.0655</td>
<td class="">0.174008</td>
<td class="">250.097992</td>
<td class="">-3.211607</td>
<td class="">-0.087</td>
<td class="">...</td>
<td class="">0.0</td>
<td class="">0.0</td>
<td class="">-1</td>
<td class="">Transportation</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></tbody></table><div class=""><br class=""></div></div><div class=""><br class=""></div><div class="">Sorry for the long email.</div><div class=""><br class=""></div><div class="">Cheers,</div><div class=""><br class=""></div><div class="">Dmitry</div><div class=""><br class=""></div></body></html>