Exercises Alberto Ribon Alberto Ribon CERN PH/SFT CERN PH/SFT Geant4 tutorial, 25-26 May 2005.

Slides:



Advertisements
Similar presentations
Single Planar Detector Monte Carlo Simulations Andrew Mather
Advertisements

Vectors in 3-Dimensional Space Section 8-3. WHAT YOU WILL LEARN: 1.How to add and subtract vectors in 3-dimensional space. 2.How to find the magnitude.
GAMOS tutorial Histogram and Scorers Exercises
C++ data types. Structs vs. Classes C++ Classes.
14 User Documents and Examples I SLAC Geant4 Tutorial 3 November 2009 Dennis Wright Geant4 V9.2.p02.
Track Timing at e + e - Linear Collider with the Silicon Drift Detector Main Tracker R. Bellwied, D. Cinabro, V. L. Rykov Wayne State University Detroit,
8/17/031 Geant4 Simulations Guilherme Lima, Jeremy McCormick General Comments Test Stand (JM) Test Beam (GL)
GLAST LAT Project Test Beam Meeting, June 6, 2006 S. Funk 1/6 PS Positron Simulations Stefan Funk June 6, 2006.
4.2 Systems of Linear Equations in Three Variables BobsMathClass.Com Copyright © 2010 All Rights Reserved. 1 The Graph of a Three Variable Equation Recall.
From C++ to C#. Web programming The course is on web programming using ASP.Net and C# The course is on web programming using ASP.Net and C# ASP.Net is.
Conventional Weld Calculation
17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 Geant4 Japan.
Geometry Area Perimeter Volume. Geometry Starter questions – lets get those grey cells working! What is the perimeter of these shapes: 5cm 7cm6c m 5cm.
Data Objects (revisited) Recall that values are stored in data objects, and that each data object holds one value of a particular type. Data objects may.
Tactic 17: Add Equations. When a question involves two or more equations, try adding the equations together. Many questions involving systems of equations.
Geometry Detector geometry A detector geometry in Geant4 is made of a number of volumes. The largest volume is called the World volume. It must contain.
Lesson 13-1: Matrices & Systems Objective: Students will: State the dimensions of a matrix Solve systems using matrices.
Geant4 Acceptance Suite for Key Observables CHEP06, T.I.F.R. Mumbai, February 2006 J. Apostolakis, I. MacLaren, J. Apostolakis, I. MacLaren, P. Mendez.
S. Guatelli, CPS Innovations, Knoxville, 13 th -21 st January Brachytherapy exercise.
1 Report on analysis of PoGO Beam Test at Spring-8 Tsunefumi Mizuno July 15, 2003.
Pedro Arce Introducción a GEANT4 1 GAMOS tutorial Plug-in’s Exercises Pedro Arce Dubois CIEMAT
Chapter 1: Getting Started with MATLAB MATLAB for Scientist and Engineers Using Symbolic Toolbox.
Practice and Evaluation. Practice Develop a java class called: SumCalculator.java which computes a sum of all integer from 1 to 100 and displays the result.
SoLID simulation Zhiwen Zhao Uva SoLID Collaboration Meeting 2011/6/2 1.
Maria Grazia Pia Detector Response Acknowledgements: A. Lechner, J. Apostolakis, M. Asai, G. Cosmo, A. Howard.
6th April 2005Wah-kai Ngai1 First Example in Geant4 3rd HK simulation group meeting.
LAV Software Status Emanuele Leonardi – Tommaso Spadaro Photon Veto WG meeting – 2015/03/24.
ADTs and C++ Classes Classes and Members Constructors The header file and the implementation file Classes and Parameters Operator Overloading.
SOLVING SYSTEMS ALGEBRAICALLY SECTION 3-2. SOLVING BY SUBSTITUTION 1) 3x + 4y = 12 STEP 1 : SOLVE ONE EQUATION FOR ONE OF THE VARIABLES 2) 2x + y = 10.
Monte Carlo /12/07. What is Geant ? Monte Carlo simulation tool for nuclear and particle physics Set up detectors –Sensitive detector which returns.
1 Report on analysis of PoGO Beam Test at Spring-8 Tsunefumi Mizuno July 15, 2003 July 21, 2003 revised August 1, 2003 updated.
Status of MAPS Geometry Simulation Yoshinari Mikami University of Birmingham 21 th April 2006 MAPS Meeting at Rutherford Appleton Laboratory.
1 Calorimeter in G4MICE Berkeley 10 Feb 2005 Rikard Sandström Geneva University.
C++ / G4MICE Course Session 5 Materials in G4MICE Units in G4MICE Visualisation in G4MICE G4MICE Modelling.
Adding a Sequence of numbers (Pairing Method)
Documentation Gunter Folger / CERN Geant4 School, Annecy 2008.
CBM ECAL simulation status Prokudin Mikhail ITEP.
Holt Geometry 10-8 Spheres Learn and apply the formula for the volume of a sphere. Learn and apply the formula for the surface area of a sphere. Objectives.
Maria Grazia Pia Hands-on exercises Unit 2 Modelling the experimental set-up.
Geant4 CPU performance : an update Geant4 Technical Forum, CERN, 07 November 2007 J.Apostolakis, G.Cooperman, G.Cosmo, V.Ivanchenko, I.Mclaren, T.Nikitina,
New beam test simulation application for ATLAS Tile Calorimeter in FADS/Goofy framework Application details & Some results Vakhtang Tsulaia JINR, Dubna.
Open project in Microsoft Visual Studio → build program in “Release” mode.
Pedro Arce Introducción a GEANT4 1 GAMOS tutorial RadioTherapy Exercises Pedro Arce Dubois CIEMAT
What About Alice? In Alice, we have seen that we have:  Objects (skater, snowman, snowwoman, camera)  Methods (move, turn, roll, move toward)  Properties.
Today’s Objectives:. Warm Up 3.4 Solving Systems w/ Three Variables You are familiar with a normal coordinate plane. It is has an x-axis and a y-axis.
1 Giuseppe G. Daquino 26 th January 2005 SoFTware Development for Experiments Group Physics Department, CERN Background radiation studies using Geant4.
17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 Geant4 Collaboration.
1 Simulation, Formatter & Analysis Kyo Tsukada Tohoku Univ.
Experiences on Grid production for Geant4 EGEE User Forum, CERN, 1st March 2006 P. Mendez Lorenzo, A. Ribon CERN CERN.
2005/07/12 (Tue)8th ACFA Full simulator study of muon detector and calorimeter 8th ACFA Workshop at Daegu, Korea 2005/07/12 (Tue) Hiroaki.
Study of Calorimeter performance using the LC full simulator The 8th ACFA Workshop Yoshihiro Yamaguchi (Tsukuba U.) M. -C. Chang (RCNS, Tohoku U.) K. Fujii.
ArgonneResult_ ppt1 Comparison of data and simulation of Argonne Beam Test July 10, 2004 Tsunefumi Mizuno
1 Exercises 0 Go inside the “hadrontherapy” directory: cd hadrontherapy Copy the Hadrontherapy example to your home folder: cp –r $G4INSTALL/examples/advanced/hadrontherapy.
1 Report on analysis of PoGO Beam Test at Spring-8 Tsunefumi Mizuno July 15, 2003 July 21, 2003 revised.
Accurate 3D Modeling of User Inputted Molecules Using a Nelder Mead Algorithm Ben Parr Period 6.
Note: Some of the slides are repeated from Introduction to C++
Unit 4 Retrieving information from the simulation
GAMOS tutorial PET Exercises
Chapter 2 Section 3.
Detector Configuration for Simulation (i)
(CMS GEANT4 simulation)
6-3 Solving Systems Using Elimination
Testing Geant4 with a simplified calorimeter setup
Introduction to Programming
GAMOS tutorial Plug-in’s Exercises
Introduction to Programming
2 4 −4 −2 −5 −3 −
C++ data types.
Images must be high quality (not stretched to be larger)
Images must be high quality (not stretched to be larger)
Presentation transcript:

Exercises Alberto Ribon Alberto Ribon CERN PH/SFT CERN PH/SFT Geant4 tutorial, May 2005

Geant4 tutorial: Exercises 2 Introduction Copy the example N03 in your local area Copy the example N03 in your local area Try to build it and run it. Try to build it and run it. For each exercise, do the following: Read carefully the text Read carefully the text Try to solve it, by modifying some files of the example N03 in your area Try to solve it, by modifying some files of the example N03 in your area Look at the solution. Look at the solution.

Geant4 tutorial: Exercises 3 Exercise on: Geometry Add a G4Box of dimensions: Add a G4Box of dimensions: 1 mm x CalorSizeYZ x CalorSizeYZ 1 mm x CalorSizeYZ x CalorSizeYZ Material: scintillator, Sci Material: scintillator, Sci Caveat: you need to define a private member variable to store the local variable Sci. Caveat: you need to define a private member variable to store the local variable Sci. Place the box 1 cm in front (i.e. before) of the calorimeter along the x-axis Place the box 1 cm in front (i.e. before) of the calorimeter along the x-axis Hint: the position along the x-axis of the calorimeter starts at x = - CalorThickness/2.0 and the center of the box should be 1 cm before it (i.e at lower x). Hint: the position along the x-axis of the calorimeter starts at x = - CalorThickness/2.0 and the center of the box should be 1 cm before it (i.e at lower x).

