An Object-Oriented Simulation Program for CMS India-CMS (October, 2004) Sunanda Banerjee (TIFR) Authors: S. Abdulline (FNAL), N. Amapane (U. Torino), V.

Slides:



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

Electromagnetic shower in the AHCAL selection criteria data / MonteCarlo comparison of: handling linearity shower shapes CALICE collaboration meeting may.
Jet and Jet Shapes in CMS
Simulation Project Major achievements (past 6 months 2007)
Testbeam Requirements for LC Calorimetry S. R. Magill for the Calorimetry Working Group Physics/Detector Goals for LC Calorimetry E-flow implications for.
25/03/2003Simulation Application for the LHCb Experiment CHEP March 2003 Presented by: W. Pokorski / CERN Authors: I. Belyaev, Ph. Charpentier,
14 User Documents and Examples I SLAC Geant4 Tutorial 3 November 2009 Dennis Wright Geant4 V9.2.p02.
ACAT ’02 CMS GEANT4 Sim. & Detector Desc. Pedro Arce(CERN/CIEMAT) 1 Simulation Framework and XML Detector Description for the CMS Experiment ARCE Pedro.
CMS Full Simulation for Run-2 M. Hildrith, V. Ivanchenko, D. Lange CHEP'15 1.
Evaluation of G4 Releases in CMS (Sub-detector Studies) Software used Electrons in Tracker Photons in the Electromagnetic Calorimeter Pions in the Calorimeter.
The forward detectors of CMS Experiment at LHC Bolek Wyslouch MIT
Framework for track reconstruction and it’s implementation for the CMS tracker A.Khanov,T.Todorov,P.Vanlaer.
Introduzione al Software di CMS N. Amapane. Nicola AmapaneTorino, Aprile Outline CMS Software projects The framework: overview Finding more.
LCG Meeting, May 14th 2003 V. Daniel Elvira1 G4 (OSCAR_1_4_0) Validation of CMS HCal V. Daniel Elvira Fermilab.
User Documents and Examples I Sébastien Incerti Slides thanks to Dennis Wrigth, SLAC.
Geant4 Acceptance Suite for Key Observables CHEP06, T.I.F.R. Mumbai, February 2006 J. Apostolakis, I. MacLaren, J. Apostolakis, I. MacLaren, P. Mendez.
Readiness of CMS Simulation towards LHC Startup Outline  Introduction  Framework and Interface with GEANT4  Detector specific components  How have.
CHEP 2006 D. Elvira, M. Stavrianakou, FNAL 1 The CMS Object-Oriented Simulation V. Daniel Elvira and Maya Stavrianakou, FNAL On behalf of the CMS collaboration.
Irakli Chakaberia Final Examination April 28, 2014.
1 Realistic top Quark Reconstruction for Vertex Detector Optimisation Talini Pinto Jayawardena (RAL) Kristian Harder (RAL) LCFI Collaboration Meeting 23/09/08.
ALICE Simulation Framework Ivana Hrivnacova 1 and Andreas Morsch 2 1 NPI ASCR, Rez, Czech Republic 2 CERN, Geneva, Switzerland For the ALICE Collaboration.
Non-prompt Track Reconstruction with Calorimeter Assisted Tracking Dmitry Onoprienko, Eckhard von Toerne Kansas State University, Bonn University Linear.
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.
CHEP06, Mumbai-India, Feb 2006V. Daniel Elvira 1 The CMS Simulation Validation Suite V. Daniel Elvira (Fermilab) for the CMS Collaboration.
Magnetic Field Issues for Simulation and Reconstruction N. Amapane, N. Neumeister Workshop on LHC Physics with High-p T Muons in CMS Bologna, April 9-12,
LHCb production experience with Geant4 LCG Applications Area Meeting October F.Ranjard/ CERN.
January 21, 2007Suvadeep Bose / IndiaCMS - Santiniketan 1 Response of CMS Hadron Calorimeter to Electron Beams Suvadeep Bose EHEP, TIFR, Mumbai Outline:
May 1-3, LHC 2003V. Daniel Elvira1 CMS: Hadronic Calorimetry & Jet/ Performance V. Daniel Elvira Fermilab.
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.
1 Performance of a Magnetised Scintillating Detector for a Neutrino Factory Scoping Study Meeting Rutherford Appleton Lab Tuesday 25 th April 2006 M. Ellis.
Introduction What is detector simulation? A detector simulation program must provide the possibility of describing accurately an experimental setup (both.
CBM ECAL simulation status Prokudin Mikhail ITEP.
CMS H4 ECAL testbeam data comparison with simulation F.Cossutti a), B. Heltsey b), P. Meridiani c), C. Rovelli c) a) INFN Trieste b) Cornell University.
Bangalore, India1 Performance of GLD Detector Bangalore March 9 th -13 th, 2006 T.Yoshioka (ICEPP) on behalf of the.
Claudio Grandi INFN-Bologna CHEP 2000Abstract B 029 Object Oriented simulation of the Level 1 Trigger system of a CMS muon chamber Claudio Grandi INFN-Bologna.
T. Lari – INFN Milan Status of ATLAS Pixel Test beam simulation Status of the validation studies with test-beam data of the Geant4 simulation and Pixel.
Fast Simulation and the Higgs: Parameterisations of photon reconstruction efficiency in H  events Fast Simulation and the Higgs: Parameterisations of.
Status of Sirene Maarten de Jong. What?  Sirene is yet another program that simulates the detector response to muons and showers  It uses a general.
1 OO Muon Reconstruction in ATLAS Michela Biglietti Univ. of Naples INFN/Naples Atlas offline software MuonSpectrometer reconstruction (Moore) Atlas combined.
Geant4 release 5.1 summary Gabriele Cosmo EP/SFT.
Calice Meeting Argonne Muon identification with the hadron calorimeter Nicola D’Ascenzo.
Geant4 Tutorial, Oct28 th 2003V. Daniel Elvira Geant4 Simulation of the CMS 2002 Hcal Test Beam V. Daniel Elvira Geant4 Tutorial.
1 Performance of a Magnetised Scintillating Detector for a Neutrino Factory Scoping Study Meeting U.C. Irvine Monday 21 st August 2006 M. Ellis & A. Bross.
1 Giuseppe G. Daquino 26 th January 2005 SoFTware Development for Experiments Group Physics Department, CERN Background radiation studies using Geant4.
Régis Lefèvre (LPC Clermont-Ferrand - France)ATLAS Physics Workshop - Lund - September 2001 In situ jet energy calibration General considerations The different.
Testbeam analysis Lesya Shchutska. 2 beam telescope ECAL trigger  Prototype: short bars (3×7.35×114 mm 3 ), W absorber, 21 layer, 18 X 0  Readout: Signal.
Experiences on Grid production for Geant4 EGEE User Forum, CERN, 1st March 2006 P. Mendez Lorenzo, A. Ribon CERN CERN.
VI/ CERN Dec 4 CMS Software Architecture vs Hybrid Store Vincenzo Innocente CMS Week CERN, Dec
Metrics summary Packages/Levels =17/5 CCD=52.0, ACD=3.0 NCCD=0.9 Mantis the Geant4-based simulation specialization of the CMS COBRA framework M. Stavrianakou,
David Lange Lawrence Livermore National Laboratory
Monthly video-conference, 18/12/2003 P.Hristov1 Preparation for physics data challenge'04 P.Hristov Alice monthly off-line video-conference December 18,
A Study on Leakage and Energy Resolution
Resolution Studies of the CMS ECAL in the 2003 Test Beam
Systematic uncertainties in MonteCarlo simulations of the atmospheric muon flux in the 5-lines ANTARES detector VLVnT08 - Toulon April 2008 Annarita.
of experiment simulations
OO Muon Reconstruction in ATLAS
5% The CMS all silicon tracker simulation
(CMS GEANT4 simulation)
MUPAGE: A fast muon generator
Testing Geant4 with a simplified calorimeter setup
Pedro Arce (CERN/CIEMAT)
Pedro Arce (CERN/CIEMAT) (on behalf of CMS collaboration)
Use of Geant4 in experiment interactive frameworks AliRoot
Higgs Factory Backgrounds
The LHCb Level 1 trigger LHC Symposium, October 27, 2001
Mantis a framework and toolkit for Geant4 simulation in CMS
Use of GEANT4 in CMS The OSCAR Project
LC Calorimeter Testbeam Requirements
The new ATLAS Fast Calorimeter Simulation
Presentation transcript:

