<div dir="ltr"><div><div><div>Hello Parisa,<br><br></div>Thank you for your response.<br>The name of the region is same everywhere (you can find the phantom and the source part of my macro below), however, this issue (concerning the name of the region) disappears when I use "/gate/run/initialize" command before defining the source part. I do not get the error message any more about the name of the regions, instead the regions are accepted as forbidden regions, as shown in the following commands:<br><br><div style="margin-left:80px"><i>"Confirming activity forbidden in volume 'coldArea_phys'...</i><br><i>Volume coldArea_phys exists</i><br><i>Activity forbidden in volume 'coldArea_phys' confirmed</i><br><i><br>Confirming activity forbidden in volume 'coldArea_1_phys'...</i><br><i>Volume coldArea_1_phys exists</i><br><i>Activity forbidden in volume 'coldArea_1_phys' confirmed"</i><br></div> <br><br></div>But then it leads to empty output root files. Can anyone tell me where I am going wrong or any suggestions on how can I get rid of this issue?<br><br></div>#========PHANTOM============<br><br><div>/gate/world/daughters/name phantom<br>/gate/world/daughters/insert cylinder<br>/gate/phantom/vis/forceWireframe<br>/gate/phantom/vis/setColor grey<br>/gate/phantom/geometry/setRmin 0.0 mm<br>/gate/phantom/geometry/setRmax 20.0 mm<br>/gate/phantom/geometry/setHeight 2.3 mm<br>/gate/phantom/placement/setTranslation 0.0 0.0 0.0 mm<br>/gate/phantom/setMaterial Water<br>/gate/phantom/attachPhantomSD<br><br>/gate/world/daughters/name coldArea<br>/gate/world/daughters/insert cylinder<br>/gate/coldArea/vis/forceWireframe<br>/gate/coldArea/vis/setColor green<br>/gate/coldArea/geometry/setRmin 0.0 mm<br>/gate/coldArea/geometry/setRmax 2.0 mm<br>/gate/coldArea/geometry/setHeight 2.3 mm<br>/gate/coldArea/placement/setTranslation -10.0 0.0 0.0 mm<br>/gate/coldArea/setMaterial Water<br>/gate/coldArea/attachPhantomSD<br><br>/gate/world/daughters/name coldArea_1<br>/gate/world/daughters/insert cylinder<br>/gate/coldArea_1/vis/forceWireframe<br>/gate/coldArea_1/vis/setColor green<br>/gate/coldArea_1/geometry/setRmin 0.0 mm<br>/gate/coldArea_1/geometry/setRmax 2.5 mm<br>/gate/coldArea_1/geometry/setHeight 2.3 mm<br>/gate/coldArea_1/placement/setTranslation 14.0 0.0 0.0 mm<br>/gate/coldArea_1/setMaterial Water<br>/gate/coldArea_1/attachPhantomSD<br><br></div><div>#===========Initialization=============<br><br></div><div>/gate/run/initialize<br><br></div><div>#========Source===================<br><br>/gate/source/addSource twogamma<br>/gate/source/twogamma/setActivity 2000000. becquerel<br>/gate/source/twogamma/setType backtoback<br>/gate/source/twogamma/gps/particle gamma<br>/gate/source/twogamma/gps/energytype Mono<br>/gate/source/twogamma/gps/monoenergy 0.511 MeV<br>/gate/source/twogamma/gps/centre 0.0 0.0 0.0 mm<br><br>/gate/source/twogamma/gps/type Volume<br><br>/gate/source/twogamma/gps/shape Cylinder<br>/gate/source/twogamma/gps/radius 20. mm<br>/gate/source/twogamma/gps/halfz 1.15 mm<br><br>/gate/source/twogamma/gps/angtype iso<br>/gate/source/twogamma/gps/Forbid coldArea<br>/gate/source/twogamma/gps/Forbid coldArea_1 <br><br>/gate/source/twogamma/dump 2<br><br><br></div><div>Thank you.<br><br></div><div>Regards,<br></div><div>Kajal<br></div><div><br><br></div><div><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 14, 2018 at 3:09 PM, Parisa Khateri <span dir="ltr"><<a href="mailto:parisa.khateri@cern.ch" target="_blank">parisa.khateri@cern.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt">Hi Kajal,<br>
<br>
You do it correctly. I think the problem is that you don't write the name of area completely.<br>
Try this:<br>
/gate/source/NAME/gps/Forbid coldArea_phys<br>
<br>
Cheers,<br>
Parisa<br>
<div style="font-family:Times New Roman;color:#000000;font-size:16px">
<hr>
<div id="m_-7150706634621471145divRpF556970" style="direction:ltr"><font size="2" face="Tahoma" color="#000000"><b>From:</b> Gate-users [<a href="mailto:gate-users-bounces@lists.opengatecollaboration.org" target="_blank">gate-users-bounces@lists.<wbr>opengatecollaboration.org</a>] on behalf of Kajal Aggarwal [<a href="mailto:kajal792@gmail.com" target="_blank">kajal792@gmail.com</a>]<br>
<b>Sent:</b> 14 February 2018 12:33<br>
<b>To:</b> <a href="mailto:gate-users@lists.opengatecollaboration.org" target="_blank">gate-users@lists.<wbr>opengatecollaboration.org</a><br>
<b>Subject:</b> [Gate-users] Usage of Forbid command in defining cold area<br>
</font><br>
</div><div><div class="h5">
<div></div>
<div>
<div dir="ltr">Hello everyone,
<div><br>
</div>
<div>I am trying to define a cold area inside a phantom. However, when I use the Forbid command</div>
<div><br>
</div>
<div>"/gate/source/NAME/gps/Forbid coldArea"<br clear="all">
<div><br>
</div>
<div>I get an error message **** Error: Volume does not exist ****</div>
<div>Ignoring forbid condition for volume 'coldArea_phys'</div>
<div><br>
</div>
<div>If I write the command "/gate/run/initialize" before the source part, I do not get the above error, but the output root file remains empty.</div>
<div><br>
</div>
<div>Does anyone knows how can I define the cold source using forbid command?</div>
<div><br>
</div>
-- <br>
<div class="m_-7150706634621471145gmail_signature">
<div dir="ltr">
<div>Thanking you.</div>
<div> </div>
<div>Yours sincerely,</div>
<div>Kajal Aggarwal</div>
</div>
</div>
</div>
</div>
</div>
</div></div></div>
</div>
</div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Thanking you.</div><div> </div><div>Yours sincerely,</div><div>Kajal Aggarwal</div></div></div>
</div>