<div dir="ltr"><div>Hi everyone, <br><br>I'm trying to create a pinhole collimater. So far, I have everything set up well, but the orientation is wrong with the preexisting orientation of the camera. (i.e. the primary axis of the pinhole should be the normal of the pixel grid) <br><br>The code I have now is:</div><div><br>## Volume at the front of the spect device for the collimator<br><br>/gate/front/daughters/name                                                 collimator<br>/gate/front/daughters/insert                                        box<br>/gate/collimator/geometry/setXLength Â  Â  Â  Â  Â  Â 44. mm<br>/gate/collimator/geometry/setYLength Â  Â  Â  Â  Â  Â 11.14 mm<br>/gate/collimator/geometry/setZLength Â  Â  Â  Â  Â  Â 44. mm<br>/gate/collimator/placement/setTranslation Â  Â  Â  0. -0.2 0. mm<br>/gate/collimator/setMaterial Â  Â  Â  Â  Â  Â  Â  Â  Â  Â Air<br><br># Square of tungsten with correct thickness at the wider base (crystal side) <br>/gate/collimator/daughters/name Â  Â  Â  Â  Â  Â  Â base<br>/gate/collimator/daughters/insert Â  Â  Â  Â  Â  Â box<br>/gate/base/geometry/setXLength Â  Â                         44. mm<br>/gate/base/geometry/setYLength Â  Â  Â                  1 mm<br>/gate/base/geometry/setZLength Â  Â                       44. mm<br>/gate/base/placement/setTranslation            0. -0.2 0. mm<br>/gate/base/setMaterial Tungsten<br><br># Cone of tungsten for collimation<br>/gate/collimator/daughters/name Â  Â  Â  Â Tcone<br>/gate/collimator/daughters/insert Â  Â  Â cone<br>/gate/Tcone/geometry/setRmin1            Â  0 mm<br>/gate/Tcone/geometry/setRmax1                  Â  3 mm<br>/gate/Tcone/geometry/setRmin2                  Â  0 mm<br>/gate/Tcone/geometry/setRmax2                  Â  25 mm<br>/gate/Tcone/geometry/setHeight                Â  11.14 mm<br>/gate/Tcone/placement/setTranslation Â  Â  Â  0. -0.2 0. mm<br>/gate/Tcone/setMaterial Â  Â                          Â  Tungsten<br><br># Cone of Air within the cone of tungsten<br>/gate/Tcone/daughters/name Â  Â  Â  Â hole2<br>/gate/Tcone/daughters/insert Â  Â  cone<br>/gate/hole2/geometry/setRmin1 Â        0 mm<br>/gate/hole2/geometry/setRmax1 Â   2 mm<br>/gate/hole2/geometry/setRmin2 Â   0 mm<br>/gate/hole2/geometry/setRmax2 Â   24 mm<br>/gate/hole2/geometry/setHeight   11.14 mm<br>/gate/hole2/placement/setTranslation Â  Â  Â  0. -0.2 0. mm<br></div><div><br></div><div>So, basically, the hollow tungsten cone should be within the air volume allocate for the collimator. The primary axis of the cone is along the z direction though, so I get the following visualization:<br><br><div><img src="cid:ii_k0i4z4rx0" alt="image.png" width="322" height="253" style="margin-right: 0px;"><br>As you can see, the solid red cone (pinhole) is oriented along the z-axis, whereas the rest of the SPECT device is oriented along the y axis...<br><br>Things I've tried: <br>/gate/Tcone/placement/alignToY - This command just centers it along the y axis. Doesn't change the primary axis. <br>/gate/Tcone/placement/setRotationAxis + /gate/Tcone/placement/setRotationAngle - Also doesn't yield any helpful changes.<br><br>I'd appreciate any help! <br><br>Cheers!<br><br>Chris</div><br></div></div>