VMC workshop1 Ideas for G4 navigation interface using ROOT geometry A.Gheata ALICE offline week, 30 May 05.

Slides:



Advertisements
Similar presentations
Testing Relational Database
Advertisements

Geant4 v9.2p02 Speed up Makoto Asai (SLAC) Geant4 Tutorial Course.
Specialized Geant4 navigation for GATE Jan De Beenhouwer Steven Staelens.
WebDynpro for ABAP Short introduction.
Some tips for geometries of medical applications Makoto Asai (SLAC)
Geometry 5 I.Hrivnacova¹, J.Apostolakis² ¹IPN, Orsay; ²CERN Cours Paris June 2007.
Framework for track reconstruction and it’s implementation for the CMS tracker A.Khanov,T.Todorov,P.Vanlaer.
U-Solids: new geometrical primitives library for Geant4 and ROOT Marek Gayer CERN Physics Department (PH) Group Software Development for Experiments (SFT)
ALICE Offline week, CERN 21 February 2005 I. Hrivnacova 1 New geometry framework in MUON I.Hrivnacova IPN, Orsay ALICE Offline week, CERN 21 February 2005.
Usage of ROOT geometry with GEANT4
Presenter : Ching-Hua Huang 2013/9/16 Visibility Enhancement for Silicon Debug Cited count : 62 Yu-Chin Hsu; Furshing Tsai; Wells Jong; Ying-Tsai Chang.
Conditions DB in LHCb LCG Conditions DB Workshop 8-9 December 2003 P. Mato / CERN.
17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 Geant4 Collaboration.
Maria Grazia Pia Detector Response Acknowledgements: A. Lechner, J. Apostolakis, M. Asai, G. Cosmo, A. Howard.
European Test Symposium, May 28, 2008 Nuno Alves, Jennifer Dworak, and R. Iris Bahar Division of Engineering Brown University Providence, RI Kundan.
ALICE Simulation Framework Ivana Hrivnacova 1 and Andreas Morsch 2 1 NPI ASCR, Rez, Czech Republic 2 CERN, Geneva, Switzerland For the ALICE Collaboration.
XML in Atlas: from generic to parametric detector description Stan Bentvelsen NIKHEF Amsterdam XML workshop, CERN, May 22.
Andreas Morsch, CERN EP/AIP CHEP 2003 Simulation in ALICE Andreas Morsch For the ALICE Offline Project 2003 Conference for Computing in High Energy and.
The ALICE Simulation Strategy Andreas Morsch For the ALICE Offline Group Joint STAR/ALICE Offline Meeting Brookhaven National Laboratory, Upton, NY April.
ROOT I/O for SQL databases Sergey Linev, GSI, Germany.
Thread-safety and shared geometry data J. Apostolakis.
Darmstadt, 15. November 2015 Tobias Stockmanns, FZ Jülich1 A STEP to ROOT converter for the FairRoot framework ALICE-FAIR Computing Meeting, GSI,
Abstract ESOLID is a computational geometry system that performs boundary evaluation using exact computation. Boundary Evaluation Exact computation Problem.
CHEP /21/03 Detector Description Framework in LHCb Sébastien Ponce CERN.
FLUKA dose and fluence simulations for CBM experiment I.Kadenko, O.Bezshyyko, V.Pluyko, V.Shevchenko National Taras Shevchenko University of Kiev.
17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 Geant4 Collaboration.
Virtual Monte Carlo and new geometry description in STAR Maxim Potekhin STAR Collaboration Meeting, BNL July 17, 2004 July 17, 2004.
STAR STAR VMC tracker V. Perevoztchikov Brookhaven National Laboratory,USA.
Geant4 in production: status and developments John Apostolakis (CERN) Makoto Asai (SLAC) for the Geant4 collaboration.
The GeoModel Toolkit for Detector Description Joe Boudreau Vakho Tsulaia University of Pittsburgh CHEP’04 Interlaken.
Jump to first page The new ROOT geometry package Andrei Gheata - ALICE Institute of Space Sciences, Bucharest.
STAR Event data storage and management in STAR V. Perevoztchikov Brookhaven National Laboratory,USA.
Using of XML for object store S. Linev, GSI Using of XML for object store. S.Linev2 Content XML and existing packages XML and existing packages.
AliRoot survey P.Hristov 11/06/2013. Offline framework  AliRoot in development since 1998  Directly based on ROOT  Used since the detector TDR’s for.
Toulouse, September 2003 Page 1 JOURNEE ALTARICA Airbus ESACS  ISAAC.
The High Performance Simulation Project Status and short term plans 17 th April 2013 Federico Carminati.
CHEP /21/03 Detector Description Framework in LHCb Sébastien Ponce CERN.
U-Solids: new geometrical primitives library for Geant4 and ROOT Marek Gayer CERN Physics Department (PH) Group Software Development for Experiments (SFT)
ECAL software development Yuri Kharlov IHEP Protvino.
STL CSSE 250 Susan Reeder. What is the STL? Standard Template Library Standard C++ Library is an extensible framework which contains components for Language.
R EDESIGN OF TG EO FOR CONCURRENT PARTICLE TRANSPORT ROOT Users Workshop, Saas-Fee 2013 Andrei Gheata.
David Adams ATLAS Datasets for the Grid and for ATLAS David Adams BNL September 24, 2003 ATLAS Software Workshop Database Session CERN.
Analysis experience at GSIAF Marian Ivanov. HEP data analysis ● Typical HEP data analysis (physic analysis, calibration, alignment) and any statistical.
STAR Simulation. Status and plans V. Perevoztchikov Brookhaven National Laboratory,USA.
Detector Description (Overview) C.Cheshkov. 25/9/2006Detector Description (C.Cheshkov)OutlineTerminology Overview on: Detector geometry implementation.
IHP Im Technologiepark Frankfurt (Oder) Germany IHP Im Technologiepark Frankfurt (Oder) Germany ©
ROOT Geometry PackageL1 The New ROOT Geometry Package ACAT2002 Moscow 24 June Ren é Brun, Andrei & Mihaela Gheata CERN.
MONTE CARLO TRANSPORT SIMULATION Panda Computing Week 2012, Torino.
New features in ROOT geometrical modeller for representing non-ideal geometries René Brun, Federico Carminati, Andrei Gheata, Mihaela Gheata CHEP’06,
POOL Based CMS Framework Bill Tanenbaum US-CMS/Fermilab 04/June/2003.
Status of TFluka: geometry and validation Andrei Gheata ALICE Off-line week, 21 Feb
Monthly video-conference, 18/12/2003 P.Hristov1 Preparation for physics data challenge'04 P.Hristov Alice monthly off-line video-conference December 18,
Product Training Program
Big Data is a Big Deal!.
J. Apostolakis, M. Asai, G. Cosmo, A. Howard
Programming with ANSI C ++
Status of geometrical modeler
Geant4 Geometry Speed-ups
A C++ generic model for the GLAST Geometric Description
Geant4 Geometry Objects Persistency using ROOT
Task Scheduling for Multicore CPUs and NUMA Systems
Markus Frank CERN/LHCb CHEP2013, Amsterdam, October 14th–18th 2013
HEP detector description supporting the full experiment life cycle
Ideas for G4 navigation interface using ROOT geometry
C++ for Geant4 users A collection of most useful and/or common features used in and to use Geant4 Marc Verderi LLR – Ecole polytechnique 14/11/2018 Marc.
Read-out and detector response
A shortcut to the tracking
OO-Design in PHENIX PHENIX, a BIG Collaboration A Liberal Data Model
Read-out and detector response
VMC/GeoGeometry status report 2/2/05
Presentation transcript:

