Skip to main content

Monte Carlo Event Generator for the ABC theory

Project description

pymcabc

License publish test PyPI Package latest release Supported versions DOI

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
  1. Define the process, for example:
pymcabc.DefineProcess('A A > B B',mA=4,mB=10,mC=1,pi=30)
  1. Calculate the total cross section of the process (in barn):
pymcabc.CrossSection().calc_xsection()
  1. 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pymcabc-1.0.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

pymcabc-1.0-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

Details for the file pymcabc-1.0.tar.gz.

File metadata

  • Download URL: pymcabc-1.0.tar.gz
  • Upload date:
  • Size: 13.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for pymcabc-1.0.tar.gz
Algorithm Hash digest
SHA256 08774458d2fb79a7194937c0c98ae9349bd11523c97a34bd2a44601669d445b7
MD5 989b94fd6b61828ac9278fb411ba4fd5
BLAKE2b-256 756b83f77d53fd9498432383fbf4160b9a945f407d48d56872aa0c27ebdecc03

See more details on using hashes here.

File details

Details for the file pymcabc-1.0-py3-none-any.whl.

File metadata

  • Download URL: pymcabc-1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for pymcabc-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 71b0fb5a32dd7e19b601da95530005692316cfb252ed6c451c60a6435143b078
MD5 e6fa926768ea75492e0b0cc056e9f52b
BLAKE2b-256 5334c8f3153e52aa8c2cf1cba1e970889908b07b17cba17ba2fd31f4bd4a3790

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page