Detector Simulation Writing a Detector Simulaton Program Bockjoo Kim Seoul N. Univ. CHEP, Summer School 2002 Kyunpook N. Univ., October 24-26, 2002 This.

Slides:



Advertisements
Similar presentations
GEANT Simulation of RCS Vahe Mamyan Hall A Analysis Workshop December 10, 2003.
Advertisements

Ozgur Ates Hampton University HUGS 2009-JLAB TREK Experiment “Tracking and Baseline Design”
Use of G EANT 4 in CMS AIHENP’99 Crete, April 1999 Véronique Lefébure CERN EP/CMC.
HEP Experiments Detectors and their Technologies Sascha Marc Schmeling CERN.
FPCP 2002, 05/16-18/2002 p. 1 Richard E. Hughes, The Ohio State UniversityCDF Run II Status Status of CDF and Prospects Flavor Physics and CP Violation.
Introduction to Hadronic Final State Reconstruction in Collider Experiments Introduction to Hadronic Final State Reconstruction in Collider Experiments.
1 Measurement of f D + via D +   + Sheldon Stone, Syracuse University  D o D o, D o  K -  + K-K- K+K+ ++  K-K- K+K+ “I charm you, by my once-commended.
Basic Measurements: What do we want to measure? Prof. Robin D. Erbacher University of California, Davis References: R. Fernow, Introduction to Experimental.
Introduction to Hadronic Final State Reconstruction in Collider Experiments Introduction to Hadronic Final State Reconstruction in Collider Experiments.
14 User Documents and Examples I SLAC Geant4 Tutorial 3 November 2009 Dennis Wright Geant4 V9.2.p02.
Michele Gallinaro, "QCD Results at CDF" - XXXVIII Rencontres de Moriond, March 22-29, QCD Results at CDF Inclusive Jet Cross Section Dijet Mass.
14 Overview of Geant4 Examples 2 nd Finnish Geant4 Workshop 6-7 June 2005 Dennis Wright (SLAC)
17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 Geant4 Japan.
The Design of a Detector for the Electron Relativistic Heavy Ion Collider Anders Ingo Kirleis 1, William Foreman 1, Elke-Caroline Aschenauer 2, and Matthew.
Study of response uniformity of LHCb ECAL Mikhail Prokudin, ITEP.
Lecture 1.3: Interaction of Radiation with Matter
User Documents and Examples I Sébastien Incerti Slides thanks to Dennis Wrigth, SLAC.
W properties AT CDF J. E. Garcia INFN Pisa. Outline Corfu Summer Institute Corfu Summer Institute September 10 th 2 1.CDF detector 2.W cross section measurements.
Implementing a dual readout calorimeter in SLIC and testing Geant4 Physics Hans Wenzel Fermilab Friday, 2 nd October 2009 ALCPG 2009.
Calibration of the ZEUS calorimeter for electrons Alex Tapper Imperial College, London for the ZEUS Collaboration Workshop on Energy Calibration of the.
1 A ROOT Tool for 3D Event Visualization in ATLAS Calorimeters Luciano Andrade José de Seixas Federal University of Rio de Janeiro/COPPE.
Medical Accelerator F. Foppiano, M.G. Pia, M. Piergentili
Detector Simulation  How to do HEP experiment  Particle Accelerator  Particle Detector  What is detector simulation?  GEANT toolkit 성균관대학교 물리학과 천병구.
CHEP06, Mumbai-India, Feb 2006V. Daniel Elvira 1 The CMS Simulation Validation Suite V. Daniel Elvira (Fermilab) for the CMS Collaboration.
Experimental Particle Physics PHYS6011 Joel Goldstein, RAL 1.Introduction & Accelerators 2.Particle Interactions and Detectors (2/2) 3.Collider Experiments.
1 Status and Plans for Geant4 Physics Linear Collider Simulation Workshop III 2-5 June 2004 Dennis Wright (SLAC)
Seeing the Subatomic Stephen Miller Saturday Morning Physics October 11, 2003.
Detector Simulation Presentation # 3 Nafisa Tasneem CHEP,KNU  How to do HEP experiment  What is detector simulation?
Multiple Parton Interaction Studies at DØ Multiple Parton Interaction Studies at DØ Don Lincoln Fermilab on behalf of the DØ Collaboration Don Lincoln.
Anders Kirleis Stony Brook University The Design Of A Detector For The Electron Ion Collider.
1 Performance of a Magnetised Scintillating Detector for a Neutrino Factory Scoping Study Meeting Rutherford Appleton Lab Tuesday 25 th April 2006 M. Ellis.
CBM ECAL simulation status Prokudin Mikhail ITEP.
Electroweak and Related Physics at CDF Tim Nelson Fermilab on behalf of the CDF Collaboration DIS 2003 St. Petersburg April 2003.
DPF2000, 8/9-12/00 p. 1Richard E. Hughes, The Ohio State UniversityHiggs Searches in Run II at CDF Prospects for Higgs Searches at CDF in Run II DPF2000.
Geant Simulation Tutorial 2002 년 6 월 26 일 2002 CHEP 여름학교 서울대학교 김복주 웹페이지 :
3D Event reconstruction in ArgoNeuT Maddalena Antonello and Ornella Palamara 11 gennaio 20161M.Antonello - INFN, LNGS.
Notes About MARS background simulations for BTeV A Summary of how far we’ve come and how far we have to go. By DJ Wagner 9/12/98 Vanderbilt University.
Geant4 release 5.1 summary Gabriele Cosmo EP/SFT.
Don LincolnExperimental QCD and W/Z+Jet Results 1 Recent Dijet Measurements at DØ Don Lincoln Fermi National Accelerator Laboratory for the DØ Collaboration.
1 Experimental Particle Physics PHYS6011 Fergus Wilson, RAL 1.Introduction & Accelerators 2.Particle Interactions and Detectors (2) 3.Collider Experiments.
Energy Loss Simulation for the CDF Run II W Mass Measurement Tom Riddick University College London.
Run 2 Jets at the Tevatron Iain Bertram Lancaster University/DØ Experiment PIC2003  Inclusive Cross Section  Dijet Mass  Structure.
P.F.Ermolov SVD-2 status and experimental program VHMP 16 April 2005 SVD-2 status and experimental program 1.SVD history 2.SVD-2 setup 3.Experiment characteristics.
1 Study of Data from the GLAST Balloon Prototype Based on a Geant4 Simulator Tsunefumi Mizuno February 22, Geant4 Work Shop The GLAST Satellite.
2005/07/12 (Tue)8th ACFA Full simulator study of muon detector and calorimeter 8th ACFA Workshop at Daegu, Korea 2005/07/12 (Tue) Hiroaki.
Introduction to Hadronic Final State Reconstruction in Collider Experiments Introduction to Hadronic Final State Reconstruction in Collider Experiments.
MONTE CARLO TRANSPORT SIMULATION Panda Computing Week 2012, Torino.
Geant4 Simulation for KM3 Georgios Stavropoulos NESTOR Institute WP2 meeting, Paris December 2008.
A Short Course on Geant4 Simulation Toolkit Introduction
1 SLAC simulation workshop, May 2003 Ties Behnke Mokka and LCDG4 Ties Behnke, DESY and SLAC MOKKA: european (france) developed GEANT4 based simulation.
Open and Hidden Beauty Production in 920 GeV p-N interactions Presented by Mauro Villa for the Hera-B collaboration 2002/3 data taking:
Simulation and reconstruction of CLAS12 Electromagnetic Calorimeter in GSIM12 S. Stepanyan (JLAB), N. Dashyan (YerPhI) CLAS12 Detector workshop, February.
Alex Howard, Imperial College Slide 1 July 2 nd 2001 Underground Project UNDERGROUND PROJECT – Overview and Goals Alex Howard Imperial College, London.
Status of Sirene Maarten de Jong. What?  Sirene is a program that simulates the detector response to muons and showers  It is based on the formalism.
Lecture 18 - Detectors Detector systems
Particle detection and reconstruction at the LHC (IV)
Methods of Experimental Particle Physics
User Documents and Examples I
GPAMELA Alessandro Bruno.
Kevin Burkett Harvard University June 12, 2001
Monte Carlo studies of the configuration of the charge identifier
Experimental Particle Physics
Experimental Particle Physics PHYS6011 Putting it all together Lecture 4 6th May 2009 Fergus Wilson, RAL.
Higgs Factory Backgrounds
A Short Course on Geant4 Simulation Toolkit Introduction
Geant4 in HARP V.Ivanchenko For the HARP Collaboration
Experimental Particle Physics PHYS6011 Putting it all together Lecture 4 28th April 2008 Fergus Wilson. RAL.
Experimental Particle Physics PHYS6011 Joel Goldstein, RAL
Experimental Particle Physics
Detector Simulation How to do HEP experiment Particle Accelerator
Presentation transcript:

