Makoto Asai.  Parallel layered mass geometry  Other minor improvement  G4Exception.

Slides:



Advertisements
Similar presentations
The Geant4 Kernel: Status and Recent Developments John Apostolakis, Gabriele Cosmo – CERN / PH Makoto Asai – SLAC On behalf the Geant4 collaboration April.
Advertisements

Geant4 v9.2p02 Speed up Makoto Asai (SLAC) Geant4 Tutorial Course.
Geant4 v9.2p02 Kernel III Makoto Asai (SLAC) Geant4 Tutorial Course.
23 March 2007Event Biasing Mini-Workshop, SLAC Geant4 9.0 Release Schedule Gabriele Cosmo.
Improvement of G4Exception (and an announcement on G4ApplicationState) Makoto Asai (SLAC) on behalf of Architecture team.
Makoto Asai (SLAC) Geant4 Users CERN Nov. 12 th, 2002 Detector Sensitivity.
Makoto Asai (SLAC) Geant4 Users SLAC Feb. 18 th, 2002 Detector Sensitivity.
14 User Documents and Examples I SLAC Geant4 Tutorial 3 November 2009 Dennis Wright Geant4 V9.2.p02.
Nested Parameterization
Highlights of latest developments ESA/ESTEC Makoto Asai (SLAC)
Makoto Asai (SLAC) Geant4 Users SLAC Feb. 20th, 2002 Stack management, Digitization and Pile-up.
Makoto Asai (SLAC) Geant4 Users CERN Nov. 13th, 2002 Stack management, Digitization and Pile-up.
Some tips for geometries of medical applications Makoto Asai (SLAC)
14 User Documents and Examples II SLAC Geant4 Tutorial 17 May 2007 Dennis Wright Geant4 V8.3.
Geant4 New Features Joseph Perl (SLAC/SCCS) G4NAMU AAPM Minneapolis 22 July 2007.
17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 Geant4 Japan.
G.Barrand, LAL-Orsay Geant4 and interactive frameworks.
CLEO’s User Centric Data Access System Christopher D. Jones Cornell University.
CSCC69: Operating Systems Assignment 3 Review. Assignment Review Implement the file-related system calls – open, close, dup2 – read, write, lseek – chdir,
G EANT highlights kernel modules Gabriele Cosmo, CERN PH-SFT for the Geant4 Collaboration Gabriele Cosmo, CERN PH-SFT for the Geant4 Collaboration.
User Documents and Examples I Sébastien Incerti Slides thanks to Dennis Wrigth, SLAC.
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.
Geant4 v9.3p01 Kernel III Makoto Asai (SLAC) Geant4 Tutorial Course.
17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 Geant4 Collaboration.
Physics I: Physics Lists Geant4 Tutorial at Jefferson Lab 10 July 2012 Dennis Wright (SLAC) Geant4 9.6 beta.
Special Topics in Nuclear Physics, JU, Second Semester, (Saed Dababneh). 1 Course web or
Maria Grazia Pia Detector Response Acknowledgements: A. Lechner, J. Apostolakis, M. Asai, G. Cosmo, A. Howard.
7th December 2007Geant4 Manchester Seminar1 Geant4 A simulation toolkit Geometry and tracking 4th incarnation.
1 Physics I: Physics Lists Paris Geant4 Tutorial 4 June 2007 Marc Verderi Laboratoire Leprince-Ringuet (Heavily copied from D. Wright) Geant4 V8.3.
Geant4 v9.4 Kernel III Makoto Asai (SLAC) Geant4 Tutorial Course.
Meeting Goals Makoto Asai and Marc Verderi 2010 Geant4 Collaboration ESA/ESTEC.
Chapter 6 Introduction to Defining Classes. Objectives: Design and implement a simple class from user requirements. Organize a program in terms of a view.
The GeoModel Toolkit for Detector Description Joe Boudreau Vakho Tsulaia University of Pittsburgh CHEP’04 Interlaken.
Alex Howard, ETH, Zurich 13 th September 2012, 17 th Collaboration Meeting, Chartres 1 Geometrical Event Biasing Facility Alex Howard ETH, Zurich Geometrical.
VMC workshop1 Ideas for G4 navigation interface using ROOT geometry A.Gheata ALICE offline week, 30 May 05.
Software testing techniques Software testing techniques Interface Testing Presentation on the seminar Kaunas University of Technology.
A Thread-Parallel Geant4 with Shared Geometry Gene Cooperman and Xin Dong College of Computer and Information Science Northeastern University 360 Huntington.
Parallel Session Report of P2 on October 1, 2002 Interactivity & External Frameworks: Picking Satoshi Tanaka Ritsumeikan University (Rits)
Architecture team and Inter-category design/interface Makoto Asai (SLAC) 10/Oct/2002 Geant4 delta-review.
WORK Bo-Wen Shiou. GNUmakefile GNUmakefile XXX.cc (ex:try03.cc) XXX.cc (ex:try03.cc) include folder (xxx.hh) include folder (xxx.hh) src folder (xxx.cc)
V.Ivanchenko Salamanca1 Geant4: Electromagnetic Processes 1  Introduction  Interfaces  PhysicsList  Optical process.
CSCC69: Operating Systems Tutorial 10. Hints on testing Assignment 3 How to test tlb replacement algorithms? – Write a program that creates an array larger.
HDGeant4 Development Report major hurdles overcome in geometry geometry validation complete particles now tracking in magnetic field remaining milestones.
Physics I: Physics Lists Puebla Geant4 Tutorial 15 June 2010 Dennis Wright Geant4 V9.3.p01.
John Apostolakis & Makoto Asai for the Geant4 Collaboration 1(Draft) SNA-MC 2010.
Geant4 release 5.1 summary Gabriele Cosmo EP/SFT.
Pedro Arce G4WS’10 October 6th, Voxelised geometries intersected with a volume Pedro Arce CIEMAT, Madrid 2010 Geant4 Workshop ESA, 4-8 October 2010.
Read-out and detector response
Use of Ions in MT Makoto Asai 2013 Geant4 Collaboration Seville.
Geometry 3 I.Hrivnacova IPN, Orsay Most slides thanks to M. Asai, SLAC Cours Paris June 2007.
2011 Development Plan Makoto Asai (SLAC PPA/SCA) on behalf of the Geant4 Collaboration March 3 rd, Geant4 Technical Forum.
1 Exercises 0 Go inside the “hadrontherapy” directory: cd hadrontherapy Copy the Hadrontherapy example to your home folder: cp –r $G4INSTALL/examples/advanced/hadrontherapy.
Makoto Asai.  In the past, material is considered only if it appears in the mass (tracking) world. The user might define parallel world(s) for artificial.
Review of Open Problem Reports
J. Apostolakis, M. Asai, G. Cosmo, A. Howard
User Documents and Examples I
Memory Management Chapter 10 11/24/2018 Crowley OS Chap. 10.
Read-out and detector response
Detector sensitivity Makoto Asai (SLAC Computing Services)
A shortcut to the tracking
Other GEANT4 capabilities
Read-out and detector response
The n-3He Simulation Using Geant4
Marc Verderi GEANT4 collaboration meeting 01/10/2002
G4 Workshop 2002 Detector Description Parallel Session
Kernel Author: Makoto Asai.
Makoto Asai (SLAC) Geant4 Users CERN Nov. 13th, 2002
Geant4: Detector description module
Monte Carlo /12/25.
release 5.0 – planned features
Presentation transcript:

Makoto Asai

 Parallel layered mass geometry  Other minor improvement  G4Exception

 In the past, material is considered only if it appears in the mass (tracking) world. The user might define parallel world(s) for artificial purposes, i.e. shower parameterization envelopes, readout/scoring geometry, dedicated stepping action.  Now, the user may define a material in parallel world(s) which is also seen by physics processes.

Mass worldParallel world - 1 Parallel world - 2Tracking time

 A step is limited on the boundary of any volume of any world.  The step (and all physics processes) sees the material defined in the top-most later. If the top-most layer has null pointer to material, material in next layer is used.

int main(int argc,char** argv) { G4String paraWorldName = "ParallelWorld"; Tst1DetectorConstruction* realWorld = new Tst1DetectorConstruction; Tst1ParallelWorldConstruction* parallelWorld = new Tst1ParallelWorldConstruction(paraWorldName); realWorld->RegisterParallelWorld(parallelWorld); runManager->SetUserInitialization(realWorld); // G4VUserPhysicsList* physics = newTst1PhysicsList(paraWorldName); runManager->SetUserInitialization(physics);

void Tst1ParallelWorldConstruction::Construct() { // World G4VPhysicalVolume* ghostWorld = GetWorld (); G4LogicalVolume* worldLogical = ghostWorld->GetLogicalVolume(); G4Material* water = G4Material::GetMaterial("Water"); // parallel world placement box G4VSolid* paraBox = new G4Box("paraBox",5.0*cm,30.0*cm,5.0*cm); G4LogicalVolume* paraBoxLogical = new G4LogicalVolume(paraBox, water,"paraBox"); new G4PVPlacement(0,G4ThreeVector(-25.0*cm,0.,0.),paraBoxLogical, "paraBox",worldLogical,false,0);

#include "G4ParallelWorldProcess.hh" void Tst1PhysicsList::AddParallelWorldProcess() { G4ParallelWorldProcess* theParallelWorldProcess = new G4ParallelWorldProcess("paraWorldProc"); theParallelWorldProcess->SetParallelWorld(pWorldName); theParallelWorldProcess-> SetLayeredMaterialFlag(); theParticleIterator->reset(); while( (*theParticleIterator)() ){ G4ParticleDefinition* particle = theParticleIterator->value(); if(particle!=G4ChargedGeantino::Definition()) { G4ProcessManager* pmanager = particle->GetProcessManager(); pmanager->AddProcess(theParallelWorldProcess); if(theParallelWorldProcess->IsAtRestRequired(particle) { pmanager->SetProcessOrderingToLast(theParallelWorldProcess, idxAtRest); } pmanager->SetProcessOrdering(theParallelWorldProcess, idxAlongStep, 1); pmanager->SetProcessOrderingToLast(theParallelWorldProcess, idxPostStep); }

 Replacement of G4ParallelWorldScoringProcess  If SetLayeredMaterialFlag() is not set, it behaves as G4ParallelWorldScoringProcess.  For each parallel world, dedicated object of G4ParallelWorldProcess is required.  It is a process. Thus it may be assigned to some selected types of particles.

 Material-cuts-couple (MCC) is examined for all worlds.  At the tracking time, material pointer and MCC pointer in G4StepPoint are changed to those for top-most layer before invoking GPIL() of each physics process.

 Brachytherapy treatment for prostate cancer. Manually implemented DICOM

 Firstly seeds were placed in the empty parallel world DICOM

 Seeds in the parallel world were pencapsulated in empty boxes for faster navigation DICOM

 Two major use-cases  Concept of “many” in Geant3  Different level of complexity for different particle types  In HENP  Rapid prototyping for complicated detector  Sampling calorimeter  Detector partially dipped in liquid  In space  Satellite structure and loaded aparatus  In medicine  Treatment head overlapping to DICOM data

 Computing performance of cylindrical scoring mesh has been improved significantly (~30%) by fixing the use of G4Division for G4Tubs.

 Based on the requests from LHC experiments, and on the agreed collaboration work plan for 2011, we will unify the format of error / warning messages made by G4Exception.  Obsolete: G4Exception(const char* message)

G4Exception(const char* originOfException, const char* exceptionCode, G4ExceptionSeverity severity, const char* comments) G4Exception(const char* originOfException, const char* exceptionCode, G4ExceptionSeverity severity, G4ExceptionDescription& description) G4Exception(const char* originOfException, const char* exceptionCode, G4ExceptionSeverity severity, G4ExceptionDescription& description, const char* comments)

 originOfException: class::method name where this exception is issued. e.g. G4RunManager::BeamOn()  exceptionCode: Error code which is unique to this error. Error code should be a combination of string and ID number. String can be a (sub-)category name or (physics) model name. e.g. Run0001, Bertini It must not be like "FileNotFound".  severity enum G4ExceptionSeverity { FatalException, FatalErrorInArgument, RunMustBeAborted, EventMustBeAborted, JustWarning };  G4ExceptionDescription: Current G4cout or G4cerr should be replaced by a local object of G4ExceptionDescription, which supports ostream operator (<<), setw(), G4endl and even G4BestUnit().

 quick check for geant ref-08 (maybe not exactly)  comment out old G4Exception in globals.hh  The below table shows “ # of errors in the own category (# of errors)” analysis0 digits_hits0 (14) error_propagation0 (5) event2 (15) externals0 g3tog40 (5) geometry32 global4 graphics_reps1 intercoms1 interfaces2 materials5 parameterisations0 (5) particles4 persistency12 (19) physics_lists0 (15) processes107 (379) readout0 (22) run0 (2) track0 (5) tracking0 (5) visualization17 (87)