Skip to the content.

pymcabc

License publish test PyPI Package latest release Supported versions DOI PrePrint

Author

Aman Desai

Description

Monte Carlo Event Generator for the ABC theory

Installation

pip install pymcabc

Physics

The physics of ABC model (theory) is described in Grifiths and Aitchison.

Simple script to start using the package:

  1. Import pymcabc:
    import pymcabc
    
  2. Define the process, for example:
    pymcabc.DefineProcess('A A > B B',mA=4,mB=10,mC=1,pi=30)
    
  3. Calculate the total cross section of the process (in barn):
    pymcabc.CrossSection().calc_xsection()
    
  4. Generate and Save events using a single command. Select whether to allow final state particle decays or not. Also select whether to apply detector effects on particle.
pymcabc.SaveEvent(10000,boolDecay=True,boolDetector=True).to_root('name.root')
  1. Analyze the root file. Basic analysis is possible by calling the PlotData module
    pymcabc.PlotData.file('name.root')
    

References

  1. For physics involved in the calculation, see for example, Introduction to Elementary Particles, David Griffiths.