Detector Simulation Writing a Detector Simulaton Program Bockjoo Kim Seoul N. Univ. CHEP, Summer School 2002 Kyunpook N. Univ., October 24-26, 2002 This talk will be made available on

Goal of the Lecture (Overall) What is the detector simulation How simulation proceeds How to write the detector simulation code in Geant3 (in Geant4) Compiling, linking, running (Tommorow) Some taste of simulation from exercises (Tommorow) Installation of Geant 4 if time permits(Tommorow) Make understand…

Learns What What is a particle physics detector? What is a detector simulation? Why detector simulation? What is Geant? How simulation proceeds in Geant? Geant codes from an eample Geant4, what is it? Where do we go from here?

Accelerators (Time Structure) Fermilab Tevatron (CDF and D0 exp)  √S = 1.96 TeV  36 bunches and 396x10 -9 sec  www-bd.fnal.gov/runII/index.html KEK-B (BELLE exp)  Asignment KEK-Neutrino beam line (K2K exp)  Every 2.2 sec  1.3  sec width beam LHC (CMS, ATLAS, … )  Asignment Zoom A bunch A collider experiment An accelerator 빵 x10 11 protons for Fermilab RunIIa ~37cm Numbers in magenta is Tevatron RunIIa parameters 396 x sec Asignment: Given Tevatron RunIIa parameters, calculate instant luminosity, assuming P = P-bar Answer is:~10 32 cm -2 sec – 1,explain!