VMC workshop1 Ideas for G4 navigation interface using ROOT geometry A.Gheata ALICE offline week, 30 May 05

A.Gheata GEANT4-TGeo interface2 Motivation Possibility to compare G3,G4 and FLUKA simulations having the same geometry modeller for navigation ALICE geometry built in G3 style Conversion problems for some special G3 features G3 FLUKA G4 TGeo VGM G4 geometry VMC/ User code/ Other formats G4 / TGeo interface

A.Gheata GEANT4-TGeo interface3 Navigation functionality required G4 navigation driven by G4Navigator class. Geometrical queries taking point,vector,flags as input and returning distance/flags ComputeStep(), ComputeSafety(), GetLocalExitNormal() All these provided also by TGeo Geometrical queries requiring a geometrical state as input Local-to-Global and Global-to-local transformations Geometry queries finding a state and/or acting on a state ResetHierarchyAndLocate(), LocateGlobalPointAndXXX() Geometrical state management and handles

A.Gheata GEANT4-TGeo interface4 Preliminary observations GEANT4 GEANT4 navigation needs finally the same geometrical parameters as the other transport codes, but this information needs to be embedded in/provided by G4 native geometrical objects Some of these represented by virtual classes (G4VSolid, G4VPhysicalVolume, G4VTouchable,…) Some not virtual but needed (G4LogicalVolume) Possible approaches and strategies discussed with G4 team at VMC workshop last year

A.Gheata GEANT4-TGeo interface5 Preliminary observations (2) First implementation of the interface depends on: Which are the G4 geometrical classes that are really required for navigation ? What is the mapping between G4 objects and TGeo ones – is there a 1/1 correspondence ? Are the methods purely related to navigation corresponding to what is offered by TGeo ? Knowing all this, what is the best strategy to follow ? Requiring as less as possible development effort, but providing needed functionality Optimizing performance at low memory cost – what is the “good compromise”