An Object-Oriented Simulation Program for CMS India-CMS (October, 2004) Sunanda Banerjee (TIFR) Authors: S. Abdulline (FNAL), N. Amapane (U. Torino), V. Andreev (UCLA), P. Arce (CIEMAT), S. Banerjee (TIFR), T. Boccali (SNS, Pisa), M. Case (UC Davis), A. De Roeck (CERN), S. Dutta (U. Pisa), G. Eulisse (NorthEastern U.), D. Elvira (FNAL), A. Fanfani (U. Bologna), F. Ferro (INFN, Genova), M. Liendl (CERN), S. Muzaffar (NorthEastern U.), A. Nikitenko (Imperial College), K. Lassila-Perini (HIP), I. Osborne (NorthEastern U.), M. Stavrianakou (FNAL), T. Todorov (IReS), L. Tuura (NorthEastern U.), H.P. Wellisch (CERN), J. Weng (Karlsruhe U.), T. Wildish (Princeton U.), S. Wynhoff (Princeton U.), M. Zanetti (INFN), A. Zhokin (ITEP), P. Zych (Warsaw U.)

Outline  Overview  Run and event management  Geometry and Sensitive Detector  Hits  Generator interface and Physics  CMS detector simulation and validation – Tracker – ECAL – HCAL – Muons – Forward detectors  Magnetic Field  Parameterized simulations  Code Quality  Performance  Production  Summary