Particle Physics Detectors Detectors ≡ An experiment Each layer(detector) identifies and measures energy of particles No single detector measures all the particle ID. and E/p Muons (  ) Hadrons (h) e ±,  Charged Tracks e ±,  ±, h ± Heavy absorber, e.g., Fe Zone where only and  remain Lightweight High Z materials, e.g., lead tungstate crystals Heavy material, Iron+active material Tracker E.M.Cal. HADCal. MuonCham. Photons e±e±e±e± ±±±± ±, P±, P±, P±, P n

CDFII CDF II:  All front-end, DAQ and trigger replaced!!!  New L1 tracking trigger  New L2 secondary vertex trigger  New Time of Flight New Full acceptance 7(8) layer silicon system: |  |<2 coverage New COT drift chamber: B=1.4 T, N axial = 48, N stereo = 48,  p t /p t < p t New Plug calorimeter has smaller inner hole Central muon chambers up to |  | < 1.5 – Some new Forward calorimeters and muons removed

CDF, Detector Roll-In

Calorimeters Tracker Muon System Beamline Shielding Electronics protons antiprotons 20 m

K2K Experiment  P To SuperKamiokande Spectrum Measurement

Silicon Detectors (SVXII)

Sense wires Potential wires Cathode

Calorimeter Data Dijets jets with Et ~ 400 GeV W -> e Missing E t = 38 GeV

Trigger and DAQ Upgrade Calorimeter energy Central Tracker (Pt,  ) Muon stubs Cal Energy-track match E/P, EM shower max Silicon secondary vertex Multi object triggers Farm of PC’s running fast versions of Offline Code  more sophisticated selections

