Status of geometrical modeler

Slides:



Advertisements
Similar presentations
Geant4 v9.2p02 Speed up Makoto Asai (SLAC) Geant4 Tutorial Course.
Advertisements

Case Tools Trisha Cummings. Our Definition of CASE  CASE is the use of computer-based support in the software development process.  A CASE tool is a.
Andreas Morsch CERN/ALICE 3rd LHC Computing WorkshopMarseille, September 30, 1999 Base Classes for Simulation The ALICE Simulation Strategy Andreas Morsch.
Simulation Project Major achievements (past 6 months 2007)
HFT & PXL geometry F.Videbæk Brookhaven National Laboratory 13/9/12.
ROOT An object oriented HEP analysis framework.. Computing in Physics Physics = experimental science =>Experiments (e.g. at CERN) Planning phase Physics.
U-Solids: new geometrical primitives library for Geant4 and ROOT Marek Gayer CERN Physics Department (PH) Group Software Development for Experiments (SFT)
Usage of ROOT geometry with GEANT4
ALICE Simulation Framework Ivana Hrivnacova 1 and Andreas Morsch 2 1 NPI ASCR, Rez, Czech Republic 2 CERN, Geneva, Switzerland For the ALICE Collaboration.
Chapter 1 Program design Objectives To describe the steps in the program development process To introduce the current program design methodology To introduce.
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.
240-Current Research Easily Extensible Systems, Octave, Input Formats, SOA.
FLUKA dose and fluence simulations for CBM experiment I.Kadenko, O.Bezshyyko, V.Pluyko, V.Shevchenko National Taras Shevchenko University of Kiev.
Detector Simulation Presentation # 3 Nafisa Tasneem CHEP,KNU  How to do HEP experiment  What is detector simulation?
Virtual Monte Carlo and new geometry description in STAR Maxim Potekhin STAR Collaboration Meeting, BNL July 17, 2004 July 17, 2004.
The Virtual MonteCarlo D.Adamova 2, V.Berejnoi 1, R.Brun 1, F.Carminati 1, A.Fassó 1, E.Futo 1, I.Gonzalez 3, I.Hrivnacova 4, A.Morsch 1 1 CERN, Geneva;
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.
New software library of geometrical primitives for modelling of solids used in Monte Carlo detector simulations Marek Gayer, John Apostolakis, Gabriele.
Jump to first page The new ROOT geometry package Andrei Gheata - ALICE Institute of Space Sciences, Bucharest.
The CMS Simulation Software Julia Yarba, Fermilab on behalf of CMS Collaboration 22 m long, 15 m in diameter Over a million geometrical volumes Many complex.
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.
Introduction What is detector simulation? A detector simulation program must provide the possibility of describing accurately an experimental setup (both.
VMC workshop1 Ideas for G4 navigation interface using ROOT geometry A.Gheata ALICE offline week, 30 May 05.
Towards comparisons between TFluka and TGeant3 ( within CbmRoot Framework) Denis Bertini (IT-GSI) Antonin Maire (IPHC Strasbourg)
SiD Snowmass 05 Jaros1 Optimizing SiD getting from here….……………….to there SiD Concept/Snowmass August 16, 2005 John Jaros.
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.
Page 1 of 18 Bjorn S. Nilsen, ALICE November 16 ITS Software meeting ITS Alignment Status Plus other things By Bjørn S. Nilsen The Ohio State University.
AliRoot survey: Analysis P.Hristov 11/06/2013. Are you involved in analysis activities?(85.1% Yes, 14.9% No) 2 Involved since 4.5±2.4 years Dedicated.
STAR Simulation. Status and plans V. Perevoztchikov Brookhaven National Laboratory,USA.
Program Design. Simple Program Design, Fourth Edition Chapter 1 2 Objectives In this chapter you will be able to: Describe the steps in the program development.
ROOT Geometry PackageL1 The New ROOT Geometry Package ACAT2002 Moscow 24 June Ren é Brun, Andrei & Mihaela Gheata CERN.
AliRoot survey: Reconstruction P.Hristov 11/06/2013.
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,
AliRoot survey: Calibration P.Hristov 11/06/2013.
1 SLAC simulation workshop, May 2003 Ties Behnke Mokka and LCDG4 Ties Behnke, DESY and SLAC MOKKA: european (france) developed GEANT4 based simulation.
ANALYSIS TRAIN ON THE GRID Mihaela Gheata. AOD production train ◦ AOD production will be organized in a ‘train’ of tasks ◦ To maximize efficiency of full.
TGeo & VMCAndrei Gheata, 5 May 04Slide 1 (of 40) ROOT geometrical modeller and Virtual Monte-Carlo LCG-AA meeting Andrei Gheata.
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,
LHCb Software Week 25/11/99 Gonzalo Gracia Abril 1 r Status of Geant4 in LHCb. r Ideas on how to populate the LHCb Detector Description Data Base (LHCb.
January 2009 offline detector review - 2 nd go 1 ● Offline – Geometry – Material budget – Simulation – Raw data – OCDB parameters – Reconstruction ● Calibration.
The Emergent Structure of Development Tasks
SOFTWARE TESTING Date: 29-Dec-2016 By: Ram Karthick.
A Virtual Montecarlo (VMC) Application for AMS-01
Complex Geometry Visualization TOol
Geant4-based Simulation Status and Plans
Geant4 Geometry Speed-ups
Recent performance improvements in ALICE simulation/digitization
A C++ generic model for the GLAST Geometric Description
File System Structure How do I organize a disk into a file system?
Geant4 Geometry Objects Persistency using ROOT
Ideas for G4 navigation interface using ROOT geometry
(CMS GEANT4 simulation)
Tools of Software Development
The New ROOT Geometry Package
Geometry checking tools
Geant3 All collaborations are using G3 to a certain extent
Use of Geant4 in experiment interactive frameworks AliRoot
A Short Course on Geant4 Simulation Toolkit Introduction
Simulation Framework Subproject cern
Simulation and Physics
Search for coincidences and study of cosmic rays spectrum
Marc Verderi GEANT4 collaboration meeting 01/10/2002
G4 Workshop 2002 Detector Description Parallel Session
Use of GEANT4 in CMS The OSCAR Project
VMC/GeoGeometry status report 2/2/05
Presentation transcript:

Status of geometrical modeler Andrei Gheata ALICE off-line week, March 4, 2003

Topics Final goal reminder Navigation features : status & performance New features on visualization, I/O, user interface Geometry checking interactive utility Status of VMC integration Next steps

Why a new modeler ? ... Monitoring Geometry C++ package classes The geometrical package is intended as a toolkit to provide the geometrical description of an experiment, tracking-related functionality + additional tools to ease-up building, checking and debugging a geometry. In particular, it will allow us to run different simulations and reconstruction through the same interface. Bonuses : increased speed and performance, full decoupling of user code from external simulation engines. Geometry package Reconstruction program Simulation Geant3-based Geant4-based Fluka-based C++ classes ... MySQL Visualisation Monitoring

Requirements Tracking-related functionality - (''Where am I?'', ''Which next and how far?'', ...) Backward compatibility - to be able to reuse Geant3 geometries Scalability - LHC geometries are big, we have to be able to represent them Performance - it should be faster than existing modelers Interactivity - users should be able to access easily all relevant geometry information + checking tools, builder interface, ...

Navigation features - status These make the difference between a geometrical modeler and a transient store providing geometrical input for other applications. Long way from implementing to validating/optimizing/ tuning these features => took most of the time Luckily we had a gold mine of G3 geometries to test upon. ''Where am I ?'' => done and happy with Computing the distance to next boundary => done and working, some optimization for the most simple topologies needed Safety => globaly computed when needed, seem to work Normals to crossed surfaces => on demand (ongoing)

Automatic conversion from Geant3 Zebra memory Data structure JVOLUM JMATE,etc Root > .x mygeom.C Mygeom.c void gexam1() {TGeoMaterial *mat; TGeoMixture *mix; TGeoManager *gexam1 = new TGeoManager("gexam1","gexam1.C"); //-----------List of Materials and Mixtures-------------- mat = new TGeoMaterial("mat9","ALUMINIUM",26.98,13,2.7); mix = new TGeoMixture("mix10","IRON(COMPOUND)",3); mix->DefineElement(0,55.847,26,0.703964); mix->DefineElement(1,58.71,28,0.9900000E-01); mix->DefineElement(2,51.998,24,0.197); mat = new TGeoMaterial("mat11","COPPER",63.54,29,8.96); Geant > RZ/File 21 mygeom.geom on Zebra RZ mygeom.geom g2root mygeom.geom mygeom.C

Validation procedure Use one million points generated by Geant3 with full physics switched on

Validation procedure (2) Using points generated by Geant3 applications grecord.f --> mygeom.geom, mygeom.hbook Play-back these points in Geant3 using only the Geant3 geometry package. Compute g3path, snext, safety in myresults.hbook h2root myresults.hbook myresults.root Same operation with TGeo classes. Compare g3path with tgeopath, same for snext, safety Some discrepancies with Geant3 : Due to precision problems in Geant3 (single precision geometries collected), points recorded at the volume boundaries may be found on the other side by TGeo. When volumes declared MANY in Geant3 overlap and have sub-volumes also MANY, Geant3 is not always reporting the right answer. In general it does not matter, sometimes it does In this exercise, we also found original errors in the detector description, e.g. wrong paramers

ROOT modeler benchmarks vs. GEANT3 1 mil. Points extracted from G3 simulation (full physics) Point re-injected both in G3 and ROOT modeler, timings/track [microseconds] presented in the table.

''Where am I ?'' - physics

''Where am I ?'' - random

''Distance to next ?'' - physics

''Distance to next ?'' - random

New features Visualization Perspective view in ROOT pad Volume focusing on double-click HLR/HSR algorithms to be implemented Simple tests for all navigation features (random points, raytracing, safety visualized, lego plots for radiation length) User interface Added methods for compatibility with the virtual MC Most user actions for building geometry are now protected against errors

Detector weight Volume/detector weight estimation Based on randomly sampling current material (“where am I?”) Desired accuracy as input (default 1%) Weight of gases ignored (can be significant due to virtual containers) Some values : TPC : 7553 +/- 70 [kg] ITSD : 39.657 +/- 0.356 [kg] ABSM : 36634 +/- 146 [kg] DDIP : 814161 +/- 5073 [kg] PHOS : 18201 +/- 113 [kg] B076 : 4396 +/- 41 [kg]

I/O - file size Number RZ file text file(.C) root file nodes (kBytes) (kBytes) (kBytes) Alicenew 3080198 ->mem 2714 3070 Atlas 29046966 9863 5872 3554 Brahms 2649 688 149 101 CDF 24422 2412 1350 1252 CMS 1166310 13296 1930 1284 LHCb 1533488 2121 1053 1215 The size of the .root file and time to read are very important when developing a geometry. .root files includes full voxelization

Geometry checker It has to be able to checks for illegal extrusions/overlaps in the geometry definition. Few possible approaches : Primitive to primitive (shapes) intersection algorithms (136 combinations in our case ...) Mesh to mesh intersection => polygon to polygon, not fully accurate, but at least feasible, since all shapes have already meshes used by visualization Vertices approach : similar to mesh approach, but using only vertices information and the Contains(point) methods of shapes.

Extrusions Detected Not detected A given positioned volume should not extrude its container. (unless declared MANY Vertices approach necessary conditions : All vertices of a volume have to be contained by its container None of the container vertices should be contained by any daughter For better results, the number of segments approximating tubes,cones,..., was set to 80. Detected Not detected

Overlaps Detected Not detected A given volume should not intersect any brother volume (if none of the two is MANY) Vertices approach necessary conditions : All vertices of a volume have to be outside all its brothers N(N-1) combinations to check if a volume has N daughters Detected Not detected

Checking ALICE geometry The vertices approach is definitely unable to find all overlaps in a geometry, but : It finds the most frequent ones (more than 90%) It is very fast : ~20 seconds for full ALICE Is able to estimate how big the overlap/extrusion is Implementation : graphical interface producing a sorted list of overlaps per volume/geometry; the overlaps are drawable objects giving the full information about the overlap topology. Full ALICE : ~160 overlaps/extrusions bigger than 1 mm found, ~200 bigger than 100 microns

Geant4_mc.tar.gz includes the TVirtualMC <--> Geant4 The Virtual MC Allows running several MC's starting from the same code and having the same geometry for simulation, reconstruction and event display. Geant3.tar.gz includes an upgraded Geant3 with a C++ interface Geant4_mc.tar.gz includes the TVirtualMC <--> Geant4 interface classes G3 G3 transport User Code VMC G4 G4 transport Virtual Geometrical Modeller FLUKA FLUKA transport Reconstruction Visualisation Geometrical Modeller Generators

TGeo integration to VMC Started early this year by Rene -> new TGeant3 Required few modifications in the API + implementation of a new class TGeoMedium Methods to ease-up geometry building implemented in the manager class: Material(), Medium(), Matrix(), Volume(), Node(), Division() following as close as possible prototypes in VMC Functionality of navigation methods adapted to match VMC requirements

TGeant3 Can be compiled/run in 3 ways : G3 standalone (default) G3 + TGeo, G3 navigator : for debugging and validation purposes TGeo as main navigator : not fully working yet Can fully build ROOT geometry in AliRoot Is able to compute geometry steps through TGeo Several checks during parralel step computation validates TGeo algorithms.

TFluka Work started two weeks ago : the idea is to be able to replace Flugg (G4) with TGeo at some point. Now able to build ROOT geometry in parralel with G4 one Navigation : main issue. The wrapper-based mechanisms in Flugg providing to FLUKA the G4 navigation need to be understood. Many other details, like providing to FLUKA material ''cards'' based on TGeo materials instead of G4.

Next steps Main focus on TGeo ''adoption'' by TGeant3 and TFluka Work on optimizing computation of distances on some particular cases Computation of normal directions to the crossed surface has to work soon. Documentation has to be eventually written