Hands On #1. Overview Part 1 : Starting and familiarizing Where is your installation ? Getting the example programs Running novice examples : N01, N03,

Slides:



Advertisements
Similar presentations
In preparation for today’s Hands On 2 by Ivana. You need to download a file either : –from your VMware session if you use it –Or from your Linux session.
Advertisements

User Documents and Examples
14 User Documents and Examples I SLAC Geant4 Tutorial 3 November 2009 Dennis Wright Geant4 V9.2.p02.
14 Overview of Geant4 Examples 2 nd Finnish Geant4 Workshop 6-7 June 2005 Dennis Wright (SLAC)
14 User Documents and Examples II SLAC Geant4 Tutorial 17 May 2007 Dennis Wright Geant4 V8.3.
Very Quick & Basic Unix Steven Newhouse Unix is user-friendly. It's just very selective about who its friends are.
Overview Basic functions Features Installation: Windows host and Linux host.
Particle Detector Simulation (I) Using Geant4 Ahmed Sayed Hamed (master student)
Cambodia-India Entrepreneurship Development Centre - : :.... :-:-
Maxwell Control Panel Use these buttons to page forward and backward Section Two.
Check Disk. Disk Defragmenter Using Disk Defragmenter Effectively Run Disk Defragmenter when the computer will receive the least usage. Educate users.
MZ790 Print Driver and RINC Software Install and Setup These instructions are to assist you in installation and setup of the MZ790 Print Driver and RINC.
RIMS II Online Order and Delivery System Tutorial on Downloading and Viewing Multipliers.
VMWare Workstation Installation. Starting Vmware Workstation Go to the start menu and start the VMware Workstation program. *Note: The following instructions.
Working with SharePoint Document Libraries. What are document libraries? Document libraries are collections of files that you can share with team members.
Software Installation The full set of lecture notes of this Geant4 Course is available at
17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 Geant4 Japan.
Guide to MCSE , Enhanced 1 Activity 10-1: Restarting Windows Server 2003 Objective: to restart Windows Server 2003 Start  Shut Down  Restart Configure.
VMWare Workstation Installation. Starting Vmware Workstation Go to the start menu and start the VMware Workstation program. *Note: The following instructions.
Ch 11 Managing System Reliability and Availability 1.
Section 6.1 Explain the development of operating systems Differentiate between operating systems Section 6.2 Demonstrate knowledge of basic GUI components.
ROOT An object oriented HEP analysis framework.. Computing in Physics Physics = experimental science =>Experiments (e.g. at CERN) Planning phase Physics.
How to Download and Install a Sharp Print Driver on a Mac.
Guide to Linux Installation and Administration, 2e1 Chapter 3 Installing Linux.
VMWare Workstation Installation. Starting Vmware Workstation Go to the start menu and start the VMware Workstation program. *Note: The following instructions.
14 Overview of Geant4 Examples Geant4 Tutorial 8-10 March 2004 Dennis Wright (SLAC)
Home Media Network Hard Drive Training for Update to 2.0 By Erik Collett Revised for Firmware Update.
Geo CE-XM ch 4 Edited 10/14/05 1 The XM is the newest of the rovers, and unlike other units, it comes with software installed on the unit as well as using.
OPL MRR Viewer Tutorial David Stark North Carolina State University 31 Jan 2008.
1 Chapter Overview Configuring and Troubleshooting the Display Configuring Power Management Configuring Operating System Settings Configuring and Troubleshooting.
Validation and TestEm series Michel Maire for the Standard EM group LAPP (Annecy) July 2006.
User Documents and Examples I Sébastien Incerti Slides thanks to Dennis Wrigth, SLAC.
Installation Overview Lab#2 1Hanin Abdulrahman. Installing Ubuntu Linux is the process of copying operating system files from a CD, DVD, or USB flash.
S. Guatelli, CPS Innovations, Knoxville, 13 th -21 st January Brachytherapy exercise.
Renesas Technology America Inc. 1 SKP8CMINI Tutorial 2 Creating A New Project Using HEW.
Copyright © 2010 Wolters Kluwer Health | Lippincott Williams & Wilkins Introduction to Windows Chapter 2.
As of 28 Juni 2005Getting Starged with GEM - Shuei Yamada 1 Getting Started with GEM Shuei YAMADA ICEPP, University of Tokyo What is GEM? Before you start.
Pedro Arce Introducción a GEANT4 1 GAMOS tutorial Plug-in’s Exercises Pedro Arce Dubois CIEMAT
S. Guatelli, M.G Pia, INFN Genova G. Cosmo, S. Guatelli, M.G Pia Salamanca, July 2002
6th April 2005Wah-kai Ngai1 First Example in Geant4 3rd HK simulation group meeting.
XP New Perspectives on Windows 2000 Professional Windows 2000 Tutorial 2 1 Microsoft Windows 2000 Professional Tutorial 2 – Working With Files.
Monte Carlo /12/07. What is Geant ? Monte Carlo simulation tool for nuclear and particle physics Set up detectors –Sensitive detector which returns.
Administering Group Policy Chapter Eleven. Exam Objectives in this Chapter  Plan a Group Policy strategy using Resultant Set of Policy Planning mode.
Hands On #1. Overview Part 1 : Starting and familiarizing Where is your installation ? Getting the example programs Running novice examples : N01, N03,
Documentation Gunter Folger / CERN Geant4 School, Annecy 2008.
IS493 INFORMATION SECURITY TUTORIAL # 1 (S ) ASHRAF YOUSSEF.
Renesas Technology America Inc. 1 SKP8CMINI Tutorial 2 Creating A New Project Using HEW.
Geant4 examples Sébastien Incerti On behalf of the Geant4 collaboration with special thanks to Luciano Pandola, INFN.
Makoto Asai (SLAC) Getting Started MGP: added class diagram of basic user application.
VMWare Workstation Installation. Starting Vmware Workstation Go to the start menu and start the VMware Workstation program. *Note: The following instructions.
Active-HDL Server Farm Course 11. All materials updated on: September 30, 2004 Outline 1.Introduction 2.Advantages 3.Requirements 4.Installation 5.Architecture.
INTERNET APPLICATIONS CPIT405 Install a web server and analyze packets.
Windows Server 2003 { First Steps and Administration} Benedikt Riedel MCSE + Messaging
Starting with an example PART I Set your environment up and get a Geant4 example.
Introduction to EBSCOhost
Gunter Folger / CERN MC-PAD, DESY/Hamburg Jan 2010
Guide to Linux Installation and Administration, 2e
Starting with an example
User Documents and Examples I
Makoto Asai (SLAC) Geant4 Tutorial Course
Software Setup & Validation
Introduction to EBSCOhost
bitcurator-access-webtools Quick Start Guide
GAMOS tutorial Plug-in’s Exercises
Geant4 course - exercices
The Geant4 Hadrontherapy Advanced Example
Simulation in Experiments searching for rare events
Presentation transcript:

Hands On #1

Overview Part 1 : Starting and familiarizing Where is your installation ? Getting the example programs Running novice examples : N01, N03, N02 … Part 2 : Looking into Geant4, trying it out with exercises Examine cross sections Simulate depth dose curve Compute and plot Bragg curve Addenda : other examples, histogramming See Wednesday’s hands on

Your Geant4 installation VMware Player users under Windows or Mac OS all files downloaded from in principle, no installation needed all your peripherals should be operational (WiFi, disks,…) Installation from beginning CERN link SLAC link User forum Installation guide

This Hands On will help you check your installation of Geant4 is correct If not, we can try to help during this Hands On…

Access your Geant4 installation for VMware users Start the VMware player software Start your VMware machine Log onto the VMware machine Username: local1, password: local1 Open a terminal (right click on desktop with mouse) You are now working under Scientific Linux 4.2 with gcc By default on your Windows PC, the directory /mnt/hgfs/echanges is a link to C:\

Tips for VMware users (1/2) Geant4 8.3 installation path : /usr/local/geant4 you need root privileges for modification (logon as root, password is scilinux4.2) environment defined in /usr/local/env/Cshrc Visualization OpenGL driver installed HepRApp viewer : HepRApp DAWN viewer : dawn VRML viewer : vrmlview VRML HepRApp OpenGL DAWN

