Working with HGeant Part 1 by Ilse Koenig:  Overview of HGeant  How to install it  How to run it -Initialisation (geaini file, geometry from Oracle.

Slides:



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

H.G.Essel: Go4 - J. Adamczewski, M. Al-Turany, D. Bertini, H.G.Essel, S.Linev CHEP 2004 Go4 v2.8 Analysis Design.
Ozgur Ates Hampton University HUGS 2009-JLAB TREK Experiment “Tracking and Baseline Design”
Why ROOT?. ROOT ROOT: is an object_oriented frame work aimed at solving the data analysis challenges of high energy physics Object _oriented: by encapsulation,
Monte Carlo Studies of the HERMES RICH in SBS—progress report Andrew Puckett 11/10/2010.
Tracking for high multiplicity event (E05-115) & E GEANT4 simulation 14/Dec/2011 School of science, Tohoku University Toshiyuki Gogami ( 後神 利志 )
Hall D Photon Beam Simulation and Rates Part 1: photon beam line Part 2: tagger Richard Jones, University of Connecticut Hall D Beam Line and Tagger Review.
25/03/2003Simulation Application for the LHCb Experiment CHEP March 2003 Presented by: W. Pokorski / CERN Authors: I. Belyaev, Ph. Charpentier,
Review of PID simulation & reconstruction in G4MICE Yordan Karadzhov Sofia university “St. Kliment Ohridski” Content : 1 TOF 2 Cerenkov.
Pair backgrounds for different crossing angles Machine-Detector Interface at the ILC SLAC 6th January 2005 Karsten Büßer.
14 User Documents and Examples I SLAC Geant4 Tutorial 3 November 2009 Dennis Wright Geant4 V9.2.p02.
First simulations for ACTAR H. Alvarez, J. Benlliure, M. Caamaño, D. Cortina, I. Durán Universidad de Santiago de Compostela EURONS ACTAR JRA 1 Ganil,
14 Overview of Geant4 Examples 2 nd Finnish Geant4 Workshop 6-7 June 2005 Dennis Wright (SLAC)
Monte-Carlo simulations and reconstruction for 12-degree ep-elastic Luminosity Monitor A.Kiselev OLYMPUS Collaboration Meeting DESY, Hamburg,
17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 Geant4 Japan.
ROOT An object oriented HEP analysis framework.. Computing in Physics Physics = experimental science =>Experiments (e.g. at CERN) Planning phase Physics.
14 Overview of Geant4 Examples Geant4 Tutorial 8-10 March 2004 Dennis Wright (SLAC)
Introduction to Hall-D Software February 27, 2009 David Lawrence - JLab.
Gamma calorimeter for R3B: first simulation results INDEX ● The calGamma Geant4 simulation ( a short introduction ) ● Crystal and geometry selection: –
R 3 B Gamma Calorimeter Agenda. ● Introduction ● Short presentation on the first ● Task definition for R&D period ( )
Dec 2000 GEANT4 Workshop - David Bailey Hadronic Interactions 1 Checking Basic Characteristics of Hadronic Shower Parameterizations in GHEISHA / GEANT4.
®® Microsoft Windows 7 for Power Users Tutorial 13 Using the Command-Line Environment.
Status of the Beamline Simulation A.Somov Jefferson Lab Collaboration Meeting, May 11, 2010.
Validation and TestEm series Michel Maire for the Standard EM group LAPP (Annecy) July 2006.
User Documents and Examples I Sébastien Incerti Slides thanks to Dennis Wrigth, SLAC.
1 Fast Timing via Cerenkov Radiation‏ Earle Wilson, Advisor: Hans Wenzel Fermilab CMS/ATLAS Fast Timing Simulation Meeting July 17,
IEEE Nuclear Science Symposium and Medical Imaging Conference Short Course The Geant4 Simulation Toolkit Sunanda Banerjee (Saha Inst. Nucl. Phys., Kolkata,
Pedro Arce Introducción a GEANT4 1 GAMOS tutorial Plug-in’s Exercises Pedro Arce Dubois CIEMAT
SoLID simulation Zhiwen Zhao Uva SoLID Collaboration Meeting 2011/6/2 1.
RICH SIMULATION USING GEANT4 S.EASO, RAL OBJECTIVES OF THE SIMULATION. CURRENT STATUS AND PLANS. INTEGRATION WITH LHCb SOFTWARE. SUMMARY.
1 Getting Started Exercise Part 1. 2 Profiles related to the exercise When starting use archive profile: GettingStarted_Start.zip The fully completed.
BesVis An Visualization software for BESIII experiment Zhengyun YOU School of Physics, PKU
Detector Monte-Carlo ● Goal: Develop software tools to: – Model detector performance – Study background issues – Calculate event rates – Determine feasibility.
Jin Huang BNL.  GEANT4 customary code  PHENIX simulation/analysis  EICROOT by EIC taskforce at BNL (learning) RICH Discussions J. Huang 2.
Simulations Report E. García, UIC. Run 1 Geometry Radiator (water) 1cm x 2cm x 2cm with optical properties Sensitive Volume (hit collector) acrylic (with.
Evgeny Kryshen (PNPI) Mikhail Ryzhinskiy (SPbSPU) Vladimir Nikulin (PNPI) Detailed geometry of MUCH detector in cbmroot Outline Motivation Realistic module.
CaTS and Dual Readout. CaTS – Calorimeter and Tracker Simulation Describe detector in gdml file (xml like) Define.
Geant4 examples Sébastien Incerti On behalf of the Geant4 collaboration with special thanks to Luciano Pandola, INFN.
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.
Pedro Arce Introducción a GEANT4 1 GAMOS tutorial RadioTherapy Exercises Pedro Arce Dubois CIEMAT
M. Oldenburg GridPP Metadata Workshop — July 4–7 2006, Oxford University 1 Markus Oldenburg GridPP Metadata Workshop July 4–7 2006, Oxford University ALICE.
Estimate of META efficiency in NOV02 Aim: check of META efficiency implemented in digitizers in order to get proper efficiency correction of yields Needed:
1 Giuseppe G. Daquino 26 th January 2005 SoFTware Development for Experiments Group Physics Department, CERN Background radiation studies using Geant4.
RP Software Collaboration Meeting 7 Mars 2007 Hubert Niewiadomski TOTEM, CERN Brunel University.
1 Exercises 0 Go inside the “hadrontherapy” directory: cd hadrontherapy Copy the Hadrontherapy example to your home folder: cp –r $G4INSTALL/examples/advanced/hadrontherapy.
BESIII offline software group Status of BESIII Event Reconstruction System.
Software framework and batch computing Jochen Markert.
The HADES Oracle database and its interfaces for experimentalists Ilse Koenig, GSI Darmstadt for the HADES collaboration.
Status of PSD simulation in Shine Oleg Petukhov Institute for Nuclear Research, Moscow NA61 Analysis/Software/Calibration meeting , Warsaw.
MONTE CARLO TRANSPORT SIMULATION Panda Computing Week 2012, Torino.
Object-Oriented Track Reconstruction in the PHENIX Detector at RHIC Outline The PHENIX Detector Tracking in PHENIX Overview Algorithms Object-Oriented.
1 CW11 Visualizing ACE3P Results in ParaView Greg Schussman Menlo Park, CA October 10, 2011.
Geant4 Simulation for KM3 Georgios Stavropoulos NESTOR Institute WP2 meeting, Paris December 2008.
A Short Course on Geant4 Simulation Toolkit Introduction
WS4.3-1 ANSYS, Inc. Proprietary © 2009 ANSYS, Inc. All rights reserved. July 2009 Inventory # Chapter 4 Volume Meshing – Workshop 3 Femur BF Cartesian.
Dollan, Laihem, Lohse, Schälicke, Stahl 1 Monte Carlo based studies of polarized positrons source for the International Linear Collider (ILC)
Tracking, Computing & other Stuff. Correlation of detector hits The track segments of inner and outer MDCs are matched on Cluster level The track segments.
HYDRA Framework. Setup of software environment Setup of software environment Using the documentation Using the documentation How to compile a program.
April12 DST calibration status
VTX tracking issues Y. Akiba.
User Documents and Examples I
Introduction Goal: Can we reconstruct the energy depositions of the proton in the brain if we are able to reconstruct the photons produced during this.
GPAMELA Alessandro Bruno.
The Hadrontherapy Geant4 advanced example
Higgs Factory Backgrounds
A Short Course on Geant4 Simulation Toolkit Introduction
Geant4 in HARP V.Ivanchenko For the HARP Collaboration
GAMOS tutorial Plug-in’s Exercises
Working with HADES WebDB HADES analysis workshop, Darmstadt, Germany, 31 January - 1 February 2012 Ilse Koenig, GSI Darmstadt Outline: Version management.
Analyzing CLAS12 Data David Payette.
Presentation transcript:

Working with HGeant Part 1 by Ilse Koenig:  Overview of HGeant  How to install it  How to run it -Initialisation (geaini file, geometry from Oracle or files) -Interactive session  Output of HGeant  Simple example macro Part 2 by Jochen Markert:  Looping on the output HADES analysis workshop, Darmstadt, Germany, 31 January - 1 February 2012

HGeant, the HADES simulation package HGEANT2 geant, grich, gmdc, gtof, grpc, gshower, gwall ROOT Cernlib Hydra2 libHydra (base, geom, geantutil) libSimulation libOraSim Oracle Executable hgeant geaini file (geometry, events,…) ROOT file Hydra2 DST based on GEANT 3.21 tracks particles through the HADES geometry generates detector hits based on a realistic modeling of the physical processes occurring along the tracks stores track information and hits in an HTree The analysis reads this tree, digitizes the hits, which are then handled like real events with the track number as additional data member (gives access to the original track and hit data).

1.Checkout hgeant2: svn co hgeant2https://subversion.gsi.de/hades/hgeant2/trunk hgeant2 2.Setup your shell environment (including Root, Cernlib and Hydra2 settings): Example: /misc/hadessoftware/etch32/install/hydra-dev/defall.sh 3.Copy Makefile from sub-directory adm to main directory. Change INSTALL_DIR to your local directory. 4.Build it: make 5.Install it: make install 6.Eventually remove the files created during build: make distclean How-to install HGeant2

Read by GEANT (ffread package) Read by HGeant2 C++ interface (class HGeantInput) Control by keywords and file extensions Initialisation: geaini_ora.dat Be careful with comments! (FORTRAN code) Example: Au+Au, 1.25GeV/A, ideal geometry

General control of the simulation, of the physics processes, the user applications see GEANT manual BASE040-1ff, PHYS read events from.evt event files automatic computation of the tracking medium parameters internal 1-shot generator OFF TOSCA field map scaling and polarity of magnetic field maximum number of steps allowed in tracking vertex sampling (here: emission from segmented target, 2-dim Gauss beam spot) 6 beam parameters: sig(X) sig(Y) Ebeam sig(Ebeam) offsetX offsetY (in mm and MeV) store all secondaries, but only active tracks generation of Cerenkov light continuous energy loss ON Delta-ray production ON number of events Reset eta branching (check against latest PDG value!) user defined GEANT switches (here: track all particle, no printing or plotting, input in lab GEANT time limits frame, all decays allowed, sample event plane angle ) size of output file (where tree is split) HGeant output mode (ROOT file) Vertex sampling with JVER, BEAM, TARG see and files geant/makevertex.F, geant/makevertex.F and geant/rantarg.F for details Pluto events with vertex: do not specify JVER, BEAM or TARG Always check vertex distribution before running large amount of statistics! The GEANT keywords in geaini_ora.dat

The geometry, input, output in geaini_ora.dat Reads actual geometry from Oracle for simulation reference run.map file for field map xxx.tup enables output of detector hits in the tree.evt for event input file.root for output file.setup file for detector subsets

Simulations on the batch farm Initialisation of geometry from Oracle possible, but not recommended for small simulation (one or two jobs) No-Go for large scale simulations (many jobs in parallel) Use geometry files created from Oracle! Advantage: faster (no waiting for active Oracle session) same geometry for all runs (not guaranteed for history date ”now”) listing of media possible (macro listMedia.C) Analysis on the batch farm: Use parameter ROOT file! Macro: ora2files.C

Reads the geometry from Oracle and creates all.geo and.hit files The macro ora2files.C Class HGeomInterface: Manages input/output from/to Oracle, files creates geometry, media, hit definitions in GEANT or ROOT

The geometry files in geaini_files.dat Reads all from files (no Oracle connection) To be used on the batch farm Oracle support OFF Id of simulation reference run (stored in the event header), found in Oracle WebDB.geo geometry files for the different detector parts (key words!) (retrieved from Oracle: “detector part”_”time”.geo).hit hit definition for the different detectors

cd ~/analysis_workshop/2012/working_with_hgeant/macros // run in batch mode ~/svn/hgeant2/hgeant -c -f geaini_files.dat How to run HGEANT Problem: maximum of 63 characters for directory+geaini filename !

Interactive session ~/svn/hgeant2/hgeant -f geaini_files.dat Creates ROOT session with small menu (macro hgeant2/geant/menu.C dcut cave Cut volume cave at x=0 => yz plane satt rtam colo 2 Where is the target? Set colors! satt targ colo 4 next Clear window dcut cave Redraw zoom Zooming: mark region with mouse, clear window and redraw use " zoom 0 " to unzoom daxis Where is 0? (parameters x, y, z, scaling factor for size) pic Volumes and materials? Click in a volume with left mouse (leave menu with right mouse click) meas Distance between 2 points? (Click at points with left mouse keep pressed, move mouse to the second point and release key) Result in cm! draw rtam d-drawing (3 angles, x y origin, x y scaling) dtree cave 2 Command: dtree volume sub-levels => shows tree of volumes Left mouse click on a volume to see volume, daughters,... on an arrow to see additional sub-levels (leave menu with right mouse click) quit Leave KUIP interface => ROOT KUIP interface: (GEANT manual XINT001 and XINT002)

Output ROOT file HGeantKine Data of GEANT tracks HGeantMdc MDC hits HGeantRichPhoton RICH hit data for Cherenkov photons HGeantRichDirect RICH direct hits on photon detector HGeantRichMirror RICH hits on the mirror HGeantShower Shower hits HGeantTof Tof hits HGeantWall Forward Wall hits HGeantRpc RPC hits The detector hit classes are derived from class HLinkedDataObject and inherit from it as data member the index of the next hit.

HGeantKine (Part1/2) GEANT KINE data on primary and secondary particles in the simulated event

HGeantKine (Part2/2)

HGeantMdc

Looping on the output 1 3 decay 1 primary 2 secondary 4 detector getPrimary(4) Loop forward on kine tracks and MDC hits Loop backwards from MDC hits: see talk by Jochen Markert

Exercise: Protons 1.Simulation: shoot 500 MeV/c protons, one per sector, with fixed theta = 35 deg, phi = 30 deg 2.Analysis: Loop (forward) on output: plot vertex distribution for primaries plot incident angle on MDC plane 1 and 2 for primaries => multiple scattering print history of secondary tracks

Remove event file Set output file name No event file 1000 events shoot 500 MeV/c protons, one per sector, with fixed theta=35deg, phi=30deg KINE ikine pkine(10) Controls 1-shot generator ikine > 0 : generate ikine particle(s) or pair(s) per shot with fixed kinematics ikine = -1: generate one particle per sector (phi range must be set to 0..60) pkine(1), pkine(2) = theta (min, max in degrees) pkine(3), pkine(4) = phi (min, max in degrees) pkine(5), pkine(6) = momentum (min, max in MeV/c) pkine(7) = particle id1 (+1000*id2 for pairs) pkine(8), pkine(9) = pair opening angle (min, max in degrees) pkine(10) = orientation of pair in degrees (if>360, random) GEANT particles and ions: see GEANT manual CONS300 Example: geaini_protons.dat

Plots vertex distribution of primary tracks, incident angle theta on MDC plane 1 and 2 Print history of secondary particles Example macro: hloop_protons.C (Part1/4)

Example macro: hloop_protons.C (Part2/4)

Example macro: hloop_protons.C (Part3/4)

Example macro: hloop_protons.C (Part4/4)

Output of pKine->printHistory() Creation: see GEANT manual ZZZZ Medium: see macro listMedia.C Output of example macro: hloop_protons.C Run with compilation

Tilting angle plane1: 44.2° Tilting angle plane2: 53.0° Histograms of example macro hloop_protons.C

Create the ROOT browser to explore the geometry inside ROOT Lists media and their ids Same as in GEANT for same.dat file Works only with geo files, not with Oracle! List all media with macro listMedia.C