OSCAR overview Object Oriented Simulation for CMS Analysis and Reconstruction Full CMS simulation based on the Geant4 toolkit  Geant4: physics processes describing in detail electro-magnetic and hadronic interactions; tools for the CMS detector geometry implementation; interfaces for tuning and monitoring particle tracking  CMS framework: application control, persistency, common services and tools (magnetic field, generator interfaces and support for MC truth, infrastructure for hits and readout units,…), “action on demand” to selectively load desired modules, configure, tune application  CMS changed from CMSIM/GEANT3 to OSCAR/GEANT4 end 2003;  OSCAR used for substantial fraction of DC04 production; will be used for physics TDR production CPU: OSCAR  1.5 x CMSIM - with lower production cuts! Memory: ~110 MB/evt for pp in OSCAR  100 MB in CMSIM Robustness: from ~1/10000 crashes in pp events (mostly in hadronic physics) in DC04 production to 0 crashes in latest stress test (800K single particles, 300K full QCD events)

Relies on COBRA for program's main; COBRA takes over and handles the application with a SimApplication and a SimEvent in the core SimApplication instantiates and launches an event source factory the SimEventSource, which is an abstract reader of simulated events from the original source SimEventSource instantiates the Mantis RunManager RunManager instantiates a G4RunManagerKernel and controls standard components such as the selection and instantiation of generator, magnetic field and physics lists and interfaces to the run, event, stacking, tracking and stepping actions; it also handles  Storage/retrieval of random number seeds for run and events  Storage/retrieval of the cross-section tables built for a given detector configuration and physics list. Reading pre-built cross-section tables reduces initialization time by factor ~4 Run

SimEvent, inheriting from the COBRA SimEvent, manages the Monte Carlo truth – common for and sharable by all CMS applications (reconstruction, visualization etc); it consists of an interface to the transient event. (be it Geant3, Geant4, fast simulation) and an interface to a Geant4 event Monte-Carlo truth, assembled at the EventAction, consists of  the main event, its assigned weight and its type  all particles with their tracks, vertices and decay trees from the original generator event  all tracks produced during simulation and flagged for saving Monte-Carlo truth organized so as to allow navigation from hits to their corresponding tracks and parent vertices Event