What is a detector simulatoin Describe particle passage through detectors Probabilistic treatment of particle passages, i.e., xsec of particle interactions with matter. Knowing timing and geometry (detector) Knowing material (detector) Tracking (tracing) particles Describing responses

Why detector simualtion Physics processes needed to be checked in advance to understand data reconstruction HEP apparatus requires huge expenses. Detector optimization is necessary ahead of detector construction: It’s possible to see what is happened at detector itself, and to shorten a period of time of detector completion Detector performance can be compared with data.

ADC Distribution : Data vs Sim ADC (East) ADC (West) ADC_peak/  ADC (East) ADC_peak/  ADC (West) Black : Store832 Red : Simulation x

M t Systematics Better control of the jet energy scales using Z  bb and W  qq (in double tagged top events).

Simulation Considerations Beam Crossings Geometry description Material description Response Speed needs to be fast preferably  Practically most important

From where to where to simulate From: a physics event from a event generator  (x,y,z,px,py,pz,t)  Nparticles  Particle type  Added Particles To: End of detector boundaries Electronics reponses need to be simulated in (typically) parametric way All possible physics processes inside detector, active or inactive

All possible physics processes ( 이런 process 들을 알고 싶다.) Photon Processes (e +,e - ) pair conversion Compton collision Photoelectric effect Photo fission of heavy elements Rayleigh effect e - /e + Processes Multiple scattering Ionization and  -rays production Bremsstrahlung Annihilation of positron Generation of Cerenkov light Synchrotron radiation Hadrons Processes Decay in flight Multiple scattering Ionization and  -rays production Hadronic interaction Generation of Cerenkov light  - /  + Processes Decay in flight Multiple scattering Ionization and  -rays production Ionisation by heavy ions Bremsstrahlung Direct (e +,e - ) pair production Photonuclear interaction Generation of Cerenkov light

Recording All readout channels from each subdetector should be recorded as real experiment Hit and Digitization information are recorded Simulation package gives more detailed information to make system debugging possible.

Simulation Packages Geant Experiment dependent fast simulations

Describes particle passage through matter  Experimental setup  Energy loss  Particle track (time and space) Designed originally for high energy physics  Application in the medical and biological sciences  Application in the radioprotection and astronautics Geant3: written in traditional Fortan Geant4: written in C++  Include hadronic package FLUKA, GHEISHA,… Geant

Geant and Packages ZEBRA : memory mangement and data structure (bank) HBOOK : package for histogramming and fitting HIGZ : High level Interface to Graphics and ZEBRA PAW : Physics Analysis Workstation GEANT : Detector Description and Simulation Tool ROOT : OO Data Analysis Framework

Geant Event Simulation Framework Initialization – part 1  Initialize common block /GCBANK/  Read free format data to modify default values  Initialize memory manager (ZEBRA)  Initialize drawing package  Fill partilce properties data structure  Fill characteristics of the materials used Initialization – part 2 – user code  Geometry – shape (cylindrical, rectangle, ….) and boundaries  Medium – materials (Aluminium, air, scintillator, Iron,…)  Digitizability – sensitive detectors (length of particle path, energy deposit, …) Fence WS Reserved Event Div Const Div System Div GCBANK

Geant Event Simulation Framework… 계속 Initialization – part 3  Process all the user provided informaton  Book standard Geant histogram~~^^~~  Compute energy loss and cross section tables and store them in the data structure MaterialsJMATE/JTMED GeometryJVOLUM/JROTM TrackingGUSTEP JSTAK Event Processing History JVERTX/JKINE Simulated Raw Data JHITS/JDIGI JSET DrawingJDRAW PHYSICS ParticlesJPART Initialization of Kinematics Relation between GEANT data structure

