<div dir="ltr">Hi everyone,<div><br></div><div>In remoll we often place identical detectors multiple times. We want to be able to refer to this in a scalable way. Remoll was developed with this in mind: we store the detector number in hit.det, and we store the copy of that detector in <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__hit.id&d=DwMFaQ&c=CJqEzB1piLOyyvZjb8YUQw&r=RGbHxpmdLzMkGaoGWP7cF25UhhAARxwPz_29XLSZfi4&m=GSPJIGBuX4sLAz_awolZpD0nBWFySyCKdBFhJipUT_rrRBQ3F85sSHBaIqMy6Kgh&s=LhjT7I8pxN8cGwHmt2oSa8kiDAIloUnY3_KKSsUafkc&e=">hit.id</a>. So, the first pion detector PMT would have hit.det == 8000 and <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__hit.id&d=DwMFaQ&c=CJqEzB1piLOyyvZjb8YUQw&r=RGbHxpmdLzMkGaoGWP7cF25UhhAARxwPz_29XLSZfi4&m=GSPJIGBuX4sLAz_awolZpD0nBWFySyCKdBFhJipUT_rrRBQ3F85sSHBaIqMy6Kgh&s=LhjT7I8pxN8cGwHmt2oSa8kiDAIloUnY3_KKSsUafkc&e=">hit.id</a> == 0, and so on through <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__hit.id&d=DwMFaQ&c=CJqEzB1piLOyyvZjb8YUQw&r=RGbHxpmdLzMkGaoGWP7cF25UhhAARxwPz_29XLSZfi4&m=GSPJIGBuX4sLAz_awolZpD0nBWFySyCKdBFhJipUT_rrRBQ3F85sSHBaIqMy6Kgh&s=LhjT7I8pxN8cGwHmt2oSa8kiDAIloUnY3_KKSsUafkc&e=">hit.id</a> == 27 for the last pion detector PMT.</div><div><br></div><div>Not all sensitive volumes (such as the PMT) are direct copies, though. In the case of theepion detector we don't copy the PMT itself 28 times. Instead, we copy the pion detector assembly 28 times. So, the copying happens a certain number of levels up from the actual sensitive volume. In this case we have to specify how many levels up we need to look for the copy number. In the case of the pion detector PMT that is 4 (where 0 would be if the PMT volume itself is copied).</div><div><br></div><div>The relevant PR to fix this behavior is at <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_JeffersonLab_remoll_pull_585&d=DwMFaQ&c=CJqEzB1piLOyyvZjb8YUQw&r=RGbHxpmdLzMkGaoGWP7cF25UhhAARxwPz_29XLSZfi4&m=GSPJIGBuX4sLAz_awolZpD0nBWFySyCKdBFhJipUT_rrRBQ3F85sSHBaIqMy6Kgh&s=WfGj66cWyU_KrFQHxDi_nTw8Na8v0e5BCgG2KcQ48_Y&e=">https://github.com/JeffersonLab/remoll/pull/585</a>. I didn't have the patience to run a simulation that generated hits in the pion detector, so consider this untested.<br></div><div><br></div><div><div>How do you determine the depth below the copying? The macro macros/runexample.mac prints the geometry structure like this:</div><div><span style="font-family:monospace"><font size="1"><span style="color:rgb(0,0,0)">logicMother_PV[1] logicMother 2 G4_AIR 943017 kg
</span><br> donutPionDetectorSector_physical_-1[36] donutPionDetectorSector_logical 1 G4_AIR 534.277 g <br> donutPionDetector_physical[442] pionDetectorLucite_logical 9 Air 532.119 g <br> pionDetectorLucitePlane_physical[443] pionDetectorLucitePlane_logical 0 Lucite 482.549 g [8001]
<br> pionDetectorLucitePlaneGlue_physical[444] pionDetectorLucitePlaneGlue_logical 0 Glue 1.41935 g <br> pionDetectorLuciteAirX_physical[445] pionDetectorLuciteAirX_logical 0 Air 0.232757 mg
<br> pionDetectorLuciteAirY_physical[446] pionDetectorLuciteAirY_logical 0 Air 1.04187 mg
<br> pionDetectorLuciteAirZ_physical[447] pionDetectorLuciteAirZ_logical 0 Air 0.383284 mg
<br> pionDetectorLuciteMylarX_physical[448] pionDetectorLuciteMylarX_logical 0 G4_MYLAR 243.545 mg [8030]
<br> pionDetectorLuciteMylarY_physical[449] pionDetectorLuciteMylarY_logical 0 G4_MYLAR 1.14098 g [8030]
<br> pionDetectorLuciteMylarZ_physical[450] pionDetectorLuciteMylarZ_logical 0 G4_MYLAR 391.61 mg [8030]
<br> pionDetectorLucitePMTHousing_physical[451] pionDetectorLucitePMTHousing_logical 2 G4_Al 46.2735 g <br> pionDetectorLucitePMTHousingTube_physical[452] pionDetectorLucitePMTHousingTube_logical 1 G4_Al 16.2638 g <br> pionDetectorLucitePMTHousingTubeInside_physical[453] pionDetectorLucitePMTHousingTubeInside_logical 0 G4_Galactic 3.09638e-21 mg [8020]
<br> pionDetectorLucitePMTWindow_physical[454] pionDetectorLucitePMTWindow_logical 1 G4_Al 2.73084 g <br> pionDetectorLucitePMTWindowDisk_physical[455] pionDetectorLucitePMTWindowDisk_logical 0 CsPhotocathode 2.15026 g [8000]</font><br></span><br></div><div>The indentation indicates the depth between [8000] and pionDetectorLucite_logical which is copied. But you may need to play around a bit with different values.<span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace"><br></span></div><div></div></div><div>Cheers,</div><div>Wouter<br clear="all"><div>--<br></div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Wouter Deconinck<span style="font-size:12.8px"> </span>(he/him) <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__www.name-2Dcoach.com_wouter-2Ddeconinck&d=DwMFaQ&c=CJqEzB1piLOyyvZjb8YUQw&r=RGbHxpmdLzMkGaoGWP7cF25UhhAARxwPz_29XLSZfi4&m=GSPJIGBuX4sLAz_awolZpD0nBWFySyCKdBFhJipUT_rrRBQ3F85sSHBaIqMy6Kgh&s=dg8VQkdTu4Z3O3WI74NjMrgOS2SsSe0s42bay4o90GY&e=" target="_blank">🕪</a><br></div><div dir="ltr">Associate Professor, University of Manitoba</div><div dir="ltr"><div>Office: 204 Allen, Phone: (204) 474-6206</div><div>Science makerspace consultation? <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__www.sci.umanitoba.ca_physics-2Dastronomy_resources_faculty-2Dof-2Dscience-2Dmaker-2Dspace_maker-2Dspace-2Dfabrication-2Dconsultation-2Drequest_&d=DwMFaQ&c=CJqEzB1piLOyyvZjb8YUQw&r=RGbHxpmdLzMkGaoGWP7cF25UhhAARxwPz_29XLSZfi4&m=GSPJIGBuX4sLAz_awolZpD0nBWFySyCKdBFhJipUT_rrRBQ3F85sSHBaIqMy6Kgh&s=ptD3Kss0CiWEeBVxtsAUNXtDaaKOxtV6lCC0IO5d9-c&e=" target="_blank">Intake form</a></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>