Download presentation
Presentation is loading. Please wait.
Published byShawn Walton Modified over 9 years ago
1
GEANT4 simulation efforts at NIU/NICADD Robert C. McIntosh rmcintos@nicadd.niu.edu Mike Arov arov@nicadd.niu.edu
2
What is Geant4? n From the Geant4 website (http://geant4.web.cern.ch/geant4/): http://geant4.web.cern.ch/geant4/ –“Geant4 is a (programming) toolkit for the simulation of the passage of particles through matter” –AND –“Geant4 provides a complete set of tools for all the domains of detector simulation: Geometry, Tracking, Detector Response, Run, Event, and Track Management, Visualisation and User Interface”
3
LCDRoot n Authored by T. Abe and M. Iwasaki (University of Colorado) n What is LCDRoot? –Group of tools for LCD studies, that covers two areas: n Simulation engine using Geant4 and ROOT system n Analysis is based based on the ROOT system n Output as ROOT ntuples
4
Lcdg4 – Our program n Is a port of the simulation engine (G4FullSim) in LCDRoot –The LCDRoot G4FullSim classes decoupled from ROOT –Decoupling achieved by making appropriate substitutions using C++ STL and CLHEP libraries instead of ROOT internal classes –This port is work in progress… n The result: –A standalone geant4 simulation program –XML description of detector geometry –SIO output functionality
5
Why decouple from ROOT n Decoupling allows us to have a “standalone” simulation program n Standalone simulation program, not bound to a particular analysis environment n I/O compatible with the SLAC/HEP.LCD library and JAS n Preservation of the ROOT compatibility. Ntuple output is still an option
6
Structure of package n All lcdg4 user action classes are nearly identical to their G4FullSim counterparts (appropriate modifications made…) n EventAction class has been modified to output in SIO format n The rough graph class structure of the package is shown on the next slide
8
Some of the advantages of the Serial Input Output format Is the preferred data format for Java Analysis Studio, the main analysis framework for NICADD Allows read access to huge files in sequential/selective manner, using records and blocks without overburdening the memory Allows writing onto several streams simultaneously Has built-in support for file compression, which is important, since uncompressed events can take well over 1 GB of space
9
Writing SIO output
10
XYZ to ID conversion n The output of GEANT4 provides the Cartesian coordinates of the hits, without regard for the actual geometry: a) number, shape and spacing of the cells a) number, shape and spacing of the cells b) projective or non-projective towers b) projective or non-projective towers n Specific detector geometry is handled by a separate class, initialized at the construction of the detector and invoked on each event n Important for the hexagonal geometry of the cell
11
(0,0) (0,2) (1,1) (1,-1) (-1,-1) (-1,1) (j,k) Z(k) φ(j) (0,-2) Layer (i) Cell (j, k) The Cell “neighborhood” NIU Prototype
12
n Using the geometry described above one can determined which Cell the coordinates of the hit correspond to and associate the ID of the Cell with the hit n The ID formed contains 3 fields : a) R_ID (the radial component a) R_ID (the radial component b) Phi_ID (the azimuthal angle component) b) Phi_ID (the azimuthal angle component) c) Theta_ID (or Z_ID) (the transverse angle c) Theta_ID (or Z_ID) (the transverse angle component) component)
13
Test Results n The Sampling Fractions for the EM and Hadronic Callorimeters EMfr = 0.05935 EMfr = 0.05935 HADfr = 0.07421 HADfr = 0.07421 n The old values are 0.02187 and 0.06338 correspondingly entries :751.00 min :0 max :31.210 mean :17.976 3.6934
14
Total (EM+HAD) energy for the 10 GeV pions Using LCDG4 with NICADD proposed detector entries :1001.0 min :0 max :16.318 mean :9.9900 rms :1.8152
15
Phi vs Theta for layer 1 6668707274767880828486889092 0 2 4 6 8 10 12 14 16 entries :76.000 x mean :76.973 x rms :4.8503 x min :66.000 x max :92.000 y mean :5.0263 y rms :3.6848 y min :0 y max :16.000
16
The total energy deposition for 20 GeV charged pions in HAD
17
Energy in HAD vs. # of hits (Response plot)
18
Shower Profile for the10 GeV charged pions
19
The comparison plot of energy per hit between Gismo and Root for 10 GeV pions, run over 1000 events each The units are GeV. Green is GEANT4
20
The total energy in HAD. Also over 1000 events
21
The Projective Version n The TowerID class had been implemented - automatically fills in the ID field in SIO output to be read in JAS without complications (Thanks to Noman Graf) n Standard projective geometry + rectangular cells of the SD design is assumed by the digitizer
22
SIO File Contents n EventHeader - being read every time user scrold n EMCal HitList n HADCal HitList n MU and Tracker info n MCPrint (the Monte Carlo Particle Table)
23
Usage of the package n Http://nicadd.niu.edu/simulations/software/ n Source + binary (Linux) are available n lcdg4-bin,tar.gz and materials.tar.gz n the proper command line format is lcdg4 b input_file.xml output_file.sio Detector_ID MacroFile HepEvt_File
24
Examples
26
The Problems n Monte Carlo Particle output is wrong ! n The discrepancy between GEANT4 and Gismo is still there - about 7 times more hits for the same event in G4 n The multitude of versions we currently have has to be brought together n Geometry is “hard - coded”
27
Conclusions n We now have two version of the package: for projective and non-projective designs n The non-projective package had little modification and is currently geared for NICADD’s calorimeter design n The projective geometry package interacts seamlessly with JAS (save for the annoying MC bug) n More creative work and bug fixing is in order
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.