GAUSS - GEANT4 based simulation for LHCb

Slides:



Advertisements
Similar presentations
Use of G EANT 4 in CMS AIHENP’99 Crete, April 1999 Véronique Lefébure CERN EP/CMC.
Advertisements

USE OF GEANT4 FOR LHCB RICH SIMULATION S. Easo, RAL, LHCB AND ITS RICH DETECTORS. TESTBEAM DATA FOR LHCB-RICH. OVERVIEW OF GEANT4 SIMULATION.
15 March, 2000LHCb Computing1 Software Review Panel LHCb Answers to Architecture, Data Model and Program Infrastructure Pere Mato for the LHCb Collaboration.
25/03/2003Simulation Application for the LHCb Experiment CHEP March 2003 Presented by: W. Pokorski / CERN Authors: I. Belyaev, Ph. Charpentier,
LHCb Simulation Tutorial CERN, 21 st -22 nd February B 00 l e How to pass a detector geometry to.
LHCb Simulation Tutorial CERN, 21 st -22 nd February B 00 l e Detector Simulation and Geant4.
Gaudi Framework Tutorial, April Introduction.
Nick Brook Current status Future Collaboration Plans Future UK plans.
N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER Charles Leggett The Athena Control Framework in Production, New Developments and Lessons Learned.
ALICE Simulation Framework Ivana Hrivnacova 1 and Andreas Morsch 2 1 NPI ASCR, Rez, Czech Republic 2 CERN, Geneva, Switzerland For the ALICE Collaboration.
W. Pokorski - CERN Simulation Project1 Python binding for Geant4 toolkit using Reflex/PyROOT tool Witek Pokorski EuroPython 2006, CERN, Geneva
Introduction to Gaudi LHCb software tutorial - September
RICH SIMULATION USING GEANT4 S.EASO, RAL OBJECTIVES OF THE SIMULATION. CURRENT STATUS AND PLANS. INTEGRATION WITH LHCb SOFTWARE. SUMMARY.
Gaudi Framework Tutorial, April Algorithm Tools: what they are, how to write them, how to use them.
CHEP /21/03 Detector Description Framework in LHCb Sébastien Ponce CERN.
GDB Meeting - 10 June 2003 ATLAS Offline Software David R. Quarrie Lawrence Berkeley National Laboratory
Geant4 versus External Frameworks Approaches, Requirements and Constraints ATLAS, LHCb, CMS, Alice M. Stavrianakou CERN/CMC Geant4  -review
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.
A proposal for a Proposal for a Simulation Framework in BTeV G. Cerati, E. Di Maio, S. Magni, D. Menasce.
CHEP /21/03 Detector Description Framework in LHCb Sébastien Ponce CERN.
Detector Description in LHCb Detector Description Workshop 13 June 2002 S. Ponce, P. Mato / CERN.
GAUDI Muon Software  Algorithms : Muon Digitization MuonL0Trigger MuonIdentification  Detector Description Database  Transient Detector Store  Detector.
General requirements for BES III offline & EF selection software Weidong Li.
CERN Tutorial, February Introduction to Gaudi.
1 OO Muon Reconstruction in ATLAS Michela Biglietti Univ. of Naples INFN/Naples Atlas offline software MuonSpectrometer reconstruction (Moore) Atlas combined.
The LHCb simulation application, Gauss: design, evolution and experience M. Clemencic (CERN), G. Corti (CERN), S. Easo (RAL), C. Jones (Cambridge), S.
RICH Simulation in LHCb LHC Detector Simulation Workshop S.Easo, RAL, On behalf of LHCb–RICH group.
Overview Methodology Design Architecture Outline of future work Ideas for discussion.
Geant4 Simulation for KM3 Georgios Stavropoulos NESTOR Institute WP2 meeting, Paris December 2008.
Elements of LCG Architecture Application Architecture Blueprint RTAG 8 th June 2002 P. Mato / CERN.
David Adams ATLAS Hybrid Event Store Integration with Athena/StoreGate David Adams BNL March 5, 2002 ATLAS Software Week Event Data Model and Detector.
The Ring Imaging Cherenkov Detectors for LHCb Antonis Papanestis CCLRC – RAL On behalf of the LHCb RICH group.
LHCb Simulation LHCC Computing Manpower Review 3 September 2003 F.Ranjard / CERN.
M. Clemencic (CERN), G. Corti (CERN),
Interaction with the Geant4 kernel
The Generator Phase in Gauss
Migration of reconstruction and analysis software to C++
EvtGen Miniworkshop, Patrick Robbe LAL Orsay, 21 Jan 2005
GLAST Gaudi Review T. Burnett H.Kelly 10 Sept 02 Gaudi code review
The LHCb Software and Computing NSS/IEEE workshop Ph. Charpentier, CERN B00le.
A C++ generic model for the GLAST Geometric Description
Status of GEANT4 in LHCb S. Easo, RAL, The LHCb experiment.
Interaction with the Geant4 kernel
GAUSS - GEANT4 based simulation for LHCb
LHCb Software Tutorial
Introduction to Gaudi LHCb software tutorial - December 2010.
OO Muon Reconstruction in ATLAS
LHCb-Italian Software Tutorial
Marco Cattaneo, CERN February 2000
Geant4:User Actions and Analysis
Vincenzo Innocente CERN/EP/CMC
SW Architecture SG meeting 22 July 1999 P. Mato, CERN
LHCb Detector Description Framework Radovan Chytracek CERN Switzerland
Detector Description in LHCb
Use of Geant4 in experiment interactive frameworks AliRoot
Raw Event Conversion Service in BOSS framework
Simulation and Physics
Particle Identification with the LHCb Experiment
Geant4 in HARP V.Ivanchenko For the HARP Collaboration
Mantis a framework and toolkit for Geant4 simulation in CMS
Major Design Criteria Clear separation between “data” and “algorithms”
Discussion on managing the coexistence of CDF and XML geometry files
Use of GEANT4 in CMS The OSCAR Project
CMS Software Architecture
Introduction to Gaudi Schedule: Timing Topic 20 minutes Lecture
Use Of GAUDI framework in Online Environment
How can we study the magnetic distortion effect?
Planning next release of GAUDI
Simulation in Experiments searching for rare events
LHCb Detector Description Framework Radovan Chytracek CERN Switzerland
Presentation transcript:

GAUSS - GEANT4 based simulation for LHCb GEANT4 Users’ Workshop 14 November 2002 W. Pokorski / CERN

Contents Introduction to LHCb Overview of Gauss project GiGa – Gaudi interface to GEANT4 overview and presentation of a few selected topics Summary 14/11/2002 LHCb Simulation

LHCb Experiment Precision Measurements of CP violation in the B Meson System From the CP asymmetries in the final states of B-meson decays, measure CKM Angles. Large Sample of Events with Bd and Bs Mesons Most of the b hadrons are produced at small polar angles. LHCb: Single Forward Arm Spectrometer with Open Geometry. This design is being modified to optimize the performance of LHCb. 14/11/2002 LHCb Simulation

GAUDI – LHCb software framework all of the LHCb event processing software is built within a framework – Gaudi framework separation between data and algorithms data store-centred architectural style separation between transient and persistent data isolation of user codes/algorithms from underlying persistency technologies components interact through their abstract interfaces 14/11/2002 LHCb Simulation

GAUDI - Object Diagram Converter Interactive Service Application Manager Converter Converter Event Selector Transient Event Store Data Files Message Service Persistency Service Event Data Service JobOptions Service Algorithm Algorithm Algorithm Data Files Transient Detector Store Particle Prop. Service Persistency Service Detec. Data Service Other Services Data Files Transient Histogram Store Persistency Service Histogram Service 14/11/2002 LHCb Simulation

Gauss application Int.face GiGa Digi Alg Geant4 (GiGa) Pythia etc JobOpts JobOpts JobOpts Int.face GiGa Digi Alg Geant4 (GiGa) Pythia etc Geant4 MCParticle MCVertex MCHit Digit MCDigit HepMC Cnv Cnv Cnv Geometry Generator Detector Simulation Digitization 14/11/2002 LHCb Simulation

GiGa overview GEANT4 Interface for Gaudi Applications or Gaudi Interface to GEANT4 Applications makes GEANT4 callable and controllable from within GAUDI environment common detector geometry source used by other applications (reconstruction, visualisation) communication via Transient Stores (Event, Detector Data) as any other service or algorithm in Gaudi use of common services (ParticlePropertySvc, RandomNumberSvc, MagneticFieldSvc, etc.) 14/11/2002 LHCb Simulation

GiGa structure Data Files Persistency Service Application Manager GiGaKine Conversion Service G4 Kine Transient Event Store Event Service Geant4 GiGaHits Conversion Service G4 Hits Algorithm Converter Algorithm Cnv GiGa Service Algorithm Cnv Transient Detector Store GiGaGeom Conversion Service G4 Geom Action Detec. Service Action we can see two parts of GiGa GiGaCnv – converts data (geometry, events) from and to transient stores (and loads it/extracts it to/from G4) GiGa – configures, triggers and control the actual simulation Other Services Data Files Persistency Service 14/11/2002 LHCb Simulation

GiGa features it is a façade pattern minimizes the couplings to Geant4 all interactions with Geant4 only through abstract interfaces of GiGa Service provides access to internal G4 event loop via GiGaRunManager instantiates different “actions” and physics lists using abstract factory approach (makes them to be plugable components) 14/11/2002 LHCb Simulation

