<div dir="ltr">Hi Dmitry,<div><br></div><div>Could you share your full geometry configuration and physics list setting? That will be easier for all Gaters to see what they could do to help.</div><div><br></div><div>And for your following questions, for example, question 5. It would be better to snapshot the part of the GATE manual you described in your question so we could know what exactly you talked about and help you.</div><div><br></div><div>Hope this helps!</div><div><br></div><div>Best,</div><div>Xinjie</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 3, 2021 at 8:41 AM Dmitry Hits <<a href="mailto:dmitry.hits@phys.ethz.ch">dmitry.hits@phys.ethz.ch</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;">Dear Gate Users,<div><br></div><div>I am trying to understand the content of the ROOT file. </div><div>I have the following lines that are meant to specify what will be stored in it.</div><div><br></div><div><pre style="background-color:rgb(255,255,255);color:rgb(74,92,110);font-family:"JetBrains Mono",monospace;font-size:9.8pt">#==================================================<br># OUTPUT<br>#==================================================<br>/gate/output/root/enable<br>/gate/output/root/setFileName TrackerHits<br>/gate/output/root/setRootHitFlag 1<br>/gate/output/root/setRootSinglesFlag 0<br>#/gate/output/root/setRootCoincidencesFlag 0<br>/gate/output/root/setRootNtupleFlag 0<br>/gate/output/root/setRootOpticalFlag 0<br></pre><div>I commented out the CoincidencesFlag because it gives me an error.</div></div><div><br></div><div>My goal is to store "Hits" produced in a silicon sensor (see definition below).</div><div><br></div><div><pre style="background-color:rgb(255,255,255);color:rgb(74,92,110);font-family:"JetBrains Mono",monospace;font-size:9.8pt"><pre style="font-family:"JetBrains Mono",monospace;font-size:9.8pt">#system<br>/gate/world/daughters/name scanner<br>/gate/world/daughters/insert box<br>/gate/scanner/geometry/setXLength 20 cm<br>/gate/scanner/geometry/setYLength 1 mm<br>/gate/scanner/geometry/setZLength 20 cm<br>/gate/scanner/placement/setTranslation 0.0 0.0 0.0 cm<br>/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">#sensor<br>/gate/scanner/daughters/name sensor1<br>/gate/scanner/daughters/insert box<br>/gate/sensor1/geometry/setXLength 20 cm<br>/gate/sensor1/geometry/setYLength 0.174 mm<br>/gate/sensor1/geometry/setZLength 20 cm<br>/gate/sensor1/setMaterial Silicon<br>/gate/sensor1/placement/setTranslation 0.0 0.0 0.0 cm<br>/gate/systems/scanner/level1/attach sensor1<br>/gate/sensor1/attachCrystalSD</pre><div>When I open my file with uproot I see the following objects inside:</div></div><div><pre>['Hits;12',
'Hits;11',
'latest_event_ID;1',
'total_nb_primaries;1',
'pet_data;1',
'OpticalData;1']</pre><div>Here are my questions:</div></div><div><div><span style="color:rgb(0,0,0)">1. In the "Hits" tree, for each entry (event), I get 10 subentries (</span><font color="#000000">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><font color="#000000">Does someone know:</font></div><div><font color="#000000"><span style="white-space:pre-wrap"> </span>- Why there are so many subentries? </font></div><div><font color="#000000"><span style="white-space:pre-wrap"> </span>- What is the meaning of the volumeID? I have only one sensor, shouldn't that mean only one volume?</font></div></div><div>2. Why is there two "Hits" trees? Comparing them tells me that they are identical.</div><div>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>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)">setRootOpticalFlag 0</span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(0,0,0)">I</span><span style="color:rgb(0,0,0)"> still get OpticalData tree, why is that?</span></div><div><font color="#000000">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><font color="#000000"><br></font></div><div><table border="1"><thead><tr style="text-align:right"><th></th>
<th></th>
<th>PDGEncoding</th>
<th>trackID</th>
<th>parentID</th>
<th>trackLocalTime</th>
<th>time</th>
<th>edep</th>
<th>stepLength</th>
<th>trackLength</th>
<th>posX</th>
<th>posY</th>
<th>...</th>
<th>axialPos</th>
<th>rotationAngle</th>
<th>volumeID</th>
<th>processName</th>
<th>comptVolName</th>
<th>RayleighVolName</th>
<th>septalNb</th>
<th>sourceType</th>
<th>decayType</th>
<th>gammaType</th>
</tr>
<tr>
<th>entry</th>
<th>subentry</th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<th rowspan="5" valign="top">0</th>
<th>0</th>
<td>2212</td>
<td>1</td>
<td>0</td>
<td>8.399597e-10</td>
<td>8.399597e-10</td>
<td>0.0655</td>
<td>0.174008</td>
<td>250.097992</td>
<td>-3.211607</td>
<td>-0.087</td>
<td>...</td>
<td>0.0</td>
<td>0.0</td>
<td>0</td>
<td>Transportation</td>
<td>NULL</td>
<td>NULL</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<th>1</th>
<td>2212</td>
<td>1</td>
<td>0</td>
<td>8.399597e-10</td>
<td>8.399597e-10</td>
<td>0.0655</td>
<td>0.174008</td>
<td>250.097992</td>
<td>-3.211607</td>
<td>-0.087</td>
<td>...</td>
<td>0.0</td>
<td>0.0</td>
<td>3</td>
<td>Transportation</td>
<td>NULL</td>
<td>NULL</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<th>2</th>
<td>2212</td>
<td>1</td>
<td>0</td>
<td>8.399597e-10</td>
<td>8.399597e-10</td>
<td>0.0655</td>
<td>0.174008</td>
<td>250.097992</td>
<td>-3.211607</td>
<td>-0.087</td>
<td>...</td>
<td>0.0</td>
<td>0.0</td>
<td>0</td>
<td>Transportation</td>
<td>NULL</td>
<td>NULL</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<th>3</th>
<td>2212</td>
<td>1</td>
<td>0</td>
<td>8.399597e-10</td>
<td>8.399597e-10</td>
<td>0.0655</td>
<td>0.174008</td>
<td>250.097992</td>
<td>-3.211607</td>
<td>-0.087</td>
<td>...</td>
<td>0.0</td>
<td>0.0</td>
<td>-1</td>
<td>Transportation</td>
<td>NULL</td>
<td>NULL</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<th>4</th>
<td>2212</td>
<td>1</td>
<td>0</td>
<td>8.399597e-10</td>
<td>8.399597e-10</td>
<td>0.0655</td>
<td>0.174008</td>
<td>250.097992</td>
<td>-3.211607</td>
<td>-0.087</td>
<td>...</td>
<td>0.0</td>
<td>0.0</td>
<td>-1</td>
<td>Transportation</td>
<td>NULL</td>
<td>NULL</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td></tr></tbody></table><div><br></div></div><div><br></div><div>Sorry for the long email.</div><div><br></div><div>Cheers,</div><div><br></div><div>Dmitry</div><div><br></div></div>_______________________________________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org" target="_blank">Gate-users@lists.opengatecollaboration.org</a><br>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" rel="noreferrer" target="_blank">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><b><font color="#000000">....................................................</font></b><br></div><div><b><span style="color:rgb(153,0,0);font-family:"arial black",sans-serif;font-size:x-small">Xinjie Cao</span></b><br></div><div><b><font size="1" face="arial black, sans-serif">M.E. / Ph.D. Candidate</font></b></div><div><b><font size="1" face="arial black, sans-serif">Research Project Assistant</font></b></div><div><b><font size="1" face="arial black, sans-serif">Department of Electrical and Computer Engineering & Radiology </font></b></div><div><b><font size="1" face="arial black, sans-serif">Novel Medical Imaging Technologies Lab</font></b></div><div><b><font size="1" face="arial black, sans-serif">Health Science Center Level 8</font></b></div><div><b><font size="1" face="arial black, sans-serif">Stony Brook, NY 11794-8460 </font></b></div><div><b><font size="1" face="arial black, sans-serif">Tel: +1 (631)202-9445</font></b></div><div><a href="https://you.stonybrook.edu/goldan/people/" target="_blank">you.stonybrook.edu/goldan/people/</a><b><font size="1" face="arial black, sans-serif"><br></font></b></div><div><font size="1" face="arial black, sans-serif"><b>email: </b><a href="mailto:xinjie.cao@stonybrook.edu" target="_blank"><b>xinjie.cao@stonybroo</b>k.edu</a></font></div><div><font size="1" face="arial black, sans-serif"><br></font></div><div><font size="1" face="arial black, sans-serif"> </font><img src="https://docs.google.com/uc?export=download&id=12iMPAuaMtpKRdkcmBleVsP6iWiM4wlm_&revid=0B_TLWOu4jP1eWnFFRW9qQXlicTY3ZTVzWnR5QkRVY3RRT3JVPQ" width="200" height="28"> <img src="https://drive.google.com/a/stonybrook.edu/uc?id=17TB1Ha3enD8HC5e_Ez238vpeBF92aCgH&export=download" width="200" height="33"></div><div><div><b><font color="#000000">....................................................</font></b></div><div>It is prohibited to distribute or publish the files attached to any other people unless you get permission from the writer himself. All rights reserved.</div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>