Aman Desai
Monte Carlo Event Generator for the ABC theory
pip install pymcabc
The physics of ABC model (theory) is described in Grifiths and Aitchison.
- Import pymcabc:
import pymcabc
- Define the process, for example:
pymcabc.DefineProcess('A A > B B',mA=4,mB=10,mC=1,pi=30)
- Calculate the total cross section of the process (in barn):
pymcabc.CrossSection().calc_xsection()
- 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')
- Analyze the root file. Basic analysis is possible by calling the
PlotData
module
pymcabc.PlotData.file('name.root')
- For physics involved in the calculation, see for example, Introduction to Elementary Particles, David Griffiths.