A stable interface to read and write IAEA phase-space files in Geant4 M. A. Cortés-Giraldo 1, R. Capote 2, J. M. Quesada 1 1 Dep. Física Atómica, Molecular.

Slides:



Advertisements
Similar presentations
C Language.
Advertisements

First Step on User Commands Makoto Asai (SLAC) Geant4 Users CERN Nov. 11th, 2002.
Objectives Understand the software development lifecycle Perform calculations Use decision structures Perform data validation Use logical operators Use.
Tutorial 12: Enhancing Excel with Visual Basic for Applications
ME 316 Handout 11 Planar Kinematics of a Rigid Body: Review I 1.Particle vs. Rigid body 2.Planar motion vs. Spatial motion 3.Type of planar motion.
SEERE Workshop, Neum Tempura Retargeting Damyan Mitev, Vladimir Valkanov Plovdiv University “Paisii Hilendarski”
Geant4 v9.2p02 Particle Gun Makoto Asai (SLAC) Geant4 Tutorial Course.
Geant4 v9.2p02 Primary Particle Makoto Asai (SLAC) Geant4 Tutorial Course.
Primary particle generation Makoto Asai (SLAC) Geant4 Users CERN Nov. 12 th, 2002.
Primary particle generation Makoto Asai (SLAC) Geant4 Users SLAC Feb. 18 th, 2002.
Geant4 v9.4 Primary Particle Makoto Asai (SLAC) Geant4 Tutorial Course.
Geant4 v9.3p01 Primary Particle Makoto Asai (SLAC) Geant4 Tutorial Course.
Chapter 6. 2 Objectives You should be able to describe: Function and Parameter Declarations Returning a Single Value Pass by Reference Variable Scope.
Geography 465 Overview Geoprocessing in ArcGIS. MODELING Geoprocessing as modeling.
S. Guatelli, M.G Pia, INFN Genova S. Guatelli ( CERN, INFN Genova ) CERN, 13 November 2002 Users Workshop Where to put analysis in Geant4 Applications.
The Event as an Object-Relational Database: Avoiding the Dependency Nightmare Christopher D. Jones Cornell University, USA.
User Commands Makoto Asai (SLAC) Geant4 Users SLAC Feb. 19th, 2002.
Primary particle generation Makoto Asai (SLAC) Geant4 Users SLAC Feb. 18 th, 2002.
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.
DEVELOPMENT QA REPORTS A Series of Reports to Enforce Compliance with Your PeopleSoft Development Standards Leandro Baca.
Spreadsheet-Based Decision Support Systems Chapter 22:
Publishing a Macromedia Flash Movie – Lesson 131 Publishing a Macromedia Flash Movie Lesson 13.
A First Book of C++: From Here To There, Third Edition2 Objectives You should be able to describe: Function and Parameter Declarations Returning a Single.
Section 17.1 Add an audio file using HTML Create a form using HTML Add text boxes using HTML Add radio buttons and check boxes using HTML Add a pull-down.
17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 Geant4 Collaboration.
S. Guatelli, CPS Innovations, Knoxville, 13 th -21 st January Brachytherapy exercise.
1 Primary particles Geant4 User's Tutorial CERN, February 2010 Talk from previous tutorial by Giovanni Santin Ecole Geant4, Annecy 2008.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 13: Introduction to Classes.
Flex: A fast Lexical Analyzer Generator CSE470: Spring 2000 Updated by Prasad.
Primary particle Giovanni Santin ESA / ESTEC and RheaTech Ltd On behalf of the Geant4 collaboration Ecole Geant4 Annecy, and Nov 2008 With.
ALICE Simulation Framework Ivana Hrivnacova 1 and Andreas Morsch 2 1 NPI ASCR, Rez, Czech Republic 2 CERN, Geneva, Switzerland For the ALICE Collaboration.
Lecture 8 February 29, Topics Questions about Exercise 4, due Thursday? Object Based Programming (Chapter 8) –Basic Principles –Methods –Fields.
Copyright 2004 Scott/Jones Publishing Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 7 Structured Data and Classes.
Rachelle Howell and Ellen M. Rathje University of Texas at Austin NEEScomm IT Development Team.
ADTs and C++ Classes Classes and Members Constructors The header file and the implementation file Classes and Parameters Operator Overloading.
21 Jan 2008KEK-LAPP meeting1 DIPHOX event generation “direct” process only an analysis of events processed by PYTHIA Shigeru Odaka KEK/IPNS.
Generating Primary Particles Each Geant4 Event starts with generation of one or multiple primary particles It is up to the user to define primary particle.
MuSL Builder Handcrafting custom Mu Scenarios. MuSL in the Mu Scenario Editor.
Copyright © 2006 Pilothouse Consulting Inc. All rights reserved. Search Overview Search Features: WSS and Office Search Architecture Content Sources and.
Introduction to Microsoft Excel Macros COE 201- Computer Proficiency.
Status Report on the Validation Framework S. Banerjee, D. Elvira, H. Wenzel, J. Yarba Fermilab 15th Geant4 Collaboration Workshop 10/06/
CLHEP Components Geant4 and CLHEP Geant4 makes a rather substantial use of CLHEP components –System of units –Vector classes and matrices G4ThreeVector(typedef.
SEERE Workshop, Ivanjica JTempura Vladimir Valkanov, Damyan Mitev Plovdiv University “Paisii Hilendarski”
Pedro Arce Introducción a GEANT4 1 GAMOS tutorial RadioTherapy Exercises Pedro Arce Dubois CIEMAT
Geant4 Training 2003 Primary Particle Generation The full set of lecture notes of this Geant4 Course is available at
Geant4 release 5.1 summary Gabriele Cosmo EP/SFT.
Geant4 is a toolkit to simulate the passage of particles through matter, and is widely used in HEP, in medical physics and for space applications. Ongoing.
Announcements Assignment 1 due Wednesday at 11:59PM Quiz 1 on Thursday 1.
Copyright © 2015, 2012, 2009 Pearson Education, Inc., Publishing as Addison-Wesley All rights reserved. Chapter 13: Introduction to Classes.
28-Aug-2003 Steve Kahn Standardized MucGeant I/O Front End to MucGeant Standardize the input files for MucGeant: –The input should be in the ICOOL for003/4.
METADATA IN.NET Presented By Sukumar Manduva. INTRODUCTION  What is Metadata ? Metadata is a binary information which contains the complete description.
Workshop Geant4 Presentation September 14 th, 2007 FASTRAD V3.
PHP using MySQL Database for Web Development (part II)
Current Status of the Geometry Database for the CBM Experiment
Lec 6: Practical Database Design Methodology and Use of UML Diagrams
A C++ generic model for the GLAST Geometric Description
Section 17.1 Section 17.2 Add an audio file using HTML
Multi-Purpose Particle and Heavy Ion Transport code System
Chapter 9 Designing Databases
Primary Particle Generation
Test Beam Measurements october – november, 2016
Primary Particle Generation
SoLID Simulation Zhiwen Zhao (UVa) SoLID Jlab Physics Division
The Hadrontherapy Geant4 advanced example
Windows RSS Platform Aleksej Karelin.
Primary particle Makoto Asai (SLAC Computing Services)
Use of GEANT4 in CMS The OSCAR Project
The Geant4 Hadrontherapy Advanced Example
Synchronizers Outline motivation principles and definitions
Threads and concurrency / Safety
Presentation transcript:

A stable interface to read and write IAEA phase-space files in Geant4 M. A. Cortés-Giraldo 1, R. Capote 2, J. M. Quesada 1 1 Dep. Física Atómica, Molecular y Nuclear, University of Sevilla, Spain. 2 Nuclear Data Section, IAEA Headquarters, Austria. 14 th Geant4 Collaboration and Users’ Workshop LNS-INFN (Catania, Italy) October 21 st, 2009

14th Geant4 Collaboration and Users' Workshop 2 Contents Interface to read and write phase-space files in IAEA format –The IAEA Nuclear Data Section Project –Description of the interface IAEA routines Writer class Reader class –Results Summary and conclusions

14th Geant4 Collaboration and Users' Workshop 3 The IAEA Nuclear Data Section Project ( )

14th Geant4 Collaboration and Users' Workshop 4 The IAEA Nuclear Data Section Project The IAEA format: –The IAEA has created a standardized format to unify files made by different codes. –The complete IAEA format consists of two files: *.IAEAphsp : binary file where all the positions, momenta and extra-variables are stored. *.IAEAheader : ASCII file with miscellaneous information (statistical information, references, variables stored...) –In addition, routines to convert EGSnrc files to this format are provided. –More information at

14th Geant4 Collaboration and Users' Workshop 5 IAEA phase-space file interface in Geant4 A stable interface to read and write IAEA phase-space files has been developed to be used in Geant4 applications. “Stable” means that this interface is not affected by internal changes in the IAEA format that may happen in the future. The files involved are: –The IAEA routines published on their web site. –Our new classes: G4IAEAphspReader –Derived from G4VPrimaryGenerator. G4IAEAphspWriter –Just a singleton class. –Optional class for analysis with ROOT.

14th Geant4 Collaboration and Users' Workshop 6 IAEA phase-space file interface in Geant4 IAEA Routines: iaea_config.h : declares types of variables. iaea_header.h(.cc) : defines a ‘struct’ which manages the *.IAEAheader file. iaea_phsp.h(.cc) : defines all the methods to get/store the information from/to the IAEA phase-space files. iaea_record.h(.cc) : this is an structure that defines the format used to store the information. utilities.h(.cc) : miscellaneous definitions and functions. Available at

14th Geant4 Collaboration and Users' Workshop 7 G4IAEAphspWriter class Writer class properties: –Singleton. A messenger class can be associated easily. –Extra integer variable of type “incremental history number” is stored by default for statistical purposes. –Compatible with executions composed by several runs. To use it: –Three user action classes are needed: UserRunAction, UserEventAction and UserSteppingAction. –Call SetZStop(double) method for each phase space plane definition in UserRunAction constructor. –BeginOfRunAction(), EndOfRunAction(), BeginOfEventAction() and UserSteppingAcion() methods must be invoked in their suitable user action class.

14th Geant4 Collaboration and Users' Workshop 8 G4IAEAphspReader class Reader class properties: –Particles sharing the same original history are created in the same event in Geant4 to do statistical analysis properly. –Therefore, an event in the Geant4 simulation corresponds to a complete history and not only to a given particle. –Options provided for the user: Divide the phase-space file in chunks (parallel runs). –SetTotalChunks(G4int) Choose a certain chunk. –SetChunk(G4int) Particle recycling is considered as well. –SetTimesRecycled(G4int)

14th Geant4 Collaboration and Users' Workshop 9 G4IAEAphspReader class Spatial transformations : –In global frame can be done using these methods: SetGlobalPhspTranslation(const G4ThreeVector &); SetRotationX(G4double alpha); SetRotationY(G4double beta); SetRotationZ(G4double gamma); SetRotationOrder(G4int order); – order is a 3-digit integer number which combines 1, 2 and 3, without repetitions, meaning 1 = X, 2 = Y and 3 = Z axis. For example: order = 132 means first rotate around X, and second around Z axis.

14th Geant4 Collaboration and Users' Workshop 10 G4IAEAphspReader class Isocentric rotations: –Configured to rotate the collimator first. SetIsocenterPosition(const G4ThreeVector & ); SetCollimatorRotationAxis(const G4ThreeVector & ); SetCollimatorAngle( G4double ); SetMachineRotationAxis(const G4ThreeVector & ); SetMachineAngle( G4double );

14th Geant4 Collaboration and Users' Workshop 11 G4IAEAphspReader class How to use the reader class: In UserPrimaryGeneratorAction constructor the G4IAEAphspReader* pointer must be created, and all the ‘Set’ methods the user needs also must be invoked. ‘Set’ methods can be associated to a messenger class as well. In GeneratePrimaries method the user only have to invoke GeneratePrimaryVertex.

14th Geant4 Collaboration and Users' Workshop 12 IAEA phase-space file interface in Geant4 Results: Phase space files taken from the IAEA database.

14th Geant4 Collaboration and Users' Workshop 13 IAEA phase-space file interface in Geant4 Results: No rotationsGantry rotated 30 deg

14th Geant4 Collaboration and Users' Workshop 14 Geant4 Simulation of a Siemens Primus Linac Results. EGS vs. Geant4 PSF comparison: To be repeated with the new LowEnegy EM classes!

14th Geant4 Collaboration and Users' Workshop 15 Summary and conclusions An interface to read and write phase space files in IAEA format has been developed. –Easy to use and stable against future changes in the IAEA code. –Allows the possibility of creating associated messenger classes to modify the data members through a macro file. –Respects the correlations between particles, so it allows the user to do a proper statistical analysis. –Possibility of dividing the phase-space files into chunks to perform ‘parallel runs’. Publication about to be submitted. Available to the community in short time.

And that’s all... THANKS FOR YOUR ATTENTION 16 14th Geant4 Collaboration and Users' Workshop