[Gate-users] GateMaterials.db ald /gate/phisics/ problems. please help.

David Sarrut David.Sarrut at creatis.insa-lyon.fr
Wed Jun 11 21:31:43 CEST 2014


thanks Mojca, The patch will also be integrated in Geant4 by the
developers.

For the physic, it is all in the wiki :
http://wiki.opengatecollaboration.org/index.php/Users_Guide_V7.0:Setting_up_the_physics#New_physics_list_mechanism

Use one line for select a phys list :

/gate/physics/addPhysicsList QGSP_BERT_EMV

See the list of available phys-list in the wiki or in search in Geant4
documentation.

Cuts can be set as usual :


/gate/physics/Electron/SetCutInRegion   patient 1 mm

etc ...

David



On Wed, Jun 11, 2014 at 8:05 PM, Michal Knap <michal.knap at gmail.com> wrote:

> Problem solved!
> Thanks to Moica
>
> All you need to do is to recompile Geant4.
>
>
> When you extract it, open the file source/interfaces/common/src/
> G4Qt.cc and add
>     setlocale (LC_NUMERIC, "C");
> to the same place as you see in
>
> http://trac.macports.org/browser/trunk/dports/science/geant4/files/patch-upstream-source-interfaces-common-src-G4Qt.cc.496.diff
>
> and then run make/make install again to rebuild geant4.
>
> Thans one more time to Moica.
>
> Can anybody tell me how set up phisics in Gate v7.0? I found some wiki
> link but still don't know how to do this.
> Thanks in advance.
>
> Z wyrazami szacunku
> Michał Knap
>
>
> 2014-06-08 17:27 GMT+02:00 Michal Knap <michal.knap at gmail.com>:
>
> Hi all,
>> I would like to use a Gate v7.0 with qt5. When i try to rub my .mac file
>> in qt i get a message
>>
>> *-------- EEEE ------- G4Exception-START -------- EEEE -------*
>>
>> **** G4Exception : DecodingException*
>>
>> * issued by : GateMDBFieldDecoder::DecodingException*
>>
>> *The definition of the element/material 'Vacuum' is incorrect: The unit
>> found for the density field ('.000001 g/cm3')*
>>
>> * is not in the list of autorised units
>> ('g/cm3','g/m3','g/mm3','kg/cm3','kg/m3','kg/mm3','mg/cm3','mg/m3','mg/mm3')
>> for this field.*
>>
>> *You should check this definition in the database file.*
>>
>> **** Fatal Exception *** core dump ****
>>
>> *-------- EEEE -------- G4Exception-END --------- EEEE -------*
>>
>> this is my definition of Vacuum in GateMaterials.db :
>>
>>
>>
>> *[Materials]Vacuum: d=0.000001 g/cm3 ; n=1         +el: name=Hydrogen   ;
>> n=1*
>>
>> What is wrong? Can anybody tell me how to fix it?
>>
>> When i try to run .mac file without qt5 i have this:
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> *Idle> control/execute minigamma1pointsourceoncollimator1.macWARNING:
>> G4VisCommandSceneHandlerCreate::SetNewValue: using fallback graphics
>> system.G4OpenGLXViewer::CreateFontLists XLoadQueryFont failed for font
>> -adobe-courier-bold-r-normal--10-100-75-75-m-60-iso8859-1G4OpenGLXViewer::CreateFontLists
>> XLoadQueryFont failed for font
>> -adobe-courier-bold-r-normal--11-80-100-100-m-60-iso8859-1G4OpenGLXViewer::CreateFontLists
>> XLoadQueryFont failed for font
>> -adobe-courier-bold-r-normal--12-120-75-75-m-70-iso8859-1G4OpenGLXViewer::CreateFontLists
>> XLoadQueryFont failed for font
>> -adobe-courier-bold-r-normal--14-100-100-100-m-90-iso8859-1G4OpenGLXViewer::CreateFontLists
>> XLoadQueryFont failed for font
>> -adobe-courier-bold-r-normal--17-120-100-100-m-100-iso8859-1G4OpenGLXViewer::CreateFontLists
>> XLoadQueryFont failed for font
>> -adobe-courier-bold-r-normal--18-180-75-75-m-110-iso8859-1G4OpenGLXViewer::CreateFontLists
>> XLoadQueryFont failed for font
>> -adobe-courier-bold-r-normal--20-140-100-100-m-110-iso8859-1G4OpenGLXViewer::CreateFontLists
>> XLoadQueryFont failed for font
>> -adobe-courier-bold-r-normal--24-240-75-75-m-150-iso8859-1G4OpenGLXViewer::CreateFontLists
>> XLoadQueryFont failed for font
>> -adobe-courier-bold-r-normal--25-180-100-100-m-150-iso8859-1G4OpenGLXViewer::CreateFontLists
>> XLoadQueryFont failed for font
>> -adobe-courier-bold-r-normal--34-240-100-100-m-200-iso8859-1WARNING: The
>> vis manager will keep up to 100 events.   This may use a lot of memory.  It
>> may be changed with, e.g., "/vis/scene/endOfEventAction accumulate
>> 10". GateDetectorConstruction::insertARFSD  entered  created a ARF
>> Sensivitive Detector  created command
>> /gate/systems/SPECThead/arf/setARFStage
>>  Rmin/gate/Phantom/geometry/setRmin Rmin/gate/movsource/geometry/setRmin*****
>> COMMAND NOT FOUND </gate/physics/gamma/selectRayleigh lowenergy> **********
>> Batch is interrupted!! ******
>>
>> Is there problems with phisics? How sholud i set up phisics?
>>
>> ​Your Sincerely
>>>> Michał Kna
>> ​p​
>>
>
>
> _______________________________________________
> Gate-users mailing list
> Gate-users at lists.opengatecollaboration.org
> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
>



-- 
David Sarrut, Phd
Directeur de recherche CNRS
CREATIS, UMR CNRS 5220, Inserm U 1044
Centre de lutte contre le cancer Léon Bérard
28 rue Laënnec, 69373 Lyon cedex 08
Tel : 04 78 78 51 51 / 06 74 72 05 42
http://www.creatis.insa-lyon.fr/~dsarrut
_________________________________
 "2 + 2 = 5,  for extremely large values of 2"
_________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20140611/2f687ecd/attachment-0001.html>


More information about the Gate-users mailing list