1 / 27

GEANT4 simulation efforts at NIU/NICADD

GEANT4 simulation efforts at NIU/NICADD. Robert C. McIntosh rmcintos@nicadd.niu.edu Mike Arov arov@nicadd.niu.edu. What is Geant4?. From the Geant4 website ( http://geant4.web.cern.ch/geant4/ ): “Geant4 is a (programming) toolkit for the simulation of the passage of particles through matter”

dahlia
Download Presentation

GEANT4 simulation efforts at NIU/NICADD

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. GEANT4 simulationefforts at NIU/NICADD Robert C. McIntosh rmcintos@nicadd.niu.edu Mike Arov arov@nicadd.niu.edu

  2. What is Geant4? • From the Geant4 website (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 • Authored by T. Abe and M. Iwasaki (University of Colorado) • What is LCDRoot? • Group of tools for LCD studies, that covers two areas: • Simulation engine using Geant4 and ROOT system • Analysis is based based on the ROOT system • Output as ROOT ntuples

  4. Lcdg4 – Our program • 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… • The result: • A standalone geant4 simulation program • XML description of detector geometry • SIO output functionality

  5. Why decouple from ROOT • Decoupling allows us to have a “standalone” simulation program • Standalone simulation program, not bound to a particular analysis environment • I/O compatible with the SLAC/HEP.LCD library and JAS • Preservation of the ROOT compatibility. Ntuple output is still an option

  6. Structure of package • All lcdg4 user action classes are nearly identical to their G4FullSim counterparts (appropriate modifications made…) • EventAction class has been modified to output in SIO format • The rough graph class structure of the package is shown on the next slide

  7. 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

  8. Writing SIO output

  9. XYZ to ID conversion • 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 b) projective or non-projective towers • Specific detector geometry is handled by a separate class, initialized at the construction of the detector and invoked on each event • Important for the hexagonal geometry of the cell

  10. NIU Prototype Z(k) (j,k) Layer (i) (0,2) Cell (j, k) (-1,1) (1,1) φ(j) (0,0) (-1,-1) (1,-1) (0,-2) The Cell “neighborhood”

  11. 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 • The ID formed contains 3 fields : a)R_ID (the radial component b)Phi_ID (the azimuthal angle component) c) Theta_ID (or Z_ID) (the transverse angle component)

  12. Test Results • The Sampling Fractions for the EM and Hadronic Callorimeters EMfr = 0.05935 HADfr = 0.07421 • The old values are 0.02187 and 0.06338 correspondingly entries : 751.00 min : 0 max : 31.210 mean : 17.976 3.6934

  13. 140 120 100 80 60 40 20 0 0 2 4 6 8 10 12 14 16 Energy, GeV Total (EM+HAD) energy for the 10 GeV pions entries : 1001.0 min : 0 max : 16.318 mean : 9.9900 rms : 1.8152 Using LCDG4 with NICADD proposed detector

  14. Phi vs Theta for layer 1 16 entries : 76.000 x mean : 76.973 14 x rms : 4.8503 12 x min : 66.000 10 x max : 92.000 y mean : 5.0263 8 y rms : 3.6848 6 y min : 0 4 y max : 16.000 2 0 66 68 70 72 74 76 78 80 82 84 86 88 90 92

  15. 50 45 40 35 30 25 20 15 10 5 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Energy, GeV The total energy deposition for 20 GeV charged pions in HAD

  16. Energy, GeV 18 16 14 12 10 8 6 4 2 0 5 10 15 20 25 30 35 number of hits in 1000s Energy in HAD vs. # of hits (Response plot)

  17. Shower Profile for the10 GeV charged pions

  18. 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

  19. The total energy in HAD. Also over 1000 events

  20. The Projective Version • 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) • Standard projective geometry + rectangular cells of the SD design is assumed by the digitizer

  21. SIO File Contents • EventHeader - being read every time user scrold • EMCal HitList • HADCal HitList • MU and Tracker info • MCPrint (the Monte Carlo Particle Table)

  22. Usage of the package • Http://nicadd.niu.edu/simulations/software/ • Source + binary (Linux) are available • lcdg4-bin,tar.gz and materials.tar.gz • the proper command line format is lcdg4 b input_file.xml output_file.sio Detector_ID MacroFile HepEvt_File

  23. Examples

  24. The Problems • Monte Carlo Particle output is wrong ! • The discrepancy between GEANT4 and Gismo is still there - about 7 times more hits for the same event in G4 • The multitude of versions we currently have has to be brought together • Geometry is “hard - coded”

  25. Conclusions • We now have two version of the package: for projective and non-projective designs • The non-projective package had little modification and is currently geared for NICADD’s calorimeter design • The projective geometry package interacts seamlessly with JAS (save for the annoying MC bug) • More creative work and bug fixing is in order

More Related