IEEE Nuclear Science Symposium and Medical Imaging Conference Short Course The Geant4 Simulation Toolkit Sunanda Banerjee (Saha Inst. Nucl. Phys., Kolkata,

Slides:



Advertisements
Similar presentations
User Interface The full set of lecture notes of this Geant4 Course is available at
Advertisements

Geant4 v9.2p02 User Interface I Makoto Asai (SLAC) Geant4 Tutorial Course.
Maria Grazia Pia IEEE Nuclear Science Symposium and Medical Imaging Conference Short Course The Geant4 Simulation Toolkit Sunanda Banerjee (Saha Inst.
IEEE Nuclear Science Symposium and Medical Imaging Conference Short Course The Geant4 Simulation Toolkit Sunanda Banerjee (Saha Inst. Nucl. Phys., Kolkata,
山下智弘 JST CREST/ 神戸大学 Borrowing especially from presentations of M. Asai(SLAC) Geant4 Japan Oct, RCNS, based on Geant4 9.0.p01.
User Interface I Makoto Asai (SLAC) Geant4 Tutorial Course Geant4 v8.3.
UNIX Chapter 01 Overview of Operating Systems Mr. Mohammad A. Smirat.
Geant4 User Interface Overview Geant4 Mini-Tutorial Hebden Bridge 15 September 2007 Joseph Perl, SLAC (mostly stolen from a talk by Makoto Asai)
Geant4 v9.4 User Interface I Makoto Asai (SLAC) Geant4 Tutorial Course.
User Commands Makoto Asai (SLAC) Geant4 Users SLAC Feb. 19th, 2002.
Victor Serbo, SLAC30 September 2004, Interlaken, Switzerland JASSimApp plugin for JAS3: Interactive Geant4 GUI Serbo, Victor (SLAC) - presenter Donszelmann,
Maria Grazia Pia, INFN Genova CERN, 26 July 2004 Background of the Project.
Command line arguments. – main can take two arguments conventionally called argc and argv. – Information regarding command line arguments are passed to.
©2005 GE Fanuc Automation, Inc. All Rights Reserved PACSystems Training Programmer’s Toolkit.
Software Installation The full set of lecture notes of this Geant4 Course is available at
(G)UI status and developments Geant4 Workshop at CERN Oct. 02, 2002 Hajime Yoshida.
Improvements in Interface, Intercoms and environments Koichi Murakami (KEK/CRC) Koichi Murakami Geant4 Collaboration Workshop (18/Sep/2007) 1.
IEEE Nuclear Science Symposium and Medical Imaging Conference Short Course The Geant4 Simulation Toolkit Sunanda Banerjee (Saha Inst. Nucl. Phys., Kolkata,
An Introduction to Visual Basic
1 1 Lab1 Ismail M. Romi – IT Dept, PPU, Visual Basic 2005 Programming Tour.
FLTK Tutorial.
IEEE Nuclear Science Symposium and Medical Imaging Conference Short Course The Geant4 Simulation Toolkit Sunanda Banerjee (Saha Inst. Nucl. Phys., Kolkata,
Lecture 1: Introduction. Pick Your Version of GLUT OpenGL and the GLUT are available for Windows, Linux and many other Operating Systems and platforms.
IEEE Nuclear Science Symposium and Medical Imaging Conference Short Course The Geant4 Simulation Toolkit Sunanda Banerjee (Saha Inst. Nucl. Phys., Kolkata,
SCRIPTS & FUNCTIONS DAY /06/14 LING 3820 & 6820 Natural Language Processing Harry Howard Tulane University.
V. Serbo, SLAC ACAT03, 1-5 December 2003 Interactive GUI for Geant4 by Victor Serbo, SLAC.
Introduction to Geant4 User Interface J. Perl1 6 June 2005 Introduction to Geant4 User Interface Joseph Perl Stanford Linear Accelerator Center.
W. Pokorski - CERN Simulation Project1 Python binding for Geant4 toolkit using Reflex/PyROOT tool Witek Pokorski EuroPython 2006, CERN, Geneva
UI command Makoto Asai (SLAC) Geant4 Tutorial CERN May 25-27, 2005 May 2005, Geant4 v7.0p01.
IEEE Nuclear Science Symposium and Medical Imaging Conference Short Course The Geant4 Simulation Toolkit Sunanda Banerjee (Saha Inst. Nucl. Phys., Kolkata,
IEEE Nuclear Science Symposium and Medical Imaging Conference Short Course The Geant4 Simulation Toolkit Sunanda Banerjee (Saha Inst. Nucl. Phys., Kolkata,
Paris package: practical aspects Installation / presentation To run a simulation Analysis To add a new module to Paris Installation / presentation To run.
Data Structure Min Chen School of Computer Science and Engineering Seoul National University.
Koichi Murakami Geant4 Users Conference – LIP / Lisboa (9/Oct./2006) Practical Usage of Geant4Py Koichi Murakami KEK / CRC Let's start with " >>> import.
Maria Grazia Pia INFN Genova Salamanca, July 2002
IEEE Nuclear Science Symposium and Medical Imaging Conference Short Course The Geant4 Simulation Toolkit Sunanda Banerjee (Saha Inst. Nucl. Phys., Kolkata,
Shell Interface Shell Interface Functions Data. Graphical Interface Graphical Interface Command-line Interface Command-line Interface Experiments Private.
Geant4 Training 2006 Short Course Katsuya Amako (KEK) Gabriele Cosmo (CERN) Susanna Guatelli (INFN Genova) Aatos Heikkinen (Helsinki Institute of Physics)
Physics Data Libraries: Content and Algorithms for Improved Monte Carlo Simulation Physics data libraries play an important role in Monte Carlo simulation:
Geant4 examples Sébastien Incerti On behalf of the Geant4 collaboration with special thanks to Luciano Pandola, INFN.
IEEE Nuclear Science Symposium and Medical Imaging Conference Short Course The Geant4 Simulation Toolkit Sunanda Banerjee (Saha Inst. Nucl. Phys., Kolkata,
Susanna Guatelli Geant4 in a Distributed Computing Environment S. Guatelli 1, P. Mendez Lorenzo 2, J. Moscicki 2, M.G. Pia 1 1. INFN Genova, Italy, 2.
Geant4 Training 2004 Short Course Katsuya Amako (KEK) Gabriele Cosmo (CERN) Giuseppe Daquino (CERN) Susanna Guatelli (INFN Genova) Aatos Heikkinen (Helsinki.
Maria Grazia Pia, INFN Genova and CERN1 Geant4 highlights of relevance for medical physics applications Maria Grazia Pia INFN Genova and CERN.
1 G4UIRoot Isidro González ALICE ROOT /10/2002.
Maria Grazia Pia Geant4 Workshop Lisbon, October 2006 M.G. Pia INFN Genova Experience with Geant4 training.
Starting with an example PART I Set your environment up and get a Geant4 example.
Computer Graphics -practical- Lecture 6. (visual c++) open gl library To use open GL with VC++ we add these files:- 1)Glut.h C:\program files\ Microsoft.
1. 2 Qt Toolkit ● C++ toolkit for cross-platform GUI application development – GUI functions (GUI = graphical user interface) – Data access components,
Starting with an example
CISC105 – General Computer Science
Updates on Intercoms / Interfaces
Protection of System Resources
The full set of lecture notes of this Geant4 Course is available at
GUI Parallel Session Hajime Yoshida
UI & Interfaces : latest updates
Visualisation and (G)UI
Basics of a user application
User Interface
The Designer.
Makoto Asai (SLAC) Geant4 Tutorial Course
Software Installation
Command Line Parameters
Introductory Course PTB, Braunschweig, June 2009
Short Course Siena, 5-6 October 2006
Introductory Course ORNL, May 2008
Short Course IEEE NSS/MIC 2003 Katsuya Amako (KEK) Makoto Asai (SLAC)
Geant4 course - exercices
The Geant4 Hadrontherapy Advanced Example
Visualisation and (G)UI
Presentation transcript:

IEEE Nuclear Science Symposium and Medical Imaging Conference Short Course The Geant4 Simulation Toolkit Sunanda Banerjee (Saha Inst. Nucl. Phys., Kolkata, India) Min Cheol Han (Hanyang Univ., Seoul, Korea) Steffen Hauf (XFEL, Hamburg, Germany) Maria Grazia Pia (INFN Genova, Italy) Seoul, 27 October This course encompasses training material developed by several Geant4 members: thanks to all of them!

Geant4 User Interface (UI) 2 Geant4 UI  Geant4 supports various built-in UI commands.  UI command consists of command directory, command, and parameter. Ex) /run/beamOn 10  Geant4 has a two types of UI processing (batch mode, interactive mode)  We can check the list of built-in commands in this web site. uides/ForApplicationDeveloper/html/AllResources/Control/U Icommands/_.html uides/ForApplicationDeveloper/html/AllResources/Control/U Icommands/_.html

Geant4 User Interface (UI) 3 ‘Hard-coded’ batch mode  Geant4 UI Command can be run in Geant4 source code. (called ‘Hard-coded’ batch mode)  Example: int main(int argc, char** argv) { … G4UImanager* UImanager = G4UImanager::GetUIpointer(); UImanager->ApplyCommand("/run/verbose 1"); UImanager->ApplyCommand("/event/verbose 1"); UImanager->ApplyCommand("/tracking/verbose 1"); … }

Geant4 User Interface (UI) 4 Batch mode with macro file  Geant4 simulation will run in batch mode with macro file.  Example: int main(int argc, char** argv) { … G4UImanager* UImanager = G4UImanager::GetUIpointer(); if(argc==1) { // Define UI session for interactive mode } else { // Define batch mode using UImanager class G4String command = "/control/execute " + argv[1]; UImanager->ApplyCommand(command); } … }

Geant4 User Interface (UI) 5 Batch mode with macro file  The example will be executed with below command: > example run.mac  Example - run.mac file: # Macro file: run.mac # set verbose level for this run /run/verbose 2 /event/verbose 0 /tracking/verbose 1 /gun/particle e- /gun/energy 1 GeV /run/beamOn 100 ※ First ‘#’ is used for comment line in macro file.

Geant4 User Interface (UI) 6 Interactive mode - Character UI (CUI)  Geant4 provide character user interface (CUI) by using G4UIterminal class (or G4UIWin32 in windows OS) as interactive mode.  Example: int main(int argc, char** argv) { … if(argc==1) { // Define UI session for interactive mode G4UIsession* session = new G4UIterminal(new G4UItcsh); session->SessionStart(); delete session; } … }

Geant4 User Interface (UI) 7 Interactive mode - Character UI (CUI)

Geant4 User Interface (UI) 8 Interactive mode - Graphical UI (GUI)  Geant4 supports various graphical user interface (GUI) by using G4UIExecutive class.  Example: int main(int argc, char** argv) { … if(argc==1) { // Define UI session for interactive mode G4UIExecutive* ui = new G4UIExecutive(argc, argv, “XX”); session->SessionStart(); delete session; } … }

Geant4 User Interface (UI) 9 Interactive mode - Graphical UI (GUI)  User can choose a specific interface initial parameter of G4UIExecutive class. ex) G4UIExecutive* ui = new G4UIExecutive(argc, argv, “xx”) (where xx = qt, xm, win32, gag, tcsh, …) Run with Xm GUI

Geant4 User Interface (UI) 10 Interactive mode - Qt UI  The one of Geant4 GUI Application  Qt (UI) with OpenGL (Graphic viewer)  If GEANT4_USE_QT=1 when geant4 was installed, Qt is default UI in Geant4.  Homepage -

Geant4 User Interface (UI) 11 Interactive mode - Qt UI  Enable/Disable specific geometry using “Scene tree”  Command (or Command parameter) check  Geometry viewer  Run specific macro, command alias, etc…

Geant4 User Interface (UI) 12 Interactive mode - Qt Demo