Skip to content
This repository has been archived by the owner on Nov 2, 2019. It is now read-only.
/ MC-Analyzer Public archive

Analyzer for ROOT data files generated by several Geant4 simulations.

License

Notifications You must be signed in to change notification settings

l-althueser/MC-Analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Monte Carlo Analyzer

license release issues pr download master

Data analysis tool for Geant4 simulation data. The MC-Analyzer is a data processor for data generated by the MuensterTPC-MC or other similar TPC MCs. This software stands under the BSD license (see LICENSE).

Installation Prerequisites

This software is only tested and intended for use with Linux (or Windows Subsystem for Linux). Various incompatibilities can occur on other operation systems. The MC-Analyzer is an Jupyter notebook which uses the Data Analysis Framework ROOT and thus requires an installation of ROOT (ROOT 5.X and 6.X is supported) and Jupyter (Anaconda).

If the ROOT environment and a notebook server is started you can continue reading, otherwise a proper installation of ROOT in Anaconda is needed. (The old C++ based scripts are available through the version control.)

See the *.ipynb files for analysis scripts and example plots.

The output file/file format

You can simply view the generated simulation data with any version of ROOT. Just type ..

root
new TBrowser

.. and navigate to the generated events.root file. Now you can do the normal click and drag routine of ROOT.

The input data file has an specific file format which is described in the following.

Top directory

Name type description
G4VERSION TName version of geant4
MC_TAG TName name of the simulation toolkit (if this key is not found XENON1T is assumed)

TDirectory::events

Name type description
nbevents TParameter number of simulated events

TDirectory::events/events

Name type description
eventid int event number
ntpmthits int
nbpmthits int
pmthits int
etot float total G4 energy deposit in this event
nsteps int number of G4 steps
trackid int track ID
type string particle type
parentid int track ID of parent
parenttype string particle type of parent
creaproc string process that created this particle
edproc string process for this particular energy deposit
xp vector x coordinate of energy deposit (mm)
yp vector y coordinate of energy deposit (mm)
zp vector z coordinate of energy deposit (mm)
ed vector energy deposit (keV)
time vector timestamp of the current particle/trackid
type_pri string particle type of primary
e_pri vector energy of primary (keV)
xp_pri vector x coordinate of primary particle (mm)
yp_pri vector y coordinate of primary particle (mm)
zp_pri vector z coordinate of primary particle (mm)

Overview of supported Geant4 simulations

Overview_01 Overview_02 Overview_PMTholder

About

Analyzer for ROOT data files generated by several Geant4 simulations.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published