Geant Event Simulation Framework… 계속 Geant Event Simulation Framework… 계속 Event processing  Initialize dynamic memory banks for next event and create event head bank  Process an event  Read an event kiinematics (x,y,z,px,py,pz,t)  For each vertex, A. JKINE→JSTAK B. each particle is tracked. (User stores useful information for user’s own use, e.g., energy deposit when sensitive material is traversed.)  Secondary particles generated for each particle processed first (Geant does not process secondaries by default. User should indicate, see GSKING/GSKPHO)  Next particle is taken care  User can store (x,y,z) to JXYZ  Hadronic interactions  by GHEISHA or FLUKA  User can skip unwated tracking  Can steer particles according to B-field  Simulate detector response (JDIGI)  End of event processing  Clean up memory used by the event and check time for next event Termination : close files, hbook, print stats. Head (Bank name, etc) Tail (EOF, etc) JKINE JSTAK (LIFO) Q:Common block 2ndary particles are stored(2) A: /GCKING/ /GCKIN2/  (Cerenkov photons)

Geant Program Flow Chart See next slide 

MAIN user routine GZEBRA initialisation of ZEBRA system, dynamic core allocation UGINIT user routine GINIT initialisation of GEANT variables GFFGO interpretation of data records GZINIT initialisation of ZEBRA core divisions and link areas GPART/GSPART creation of the particle data structure JPART GMATE/GSMATE creation of the material data structure JMATE user code description of the geometrical setup, of the sensitive detectors, creation of data structures JVOLUM, JTMED, JROTM, JSETS GPHYSI preparation of cross-section and energy-loss tables for all used materials GRUN loop over events GTRIGI initialisation for event processing GTRIG event processing GUKINE (user) generation (or input) of event initial kinematics GUTREV (user) GTREVE loop over tracks, including any secondaries generated GUTRAK (user) GTRACK control tracking of current track GFINDS find current volume in the geometry tree GUSTEP (user) recording of hits in data structure JHITS and of space points in data structure JXYZ GUPARA called if the particle falls below the tracking threshold GTGAMA/GTELEC/... tracking of particle according to type GFSTAT fill banks for volume statistics GSTRAC store information of the current track segment GUSTEP (user) recording of hits in data structure JHITS and of space points in data structure JXYZ GTMEDI finds in which volume/medium the current space point is GUSTEP (user) recording of hits in data structure JHITS and of space points in data structure JXYZ GUDIGI computation of digitisations and recording in data structure JDIGI GUOUT output of current event GTRIGC clearing of memory for next event UGLAST (user) GLAST standard GEANT termination

Geant Constants Material numbers and medium numbers are the constants stored for tracking Described in Geant manual CONSXXXX

Geant Drawing Based on HIGZ which uses X11 and other graphics system Drawing package visualizes  Detector components  Logical tree of detector components  Geometrical dimensions  Particle trajectories  Hits recorded in the sensitive detector components Documented in DRAWXXXX

Geant Geometry At init., define the geometry in which the particles will be tracked Communicate with tracking codes  Volume ID for a given point  Distance to the nearest volume along the track  Distance to the nearest volume  Given point in the current volume or exited? Experimental setup consists of various shape, material, conditions (.e.g. magnetic field)  Geant describes experimental setup by defining shape, material, conditions of detector components  Local reference frame should be defined

Geant Geometry… 계속 Mother volume: a volume that has contents New volume: predefined volumes or by division Positioning a volume : by specifying its rotation and translation and a number is given to a positioned volume Experimental setup consists of various shape, material, conditions (.e.g. magnetic field) 16 basic shapes are used(2 nd order surfaces) Tracking of particles through the geometrical data structure is the key functionality of Geant

Geant Geometry… 계속 CADINT: Geant Geom  CAD (IGES) Uses concept of overlapping volume  Reduces tracking time  Can be used to compose any kind of shape  Can be used to ellimiate regions  “ONLY” and “MANY” distinguishes overlapping Q:List all 16 shapes used in Geant A:Box, TRD1, TRD2, ….

Geant Hit Hit : User-defined info recorded during tracking  Example: dE/dx in a sensitive detector Digitization : User-defined info for detector response  TDC counts and ADC counts for a hit