A few selected topics: Dynamic loading and instantiation using Abstract Factories GiGaRunManager GaussTrajectory and GaussEventAction Loading the Geometry Sensitive Detectors Physics lists 14/11/2002 LHCb Simulation

Abstract Factory approach (1/3) concrete implementations of different functional parts (user actions, physics lists, etc) are collected in “component libraries” not linked to the main program, used purely at run-time changes in the implementation of the component library does not require the application to be relinked configurable at run-time set of components (different UserActions, Physics lists, etc) can be changed by specifying different jobOptions of the application 14/11/2002 LHCb Simulation

Abstract Factory approach (2/3) List of dlls to load Table of components that could be instantiated DLL DLL getFactoryTable DLL ApplicationMgr FactoryTable Set of options for components (for ex cuts for physics list) Factories which are in charge of instantiating concrete objects {instantiate} SvcFactory SvcFactory xxxFactory IFactory “new” executed here!!! {new} Application Service Service UserActions, Physics Lists, etc 14/11/2002 LHCb Simulation

Abstract Factory approach (3/3) Gaudi world G4 world virtual Gaudi Services Abstract Factory returns pointer to this concrete implementations of components 14/11/2002 LHCb Simulation

GiGaRunManager GiGaRunManager is a specialization of G4RunManager no beamOn method, “event loop” external to GiGaRunManager, no “G4 run” concept simulation of single events triggered (and controlled) externally calls directly to G4EventManager::processOneEvent construction of primary events controlled from outside of G4 “event building” controlled from jobOptions no UserPrimaryGeneratorAction::GeneratePrimaries direct control over calls to G4Event::AddPrimaryVertex possibility of combining several generated events (pile-up) inside one G4 events by setting appropriate jobOptions 14/11/2002 LHCb Simulation

GaussTrajectory implements G4VTrajectory in addition to G4Trajectory: time of flight at each TrajectoryPoint – needed in order to convert to LHCb event model speciallized AppendStep method – triggered by a flag set in GaussStepAction::UserSteppingAction controls which trajectory points to append (begin, end, reflections of optical photons, creation of interesting particles, etc) storing (or not) of trajectories controlled by GaussTrackingAction 14/11/2002 LHCb Simulation

GaussTracking Action PostUserTrackingAction: takes decision whether to store given trajectory several criteria implemented (to be extended) depending on: energy, energy of secondaries particle type, particle type of secondaries creation of a hit etc in case a trajectory is not stored, consistency is assured by updating ParentID of the secondaries to the last (in given decay chain) stored trajectory 14/11/2002 LHCb Simulation

GiGa - Geometry Conversion Xml description Materials Volumes Xml Cnv Geo Conversion Service Converter Converter Gaudi transient store Geant4 Materials Geant4 Volumes 14/11/2002 LHCb Simulation

Geometry conversion ex. (RICH 1) XmlGaudiGiGaG4OpenGL 14/11/2002 LHCb Simulation

Sensitive Detectors & Hits GiGaSensDetTracker G4TrackerHits (Geant4) creates GiGaTrackerHitsCnv ProcessHit() Geant4 world converts to: invoked when particle passed through the sensitive volume MCHits (/Event/MC/OT/Hits) lvVolume (XmlDDDB) Gaudi world <logvol name="lvU_ActiveLayer" … sensdet="GiGaSensDetTracker/myDet"> 14/11/2002 LHCb Simulation

Detector Simulation – “physics lists” crucial part of the whole simulation program – will certainly require several tuning iterations most of the stuff already implemented in Geant4 some specific processes needed implementation for RICH: photoelectric process (creation of photoelectrons in HPDs), energy loss: in the silicon of HPDs modular physics lists implemented using Abstract Factories concept allows dynamic loading and configuration (via jobOptions) of different physics lists, not need to recompile anything expected to increase flexibility and to make validation easier 14/11/2002 LHCb Simulation

RICH1 with SingleParticleGun RICH1 Event Pion with 7 GeV/c. Cherenkov Photons In Aerogel and C4F10. Rayleigh scattering Switched off for Illustration. S. Easo 14/11/2002 LHCb Simulation

RICH1 Hits 14/11/2002 LHCb Simulation

Panoramix view of MCHits 14/11/2002 LHCb Simulation

Panoramix view of MCHits (2) 14/11/2002 LHCb Simulation

Summary LHCb simulation application build within common LHCb software framework (used by reconstruction, visualization, analysis) communication with GEANT4 via an interface (GiGa) allowing flexible use of G4 functionalities extensive use of AbstractFactory concept, allowing run-time loading of specific components 14/11/2002 LHCb Simulation