Tips for VMware users (2/2) Data analysis ROOT (5.12) : root PAW / PAW++ : paw or paw++ OpenScientist package for histograms Code management with Source Navigator : snavigator Data Display Debugger : ddd Other : CERNLIB 2003, Gimp, Lyx, xemacs, OpenOffice : soffice

Troubles with VMware ? If you have troubles when uncompressing your zip files : Windows users may download the 7-Zip utility for Windows. You may also try the PowerArchiver software. Macintosh users may download the p7zip utility, doing as follows in terminal mode (thanks to Pierre François Honoré, CEA) : fink install p7zip 7z x.../Home.zip 7z x.../Softs.zip 7z x …/SL4.zip Under Windows, you may also encounter problems if the disks where you uncompress your files have been formatted in the FAT32 format. Use NTFS formatted disks only. During the first installation, you may be asked to create a new unique identifier UUID (a dedicated window will pop up). Simply choose Create. During the first startup, a hardware configuration page (DOS like) may appear regarding your network card adapter. Do the following : Select with the Enter key the Remove Configuration button Select the Configure button with the Enter key Choose use dynamic IP configuration with the space bar Go to the OK button with the arrow keys and Select OK with the Enter key If your OpenGL visualization windows do not refresh properly when running your Geant4 application, connect as super user, edit the /etc/X11/xorg.conf file and add the line: Option "backingstore" in Section Screen With the last version of VMware player (download above), you may define an exchange directory between Windows and Linux ; assuming you want to setup C:\ as the exchange directory, do as follows : Make sure your Linux machine is shut down and your VMware Player application is closed Open the downloaded *.vmx file with WordPad Check the path of the exchange directory (“C:\”) and its linux name (“share”) and modify it as you want (in the shared folder section) Save this file as a text file Open the VMware player application Go to the VMware Player menu, select Shared Folders…, you should see the name of your directory appear, select Always enabled then OK Start your Linux machine Under your linux session, your exchange directory is located at /mnt/hgfs/share

Let’s start…

Copy selected Geant4 examples The Geant4 system (source and libraries) is already installed on your computer Find it at $G4INSTALL which locates the head of your copy of Geant4 ( echo $G4INSTALL will return /usr/local/geant4/v8.3/geant4.8.3 ) You must logon with root priviledges if you want to modify this installation… Set up a work directory on your local1 account mkdir mytestdir cd mytestdir Copy there several novie examples cp –r $G4INSTALL/examples/novice/N01. cp –r $G4INSTALL/examples/novice/N02. cp –r $G4INSTALL/examples/novice/N03. Check that the following environment variables are set properly $G4WORKDIR should define the work directory (by default, /home/local1/geant4/work ) $G4SYSTEM should define the system name (for Linux it is Linux-g++ ) One of the visualization drivers that you built into the toolkit must be chosen. In this tests we will choose the OPENGL visualization driver $G4VIS_USE_OPENGLX should be set to 1

 Fixed geometry: Ar gas mother volume with Al cylinder and Pb block with Al slices  Incident particle is a geantino – no physics interactions  No magnetic field and only the transportation process is enabled  Hard coded batch job and verbosity Novice example N01

Compile and run first novice Example N01 Compile and run N01 (in batch mode) cd N01 more README gmake compile and link – create the executable called ‘exampleN01’ in $G4WORKDIR/bin/$G4SYSTEM uses the recipe how to do this in GNUmakefile $G4WORKDIR/bin/$G4SYSTEM/exampleN01 runs Geant4 for simple setup, gives you some output : a tracker tube and a sandwich calorimeter made of boxes, it shoots a geantino per event (does not interact) Type exit at the Idle prompt to quit When you are done gmake clean this deletes the executable, as exampleN01 is very limited

 Sampling calorimeter with layers of Pb absorber and liquid Ar detection gaps (replicas)  Exhaustive material definitions  Command interface  Randomization of incident beam  All EM processes + decay, with separate production cuts for , e+, e- (use for shower studies)  Detector response: E deposit, track length in absorber and gap  Visualization tutorial  Random number seed handling Novice Example N03