Detector description in CMS is handled in the CMS Detector Description Database, DDD, a COBRA subsystem Mantis provides mechanisms to convert DDD solids and materials to their Geant4 counterparts as well as the logical and physical volumes needed to build the Geant4 geometry for the chosen description DDD SpecPars mechanism allows the definition of special parameter sets (extra attributes, field parameters, range cuts etc) to be associated with selected detectors More than one million volumes are used to define CMS detector setup Geometry

inherits from G4VSensitiveDetector and its concrete implementation implements the Geant4 ProcessHits method is registered to the Geant4 sensitive detector manager but is instantiated and “attached” to the corresponding geometrical volumes at run time according to the set-up described in the configuration DDD/XML file There is a possibility of “instrumenting” (making sensitive) any volume, for prototyping purposes or in order to facilitate studies of energy losses in dead materials or specific parts of the detector Sensitive Detector

Hit processing and hit collection are handled by the individual detectors, based on COBRA classes common for and sharable by all CMS applications; these common classes are managed by the COBRA Profound package COBRA read-out factories handle the hit formatting as required for the digitization, which is handled outside the simulation, by the CMS reconstruction program ORCA Hits

Based on the COBRA GeneratorInterface packages and services. It provides a trigger method to produce a RawHepEvent or HepMC::GenEvent; RunManager instantiates the chosen generator. All generators can be run-time configured in terms of  the maximum number of events they can return  the first event to be read  An event vertex generator to be used (none, flat, Gaussian, test-beam specific) Available generators: EventGunReader, EventNtplReader, EventTxtReader, EventPythiaReader, EventStdHepReader, EventHepMCReader Generator Interface

Physics  an abstract physics list factory allows run-time selection and configuration of specific physics list  physics cuts (i.e. range cuts) are implemented as cuts per region (set of volumes)  the regions with the set of volumes (typical scheme distinguishes between “sensitive” and “dead” regions) and the cut values for electrons, positrons and photons are read at run-time from a DDD/XML file

Tracker TOB layer 1 sensitive Detailed description of all active and passive components; material budget 2001 Critical requirements for physics studies with tracker Correct, navigable Monte Carlo truth (particle, track, vertex, history) with trace-ability of initial primary particle Special treatment of hard brem with the assignment of new track for electron above threshold (500 MeV)  Extensive validation in terms of tracking and hit distributions X 0 OSCAR /X 0 CMSIM vs  X 0 vs  X0X0  Geant4 5.2.p02

PixelBarrel PixelEndcap SiBarrel SiEndcap Raw simulated hitsReconstructed hits Tracker cont’d Hits from minimum bias in Tracker Pixel cut in G3 too high  10% increase expected  5% differences in Si not significant # hits # hits OSCAR / # hits CMSIM # evts Geant4 5.2.p02

Electromagnetic Calorimeter (ECAL) u Energy and position resolution u Shower shape u Hadronic showers u Level-1 e/m trigger response u Preshower response u Performance studies Position resolution Comparisons with CMSIM/G3 and test beam data Geant4 5.2.p02

Single crystal containment: E 1x1 /E 3x3 versus position Data G4 ECAL cont’d ECAL standalone resolution for electrons, with bremsstrahlung recovery Energy resolution Geant4 5.2.p02

Hadron Calorimeter (HCAL) Energy resolution Non-linearity in energy response Extensive validation program with comparisons to G3 and several test beam data sets, incl. combined ECAL-HCAL runs; also in context of LCG simulation physics validation project Geant4 5.2.p02

e/  : G3 ~3% higher, G4 ~4% lower HCAL cont’d Energy resolutionLongitudinal shower profile Geant4 5.2.p02 ECAL+HCAL data

