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;

Slides:



Advertisements
Similar presentations
MEG-Review Feb MEG Software Group MEG Software Status Framework for MC, Schedule, DC reconstruction update and Discussion on a ROOT-based offline.
Advertisements

Virtual Monte Carlo I. Hrivnacova, IPN Orsay
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)
O. Stézowski IPN Lyon AGATA Week September 2003 Legnaro Data Analysis – Team #3 ROOT as a framework for AGATA.
25/03/2003Simulation Application for the LHCb Experiment CHEP March 2003 Presented by: W. Pokorski / CERN Authors: I. Belyaev, Ph. Charpentier,
1 Alice Experience with Geant4 F.Carminati 1, I.González 2, I.Hrivnacova 3, A.Morsch 1 for the ALICE Collaboration ( 1 CERN, Geneva; 2 IFCA, Cantabria;
17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 Geant4 Japan.
ROOT An object oriented HEP analysis framework.. Computing in Physics Physics = experimental science =>Experiments (e.g. at CERN) Planning phase Physics.
CBM Software Meeting 1 CBM Simulation & Analysis Framework M. Al-Turany, D. Bertini.
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
IEEE Nuclear Science Symposium and Medical Imaging Conference Short Course The Geant4 Simulation Toolkit Sunanda Banerjee (Saha Inst. Nucl. Phys., Kolkata,
Nick Brook Current status Future Collaboration Plans Future UK plans.
As of 28 Juni 2005Getting Starged with GEM - Shuei Yamada 1 Getting Started with GEM Shuei YAMADA ICEPP, University of Tokyo What is GEM? Before you start.
Updating JUPITER framework using XML interface Kobe University Susumu Kishimoto.
ATLAS and GridPP GridPP Collaboration Meeting, Edinburgh, 5 th November 2001 RWL Jones, Lancaster University.
CBM Software week- M. Al-Turany 1 CBM Simulation & Analysis Framework Simulation Part M. Al-Turany, D. Bertini.
Root based event display Dmitry Romanov October 19, 2010.
ALICE Simulation Framework Ivana Hrivnacova 1 and Andreas Morsch 2 1 NPI ASCR, Rez, Czech Republic 2 CERN, Geneva, Switzerland For the ALICE Collaboration.
Fabiola Gianotti, 31/8/’99 PHYSICS and SOFTWARE ATLAS Software Week 31/8/’99 Fabiola Gianotti Software requirements of physics groups What should Detector.
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.
R.T. Jones, Newport News, May The GlueX Simulation Framework GEANT4 Tutorial Workshop Newport News, May 22-26, 2006 R.T. Jones, UConn Monte Carlo.
October 20th, 2006 C. Gatto 1 4 th Concept Software Status Report.
FLUKA dose and fluence simulations for CBM experiment I.Kadenko, O.Bezshyyko, V.Pluyko, V.Shevchenko National Taras Shevchenko University of Kiev.
Virtual Monte Carlo and new geometry description in STAR Maxim Potekhin STAR Collaboration Meeting, BNL July 17, 2004 July 17, 2004.
Simulations for CBM CBM-India Meeting, Jammu, 12 February 2008 V. Friese
Geant4 in production: status and developments John Apostolakis (CERN) Makoto Asai (SLAC) for the Geant4 collaboration.
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.
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.
Hiroshima, th August 2015 S. Ibarmia, P. Truscott On behalf of the CIRSOS team.
CBM Software Meeting 1 CBM Simulation & Analysis Framework Geant3 / Gean4 configuration M. Al-Turany, D. Bertini.
VMC workshop1 Ideas for G4 navigation interface using ROOT geometry A.Gheata ALICE offline week, 30 May 05.
CBM ECAL simulation status Prokudin Mikhail ITEP.
GLAST LAT Offline SoftwareCore review, Jan. 17, 2001 Review of the “Core” software: Introduction Environment: THB, Thomas, Ian, Heather Geometry: Joanne.
SoLID simulation with GEMC Zhiwen Zhao 2015/03/26.
Towards comparisons between TFluka and TGeant3 ( within CbmRoot Framework) Denis Bertini (IT-GSI) Antonin Maire (IPHC Strasbourg)
ALFA GeoModel implementation and simulation status  ATHENA, what is our job?  ALFA GeoModel implementation  MC simulation – first steps  Problems 
STAR VMC project Maxim Potekhin for the STAR Collaboration VMC workshop at CERN Nov
Update G4builder issues Talk written almost entirely by Stan Bentvelsen with a few updates from Christopher Lester ATLAS G4 Workshop December 2000 CAMBRIDGE.
1 The AliRoot framework, status and perspectives R.Brun, P.Buncic, F.Carminati, A.Morsch, F.Rademakers, K.Safarik for the ALICE Collaboration CHEP 2003.
STAR Simulation. Status and plans V. Perevoztchikov Brookhaven National Laboratory,USA.
ATLAS Distributed Analysis DISTRIBUTED ANALYSIS JOBS WITH THE ATLAS PRODUCTION SYSTEM S. González D. Liko
ROOT Geometry PackageL1 The New ROOT Geometry Package ACAT2002 Moscow 24 June Ren é Brun, Andrei & Mihaela Gheata CERN.
Introduction to FCC Software FCC Istanbul 11 March, 2016 Alice Robson (CERN/UNIGE) on behalf of / with thanks to the FCC software group.
Status of PSD simulation in Shine Oleg Petukhov Institute for Nuclear Research, Moscow NA61 Analysis/Software/Calibration meeting , Warsaw.
MONTE CARLO TRANSPORT SIMULATION Panda Computing Week 2012, Torino.
A Short Course on Geant4 Simulation Toolkit Introduction
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
14/05/03 ATLAS Software WeekAlexandre Solodkov1 FLUKA and ATLAS TileCal testbeam simulation.
Installation of the ALICE Software
A Virtual Montecarlo (VMC) Application for AMS-01
Status of geometrical modeler
European Organization for Nuclear Research
Recent performance improvements in ALICE simulation/digitization
A C++ generic model for the GLAST Geometric Description
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
The New ROOT Geometry Package
Use of Geant4 in experiment interactive frameworks AliRoot
A Short Course on Geant4 Simulation Toolkit Introduction
Simulation Framework Subproject cern
G4 Workshop 2002 Detector Description Parallel Session
Agenda SICb Session Status of SICb software migration F.Ranjard
Planning next release of GAUDI
Presentation transcript:

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; 2 NPI, Rez; 3 IFCA, Cantabria; 4 IPN, Orsay For the ALICE Collaboration Presented by I. Hrivnacova Conference for Computing in High Energy and Nuclear Physics La Jolla, 27 March 2003

I. HrivnacovaCHEP 2003, La Jolla, 27 March Outline  Interfaces  Available MCs  Examples  Distribution  Future

I. HrivnacovaCHEP 2003, La Jolla, 27 March The VMC Concept  The Virtual MonteCarlo (VMC) has been developed in order to –Run the same user application with all supported transport Monte Carlos –Run different transport Monte Carlo programs without changing the user code and therefore the geometry definition, the detector response simulation, or input and output formats  VMC decouples the dependence of a user code from a concrete MC

I. HrivnacovaCHEP 2003, La Jolla, 27 March VMC Concept User Code VMC Geant4 VMC Particles Hits Geant4 Geant3 Output Fluka VMC Fluka Input Geant3 VMC

I. HrivnacovaCHEP 2003, La Jolla, 27 March Virtual Monte Carlo

I. HrivnacovaCHEP 2003, La Jolla, 27 March Interfaces (1)  TVirtualMC –Interface to the Monte Carlo program –Generalization of Geant3 functions for definition of simulation task Provides methods for definition of geometry and physics setup; for access to tracked particle properties during stepping; for run control –Implementations: TGeant3, TGeant4, TFluka (coming soon) Are provided for the user Methods For Building & Accessing Geometry Methods For Building & Accessing Materials Methods For Setting Physics Methods For Accessing Tracked Particle During Stepping Methods For Run Control Virtual MC

I. HrivnacovaCHEP 2003, La Jolla, 27 March Interfaces (2)  TVirtualMCApplication –Interface to a user application –Defines user actions at each stage of a simulation run –Mandatory –Implementation has to be done by a user ConstructGeometry InitGeometry GeneratePrimaries BeginEvent BeginPrimary PreTrack Stepping PostTrack FinishPrimary FinishEvent Virtual MC Application

I. HrivnacovaCHEP 2003, La Jolla, 27 March Interfaces (3)  TVirtualMCStack –Interface to a user defined particles stack –Mandatory –User can use the concrete stack classes provided in the examples or implement their own stack class  TVirtualMCDecayer –Interface to an external decayer –Eg. Pythia6 –Optional

I. HrivnacovaCHEP 2003, La Jolla, 27 March ConstructGeometry InitGeometry GeneratePrimaries BeginEvent BeginPrimary PreTrack Stepping PostTrack FinishPrimary FinishEvent User MC Application void MyMCApplication::Construct Geometry() { Double_t trackerTube[3]; trackerTube[0] = 0.; trackerTube[1] = 60.; trackerTube[2] = 50.; gMC->Gsvolu("TRTU", "TUBE", fImedAl, trackerTube, 3); Double_t posX = -100.; Double_t posY = 0.; Double_t posZ = 0.; gMC->Gspos("TRTU", 1, "EXPH", posX, posY, posZ, 0, "ONLY"); } Use of VMC Geometry Construction  Geometry is defined by calls to TVirtualMC interface

I. HrivnacovaCHEP 2003, La Jolla, 27 March void MyMCApplication::GeneratePrimaries() { // Define particle properties: // PDG encoding // position: vx, vy, vz, vt // momentum: px py, pz, e // … // Add particle to MC stack gMC->GetStack() ->SetTrack(toBeDone, -1, pdg, px, py, pz, e, vx, vy, vz, t, …); } Use of VMC Primary Particles  Primary particles are defined by calls to the TVirtualMCStack interface ConstructGeometry InitGeometry GeneratePrimaries BeginEvent BeginPrimary PreTrack Stepping PostTrack FinishPrimary FinishEvent User MC Application

I. HrivnacovaCHEP 2003, La Jolla, 27 March void MyMCApplication:: Stepping() { // Get track position Double_t x, y, z; gMC->TrackPosition(x, y, z); // Get energy deposit Double_t edep = gMC->Edep(); // Create user hit mySD->AddHit(x, y, z, edep); } Use of VMC Hits Production  The user stepping function is called by MC at each step  User gets the properties of the tracked particle by calls to TVirtualMC and saves them in their own hits objects ConstructGeometry InitGeometry GeneratePrimaries BeginEvent BeginPrimary PreTrack Stepping PostTrack FinishPrimary FinishEvent User MC Application

I. HrivnacovaCHEP 2003, La Jolla, 27 March Available MCs  Geant3, Geant4 –Geant3 VMC and Geant4 VMC in production  Fluka –Fluka VMC in development

I. HrivnacovaCHEP 2003, La Jolla, 27 March Available MCs Geant3 VMC  Provided within a single package together with Geant321 (FORTRAN)  Straightforward implementation –VirtualMC was largely inspired by Geant3  Geant3 Geometry Browser –Provided within TGeant3 – people/morsch/Geant3GUI.html

I. HrivnacovaCHEP 2003, La Jolla, 27 March Available MCs Geant4 VMC (1)  Provided within a package - geant4_vmc –Requires Geant4 installation  Access to Geant4 –Switching between Root UI and Geant4 UI –Geant4 classes are not processed by CINT – G4 objects are not accessible from the Root UI  Use of G3toG4 –TVirtualMC has been inspired by Geant3 –An effort has been made to minimize the limitations of the G3toG4 tool – in Geant4 4.0: Support for reflections Limited support for “MANY” volume positions

I. HrivnacovaCHEP 2003, La Jolla, 27 March Available MCs Geant4 VMC (2)  Geant4 VMC extensions: –Geant4 VMC Geometry Browser Analogy to Geant3 Geometry browser –Geometry XML Convertor Enables to export Geant4 geometry to XML (AGDD) and then to browse and visualize using GraXML More on GraXML: in the presentation: “GraXML – Modular Geometric Modeller” (J. Hrivnac)

I. HrivnacovaCHEP 2003, La Jolla, 27 March Available MCs Fluka VMC  In development by the ALICE collaboration and FLUKA team –TFluka in AliRoot  Implemented: –Functions for building/accessing geometry Use of Geant4 VMC + Flugg –Functions for accessing tracked particle during stepping –Recording particles in VMC stack –Functions for run management  To be done: –Functions for setting physics –External decayer

I. HrivnacovaCHEP 2003, La Jolla, 27 March Examples  3 examples provided in geant4_vmc –In spite of being provided within Geant4 VMC, they are built independently and do not require Geant4 installation in case a user wants to run them with Geant3 only  Geant4 novice examples N01, N02 and N03 rewritten with use of Virtual Monte Carlo  Implement MC Application and MC Stack  All examples are executed in the same way: –cd geant4_vmc/examples/E0n –root –root[0].x run_g3.C or run_g4.C

I. HrivnacovaCHEP 2003, La Jolla, 27 March { // Load basic libraries gROOT->LoadMacro(“basiclibs.C”); basiclibs(); // Load this example library gSystem->Load("libexample01"); // MC application Ex01MCApplication* appl = new Ex01MCApplication("Example01", "The example01 MC application"); appl->RunMC(1); } E01 run_g3.C run_g4.C // Load Geant3 libraries gROOT->LoadMacro(“g3libs.C”); g3libs(); // Load Geant4 libraries gROOT->LoadMacro(“g4libs.C”); g4libs(); appl->InitMC("g3Config.C");appl->InitMC("g4Config.C");

I. HrivnacovaCHEP 2003, La Jolla, 27 March void Config() { // RunConfiguration for Geant4 TG4RunConfiguration* runConfiguration = new TG4RunConfiguration(); // Geant4 VMC new TGeant4("TGeant4", "The Geant4 Monte Carlo", runConfiguration); } void Config() { new TGeant3("C++ Interface to Geant3"); } E01 g3Config.C g4Config.C

I. HrivnacovaCHEP 2003, La Jolla, 27 March Examples AliRoot  AliRoot Framework –Integrates simulation, reconstruction and analysis software for the ALICE experiment  Simulation based on Virtual Monte Carlo –A complex “example” of VMC usage –No MC specific code in user code –PPR production with Geant3  More on AliRoot – in the presentations: –“The AliRoot Framework, status and perspectives” (F.Carminati) –“Simulation in ALICE” (A. Morsch) –“ALICE experience with Geant4” (I. Gonzalez)

I. HrivnacovaCHEP 2003, La Jolla, 27 March Dimuon Arm AliRoot Geometry

I. HrivnacovaCHEP 2003, La Jolla, 27 March AliRoot Hits Production Geant3Geant4

I. HrivnacovaCHEP 2003, La Jolla, 27 March VMC Future (1)  Integration of the new Root geometrical modeller (TGeo) in VMC – in progress –Will then be able to define MC geometry directly via TGeo  Geant3, Fluka –Replacement of the native geometry with TGeo inside the program itself –Geant3: Already operational, close to completion Production release in coming weeks –Fluka: Work is ongoing

I. HrivnacovaCHEP 2003, La Jolla, 27 March VMC Future (2)  Geant4 –Discussions about using the Root geometry modeller through an abstract interface to Geant4 geometry have been started –RootToG4 converter Converter from Root geometry to Geant4 native geometry Already operational, close to completion Production release will follow the release of the new Geant3 version  More on TGeo – in the presentation: “A Geometrical Modeller for HEP” (A. Gheata)

I. HrivnacovaCHEP 2003, La Jolla, 27 March Distribution  ROOT CVS server –mc – core package (interfaces), in Root –geant3, geant4_vmc 2 independent modules (parallel to root): –cvs -d co –P geant3 –cvs -d co –P geant4_vmc  ROOT Web – –Distribution of sources: geant321+_vmc.version.tar.gz geant4_vmc.version.tar.gz

I. HrivnacovaCHEP 2003, La Jolla, 27 March Summary  VMC allows the user to run different transport MonteCarlo’s from the same user code –On the menu today: Geant3, Geant4 –Coming soon: Fluka  VMC available from –