Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 Practice GEANT4 Dr. C. Andenna DIPIA – ISPESL e Gruppo Collegato Sanità INFN (Roma) Geant4 School,

Similar presentations


Presentation on theme: "1 Practice GEANT4 Dr. C. Andenna DIPIA – ISPESL e Gruppo Collegato Sanità INFN (Roma) Geant4 School,"— Presentation transcript:

1 1 Practice GEANT4 Dr. C. Andenna DIPIA – ISPESL e Gruppo Collegato Sanità INFN (Roma) Geant4 School, October 2009, Catania Italy

2 Geant4 Low Energy Electromagnetic Physics Working Group 2 Content Why a new MedLinac (Main features) How to use the program The output files Geant4 School, October 2009, Catania Italy

3 Geant4 Low Energy Electromagnetic Physics Working Group 3 Why a new MedLinac Necessity to have a general purpose program to  Select accelerator/phantom  Type of particles source (use of the phase space)  Check results against experimental data  Output in ‘small’ size files  Convergence criteria  Error estimation Geant4 School, October 2009, Catania Italy

4 Geant4 Low Energy Electromagnetic Physics Working Group 4 Other aspects of the program Actually it is not an advanced example because it does not fully respect GEANT4 programming philosophy. However we are working to change and to distribute it as an advanced example. Geant4 School, October 2009, Catania Italy

5 Geant4 Low Energy Electromagnetic Physics Working Group 5 Practice: simulation launch ssh connection to a remote host cd workdir/ML2 Make (in GNUmakefile: name :=ML2) Edit macro_corso.mac  Insert the full directory path To see the world  /OnlyVisio true Launch:  $G4WORKDIR/bin/Linux-g++/ML2 macro_corso.mac 1 Geant4 School, October 2009, Catania Italy

6 Geant4 Low Energy Electromagnetic Physics Working Group 6 Practice: simulation launch worldPV ; acceleratorBox; targetA; targetB; BeWTubePV; ionizationChamberTubeW1PV; ionizationChamberTubeP1PV; ionizationChamberTubeW2PV; ionizationChamberTubeP2PV; ionizationChamberTubeW3PV; ionizationChamberTubeP3PV; FFL1A_1PV; FFL2_1PV; MirrorTubePV; UpperCollimator; CylMinusCone; leafA0; leafA9; leafB0; leafB9; Jaws1XPV; Jaws2XPV; Jaws1YPV; Jaws2YPV; PhSpPV; killerPlaneKPV; phmWorldPV; fullWaterPhantomPV; BoxInsidePV; layerPV; OutMinusInBoxPV /vis/scene/create /vis/open OGLIX /vis/drawVolume worldPV #/vis/scene/add/volume BoxInsidePV /vis/viewer/set/viewpointThetaPhi 90 0 deg /vis/viewer/zoom 2 /vis/viewer/flush Geant4 School, October 2009, Catania Italy

7 Geant4 Low Energy Electromagnetic Physics Working Group 7 Practice: just before to launch In Ph_BoxInBox.cc try to change the material/inside box position  // G4NistMaterialBuilder.cc  // G4_LUNG_ICRP  // G4_MUSCLE_SKELETAL_ICRP  // G4_WATER  // G4_PLEXIGLASS  // G4_AIR  centreBoxInside.set(0,0,0);  G4double halfBoxInside_Thickness=4.*cm;  G4Material *boxInSideMaterial=G4NistManager::Instance()->FindOrBuildMaterial("G4_WATER"); Save and make Edit macro_corso.mac  /OnlyVisio false Geant4 School, October 2009, Catania Italy

8 Geant4 Low Energy Electromagnetic Physics Working Group 8 Practice: program launch Launch of a simulation Bash file ssh node “cd /directory/;./fileName macro.mac 1 &> macro.log” & Screen Screen –r Ctrl d Ctrl a+d nohup $G4WORKDIR/bin/Linux-g++/ML2 macro_corso.mac 1 & Geant4 School, October 2009, Catania Italy


Download ppt "1 Practice GEANT4 Dr. C. Andenna DIPIA – ISPESL e Gruppo Collegato Sanità INFN (Roma) Geant4 School,"

Similar presentations


Ads by Google