<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} .ms-cui-menu {background-color:#ffffff;border:1px rgb(166, 166, 166) solid;font-family:"Segoe UI","Segoe WP","Segoe UI WPC",Tahoma,Arial,sans-serif;font-size:10pt;color:rgb(51, 51, 51);} .ms-cui-menusection-title {display:none;} .ms-cui-ctl {vertical-align:text-top;text-decoration:none;color:rgb(51, 51, 51);} .ms-cui-ctl-on {background-color:rgb(205, 230, 247);opacity: 0.8;} .ms-cui-img-cont-float {display:inline-block;margin-top:2px} .ms-cui-smenu-inner {padding-top:0px;} .ms-owa-paste-option-icon {margin: 0px 6px 0px 6px;vertical-align:middle!important;padding-bottom: 2px;display:inline-block;} .ms-rtePasteFlyout-option:hover {background-color:rgb(205, 230, 247) !important;opacity:1 !important;} .ms-rtePasteFlyout-option {padding:8px 4px 8px 4px;outline:none;} .ms-cui-menusection {float:left; width:85px;height:24px;overflow:hidden}.wf {speak:none; font-weight:normal; font-variant:normal; text-transform:none; -webkit-font-smoothing:antialiased; vertical-align:middle; display:inline-block;}.wf-family-owa {font-family:'o365Icons'}@font-face {  font-family:'o365IconsIE8';  src:url('prem/15.0.995.34/resources/styles/office365icons.ie8.eot?#iefix') format('embedded-opentype'),         url('prem/15.0.995.34/resources/styles/office365icons.ie8.woff') format('woff'),         url('prem/15.0.995.34/resources/styles/office365icons.ie8.ttf') format('truetype');  font-weight:normal;  font-style:normal;}@font-face {  font-family:'o365IconsMouse';  src:url('prem/15.0.995.34/resources/styles/office365icons.mouse.eot?#iefix') format('embedded-opentype'),         url('prem/15.0.995.34/resources/styles/office365icons.mouse.woff') format('woff'),         url('prem/15.0.995.34/resources/styles/office365icons.mouse.ttf') format('truetype');  font-weight:normal;  font-style:normal;}.wf-family-owa {font-family:'o365IconsMouse'}.ie8 .wf-family-owa {font-family:'o365IconsIE8'}.ie8 .wf-owa-play-large:before {content:'\e254';}.notIE8 .wf-owa-play-large:before {content:'\e054';}.ie8 .wf-owa-play-large {color:#FFFFFF/*$WFWhiteColor*/;}.notIE8 .wf-owa-play-large {border-color:#FFFFFF/*$WFWhiteColor*/; width:1.4em; height:1.4em; border-width:.1em; border-style:solid; border-radius:.8em; text-align:center; box-sizing:border-box; -moz-box-sizing:border-box; padding:0.1em; color:#FFFFFF/*$WFWhiteColor*/;}.ie8 .wf-size-play-large {width:40px; height:40px; font-size:30px}.notIE8 .wf-size-play-large {width:40px; height:40px; font-size:30px}.notIE8 .wf-owa-triangle-down-small:before {content:'\e052';}.ie8 .wf-owa-triangle-down-small:before { content:'\e052';}.ie8 .wf-owa-triangle-down-small {color:#666666/*$WFGreyColor*/;}.wf-size-x20 {font-size: 20px!important;}
<!--
p
        {margin-top:0;
        margin-bottom:0}
.ms-cui-menu
        {background-color:#ffffff;
        border:1px rgb(166,166,166) solid;
        font-family:"Segoe UI","Segoe WP","Segoe UI WPC",Tahoma,Arial,sans-serif;
        font-size:10pt;
        color:rgb(51,51,51)}
.ms-cui-ctl
        {vertical-align:text-top;
        text-decoration:none;
        color:rgb(51,51,51)}
.ms-cui-ctl-on
        {background-color:rgb(205,230,247)}
.ms-cui-img-cont-float
        {display:inline-block;
        margin-top:2px}
.ms-cui-smenu-inner
        {padding-top:0px}
.ms-owa-paste-option-icon
        {margin:0px 6px 0px 6px;
        vertical-align:middle!important;
        padding-bottom:2px;
        display:inline-block}
.ms-rtePasteFlyout-option
        {padding:8px 4px 8px 4px;
        outline:none}
.ms-cui-menusection
        {float:left;
        width:85px;
        height:24px;
        overflow:hidden}
.wf
        {speak:none;
        font-weight:normal;
        font-variant:normal;
        text-transform:none;
        vertical-align:middle;
        display:inline-block}
.wf-family-owa
        {font-family:'o365Icons'}
@font-face
        {font-family:'o365IconsIE8';
        font-weight:normal;
        font-style:normal}
@font-face
        {font-family:'o365IconsMouse';
        font-weight:normal;
        font-style:normal}
.wf-family-owa
        {font-family:'o365IconsMouse'}
.ie8 .wf-family-owa
        {font-family:'o365IconsIE8'}
.notIE8 .wf-owa-play-large
        {border-color:#FFFFFF;
        width:1.4em;
        height:1.4em;
        border-width:.1em;
        border-style:solid;
        text-align:center;
        padding:0.1em;
        color:#FFFFFF}
.ie8 .wf-size-play-large
        {width:40px;
        height:40px;
        font-size:30px}
.notIE8 .wf-size-play-large
        {width:40px;
        height:40px;
        font-size:30px}
.wf-size-x20
        {font-size:20px!important}
-->
--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p><font size="2">Hi again, </font></p>
<p><br>
<font size="2"></font></p>
<p><font size="2">FYI: the solution to my previous question is quite simple. Using the following parameterization prompt:
</font></p>
<p><font size="2"><br>
</font></p>
<p><font size="2">>> Gate -a [outputname,SPECT_voxsource_time001] [ta,0] [tb,1] SPECT_quad_voxsource.mac
</font></p>
<p><br>
<font size="2"></font></p>
<p><font size="2">Gate won't load the second and third (and so on) parameters. The issue seems simply to be that you cannot use spaces between the different defined paramters (as defined in the Gate --help, or in the user guide). Thus, prompting the above correctly
 it should look like:</font></p>
<p><br>
<font size="2"></font></p>
<p><font size="2"> <font size="2">>> Gate -a [outputname,SPECT_voxsource_time001][ta,0][tb,1] SPECT_quad_voxsource.mac</font></font></p>
<p><br>
<font size="2"><font size="2"></font></font></p>
<p><font size="2"><font size="2">that is without any spacing between [par1,name1][par2,name2][...] etc. </font></font></p>
<p><br>
<font size="2"><font size="2"></font></font></p>
<p><font size="2"><font size="2">Apologies if this only hold for my local compilation, but anyhow thought I'd share this.</font></font></p>
<p><br>
<font size="2"><font size="2"></font></font></p>
<p><font size="2"><font size="2">/David </font><br>
</font></p>
<div style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif" dir="ltr">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>Från:</b> gate-users-bounces@lists.opengatecollaboration.org <gate-users-bounces@lists.opengatecollaboration.org> för David Larsson <david.larsson@sth.kth.se><br>
<b>Skickat:</b> den 20 mars 2015 22:43<br>
<b>Till:</b> gate-users@lists.opengatecollaboration.org<br>
<b>Ämne:</b> [Gate-users] Problem parameter alias - command not found</font>
<div> </div>
</div>
<div>
<p><font size="2">Dear Gaters, </font></p>
<p><br>
<font size="2"></font></p>
<p><font size="2">I want to launch some parameterized simulations but even though I'm following the user guide instructions there seem to still be some issues with the callback. The parameterisation deals mainly with the output part of my macro defined as:</font></p>
<p><br>
<font size="2"></font></p>
<p><font size="2"># OUTPUT <br>
/gate/output/ascii/enable<br>
/gate/output/ascii/setFileName     {outputname}<br>
/gate/output/ascii/setOutFileHitsFlag 1<br>
/gate/output/ascii/setOutFileSinglesFlag 0<br>
<br>
/gate/application/setTimeSlice     1  s<br>
/gate/application/setTimeStart     {ta} s<br>
/gate/application/setTimeStop      {tb}  s</font></p>
<p><br>
<font size="2"></font></p>
<p><font size="2">From this, I have a command-line/shell script call on the form of:</font></p>
<p><br>
<font size="2"></font></p>
<p><font size="2">>> Gate -a [outputname,SPECT_voxsource_time001] [ta,0] [tb,1] SPECT_quad_voxsource.mac<br>
</font></p>
<p><br>
<font size="2">and so on. However, when running the above I get an error message indicating that
</font></p>
<p><br>
<font size="2"></font></p>
<p><font size="2">Alias <ta> not found -- command ignored</font></p>
<p><font size="2">***** Illegal parameter (0) </gate/applications/setTimeStart {ta} s> ******</font></p>
<p><br>
<font size="2"></font></p>
<p><font size="2">Does anyone who's familiar with parameterized macros know what I'm doing incorrectly? FYI I'm running Gate v_7.0 with the corresponding recommended versions Geant4/CLHEP, etc.</font></p>
<p><br>
<font size="2"></font></p>
<p><font size="2">Thanks for your help,</font></p>
<p><br>
<font size="2"></font></p>
<p><font size="2">Best regards,</font></p>
<p><br>
<font size="2"></font></p>
<p><font size="2">David<br>
</font></p>
<div id="Signature">
<div style="font-family:Tahoma; font-size:13px"><span lang="sv"></span></div>
</div>
</div>
</div>
</body>
</html>