3/17/05 LCSim Workshop IV Jeremy McCormick, SLAC 1 Jeremy McCormick, Ron Cassell for SLAC Simulations Group LC Detector Simulation with SLIC and LCDD.

Slides:



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

MAPS, RAL, 28-Feb-2006Nigel Watson / Birmingham Geant4 Simulation of MAPS  Geant4/Mokka application has flexible way to change Si thickness, pixel size.
LCDG4: a Geant4-based detector simulator for the LCD Guilherme Lima for the NICADD simulations group Geant4 Tutorial Fermilab, Oct
LCDG4 at NIU Status and Plans Dhiman Chakraborty, Guilherme Lima, Manuel Martin, Jeremy McCormick, Vishnu Zutshi NICADD / Northern Illinois University.
14 User Documents and Examples I SLAC Geant4 Tutorial 3 November 2009 Dennis Wright Geant4 V9.2.p02.
Geant4-based Simulation Status and Plans Dhiman Chakraborty, Guilherme Lima, Jeremy McCormick, Vishnu Zutshi Calorimetry Working Group ALCPG 2004 Winter.
Geant4 Activities at NICADD / NIU Dhiman Chakraborty, Guilherme Lima, Jeremy McCormick, Vishnu Zutshi Simulations Working Group ALCPG 2004 Winter Workshop.
6/23/20031 NICADD LCD Simulations: Capability Overview and Future Plans Guilherme Lima, Jeremy McCormick.
8/17/031 Geant4 Simulations Guilherme Lima, Jeremy McCormick General Comments Test Stand (JM) Test Beam (GL)
1 Benchmarking the SiD Tim Barklow SLAC Sep 27, 2005.
LC detector simulation efforts in America Dhiman Chakraborty N. I. Center for Accelerator & Detector Development for the International.
Certifying Geant4-based calorimeter simulations for the LCD Dhiman Chakraborty, Guilherme Lima, Jeremy McCormick, Vishnu Zutshi NICADD, NIU ALCWG-Cal Meeting.
Victor Serbo, SLAC30 September 2004, Interlaken, Switzerland JASSimApp plugin for JAS3: Interactive Geant4 GUI Serbo, Victor (SLAC) - presenter Donszelmann,
Witek Pokorski, Radovan Chytracek, Jeremy McCormick, Giovanni Santin
17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 Geant4 Japan.
1 SLAC LCD Simulations Group Jeremy McCormick ILC Detector Simulation using SLIC LDC: ttbar SiD May05: 100 muonsSiD Aug05: ttbarCDC Aug05: ttbar 6 jets.
Slic A Geant4-based detector simulation package Norman Graf, Jeremy McCormick SLAC October 15, 2009.
SiD Software Status. Framework Overview Pythia, WHIZARD, etc. Pythia, WHIZARD, etc. SLIC Tracking, PFA, etc. LCSim StdHep LCIO Events JAS3 (or any AIDA.
Simulating the Silicon Detector August 16, 2005 Norman Graf SLAC.
HCAL and PFA Studies Ray Cowan Peter Fisher ALCPG 2009 University of New Mexico October 2, 2009.
ALCPG October 25 th 2007 Hans Wenzel Calorimetry in slic How-to Motivation for dual readout Calorimeter What are our requirements Why did we choose SLIC.
ALCPG Simulation Status and Plans ECFA LC Workshop, Durham Sep. 2, 2004 Norman Graf (SLAC)
ALCPG Simulation Status and Plans ACFA LC Workshop, Taipei Nov. 10, 2004 Norman Graf (SLAC)
ALCPG Software Tools Jeremy McCormick, SLAC LCWS 2012, UT Arlington October 23, 2012.
User Documents and Examples I Sébastien Incerti Slides thanks to Dennis Wrigth, SLAC.
HPS Online Software Discussion Jeremy McCormick, SLAC Status and Plans.
Org.lcsim Reconstruction and Analysis framework for ILC Detectors Tony Johnson SLAC July 2006.
Implementing a dual readout calorimeter in SLIC and testing Geant4 Physics Hans Wenzel Fermilab Friday, 2 nd October 2009 ALCPG 2009.
Simulation and Reconstruction: ALCPG Framework & Toolkit Norman Graf (for the ALCPG Simulation & Reconstruction Team) ILC-ECFA Meeting November 8, 2006.
Updating JUPITER framework using XML interface Kobe University Susumu Kishimoto.
Simulation and Reconstruction: ALCPG Framework & Toolkit Norman Graf (for the ALCPG Simulation & Reconstruction Team) ILC Software and Tools Workshop May.
V. Serbo, SLAC ACAT03, 1-5 December 2003 Interactive GUI for Geant4 by Victor Serbo, SLAC.
BeamCal Simulations with Mokka Madalina Stanescu-Bellu West University Timisoara, Romania Desy, Zeuthen 30 Jun 2009 – FCAL Meeting.
Summary of Simulation and Reconstruction Shaomin CHEN (Tsinghua University)  Framework and toolkit  Application in ILC detector design Jupiter/Satellites,
ALCPG Software Framework Overview & Updates Jeremy McCormick, SLAC SiD Group ALCPG 2009.
International Workshop on Linear Colliders, Geneve Muon reconstruction and identification in the ILD detector N. D’Ascenzo, V.Saveliev.
SiD Workshop October 2013, SLACDmitry Onoprienko SiD Workshop SLAC, October 2013 Dmitry Onoprienko SLAC, SCA FreeHEP based software status: Jas 3, WIRED,
WIRED 4 An extensible generic Event Display Mark Donszelmann SLAC, Stanford, U.S.A. CHEP2004, 27 september – 1 october Interlaken, Switzerland.
1 Using Jupiter and Satellites Akiya Miyamoto KEK Jan 2006.
1 Calorimetry Simulations Norman A. Graf for the SLAC Group January 10, 2003.
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.
CBM ECAL simulation status Prokudin Mikhail ITEP.
LCIO A persistency framework and data model for the linear collider CHEP 04, Interlaken Core Software, Wednesday Frank Gaede, DESY -IT-
Detector Description in LHCb Detector Description Workshop 13 June 2002 S. Ponce, P. Mato / CERN.
25 Oct 2007Jeremy McCormick, ALCPG MC1 ALCPG Monte Carlo Framework.
SiD PFA Meeting 27 August Status report on SiD global parameters study and PFA activities at MIT Ray Cowan Peter Fisher 27 August 2009.
1 D.Chakraborty – VLCW'06 – 2006/07/21 PFA reconstruction with directed tree clustering Dhiman Chakraborty for the NICADD/NIU software group Vancouver.
Ties Behnke: Event Reconstruction 1Arlington LC workshop, Jan 9-11, 2003 Event Reconstruction Event Reconstruction in the BRAHMS simulation framework:
Calorimeter Simulation Infrastructure Norman Graf Arlington ‘03.
Mokka, main guidelines and future P. Mora de Freitas Laboratoire Leprince-Ringuet Ecole polytechnique - France Linear collider Workshop 2004, Paris.
GDML “Geometry Description Markup Language” by Daniele Francesco Kruse University of Rome “Tor Vergata” European Organization for Nuclear Research.
Slic A Geant4-based detector simulation package Jeremy McCormick, Norman Graf, Ron Cassell, Tony Johnson SLAC June 8, 2006.
SiD Tracking in the LOI and Future Plans Richard Partridge SLAC ALCPG 2009.
LCSim Tutorial for Muon Collider Detector Studies Jeremy McCormick, Norman Graf SLAC Hans Wenzel FNAL.
Intelligent Norman Graf (SLAC) SuperB computing mini-Workshop Pearl Harbor Day, 2007 DesignDetector.
1 SLAC simulation workshop, May 2003 Ties Behnke Mokka and LCDG4 Ties Behnke, DESY and SLAC MOKKA: european (france) developed GEANT4 based simulation.
Geant4-based detector simulation activities at NICADD Guilherme Lima for the NICADD simulations group December 2003.
Optimizing SiD for the LOI: Simulation and Reconstruction Norman Graf (for the ALCPG Simulation & Reconstruction Team) October 9, 2007.
GEANT4 for Future Linear Colliders
SuperB computing mini-Workshop
Geant4-based Simulation Status and Plans
slicPandora: slic + pandoraPFANew
Markus Frank CERN/LHCb CHEP2013, Amsterdam, October 14th–18th 2013
HEP detector description supporting the full experiment life cycle
User Documents and Examples I
Linear Collider Simulation Tools
Geant4 Activities at NICADD / NIU
Use of GEANT4 in CMS The OSCAR Project
Linear Collider Simulation Tools
WIRED 4 Event Display Linear Collider Simulation Workshop
Presentation transcript:

3/17/05 LCSim Workshop IV Jeremy McCormick, SLAC 1 Jeremy McCormick, Ron Cassell for SLAC Simulations Group LC Detector Simulation with SLIC and LCDD

3/17/05 LCSim Workshop IV Jeremy McCormick, SLAC 2 Talk Overview 1.Geometry Requirements 2.Framework Diagram and Outline 3.GDML/LCDD geometry system 4.LCDD XML format examples 5.Compact XML format example 6.LCDD Visualizations 7.SLIC simulations package 8.Diagnostic Histograms 9.Installation 10. Plans 11. Resources

3/17/05 LCSim Workshop IV Jeremy McCormick, SLAC 3 Geometry System Requirements represent all current detector designs including testbeams and full detectors ideal format human-readable and editable machine friendly encapsulate the core Geant4 geometry classes solids, materials, logical volumes, physical volumes include other essential Geant4 classes for DD regions, sensitive detectors, visualization, fields volume readout unique volume identification using bit-packed IDs virtual volume segmentation, i.e. “cells”, for calorimeters avoid C++ “hard coding” of geometries or DD formats with only partial Geant4 support package a separate geometry subsystem from the simulator with minimal dependencies System should be easy to use, yet flexible and powerful.

3/17/05 LCSim Workshop IV Jeremy McCormick, SLAC 4 LCD Simulations Framework Diagram LCDD SLICLCIO GDML LCIO Events Geant4 Stdhep Events LCDD XML reads reads / writes LCPhys XercesCLHEP Geom Converter writes Compact XML uses reads org.lcsim reads Not all connections shown.

3/17/05 LCSim Workshop IV Jeremy McCormick, SLAC 5 Packages LCIO – widely adopted ILC IO package StdHep – binary event format read by Willy Langeveld’s lStdHep interface PackageVersionDescription CLHEP1.8.x or 1.9.xHEP class libraries Geant47.xHEP simulation toolkit LCPhysCVS headGeant4 physics list for ILC GDML2.1 RC (CVS head) XML binding to core Geant4 geometry classes Xerces2.6.0XML Parser LCIO1.4 (CVS head) Linear Collider I/O Toolkit LCDDCVS headXML extensions to GDML for DD SLICCVS headSimulator Command & Control, “Hub” Application

3/17/05 LCSim Workshop IV Jeremy McCormick, SLAC 6 Benefits of an XML-Based System human readable and editable: comparable to HTML and other markups quick development cycle no recompilation for geometry changes constant values easily “tweaked” validating parser quickly identifies errors highly structured: enforces consistency across disparate data sources portable: easy to import/export/exchange transformable: map to/from databases, flat files, Excel spreadsheets, etc. high quality, standardized tools in C++ and Java self-descriptive with schemas (XSD) natural representation of structured hierarchies, i.e. detector geometries Internet access not required to utilize editing/display tools relatively easy to implement

3/17/05 LCSim Workshop IV Jeremy McCormick, SLAC 7 GDML C++ binding to Geant4 constants materials solids structure: logical and physical volumes XML technology SAX parsing: fast!  parsing/loading of 15k line LCDD file in ~1.5 seconds XML Schema (XSD): extensable types currently supported by… Geant4: primary binding GraXML Viewer : no constants, only doubles ROOT : VMC, import/export org.lcsim reco framework : geometry converter from compact to LCDD format LCDD : reads Momo : writes

3/17/05 LCSim Workshop IV Jeremy McCormick, SLAC 8 LCDD extension of GDML package to complete Geant4 binding for DD: “GDML++” GDML volume element has additional elements but no additional changes to format except this. LCDDParser / LCDDDetectorConstruction: usable in any Geant4 simulator additional elements header / meta info ID dictionary physical volume identifiers mapping of individual volume IDs and segmentations to full, 32 / 64-bit IDs sensitive detectors calorimeter / tracker types virtual segmentation of volumes for readout reference to an IDing scheme regions visualization attributes fields embedded GDML element for geometry description

3/17/05 LCSim Workshop IV Jeremy McCormick, SLAC 9 LCDD XML Structure …

3/17/05 LCSim Workshop IV Jeremy McCormick, SLAC 10 Sensitive Detectors <calorimeter name="EcalBarrSD" hits_collection="EcalBarrHits" ecut="0.0" eunit="MeV" verbose="0"> <projective_cylinder ntheta="840" nphi="1680" /> <tracker name="VtxBarrSD" hits_collection="VtxBarrHits" ecut="0.0" eunit="MeV" verbose="0"> Example Sensitive detectors can be of type calorimeter or tracker, which determines type of LCIO hit. hits_collection is name of LCIO collection. cut on energy with ecut set verbose level idspecref for the ID scheme (none is okay) Specific type of segmentation, e.g. projective_cylinder, divides the associated volume into virtual cells using ntheta and nphi as parameters.

3/17/05 LCSim Workshop IV Jeremy McCormick, SLAC 11 ID Dictionary <idfield label="layer" start="0" length="7" signed="false" /> <idfield label="sys" start="7" length="3" signed="false" /> Example IDs for calorimeter and tracker hits contained in iddict idfield defines a single, logical ID such as a layer number. label can reference a named physvolid or a segmentation field signed or unsigned creates a vector which is packed into the LCIO hit named idspec referenced in the sensitive_detector element to assign an ID scheme to a specific SD

3/17/05 LCSim Workshop IV Jeremy McCormick, SLAC 12 Regions Example <region name="EcalRegion" store_secondaries="false" cut="1.0" lunit="mm" threshold="0.0" eunit="MeV" /> <region name="TrackingRegion" store_secondaries="true" cut="10.0" lunit="mm" threshold="1.0" eunit="MeV" /> corresponds to G4Region and G4UserRegionInformation set whether secondaries are stored with store_secondaries set Geant4 range cut using cut set energy threshhold for secondary storage with threshhold provides the concept of a tracking region, which is crucial to our method for creating and processing the MCParticles

3/17/05 LCSim Workshop IV Jeremy McCormick, SLAC 13 Visualization Example <vis_attributes name="EcalVis" visible="true" show_daughters="true" line_style="unbroken" drawing_style="wireframe"> <color R="0.0" G="1.0" B="1.0" alpha="1.0" /> vis_attributes element implements all settings in class G4VisAttributes. attached to a logical volume via a reference settable visibility daughters visible line style wireframe or solid color

3/17/05 LCSim Workshop IV Jeremy McCormick, SLAC 14 Fields Example <solenoid name="GlobalSolenoid" inner_field="solenoid_inner_field" outer_field="solenoid_outer_field" zmin="solenoid_zmin" zmax="solenoid_zmax" inner_radius="solenoid_rmin" outer_radius="solenoid_rmax" funit="tesla" lunit="mm"/> solenoid implements the virtual type field similar to LCDG4’s handling of fields global_field defines the top level field handler for the application using a fieldref. can use constants from gdml’s define block plan to allow fields maps

3/17/05 LCSim Workshop IV Jeremy McCormick, SLAC 15 Extended GDML volume Element Example <physvolid name=“layer” value=“0” “It all comes together here.” Red elements extend the GDML volume type. Any number of physvolid elements are allowed on the physvol child tag. sdref is a named sensitive detector from the sensitive_detectors section. regionref points to a named region within regions. vis_attributesref is a named vis_attributes element from display. Note: This example is contrived to show all extension elements.

3/17/05 LCSim Workshop IV Jeremy McCormick, SLAC 16 Compact Description <detector id="2" name="EMBarrel" type="CylindricalCalorimeter" readout="EcalBarrHits"> <dimensions inner_r = "127.0*cm" outer_z = "179.25*cm" /> <slice material = "Tungsten" width = "0.25*cm" /> <slice material = "G10" width = "0.068*cm" /> <slice material = "Silicon" width = "0.032*cm" sensitive = "yes" /> <slice material = "Air" width = "0.025*cm" /> Example Verbosity of GDML means hand coding can be tedious (but certainly possible!). Compact XML description provides higher level format for conversion to LCDD. detector systemmatics package GeomConverter in SLAC CVS also used in lcsim.org reconstruction package “gross parameters” rather than individual volumes, etc. detectors, layers, slices dimensions: inner, outer radii

3/17/05 LCSim Workshop IV Jeremy McCormick, SLAC 17 Example Geometries all found in $SLIC_BASE/examples subsequent paths relative to this run macros for them in $SLIC_BASE/macros Geant4 visualization system DAWN, OpenGL, WIRED/HepRep No custom C++ code for any of the geometries!

3/17/05 LCSim Workshop IV Jeremy McCormick, SLAC 18 SDJan03 Reprise

3/17/05 LCSim Workshop IV Jeremy McCormick, SLAC 19 SiDFeb05 Detector Envelopes./sid/SiDEnvelope.lcdd toy example without real materials or layer structure polyhedra for calorimeter envelopes illustrates possibility of modelling realistic detector designs with “corners” add trapezoid-shaped readout modules with box layers Muon Coil Hcal trackers Ecal

3/17/05 LCSim Workshop IV Jeremy McCormick, SLAC 20 Octagonal Calorimeter Barrel 2 GeV pion storing calorimeter-type hits in a region where secondaries are created magnetic field Geant4 range cut settable by region, especially useful for tweaking secondary / shower physics. Range cut is 10 mm here vs. Geant4’s 1 mm default.

3/17/05 LCSim Workshop IV Jeremy McCormick, SLAC 21 Testbeam 2 GeV pion geometry similar to Mokka’s TB03 model store_secondaries is ON for viewing detailed shower structure.

3/17/05 LCSim Workshop IV Jeremy McCormick, SLAC 22 MDI - BDS boolean solids polycones Visualized with dawn and dawncut. Machine Detector Interface and Beam Delivery System

3/17/05 LCSim Workshop IV Jeremy McCormick, SLAC 23 SLIC authored by Jeremy McCormick and Ron Cassell simulator “hub” package Geant4 LCDD for the geometry description LCIO for IO command interface full command line interface maps to… macro command set (G4UIcommands) tweak LCIO behavior / flags with macros MCParticle handling based on refactored LCS ideas and code from LCDG4 (LcioHelper), Mokka (PhysicsListFactory), LCS (EndOfEventAction): Thanks, guys! additional resource directories analysis code in analysis/ geometry examples in LCDD format within examples/ scripts/ and macros/ with helpful utilities

3/17/05 LCSim Workshop IV Jeremy McCormick, SLAC 24 Geant4 Macro Interface /lcdd/setURI./examples/sdjan03/SDJan03.lcdd /physics_list/select LHEP /stdhep/setFile stdhep_inputfile /lcio/path lcio_files /lcio/filename output_file /control/execute user_settings.mac /stdhep/skipEvents 100 /run/initialize /run/beamOn /control/interactive Example aims for simplicity and completeness LCDD has its own command directory created in that package. commands for LCIO customization Example does not show all possible commands. execute in several ways… slic macro_name (like Mokka) slic –m mac1 –m mac2 … slic –n (interactive mode)

3/17/05 LCSim Workshop IV Jeremy McCormick, SLAC 25 Command Line Interface slic -g./examples/sdjan03/SDJan03.lcdd -l LHEP -i stdhep_inputfile -p lcio_files -o output_file -m user_settings.mac -s 100 -z -r 1 -n Example macro-based commandline interface Each switch maps to a Geant4/SLIC/LCDD macro command for consistency. arguments input and output files macro exec with switch -m run # events skip # events interactive mode initialize Ordering can be important, e.g. simulator initialization and multiple macro execution.

3/17/05 LCSim Workshop IV Jeremy McCormick, SLAC 26 MCParticle Handling Overview HEPEVT Record Initial LCIO MCParticle G4PrimaryParticle G4Track G4TrackInformation Trajectory Final LCIO MCParticle based on refactored EndOfEventAction from LCS use track information and then trajectories to keep the track parentage intact during the simulation The actual construction of the MCParticle tree is done in post event processing using the trajectory object where possible and also information from the initial, input MCParticles and associated G4PrimaryParticles. Track ID is the main unique identifier. Current LCIO status codes are all fully implemented and have been certified against single and complex event inputs.

3/17/05 LCSim Workshop IV Jeremy McCormick, SLAC 27 Diagnostic Histograms Java analysis codes in $SLIC_BASE/analysis authored by Ron Cassell JAS3, AIDA, LCIO All use the LCDD reimplementation of SDJan03 (LCDG4, LCS). MCParticle plots Zpole hadronic 10k events 1 entry / MCParticle to show hit associations sampling fractions Ecal: 1.2% Hcal: 6% Status Code and R vs. Z plots Muons 1-10 GeV, theta, all phi

3/17/05 LCSim Workshop IV Jeremy McCormick, SLAC 28 R vs. Z [histo]

3/17/05 LCSim Workshop IV Jeremy McCormick, SLAC 29 MCParticles: EM Energy [histo] 10k Zpole hadronic (plot cutoff at 100k MCParticles)

3/17/05 LCSim Workshop IV Jeremy McCormick, SLAC 30 MCParticles: Charged Had E [histo]

3/17/05 LCSim Workshop IV Jeremy McCormick, SLAC 31 MCParticles: Neutral Had E [histo]

3/17/05 LCSim Workshop IV Jeremy McCormick, SLAC 32 LCIO Hit Status Codes [histo] Status Codes 1.CreatedInSimulation 2.Backscatter 3.VtxNotEndpOfParent 4.DecayedInTracker 5.DecayedInCal 6.LeftDetector 7.Stopped

3/17/05 LCSim Workshop IV Jeremy McCormick, SLAC 33 Framework Installation first install… CLHEP Geant4 LCIO Xerces keep env vars: G4INSTALL, CLHEP_BASE_DIR, LCIO, XERCESCROOT, etc. install SLIC… export cvs co slic cd slic export SLIC_BASE=`pwd`./scripts/build.sh The script walks user through setup of GDML, LCDD, LCPhys and SLIC. Please let me know if it works for you!

3/17/05 LCSim Workshop IV Jeremy McCormick, SLAC 34 Plans remaining items on the LCDD / SLIC TODO list ($SLIC_BASE/doc/sim_TODO.rtf) event samples comparison and mutual certification of LCIO output with Mokka and LCDG4 promote SLIC at ILC simulation sites assistance for setup and usage user feedback for feature requests materials library compact converter: support realistic models possible LCDD detector-based full detectors: SiD, D09, GLD/LDC, … LCDD geometry navigator in Java geometry construction tools: editor, viewer contribute to GDML project

3/17/05 LCSim Workshop IV Jeremy McCormick, SLAC 35 Resources SLIC Homepage LCDD Homepage GDML Homepage LinearCollider.org forum ILC Confluence Wiki