Geant4 tutorial: Exercises 4 (continuation) The solution is in the directory: The solution is in the directory: geometry/ geometry/ Copy the header files.hh in your local directory include/ and the source files.cc in your local directory src/ Copy the header files.hh in your local directory include/ and the source files.cc in your local directory src/

Geant4 tutorial: Exercises 5 Exercise on: B field A global uniform magnetic field is applied along the z-axis. Change it in such a way that the field is applied along the x-axis. A global uniform magnetic field is applied along the z-axis. Change it in such a way that the field is applied along the x-axis. Hint: look at the constructor G4ThreeVector(x,y,z) in the method ExN03DetectorConstruction::SetMagField Hint: look at the constructor G4ThreeVector(x,y,z) in the method ExN03DetectorConstruction::SetMagField Solution is in the directory: bfield/ Solution is in the directory: bfield/

Geant4 tutorial: Exercises 6 Exercise on: Physics In the directory: physics_example/ you find how to use the Physics List LHEP. In the directory: physics_example/ you find how to use the Physics List LHEP. Copy the files in your local directory. Copy the files in your local directory. Change it in such a way to use the Physics List QGSP instead of LHEP. Change it in such a way to use the Physics List QGSP instead of LHEP. Hint: look at the main program exampleN03.cc Hint: look at the main program exampleN03.cc Solution is in the directory: physics/ Solution is in the directory: physics/

Geant4 tutorial: Exercises 7 Exercise on: Sensitivity In the directory: sensitivity_example/ you find how to make the added scintillator box a sensitive volume. Each deposit of energy in this volume produces a hit which stores that deposited energy. In the directory: sensitivity_example/ you find how to make the added scintillator box a sensitive volume. Each deposit of energy in this volume produces a hit which stores that deposited energy. Copy the files in your local directory. Copy the files in your local directory. Add to the hit the information of the (x,y,z) position of the energy deposit. Add to the hit the information of the (x,y,z) position of the energy deposit. Hint: use G4Step::GetPreStepPoint() and G4StepPoint::GetPosition() Hint: use G4Step::GetPreStepPoint() and G4StepPoint::GetPosition() Solution in the directory: sensitivity/ Solution in the directory: sensitivity/

Geant4 tutorial: Exercises 8 Exercise on: Analysis In the directory: analysis_example/ you find a very simple analysis: at the end of each event, the sum of the energy deposits (stored in the hits) in the scintillator box is printed. In the directory: analysis_example/ you find a very simple analysis: at the end of each event, the sum of the energy deposits (stored in the hits) in the scintillator box is printed. Copy the files in your local directory. Copy the files in your local directory. Print also the average distance of these hits from the origin (0,0,0). Print also the average distance of these hits from the origin (0,0,0). Hint: use MyTrackerHit::GetPos() and G4ThreeVector::mag() Hint: use MyTrackerHit::GetPos() and G4ThreeVector::mag() Solution in the directory: analysis/ Solution in the directory: analysis/