Muons Muon detector layout Detector and physics validation in terms of tracking and hit distributions with single  ’s and Drell-Yan pairs (Mll=2TeV), and physics events (H  ZZ  4  ) Geant4 5.2.p02

Trigger efficiency vs  CMSIM OSCAR Geant4 5.2.p02 H  ZZ  4 , M H =150 GeV Muons cont’d

Forward Detectors for diffractive and heavy ion physics T2 GEMs ZDC : Zero degree calorimeter at 140 m 1 TeV neutron Castor Calorimeter at m (5.3 <  < 6.7) T1: CSCs Totem Telescopes at 7.5 m < z < 13.5

inherits from G4MagneticField and implements the Geant4 method GetFieldValue, so that any standard CMS magnetic field can be loaded by the COBRA CMSMagneticFieldLoader and passed to Geant4 is an observer of world volume, i.e. instantiates a field when notified that the detector has been built allows choice and configuration of G4MagIntegratorStepper, chord-finder and propagator, using the DDD SpecPars mechanism allows modeling, instantiation and configuration of local field managers for chosen detectors and particles, again using the DDD SpecPars mechanism Local field managers, an important Geant4 feature, handle particles that are either of little interest or unlikely to escape a given detector or set of volumes and can therefore be propagated with relaxed criteria as to the accuracy of the stepping and chord finding Magnetic Field

Field Map - TOSCA calculation Designed to optimize simulation and reconstruction Based on dedicated geometry of “magnetic volumes” Decouple volume finding and interpolation within a volume Time spent in magnetic field query (P4 2.8 GHz) for 10 minimum bias events (with delta=1mm) 13.0 s vs 23.6 s for G3/Fortran field  new field ~1.8-2 times faster than FORTRAN/G3 GEANT4 volumes can be connected to corresponding magnetic volumes  avoid volume finding  potential ~2x improvement With G4, possible to use local detector field managers

Parameterized Simulations Implementation of fast EM shower simulation in Geant4/OSCAR, using GFLASH parameterized showers - tuning in progress Timing studies Geant4 6.2 G4FLASH 50 GeV electrons full fast

Code Quality Code is distributed in three projects: COBRA, OSCAR, Geometry The Framework (Mantis) has 17 packages in 5 levels CMS specific code are in OSCAR in 31 packages Geometry contains parametrisation and data to define detector geometry, sensitive detector, … No cyclic dependency in the code

Performance G3/CMSIM: chop event in slices of 100 tracks each and run them separately; needed due to limitations from ZEBRA OSCAR/Geant4: run full HI events Factor 5 performance improvement by improved calorimeter track selection and hit processing Event cut in slices of 100 particles Full event CMSIM (G3) 230 min OSCAR_2_4_5 (G4 5.2.p02) 320 min OSCAR_3_4_0 (G4 6.2.p01) 180 min CMSIM (G3) Not possible OSCAR_2_4_5 (G4 5.2.p02) 1010 min OSCAR_3_4_0 (G4 6.2.p01) 210 min (*) …effect entirely negligible in pp events! time/evt in given machine (*) 2.3 CPU hrs on P4 3.2 GHz OSCAR performance optimized with a twist… (in heavy ion collisions) 55K generated particles, with 97K tracks from 80K vertices kept at the end of event

Production OSCAR in use for 10 months; longest-used version of any s/w in production; accounts for 35M of 85M events OSCAR 245 released wall-clock time normalized to 1 GHz CPU Peak not moved, but tail significantly narrower. Nicer for production, easier to spot stuck jobs OSCAR G4 5.2.p02 OSCAR G4 6.2.p01

Summary and Outlook SUSY event (leptons, missing E T ) visualization with IGUANACMS In CMS, OSCAR, the OO simulation program based on the Geant4 toolkit, has successfully replaced its Fortran/Geant3 predecessor. It has been validated and adopted by all CMS detector and physics groups. It has proven robust and performant, easily extensible and configurable. CMS has now entered sustained- mode production: 10M physics events/month through the full chain (simulation, digitization, …, DSTs)