<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title></title>
</head>
<body style="font-family:Arial;font-size:14px">
<p><br>
Hello<br>
<br>
Thanks for your response. I have tried both ways and it does not work in any circumstance. These are the commands I am using:<br>
<br>
/gate/physics/addProcess            OpticalBoundary<br>
#/gate/physics/addProcess            OpticalMIE<br>
#/gate/physics/addProcess            OpticalWLS<br>
/gate/physics/addProcess            OpticalAbsorption<br>
/gate/physics/addProcess            OpticalRayleigh<br>
/gate/physics/addProcess            Scintillation<br>
<br>
/gate/physics/addPhysicsList   emstandard_opt4<br>
<br>
/gate/crystal/surfaces/name            detection<br>
/gate/crystal/surfaces/insert            world<br>
/gate/crystal/surfaces/detection/setSurface    perfect_apd<br>
<br>
/gate/level1/surfaces/name            abs<br>
/gate/level1/surfaces/insert            world<br>
/gate/level1/surfaces/abs/setSurface    ESR<br>
<br>
/gate/level2/surfaces/name            abs2<br>
/gate/level2/surfaces/insert            world<br>
/gate/level2/surfaces/abs2/setSurface    ESR<br>
<br>
But it seems that the second line of the surface definition is not recognized<br>
<br>
Thanks<br>
<br>
Gabriel<br>
<br>
<br>
<br>
Quoting Pedro Correia <<a href="mailto:pmcorreia@ua.pt">pmcorreia@ua.pt</a>>:</p>
<blockquote style="border-left:2px solid blue;margin-left:2px;padding-left:12px;" type="cite">
<p>Hi Gabriel<br>
<br>
Maybe you are defining the surfaces before defining the physical processes? It happened to me in the past and the output error was similar.<br>
<br>
Best Regards<br>
<br>
Pedro Correia<br>
PhD, Researcher<br>
Physics Department, University of Aveiro<br>
Campus Universitário de Santiago<br>
3810-193 Aveiro, Portugal<br></p>
<blockquote style="border-left:2px solid blue;margin-left:2px;padding-left:12px;" type="cite">
<p>No dia 28/10/2020, às 14:29, Gabriel Cañizares Ledo <<a href="mailto:gacale@i3m.upv.es">gacale@i3m.upv.es</a>> escreveu:<br>
<br>
<br>
Dear Gate users<br>
<br>
I have installed Gate 9.0 version in my PC (with the geant4.10.06.p1 patch). I am interested to run a simulation that works with Optical Photons. Even though I have activated flag for optical photons during the compiling process, Gate does not allow me to introduce surfaces command (that I have tested in a previous Gate version). The error that it send to me is:<br>
<br>
[G4-cerr] ***** Illegal application state </gate/crystal/surfaces/insert scanner> *****<br>
<br>
If anyone can help me with this problem I will be very grateful<br>
<br>
Regards<br>
<br>
Gabriel<br>
<br>
<br>
_______________________________________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration">Gate-users@lists.opengatecollaboration</a>.<a href="orghttp://lists.opengatecollaboration.org/mailman/listinfo/gate-users" target="_blank">orghttp://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a></p>
</blockquote>
<br>
 </blockquote>
</body>
</html>