User Classes First, examine N03 cd../N03 nedit README & (in particular, how to start section) nedit exampleN03.cc & main() the Geant4 toolkit does not provide main() there are more 70 examples Initialization classes Detector Construction Physics List Action classes : are invoked during an event loop Primary Generator Action Run Action Event Action Tracking Action Stepping Action Stacking Action you can define VisManager, (G)UI session, optional user action classes, and/or your persistency manager in your main() Note : classes written in red are mandatory !

Compile and run novice example N03 cd../N03 gmake execute N03 in batch mode nedit run1.mac & $G4WORKDIR/bin/$G4SYSTEM/exampleN03 run1.mac execute N03 in interactive mode $G4WORKDIR/bin/$G4SYSTEM/exampleN03 try to enter at the « Idle » prompt /vis/viewer/set/viewpointThetaPhi deg and return next enter /run/beamOn 1 and return run the macro run1.mac control/execute run1.mac To quit exit When you are done, gmake clean

N03 : run1.mac all comments start with # /control/verbose 2 /control/saveHistory /run/verbose 2 /event/verbose 0 /tracking/verbose 1 /gun/particle mu+ /gun/energy 300 MeV /run/beamOn 3 set the verbose level of commands in macro (0, 1, 2) store command history to a file set the verbose level of run, event, tracking manager set particle type, energy, and number of particles to shoot access all this information by typing Idle>help

N03 : run2.mac /control/verbose 2 # # electron 30 MeV to the direction (1.,0.,0.) # 1 event # /run/beamOn 1 # # shoot randomly 20 events # /N03/event/printModulo 5 /N03/gun/rndm on /run/beamOn 20 # # activate/inactivate physic processes # /process/list /process/inactivate eBrem # /run/beamOn 20 user command : print events modulo n user command : shoot randomly the incident particle list of Physics processes inactivation of e- Bremsstrahlung

N03 : exo1.mac /N03/det/setNbOfLayers 1 # /N03/det/setAbsMat Aluminium /N03/det/setAbsThick 10 cm # /N03/det/setGapMat Air /N03/det/setGapThick 0 cm # /N03/det/setSizeYZ 10 cm # /N03/det/update # /vis/viewer/zoom 1.3 # /process/list /process/inactivate msc /process/inactivate eBrem /process/inactivate compt /process/inactivate conv # /run/particle/setCut 10 cm /run/initialize # /gun/particle e+ /gun/energy 30 MeV set range cut value : no secondary generated below update geometry geometry change

N03 : exercice ! Copy exo1.mac to myexoA.mac Try to modify myexoA.mac in order to : inactivate photo electric effect instead of Compton shoot 10 MeV gamma particles

N03 : answer /N03/det/setNbOfLayers 1 # /N03/det/setAbsMat Aluminium /N03/det/setAbsThick 10 cm # /N03/det/setGapMat Air /N03/det/setGapThick 0 cm # /N03/det/setSizeYZ 10 cm # /N03/det/update # /vis/viewer/zoom 1.3 # /process/list /process/inactivate msc /process/inactivate eBrem /process/inactivate phot /process/inactivate conv # /run/particle/setCut 10 cm /run/initialize # /gun/particle gamma /gun/energy 10 MeV

N03 : exercice ! Copy exo1.mac to myexoB.mac Try to modify myexoB.mac in order to : set absorber material as water with a thickness of 40 cm hint : Water is a defined material in N03 set a detector transverse size of 40 cm set a magnetic field of 3 T… hint : use help…

N03 : answer /N03/det/setNbOfLayers 1 # /N03/det/setAbsMat Water /N03/det/setAbsThick 40 cm # /N03/det/setGapMat Air /N03/det/setGapThick 0 cm # /N03/det/setSizeYZ 40 cm # /N03/det/setField 3 tesla # /N03/det/update # /vis/viewer/zoom 1.3

