Interfacing Geant4 and Garfield

Slides:



Advertisements
Similar presentations
General Characteristics of Gas Detectors
Advertisements

Advanced Neutron Spectrometer (ANS) Geant4 Simulations
Neutron detectors and spectrometers 1) Complicated reactions → strong dependency of efficiency on energy 2) Small efficiency → necessity of large volumes.
Geiger-Muller detector and Ionization chamber
Radiation Detectors / Particle Detectors
Particle interactions and detectors
Introduction to Hadronic Final State Reconstruction in Collider Experiments Introduction to Hadronic Final State Reconstruction in Collider Experiments.
Hadronic and Electromagnetic Physics: special applications V.Ivanchenko BINP, Novosibirsk, Russia & CERN, Geneve, Switzerland.
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)
Report via EVO – WG4 Alain Bellerive 1 Hello World !
17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 Geant4 Japan.
Stopping Power The linear stopping power S for charged particles in a given absorber is simply defined as the differential energy loss for that particle.
Geant4: Electromagnetic Processes 2 V.Ivanchenko, BINP & CERN
St. Petersburg State University. Department of Physics. Division of Computational Physics. COMPUTER SIMULATION OF CURRENT PRODUCED BY PULSE OF HARD RADIATION.
Summary of Work Zhang Qiwei INFN - CIAE. Validation of Geant4 EM physics for gamma rays against the SANDIA, EPDL97 and NIST databases.
User Documents and Examples I Sébastien Incerti Slides thanks to Dennis Wrigth, SLAC.
Tools for Nuclear & Particle Physics Experimental Background.
Novel MPGD Based Neutron Detectors for the European Spallation Source
Geant4 Electromagnetic Physics Introduction V.Ivanchenko, M.Maire, M.Verderi  Process interface  Physics categories  Electromagnetic physics  PhysicsList.
IFluka : a C++ interface between Fairroot and Fluka Motivations Design The CBM case: –Geometry implementation –Settings for radiation studies –Global diagnosis.
Physics I: Physics Lists Geant4 Tutorial at Jefferson Lab 10 July 2012 Dennis Wright (SLAC) Geant4 9.6 beta.
User Documents and Examples II Geant4 Tutorial at Marshall Space Flight Center 18 April 2012 Dennis Wright (SLAC) Geant4 V9.5.
1 Physics I: Physics Lists Paris Geant4 Tutorial 4 June 2007 Marc Verderi Laboratoire Leprince-Ringuet (Heavily copied from D. Wright) Geant4 V8.3.
Computing Performance Recommendations #13, #14. Recommendation #13 (1/3) We recommend providing a simple mechanism for users to turn off “irrelevant”
17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 Geant4 Collaboration.
Simulation of GOSSIP/GridPix Nominal Detector, and GOSSIP in ATLAS.
Introduction What is detector simulation? A detector simulation program must provide the possibility of describing accurately an experimental setup (both.
4th Workshop on Geant4 Bio-medical Developments and Geant4 Physics Validation Riccardo Capra 1 Physics processes Software process and OOAD.
Plans for a Simulation Study of the Magnetic Field Requirements of the LC TPC February 2006, ILC TPC Analysis Jamboree, DESY Christian Hansen University.
ECAL software development Yuri Kharlov IHEP Protvino.
Physics I: Physics Lists Puebla Geant4 Tutorial 15 June 2010 Dennis Wright Geant4 V9.3.p01.
GD AND GD2O3 COATINGS AS NEUTRON CONVERTERS Dorothea Pfeiffer
How do we detect particles? When energetic charged particles pass through matter, they leave a trail of ions. Most detectors work by seeing these ions.
TPC Detector Simulators TPC Fast Simulator & TPC Response Simulator April 9, 2000 ALICE-STAR Joint Meeting.
Maria Grazia Pia, INFN Genova and CERN1 Geant4 highlights of relevance for medical physics applications Maria Grazia Pia INFN Genova and CERN.
Development of a Single Ion Detector for Radiation Track Structure Studies F. Vasi, M. Casiraghi, R. Schulte, V. Bashkirov.
C++ and Worshop – WG4 Alain Bellerive 1. Outline C++ Interface... Interface... Interface... C++ GarfieldMainFrame (3 rd attempt!!!) New Garfield in C++
UNCLASSIFIED Fundamental Aspects of Radiation Event Generation for Electronics and Engineering Research Robert A. Weller Institute for Space and Defense.
ESS-CERN WORK ON MPGDS FOR NMX INSTRUMENTS Dorothea Pfeiffer
Gas Detectors and Neutron Detection
MONTE CARLO TRANSPORT SIMULATION Panda Computing Week 2012, Torino.
A Short Course on Geant4 Simulation Toolkit Introduction
Chapter 2 Radiation Interactions with Matter East China Institute of Technology School of Nuclear Engineering and Technology LIU Yi-Bao Wang Ling.
A Study of Reverse MC and Space Charge Effect Simulation with Geant4
High Energy Physics experiments.
Simulation of the Time Response of a VPT
12th Geant4 Space Users Workshop
L. Pandola INFN, Gran Sasso National Laboratories
The Transition Radiation Detector for the PAMELA Experiment
Mircomegas - Gas gain simulation studies -
Numerical simulations on single mask conical GEMs
Neutron detectors for the NMX instrument
User Documents and Examples I
How a Particle Detector works
Physics I: Physics Lists
A shortcut to the tracking
Other GEANT4 capabilities
The Hadrontherapy Geant4 advanced example
Use of Geant4 in experiment interactive frameworks AliRoot
Higgs Factory Backgrounds
A Short Course on Geant4 Simulation Toolkit Introduction
Interaction of Radiation with Matter
(On Behalf of CMS Muon Group)
Marc Verderi GEANT4 collaboration meeting 01/10/2002
Interfacing Geant4, Garfield++ and Degrad for the Simulation of Gaseous Detectors Dorothea Pfeiffer1,2, Lennert De Keukeleere3, Carlos Azevedo4, Francesca.
The Geant4 Hadrontherapy Advanced Example
PHYS 3446, Spring 2012 Andrew Brandt
Construction and Test of a Modular GEM for EIC
Presentation transcript:

Interfacing Geant4 and Garfield RD51 Collaboration meeting Aveiro 13.09.2016 Dorothea Pfeiffer

Steps in gas detector simulation To simulate a gaseous detector, the following five processes are relevant: Primary high energy particle ionization Forming of ionization clusters in gas Drift of ionization clusters to amplification stage and detector read out Amplification/creation of additional ionization via avalanche Forming of electronic signal at read out

Why interfacing Geant4/Garfield? Only the first process is provided by the Geant4 kernel Depending on the aim of the simulation, the deposited energy and the location where the primary ionization occurs can already be sufficient (1) For (2) – (5), the user has to provide either her own code, or can use an existing software package like Garfield (Fortran) or Garfield++ (C++) Garfield is used because of its predictive power of optimizing drift properties of electrons and ions, and calculating avalanches and the gain of the detector Possible to exchange data between Geant4 and Garfield via data files, but interfacing the two programs is a more elegant way

How interfacing Geant4/Garfield? Idea: Use Geant4 provides physics parameterization capabilities (example Par01) The general idea of parameterization in Geant4 is to create a region, where the user can provide her own implementation of the physics and the detector response. In the case of the Geant4/Garfield++ interface, the user implementation of the detector response is based on Garfield++. Question: At which point is the control transferred from Geant4 to Garfield++?

Task division Geant4/Garfield++ 1b 2 Charged particle Charged particle gamma Primary particle entering gas PAI/PAIPhot Model In gas region (Standard and low energy EM physics) (Standard and low energy EM physics) Physics model in Geant4 Geant4 Point of transfer of Control between Geant4/Garfield++ “Kill” secondary e- produced in gas region in Geant4 “Kill” primary when entering gas region in Geant4 “Kill” gamma when entering gas region in Geant4 TransportDeltaElectron() SetParticle() NewTrack() TransportPhoton() TrackHeed Method in Heed/Garfield++ Garfield++ Garfield++ simulation according to needs

Comparison of options: 1a In Geant4 an additional low energy physics model like the G4PAIPhotModel or G4PAIModel has to be active in the region. The primary particle that the user wants to detect thus ionizes the gas and creates electrons. These electrons are subsequently killed in Geant4, and recreated as delta electrons in Garfield++ using the TransportDeltaElectron() function of Heed The primary particle lives on, and can undergo further physics processes in Geant4 if it is energetic enough to leave the gas region Although intended for relativistic charged particles, the PAI/PAIPhot models in Geant4 also work with non-relativistic ones (user has to test whether model works for particular case) recommended

Comparison of options: 1b Heed also uses an implementation of the PAI model, but does not support Coulomb scattering The primary particle does not loose energy and leaves a very straight track The PAI model in Heed does not work for non-relativistic particles (error messages) Since the primary particle is killed in Geant4 upon entering the gas volume, it cannot undergo further physics processes in Geant4 if it is energetic enough to leave the gas region Use with care

Implementation: G4Region A G4Region or envelope consists of one or more G4LogicalVolumes, that often correspond to the volumes of sub detectors. To simulate e.g. the detector response of an ionization chamber behind a target, the gas volume inside the chamber would form a G4Region, in which Garfield++ is used as parameterized model instead of Geant4. For the remainder of the geometry like the target or the vessel of the chamber, the Geant4 physics is valid.

Implementation: G4Region Gas region where Garfield++ is used

Implementation: G4Region The G4Region is created during the detector construction:

Implementation: G4VFastSimulationModel To create the parameterized physics model, the user has to create a new class derived from G4VFastSimulationModel (Responsible in the Geant4 team: Alberto Ribon) . Name G4VFastSimulationModel implies that the parameterized model is usually simpler and thus faster than the full Geant4 tracking. Garfield++ model a slow model, so name should not be taken in its literal sense. G4VFastSimulationModel has three pure virtual methods, which must be overridden in the Garfield++ model: G4bool IsApplicable(const G4ParticleDefinition& particleType) G4bool ModelTrigger(const G4FastTrack& fastTrack) void DoIt(const G4FastTrack& fastTrack, G4FastStep& fastStep)

Implementation: G4VFastSimulationModel

Implementation: G4VFastSimulationModel During the detector construction, an instance of the GarfieldModel is created. The G4Region, that was created before, is given as a parameter to the constructor of the GarfieldModel.

Implementation: G4VUserPhysicsList G4FastSimulationManagerProcess is the physics process of the parameterization. It serves as interface between the Geant4 tracking and the user parameterization. At tracking time, the G4FastSimulationManagerProcess collaborates with the G4VFastSimulationManager of the current volume, and allows the user model to be triggered. In the user physics list, the G4FastSimulationManagerProcess must now be added as a discrete process to the process list of the particles for which the model shall apply. A discrete process is a process that uses only the PostStepDoIt method.

Implementation: G4VUserPhysicsList

Implementation: Garfield++ Physics The method void DoIt(const G4FastTrack& fastTrack, G4FastStep& fastStep) contains the Garfield++ simulation, that has to be created by the user depending on the individual needs The only material that is used in Garfield for the electron transport is the gas, the other materials do not have any influence on the physics behaviour. The geometry is only important for the E- and B-field definition, and to define the limit of the gas volume. The electrons are not transported beyond the volume.

Implementation: Geometry and Fields Only part of the geometry that is needed is the shape of the gaseous region, and that can be created from the Geant4 geometry via GDML export Elements like the wires of a wire chamber or GEM foils can be implemented in Geant4, if important for the simulation (interaction probability). In Garfield++ they will only be present in the form of a field map (GEM foil) or the analytical field definition (wires) E- and B-fields can be also defined in Geant4, if they influence the primary particle Field of two GEM holes

Implementation: Compilation and linking Result is one C++ Geant4 program that is linked against Garfield++

Limitations of Geant4/Garfield interface Comments by Vladimir Ivanchenko and Alberto Ribon: The way is fine in which you use the PAIPhotModel via the method G4EmConfigurator::SetExtraEmModel . However, it is safer here to set 0.0 (instead of 0.01*keV) as minimum energy in which the model is applicable. The PAIPhotModel, although it is recommended by its author (Vladimir Grichine) has been less tested and validated than PAIModel, so it could be worth considering also the latter as a possible alternative model. The approach of using the fast-simulation machinery of Geant4 for interfacing it to Garfield could not work optimally in the case of dense particle flows, for instance very close to the collision point, or in an electromagnetic or hadronic showers.  In fact, in these cases, Garfield should consider the combined energy deposits produced by all "primary" particles that pass through the gas detector in the same time window.

Users of Geant4/Garfield interface Geant4/Garfield++ interface example is now part of the Garfield++ distribution (Heinrich Schindler) https://garfieldpp.web.cern.ch/garfieldpp/ https://garfieldpp.web.cern.ch/garfieldpp/examples/geant4-interface/ Interface code included in the latest Geant4 VMC version (Ivana Hrivnacova) https://root.cern.ch/geant4-vmc Simulation projects: ESS: Simulation of Gd-GEM for NMX (DP) NASA Goddard Space Flight Center, Astroparticle Physics Laboratory: Simulation of a large (2m x 2m x 2m) micro-well detector (essentially a GEM capped at one end). Primary interest is in imaging the pair products (e-/e+) from 5-200 MeV gamma-rays (Andrei Hanu) GSI R3B collaboration: Simulation of active target detector, where the He4 gas constitutes both the target and the detection medium (Oleg Kiselev) IHEP China: Simulation of B4C neutron detector (Liu Guanglei) Mohammed V University Rabat: Fission Chamber (Arahmane Hanane) Raman Research Institute, Bangalore: (Varun Bahal)