Virtual Monte Carlo I. Hrivnacova, IPN Orsay

Slides:



Advertisements
Similar presentations
Andreas Morsch CERN/ALICE 3rd LHC Computing WorkshopMarseille, September 30, 1999 Base Classes for Simulation The ALICE Simulation Strategy Andreas Morsch.
Advertisements

Simulation Project Major achievements (past 6 months 2007)
25/03/2003Simulation Application for the LHCb Experiment CHEP March 2003 Presented by: W. Pokorski / CERN Authors: I. Belyaev, Ph. Charpentier,
Software Installation The full set of lecture notes of this Geant4 Course is available at
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.
SCRAM Software Configuration, Release And Management Background SCRAM has been developed to enable large, geographically dispersed and autonomous groups.
SiD Software Status. Framework Overview Pythia, WHIZARD, etc. Pythia, WHIZARD, etc. SLIC Tracking, PFA, etc. LCSim StdHep LCIO Events JAS3 (or any AIDA.
CBM Software Meeting 1 CBM Simulation & Analysis Framework M. Al-Turany, D. Bertini.
© 2005 by IBM; made available under the EPL v1.0 | March 1, 2005 Tim deBoer Gorkem Ercan Extend WTP Server Tools for your.
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.
David Adams ATLAS ATLAS Distributed Analysis David Adams BNL March 18, 2004 ATLAS Software Workshop Grid session.
Usage of ROOT geometry with GEANT4
User Documents and Examples I Sébastien Incerti Slides thanks to Dennis Wrigth, SLAC.
LC Software Workshop, May 2009, CERN P. Mato /CERN.
IEEE Nuclear Science Symposium and Medical Imaging Conference Short Course The Geant4 Simulation Toolkit Sunanda Banerjee (Saha Inst. Nucl. Phys., Kolkata,
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.
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.
MINER A Software The Goals Software being developed have to be portable maintainable over the expected lifetime of the experiment extensible accessible.
6th April 2005Wah-kai Ngai1 First Example in Geant4 3rd HK simulation group meeting.
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.
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;
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.
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.
Providing a coherent view of SFT products to potential new users Stefan Roiser PH/SFT.
CBM Software Meeting 1 CBM Simulation & Analysis Framework Geant3 / Gean4 configuration M. Al-Turany, D. Bertini.
Documentation Gunter Folger / CERN Geant4 School, Annecy 2008.
GLAST LAT Offline SoftwareCore review, Jan. 17, 2001 Review of the “Core” software: Introduction Environment: THB, Thomas, Ian, Heather Geometry: Joanne.
Towards comparisons between TFluka and TGeant3 ( within CbmRoot Framework) Denis Bertini (IT-GSI) Antonin Maire (IPHC Strasbourg)
Yannick Patois - Datagrid Software Repository Presentation - March, n° 1 Datagrid Software Repository Presentation CVS, packages and automatic.
Physics Performance. EM Physics: Observations Two apparently independent EM physics models have led to user confusion: –Different results for identical.
The V-Atlas Event Visualization Program J. Boudreau, L. Hines, V. Tsulaia University of Pittsburgh A. Abdesselam University of Oxford T. Cornelissen NIKHEF.
1 G4UIRoot Isidro González ALICE ROOT /10/2002.
STAR Simulation. Status and plans V. Perevoztchikov Brookhaven National Laboratory,USA.
ROOT Geometry PackageL1 The New ROOT Geometry Package ACAT2002 Moscow 24 June Ren é Brun, Andrei & Mihaela Gheata CERN.
20 October 2005 LCG Generator Services monthly meeting, CERN Validation of GENSER & News on GENSER Alexander Toropin LCG Generator Services monthly meeting.
Introduction to FCC Software FCC Istanbul 11 March, 2016 Alice Robson (CERN/UNIGE) on behalf of / with thanks to the FCC software group.
MONTE CARLO TRANSPORT SIMULATION Panda Computing Week 2012, Torino.
A Short Course on Geant4 Simulation Toolkit Introduction
Modularization of Geant4 Dynamic loading of modules Configurable build using CMake Pere Mato Witek Pokorski
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
Gunter Folger / CERN MC-PAD, DESY/Hamburg Jan 2010
Installation of the ALICE Software
A Virtual Montecarlo (VMC) Application for AMS-01
A C++ generic model for the GLAST Geometric Description
LHCb Software Tutorial
User Documents and Examples I
The New ROOT Geometry Package
Geometry checking tools
Software Installation
Use of Geant4 in experiment interactive frameworks AliRoot
A Short Course on Geant4 Simulation Toolkit Introduction
Geant4 Workshop 02 October 2002, CERN Hajime Yoshida
Simulation Framework Subproject cern
Mantis a framework and toolkit for Geant4 simulation in CMS
Software Installation, release 4.0
G4 Workshop 2002 Detector Description Parallel Session
Use of GEANT4 in CMS The OSCAR Project
Planning next release of GAUDI
Presentation transcript:

Virtual Monte Carlo I. Hrivnacova, IPN Orsay http://root.cern.ch/root/vmc/VirtualMC.html ROOT 2002 Workshop, CERN 15 October 2002

Outline Introduction Packages Interfaces Available MCs Examples Distribution Future I. Hrivnacova ROOT 2002 Workshop

Introduction The concept of Virtual Monte Carlo has been gradually developed by the ALICE Software project Class TGeant3 providing access to GEANT3 data structures (commons) and functions Enabled to move user code from FORTRAN to C++ Interface to MC as generalization of TGeant3 Started development for Geant4 However the implementations of MC interface depend on the ALICE software Interfaces to a user MC application Enabled to remove the dependence on the ALICE software I. Hrivnacova ROOT 2002 Workshop

Packages MC Geant321 + VMC Geant4 VMC Examples The core package; provided within Root Directory: root/mc; Library: libMC.so Interfaces Geant321 + VMC Geant4 VMC Examples Provided within Geant4 VMC I. Hrivnacova ROOT 2002 Workshop

Interfaces Why interfaces? To decouple the dependence of a user code on a concrete MC Enable to run the same user application with all supported Monte Carlo programs Authors: R.Brun, F.Carminati, I. Hrivnacova, A. Morsch I. Hrivnacova ROOT 2002 Workshop

Virtual Monte Carlo I. Hrivnacova ROOT 2002 Workshop

Interfaces (1) Virtual MC TVirtualMC Interface to Monte Carlo program Methods For Building & Accessing Geometry TVirtualMC Interface to Monte Carlo program Generalization of Geant3 functions for definition of simulation task Provides methods for definition geometry and physics setup, for access to tracked particle properties during stepping, visualization Implementations: TGeant3, TGeant4 Are provided to a user Methods For Building & Accessing Materials Methods For Setting Physics Methods For Accessing Tracked Particle During Stepping Methods For Drawing Methods For Run Control I. Hrivnacova ROOT 2002 Workshop

Interfaces (2) Virtual MC Application TVirtualMCApplication Interface to a user application Mandatory Implementation has to be done by a user ConstructGeometry InitGeometry GeneratePrimaries BeginEvent BeginPrimary PreTrack Stepping PostTrack FinishPrimary FinishEvent I. Hrivnacova ROOT 2002 Workshop

Interfaces (3) Virtual MC Stack TVirtualMCStack Interface to a user defined particles stack Mandatory User can use the concrete stack classes provided in the examples or implement his own stack class SetTrack GetNextTrack : TParticle* GetPrimaryForTracking : TParticle* SetCurrentTrack GetNTrack GetNPrimary CurrentTrack I. Hrivnacova ROOT 2002 Workshop

Interfaces (4) Virtual MC Decayer TVirtualMCDecayer Interface to an external decayer Eg. Pythia6 Not mandatory Init Decay ImportParticles SetForceDecay ForceDecay GetPartialBranchingRatio GetLifetime ReadDecayTable I. Hrivnacova ROOT 2002 Workshop

Available MCs Implementation for 2 MCs available: Geant3, Geant4 Implementation for Fluka is in development by the ALICE collaboration I. Hrivnacova ROOT 2002 Workshop

Available MCs Geant3 VMC Provided within a single package together with Geant321 (Fortran) File structure geant321/*, TGeant3, minicern – source code Makefile config – platform dependent makefiles lib – created at compilation time Geant3 Geometry Browser Provided within TGeant3 http://alisoft.cern.ch/ people/morsch/Geant3GUI.html Authors: R.Brun, F.Carminati, A. Morsch I. Hrivnacova ROOT 2002 Workshop

Geant3 VMC Geant3 Geometry Browser I. Hrivnacova ROOT 2002 Workshop

Available MCs Geant4 VMC (1) Provided within a package geant4_vmc Requires Geant4 installation File structure README, history, source, config lib, tmp – created at compilation time examples – not dependent on Geant4 Access to Geant4 Geant4 classes are not processed by CINT – G4 objects are not accessible from Root UI Switching between Root UI and Geant4 UI is available I. Hrivnacova ROOT 2002 Workshop

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 and then to browse and visualize using GraXML GraXML = Tool for handling HEP experiment Detector Description & Event data in Java 3D (developed for Atlas by J. Hrivnac) Authors: D. Adamova, V. Berejnoi, A. Gheata, I. Hrivnacova I. Hrivnacova ROOT 2002 Workshop

Geant4 VMC Geant4 Geometry Browser Visualisation attributes set using G4 VMC commands, setting in browser not (yet) available I. Hrivnacova ROOT 2002 Workshop

Geant4 VMC - Geant4 Geometry in GraXML I. Hrivnacova ROOT 2002 Workshop

TVirtualMC has been inspired by Geant3 Geant4 VMC Limitations TVirtualMC has been inspired by Geant3 lead to certain difficulties and left Geant4 VMC with some limitations Geant4 VMC geometry is based on G3toG4 tool G3toG4 limitations They have been minimized with Geant4 4.0: Support for reflections Limited support for “MANY” volumes positions A few more minor limitations None of them a real obstacle for using the VMC More details can be found on VMC web page I. Hrivnacova ROOT 2002 Workshop

Examples 2 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 and N02 rewritten with usage of Virtual Monte Carlo Implement MC Application and MC Stack Both examples are executed in the same way: cd geant4_vmc/examples/E01 or E02 root root[0] .x run_g3.C or run_g4.C I. Hrivnacova ROOT 2002 Workshop

Rewritten Geant4 novice example N01 Examples E01 Rewritten Geant4 novice example N01 Builds simple geometry, tracks geantino and prints info at each step Classes: Ex01MCApplication, Ex01MCStack, Ex01Particle I. Hrivnacova ROOT 2002 Workshop

// … etc } // … skipped //_______________________________________ void Ex01MCApplication::Construct Geometry() { //------------------------------ experimental hall (world) Double_t expHall[3]; expHall[0] = 300.; expHall[1] = 100.; expHall[2] = 100.; gMC->Gsvolu("EXPH","BOX", fImedAr, expHall, 3); //------------------------------ a tracker tube 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"); // … etc } I. Hrivnacova ROOT 2002 Workshop

E01 run_g3.C run_g4.C { // Load basic libraries gROOT->LoadMacro(“../macro/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(“../macro/g3libs.C”); g3libs(); // Load Geant4 libraries gROOT->LoadMacro(“../macro/g4libs.C”); g4libs(); appl->InitMC("g3Config.C"); appl->InitMC("g4Config.C"); I. Hrivnacova ROOT 2002 Workshop

E01 g3Config.C g4Config.C void Config() { new TGeant3("C++ Interface to Geant3"); } void Config() { // RunConfiguration for Geant4 TG4RunConfiguration* runConfiguration = new TG4RunConfiguration(); // TGeant4 new TGeant4("TGeant4", "The Geant4 Monte Carlo", runConfiguration); } I. Hrivnacova ROOT 2002 Workshop

Rewritten Geant4 novice example N02 Examples E02 Rewritten Geant4 novice example N02 Builds parameterised geometry with magnetic field, draws geometry, tracks proton, registers hits in a tracker and saves hits and kinematics in a Root file Persistence only in VMC (not in the Geant4 example) Classes: Ex02MCApplication, Ex02MCStack, Ex02Particle, Ex02DetectorConstruction, Ex02ChamberParameterisation, Ex02MagneticField, Ex02TrackerSD, Ex02TrackerHit, Ex02RootManager I. Hrivnacova ROOT 2002 Workshop

Simulation based on Virtual Monte Carlo Examples AliRoot AliRoot Framework Integrates simulation, reconstruction and analysis ALICE software Simulation based on Virtual Monte Carlo A complex “example” of VMC usage Users stay with Geant3 Each detector subsystem has one single package (one directory, one library) Dependence only on STEER No MC specific code I. Hrivnacova ROOT 2002 Workshop

AliRoot External packages Detectors ITS TPC MUON PHOS PMD RICH FMD TOF TRD START ZDC STEER run management interface classes detector base classes data structure base classes AliRoot EVGEN PYTHIA6 HIJING … MICROCERN ROOT Geant4 VMC Geant3 VMC Geant3 VMC External packages Geant4 I. Hrivnacova ROOT 2002 Workshop

Examples AliRoot Run With Virtual MC Concrete Monte Carlo is selected and loaded dynamically at run time Steps: aliroot The main program creates the application object gAlice root [0] gAlice->Init(“Config.C”); G3 simulation root [0] gAlice->Init(“g4Config.C”); G4 simulation Application is initialized with either G3 or G4 configuration file that instantiates either G3 or G4 root [1] gAlice->Run(); Simulation run with selected MC I. Hrivnacova ROOT 2002 Workshop

Distribution ROOT CVS server ROOT Web mc – in root geant3, geant4_vmc 2 new independent modules (parallel with root): cvs -d :pserver:cvs@root.cern.ch:/user/cvs co geant3 cvs -d :pserver:cvs@root.cern.ch:/user/cvs co geant4_vmc ROOT Web http://root.cern.ch/root/vmc/VirtualMC.html Distribution of sources: geant321+_vmc.0.1.tar.gz geant4_vmc.0.1.tar.gz I. Hrivnacova ROOT 2002 Workshop

Future Fluka VMC TGeo + VMC In development by ALICE Software Project A. Fasso, E. Futo, I. Gonzalez, F. Carminati, A. Morsch TGeo + VMC It is foreseen to enable VMC geometry definition using the new geometrical modeller in Root R.Brun, A. & M. Gheata I. Hrivnacova ROOT 2002 Workshop

Summary VMC allows to run different simulation Monte Carlo from the same user code On the menu today: Geant3, Geant4 In preparation: Fluka The first release of VMC, Geant3+VMC, Geant4 VMC and examples available: http://root.cern.ch/root/vmc/VirtualMC.html I. Hrivnacova ROOT 2002 Workshop