A.Gheata GEANT4-TGeo interface6 G4  TGeo object mapping G4VSolid  TGeoShape Both abstract base classes with several implementations Same quantities computed: In/Out, distance to boundary, safety, normal to exit point All G4 solids to have a TGeo correspondence Interface class straightforward: TG4Solid : public G4VSolid Implementation is mandatory Data member: TGeoShape *fShape All query methods can be mapped ON BOUNDARY condition not provided in TGeo at this level (current point can be moved by transportation on a boundary without re- checking the in/out state) Determined during computation of distance to next boundary

A.Gheata GEANT4-TGeo interface7 Positioned volumes G4VPhysicalVolume  TGeoNode A volume positioned relative to its container Same functionality Slightly different structures and some differences in parameterization (divisions) treatment – not a stumbling block in the VMC approach Interface class: TG4PhysicalVolume : public G4VPhysicalVolume Data members: TGeoNode *fNode, TG4LogicalVolume *fVolume A mapping TGeoNode  TG4PhysicalVolume absolutely needed since TGeoNode is the object provided by TGeo navigation methods

A.Gheata GEANT4-TGeo interface8 Touchables G4VTouchable  TGeoCacheState/TGeoPhysicalNode Representing a geometrical “touchable” unique object, e.g. a branch in the logical volume hierarchy Created by the navigation interface, ref.-counted handles can be asked also by users Temporary object during TGeo navigation, but supports push/pop mechanism Interface: A pool of G4 touchable pre-built objects + ref-count handle mechanism (?) TG4VTouchable : public G4VTouchable, holding the current branch of TG4PhysicalVolume objects

A.Gheata GEANT4-TGeo interface9 Logical volumes G4LogicalVolume  TGeoVolume None abstract, both key elements in the logical hierarchy ! Not directly manipulated by TG4Navigator, but required from G4VTouchable/G4VPhysicalVolume by physics processes. Replicas, division, parameterisations First 2 more or less the same in TGeo, third different Tracking requires/acts according this information May affect only when converting parameterized G4 geometries to TGeo

A.Gheata GEANT4-TGeo interface10 Few approaches G4 with its own navigator, working just with TGeo shapes as G4VSolid Fast implementation Derived navigator just redirecting some geometry computation tasks to TGeo Needs TGeo state in sync. with G4 Additional objects to be interfaced G4Navigator TG4RootNavigator G4double ComputeStep() { … fGeoManager->FindNextBoundary() } + other nav. Methods G4double ComputeStep() + other nav. Methods

A.Gheata GEANT4-TGeo interface11 Few approaches (cont) G4 touchables and physical nodes interfaced, G4 logical volumes still created. Part of G4 geometry objects in memory in parallel with TGeo ones Global geometry computation methods delegated to TGeo Fully TGeo-driven G4 navigation Hard to think at this stage at all implications Feasibility to be clarified once we progress

A.Gheata GEANT4-TGeo interface12 A possible strategy Step 1: TGeoShape acting as G4VSolid Most easy to implement, probably the very first step to do Instead of creating a native G4 solid make rather an object having a pointer to the corresponding ROOT shape. Does not need full ROOT geometry to be built Requires just the new derived class TG4Solid + few modifications in the existing GEANT4 VMC Allows immediately a direct testing/cross check for query/classification algorithms at the level of solids Step2: Implementation of the mechanism of handling touchables in G4 style Can be done at the level of the interface, but also direcly in TGeo Not a tremendous effort – can be plugged in the interface once ready

A.Gheata GEANT4-TGeo interface13 Strategy (cont) Step 3: Interfacing/mapping G4 and TGeo logical hierarchies G4 needs its G4LogicalVolume objects => we have to provide them Basically 2 ways for doing this: Pool of limited number of objects of this type, as in the case of touchables Several complications related to the fact that these are not virtual objects + heavy interface management Just create and store full G4 logical tree in memory, in parallel with TGeo ones Size less than 10 MBytes for geometries like ALICE or ATLAS Will surely make the implementation easier Connect the physical volume list as vector and create the mapping TGeoNode->TG4PhysicalNode

A.Gheata GEANT4-TGeo interface14 Strategy (last) Step 4: Once we have all the infrastructure, implement all required navigation methods in TG4RootNavigator : public G4Navigator Most methods have a 1/1 correspondence with TGeoManager methods, or are just derived queries that can be factorized in a manageable way

A.Gheata GEANT4-TGeo interface15 Conclusions Interfacing G4 navigation with TGeo is a challenge, but can be implemented Step by step operation, may come-up with some first results much earlier than expected even if full validation will definitely be longer At this stage of understanding - no major stumbling block : G4 and TGeo geometries are alike We will definitely find some as we progress Help from G4 team in these cases will be more than welcome We can now start this effort as G3 and FLUKA geometry interfaces are implemented/validated