G4beamline Introduction and New Features A “Swiss Army Knife” for Geant4. Tom Roberts Muons, Inc. Januaary 23, 2014 TJRG4beamline1.

Slides:



Advertisements
Similar presentations
January 14, 2004 TJR - - UPDATED 1/25/04 1 MICE Beamline Analysis Using g4beamline Including Jan 25 Updates for Kevin’s JAN04 Beamline Design Tom Roberts.
Advertisements

Use of G EANT 4 in CMS AIHENP’99 Crete, April 1999 Véronique Lefébure CERN EP/CMC.
Particle ID in the MICE Beamline MICE Collaboration Meeting 30 March Paul Soler, Kenny Walaron University of Glasgow and Rutherford Appleton Laboratory.
TJR 12/12/2004G4BeamlineSlide 1 G4Beamline A “Swiss Army Knife” for Geant4 Tom Roberts Muons, Inc.
2003 by Jim X. Chen: Introduction to Modeling Jim X. Chen George Mason University.
June 13, Geant4 Simulations of the MICE Beamline Tom Roberts Illinois Institute of Technology June13, 2003.
Laser Treatment Modeling Capabilities at Rensselaer-Hartford Ernesto Gutierrez-Miravete Rensselaer at Hartford
K.Walaron Fermilab, Batavia, Chicago 12/6/ Simulation and performance of beamline K.Walaron T.J. Roberts.
Chris Rogers, MICE CM16 Wednesday Plenary Progress in Cooling Channel Simulation.
14 User Documents and Examples I SLAC Geant4 Tutorial 3 November 2009 Dennis Wright Geant4 V9.2.p02.
TJR 11/03/2003Slide 1 g4beamline A “Swiss Army Knife” for Geant4 Tom Roberts Illinois Institute of Technology.
TJR 9/24/031 Update: Geant4 Simulations of the MICE Beamline – Absolute Normalization Tom Roberts Illinois Institute of Technology 9/24/03 (With thanks.
14 Overview of Geant4 Examples 2 nd Finnish Geant4 Workshop 6-7 June 2005 Dennis Wright (SLAC)
Chris Rogers, Analysis Parallel, MICE CM17 Progress in Cooling Channel Simulation.
14 User Documents and Examples II SLAC Geant4 Tutorial 17 May 2007 Dennis Wright Geant4 V8.3.
PRESENTATION on AutoCAD 2013 Submitted By :- Dev RANA MECHANICAL BRANCH.
Computer-Aided Design & Drafting
Introduction to virtual engineering László Horváth Budapest Tech John von Neumann Faculty of Informatics Institute of Intelligent Engineering.
17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 Geant4 Japan.
Oct 15, 2003 Video Conference Energy Deposition Steve Kahn Page 1 Energy Deposition in MICE Absorbers and Coils Steve Kahn November 2, 2003.
Modeling and representation 1 – comparative review and polygon mesh models 2.1 Introduction 2.2 Polygonal representation of three-dimensional objects 2.3.
Status of BDSIM Developments at RHUL L. Nevay, S. Boogert, H. Garcia-Morales, S. Gibson, R. Kwee-Hinzmann, J. Snuverink Acknowledgments: R. Bruce, S. Redaelli.
14 Overview of Geant4 Examples Geant4 Tutorial 8-10 March 2004 Dennis Wright (SLAC)
Fast TOF for Muon Cooling Experiments Robert Abrams Muons, inc.
G EANT highlights kernel modules Gabriele Cosmo, CERN PH-SFT for the Geant4 Collaboration Gabriele Cosmo, CERN PH-SFT for the Geant4 Collaboration.
TECH 104 – Technical Graphics Communication Week 13: 3D Modeling Basics.
User Documents and Examples I Sébastien Incerti Slides thanks to Dennis Wrigth, SLAC.
1 Tracking Reconstruction Norman A. Graf SLAC July 19, 2006.
Ajit Kurup, Imperial College London P. Bonnal, B. Daudin, J. De Jonghe, CERN An Accelerator Design Tool for the International Design Study for the Neutrino.
Testing and Debugging Version 1.0. All kinds of things can go wrong when you are developing a program. The compiler discovers syntax errors in your code.
User Documents and Examples II Geant4 Tutorial at Marshall Space Flight Center 18 April 2012 Dennis Wright (SLAC) Geant4 V9.5.
Making Good Code AKA: So, You Wrote Some Code. Now What? Ray Haggerty July 23, 2015.
ALCPG Software Framework Overview & Updates Jeremy McCormick, SLAC SiD Group ALCPG 2009.
Darmstadt, 15. November 2015 Tobias Stockmanns, FZ Jülich1 A STEP to ROOT converter for the FairRoot framework ALICE-FAIR Computing Meeting, GSI,
March 2, 2011 TJRG4beamline Validation1 G4beamline Validation Tom Roberts Muons, Inc.
Update Chris Rogers, Analysis PC, 13/07/06. State of the “Accelerator” Simulation Field model now fully implemented in revised MICE scheme Sanity checking.
1 Software tools for GLC studies Akiya Miyamoto KEK 20 April, 2004 Representing ACFA-Sim Group
Detector Monte-Carlo ● Goal: Develop software tools to: – Model detector performance – Study background issues – Calculate event rates – Determine feasibility.
March 2, 2011 TJRPhysics Processes Missing from our Current Simulation Tools 1 Tom Roberts Muons, Inc. This is the current list − Please help us to complete.
1M. Ellis - NFMCC - 31st January 2007 MICE Analysis.
Creating visual interfaces in python
Geant4 Simulation of the Beam Line for the HARP Experiment M.Gostkin, A.Jemtchougov, E.Rogalev (JINR, Dubna)
SoLID simulation with GEMC Zhiwen Zhao 2015/03/26.
Geant4 examples Sébastien Incerti On behalf of the Geant4 collaboration with special thanks to Luciano Pandola, INFN.
Muons, Inc. TJR NuFact06 August 28, 2006G4BeamlineSlide 1 G4Beamline A “Swiss Army Knife” for Geant4 Tom Roberts Muons,
26 Oct 2010PC Physics Requirements of Software from Chris R ~19 Oct. My.
Notes About MARS background simulations for BTeV A Summary of how far we’ve come and how far we have to go. By DJ Wagner 9/12/98 Vanderbilt University.
How to use it? Basically, given a fieldmap for an RF structure, the time-dependent fields are E(x,y,z,t) = maxGradient * Eo(x,y,z) * sin(ω(t – timeOffset))
Status of BDSIM Simulation L. Nevay, S. Boogert, H. Garcia-Morales, S. Gibson, R. Kwee-Hinzmann, J. Snuverink Royal Holloway, University of London 17 th.
Field Modelling Tools in G4MICE MICE VC Chris Rogers 1st Feb 2006.
G4MICE/G4Beamline interface Kenny Walaron. Before March ’04 Collaboration Meeting G4MICE  Initially modelled cooling channel G4Beamline  Initially modelled.
MEIC Detector and IR Integration Vasiliy Morozov, Charles Hyde, Pawel Nadel-Turonski MEIC Detector and IR Design Mini-Workshop, October 31, 2011.
17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 Geant4 Collaboration.
Machine-Detector Interface 2 Applying G4beamline Tom Roberts Muons, Inc. June 27, 2011 TJR1Machine-Detector Interface 2.
Lesson Plan: Drafting and Design J6-2. What is 3D solid modeling? How do 3D solid modeling programs work?
A Short Course on Geant4 Simulation Toolkit Introduction
TECH 104 – Technical Graphics Communication Week 12: 3D Modeling Basics.
Dark Current in ILC Main Linac N.Solyak, A.Sukhanov, I.Tropin ALCW2015, Apr.23, 2015, KEK LCWS'15, Tsukuba, 04/2015Nikolay Solyak1.
MAUS Status A. Dobbs CM43 29 th October Contents MAUS Overview Infrastructure Geometry and CDB Detector Updates CKOV EMR KL TOF Tracker Global Tracking.
Background simulations: update and simulations of absorbed dose
L. Pandola INFN, Gran Sasso National Laboratories
European Organization for Nuclear Research
User Documents and Examples I
Physics Processes Missing from our Current Simulation Tools
Geometry checking tools
A Short Course on Geant4 Simulation Toolkit Introduction
Status of energy deposition studies IR7
Geant4 in HARP V.Ivanchenko For the HARP Collaboration
GAMOS tutorial Plug-in’s Exercises
Use of GEANT4 in CMS The OSCAR Project
Presentation transcript:

G4beamline Introduction and New Features A “Swiss Army Knife” for Geant4. Tom Roberts Muons, Inc. Januaary 23, 2014 TJRG4beamline1

Introduction G4beamline is a general, flexible, and extensible program for Geant4 simulations, optimized for beamlines. The emphasis is on being able to perform a realistic simulation, with a flexible and user-friendly interface. In practice, it is much more general than just beamlines (e.g. there is a cosmic-ray “beam”). It is based on Geant4, a modern HEP toolkit that implements much of what is known about particle interactions. Requires no programming by users. Includes collective effects such as space charge (infinite boundary conditions). Includes support for scripting, parallel jobs on a cluster, and MPI jobs on a workstation or supercomputer. G4beamline is open source, and freely available. Januaary 23, 2014 TJRG4beamline2

Using the Program The basic idea is to define each beamline element, and then place each one into the beamline at the appropriate place(s) All aspects of the simulation are specified in a single ASCII input file: –Element definitions –Geometry (placements of elements; includes E&M fields) –Input Beam –Physics processes –Program control parameters –Generation of output NTuples ‘include’ commands can be used to split the input file into sections The input file is a sequence of commands with named arguments Each command has its own list of arguments Command and argument names are spelled out, so the input file becomes a record of the simulation that is readable by others Help is easily available for each command Januaary 23, 2014 TJRG4beamline3

Using the Program Complex manual procedures have been automated: –The granularity of field maps can be automatically determined by specifying the required accuracy –RF Cavities can be tuned, for timing and gradient; both can be fixed or automatically tuned –Bending magnet fields can be tuned Geometry layout has been greatly simplified –Beam elements are simply lined up along the Z axis, using centerline coordinates –Centerline coordinates behave naturally for bending magnets –Elements may overlap (e.g. nested pipes), but not intersect –Many elements can be the parent of other elements – hierarchical geometry –Offsets and rotations are specified naturally –Automatic geometry testing detects invalid intersections All of the Geant4 9.6 physics lists are available by name Initial beam tracks can be generated internally, or read from a file Most Geant4 visualization drivers are supported by name –Open Inventor is included, and is by far the most user friendly Januaary 23, 2014 TJRG4beamline4

Using the Program The result is a program that reduces the complexity of the user input to that of the system being simulated –A major drawback of any simulation program, especially those using Geant4, is that C++ simulation code is considerably more complex than the problem. While C++ programming is not required to use the program, knowledge of the problem domain is absolutely required, as is enough experience to distinguish sensible results from nonsense. Visualization is highly recommended, to verify that the geometry is correct and makes sense. In some ways, a G4beamline simulation is more like a real experiment than any beam-optics code: –Materials must be specified –Magnets and RF cavities must be tuned –Shielding must be used to avoid unwanted backgrounds –You will see lots of delta-rays (etc.) Januaary 23, 2014 TJRG4beamline5

Beamline Elements absorber boolean box coil cylinder extrusion fieldexpr fieldmap genericbend genericquad helicaldipole helicalharmonic idealsectorbend Januaary 23, 2014 TJRG4beamline6 lilens multipole particlefilter pillbox polycone rfdevice solenoid sphere tessellatedsolid torus trap tube tubs Boolean and tessellatedsolid permit quite complex geometries.

Control Commands define do exit for g4ui geometry group if / elseif / else include list output param randomseed showmaterial trackermode tune Januaary 23, 2014 TJRG4beamline7 corner cornerarc start beam cosmicraybeam particlesource reference material particlecolor place physics emfactor setdecay spacecharge spacechargelw fieldlines

Output Commands (most generate NTuples) beamlossntuple NTuple containing particle tracks when lost. detector Construct a Detector that generates an NTuple. fieldntuple Generates an NTuple from B and E newparticlentuple NTuple containing particle tracks when created. ntuple Define an NTuple containing multiple detectors. printf Prints track variables and expressions (at list of z-s) printfield Prints E or B fields, or writes FieldMap file. probefield Prints B and E fields at specified points. profile Write beam profile information to a file (at list of z-s) timentuple Construct an NTuple of tracks at a specified time. totalenergy Print total energy deposited in selected volumes. trace Specifies tracing of tracks. tracker Defines a tracker. virtualdetector Construct a VirtualDetector zntuple Generate an NTuple for each of a list of Z positions. printf permits you to write track information in whatever format you want. Januaary 23, 2014 TJRG4beamline8

Example – The MICE Beamline Januaary 23, 2014 TJRG4beamline9

Example – Mu2E Januaary 23, 2014 TJRG4beamline10

Example – Cosmic-Ray Tomography Januaary 23, 2014 TJRG4beamline11 A 30-second exposure of a freight container with four 20 cm spheres: H 2 O, Al, Fe, U. (H 2 O is not visible.) Each dot is the vertex of an incoming and outgoing muon track.

Example – B-field Lines Januaary 23, 2014 TJRG4beamline12 Rectangular Bend Quadrupole Octopole A single chaotic field line (red) from crossed current loops (black) Field lines are in 3-D, so they don’t look like 2-D textbook pictures.

New Features in G4beamline 2.16 (January 2014) Januaary 23, 2014 TJRG4beamline13

New Features: Physics Geant4 9.6.p02 on Linux and Mac; still Geant4.9.5.p01 on Windows Geant4Data versions updated Added RadioactiveDecay process to all ions, in all physics lists The beam command now supports ions as beam particles for ASCII input files (output NTuples already supported them) Polarized muons from pion decay can be tracked; they decay properly. The beam command now supports polarization in ASCII and Root input files. The default physics list is now FTFP_BERT Januaary 23, 2014 TJRG4beamline14

New Features: Geometry New command: boolean - does union, intersection, and subtraction between two simple volumes: boolean, box, extrusion, polycone, sphere, tessellatedsolid, torus, trap, tubs. New command: tessellatedsolid - generates a solid defined by its surface consisting of triangles and planar quadrilaterals. New command: detector - similar to virtualdetector, except defaults to local coordinates, and outputs the energy deposited into the NTuple. New command: label - puts visible labels into the world (text labels or points). New command: survey - generates a survey file containing element positions. Januaary 23, 2014 TJRG4beamline15

Example – boolean Januaary 23, 2014 TJRG4beamline16 An extrusion (8-pointed star) subtracted from a cylinder. The view here is looking through the hole it made.

Example – tessellatedsolid Januaary 23, 2014 TJRG4beamline17 Icosahedron, with each vertex labeled by its index in the vertex array.