Geant KINE, Phys, … Stores and retrieves kinematic Information and physics processes inside detectorStores and retrieves kinematic Information and physics processes inside detector Sometimes one can provided one’s own parameters for physics processesSometimes one can provided one’s own parameters for physics processes

Geant tracking Continuous tracks  a set of points Step size : estimated a priori by  Particle type  Type of current medium  Geometry (particularly around boundaries between different medium)  Can be optimized by the user Every particle is transported by a tracking type  G  GTGAMA  GTRACK  E  GTELEC  GTRACK  … Magnetic filed transport All the user action is taken by GUSTEP

Interactive Geant PROGRAM GXINT * * GEANT main program. To link with the MOTIF user interface * the routine GPAWPP(NWGEAN,NWPAW) should be called, whereas * the routine GPAW(NWGEAN,NWPAW) gives access to the basic * graphics version. * PARAMETER (NWGEAN= ,NWPAW= ) COMMON/GCBANK/GEANT(NWGEAN) COMMON/PAWC/PAW(NWPAW) * CALL GPAWPP(NWGEAN,NWPAW) * END Initializes Geant and PAW Stores for Geant and PAW

Requires Geant library (libgeant321.a), X11 library (libX11.a), +system libs Compile gxint321.F using a compiler gcc – c – o gxint321.o gxint321.F ; gcc – c – o uginit.o uginit.F ; gcc – c – o uglast.o uglast.F Link (make the executable) gcc -o gxint -O -L/usr/X11R6/lib -L/cern/2000/lib gxint321.o uglast.o uginit.o -lX11 - lgeant321 -lpawlib -lmathlib -lpacklib -lgraflib -lgrafX11 -lpacklib -lkernlib - lmathlib -lstdc++ -lg2c -lm -ldl -lcrypt -lnsl Building Interactive Geant Practice: link gxint without –lg2c

Invoking Interactive Geant Execute gxint created in previous slide ./gxint  Will show GEANT> prompt Getting help  At GEANT> prompt, ‘ GEANT>help ’  ‘ GEANT> help geant ’ for geant help Example of Creating a Volume  GEANT>geant/create/sbox ‘ mybox ’  EXAMPLE – dopt hide on satt * seen -2 draw mybox next box mybox draw mybox box.

Geant in Batch Mode Given experimental setup and process Runs in a number of events Need to provide input files Execute ./gbatch < gbatch.inp Examine output histogram and data

Example Batch Code PROGRAM MAIN_BATCH CGEANT main program for batch running PARAMETER (NGBANK= , NHBOOK= ) COMMON/GCBANK/Q(NGBANK) COMMON/PAWC/H(NHBOOK) Cinitialize HBOOK and GEANT memory CALLGZEBRA(NGBANK) CALLHLIMIT(-NHBOOK) Cinitialize GEANT CALLUGINIT Cstart event processing CALLGRUN Cend of run; terminate CALLUGLAST END

Geant 4 : c++ version of Geant3 Totally written in OO language Physics is same Supplementory features: CAD  Geant4 Serves for Geant3 in coming HEP Exp

Where do we go from here? Practice and apply Geant3 knowledge to actual experimental setup One of best way of understanding detector simulation is to install Geant Geant4 is the next generation tool for detector simulation. Learn it and you will be ready for next generation particle physics experiments

Summary Detector simulation is explained by focusing on Geant3 Detector simulation requires knowledges on experimental setup and thus geometry and material Geant4 hopefully will ease some of the tasks like complex shaped detector construction in simulation Installing and practicing is the best way to farmiliarize one with the Geant simulation

References Collider Physics Particle Detectors, C.Grupen, Cambridge Univ. Press, 1996 Experimental techniques in HEP, T.Ferbel, World Scientific,

Inside Programming Techniques Search for undefined references by using ‘ nm – o *.a | grep something_a | more ‘ Debuging : gdb program core ; where Unrecognized library?: move around libraries … ^^ …