Trying different visualization outputs with N03 OpenGL $G4WORKDIR/bin/$G4SYSTEM/exampleN03 DAWN nedit vis.mac & comment the line /vis/open OGLIX, uncomment the line /run/beamOn 1 save and close $G4WORKDIR/bin/$G4SYSTEM/exampleN03 vis.mac create g4_01.prim file you can visualize the file with dawn g4_01.prim WIRED3/HepRApp $G4WORKDIR/bin/$G4SYSTEM/exampleN03 visTut/heprep.mac create the scene-0.heprep.zip file unzip scene-0.heprep.zip you can visualize the file with HepRApp &

 Pb target, Xe gas chambers (parameterized volumes)  All EM processes + decay included for , charged leptons and charged hadrons  Detector response  Trajectories and chamber hit collections may be stored  Visualization of detector and event  Command interface introduced  Can change target, chamber materials, magnetic field, incident particle type, momentum, etc. at run time Novie Example N02

N02 : exercice The default particle is a 3 GeV proton Write a macro file in order to : shoot one event with detailed printing of tracking (level 1) then, shoot 3 negative muons of 300 MeV with silent tracking

N02 : answer /run/verbose 2 /event/verbose 0 # # proton 3 GeV to the direction (0.,0.,1.) (default kinematic) # 1 event with detailled printing # /tracking/verbose 1 /run/beamOn 1 # # muon 300 MeV to the direction (0.,0.,1.) # 3 events (no printing) # /gun/particle mu- /gun/energy 300 MeV /tracking/verbose 0 /run/beamOn 3

N02 : exercice The default particle is a 3 GeV proton Write a macro file in order to : shoot one event with detailed printing (1) then, add a 2 T magnetic field and shoot one event with silent tracking try to print the hits (1)

N02 : answer /run/verbose 2 /event/verbose 0 # # proton 3 GeV to the direction (0.,0.,1.) (default kinematic) # 1 event with detailled printing # /tracking/verbose 1 /run/beamOn 1 # # set a magnetic field # 1 events; print the hits # /N02/det/setField 2 tesla /tracking/verbose 0 /hits/verbose 1 /run/beamOn 1

To be continued… Wednesday during Hands ON 3 16:00 – 17:30 by Michel, Vladimir, Gunter, Aathos…

 Water Cerenkov detector with air “bubble”  Materials  Specification of optical properties  Specification of scintillation spectra  Physics  Optical processes  Generation of Cerenkov radiation, energy loss collected to produce scintillation Novice Example N06

 Simplified collider detector  all kinds of volume definitions  Magnetic field  PYTHIA primary event generator  Higgs decay by Z0, lepton pairs  Full set of EM + hadronic processes  Should use updated hadronic physics lists  Event filtering by using stacking mechanism Novie Example N04

 Fast simulation with parameterized showers  EM showers (derived from G4VFastSimulationModel)  Pion showers (for illustration only – not used)  EM physics only  Use of G4FastSimulationManagerProcess  Simplified collider detector geometry  Drift chamber  EM, hadronic calorimeter  Ghost volume Novice Example N05

 3 simplified sandwich calorimeters (Pb, Al, Ar)  Cylindrical ghost volume for scoring  Run-based (as opposed to event-based) hit accumulation  Changing geometries without rebuilding world  Setting different secondary production cuts for each calorimeter using G4Region Novice Example N07

Histogramming with Extended exemple AnaEx01 cd.. cp –r $G4INSTALL/examples/extended/analysis/AnaEx01. nedit src/AnaEx01AnalysisManager.cc & Replace std::string opts = "compress=no"; fTree = treeFactory->create("AnaEx01.aida","xml",false,true,opts); // std::string opts = "export=root"; // fTree = treeFactory->create("AnaEx01.root","ROOT",false,true,opts); by // std::string opts = "compress=no"; // fTree = treeFactory->create("AnaEx01.aida","xml",false,true,opts); std::string opts = "export=root"; fTree = treeFactory->create("AnaEx01.root","ROOT",false,true,opts); cp analysis/jas/run.mac. gmake $G4WORKDIR/bin/$G4SYSTEM/AnaEx01 run.mac At the end, the ROOT file AnaEx01.root is created. You can browse it with root  TBrowser g