Skip to main 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
  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.

Release files for pymcabc 1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pymcabc 1.1
File Size Uploaded
pymcabc-1.1.tar.gz 13.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pymcabc 1.1
File Interpreter ABI Platform
pymcabc-1.1-py3-none-any.whl Python 3 none any Details

Total release size: 27.9 kB

Release files / pymcabc-1.1.tar.gz

Download URL pymcabc-1.1.tar.gz
Size 13.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1eeffc32e1c2d7a9a9d352bd89cbf5039232f66fc3153916e3c0c17b0dbc615f
BLAKE2b-256 checksum
How to use checksums
70e6c49235f2a775265ae59047d9da300e93f7925388f94d7df27f7f5b5714b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / pymcabc-1.1-py3-none-any.whl

Download URL pymcabc-1.1-py3-none-any.whl
Size 14.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4421eccf3b6fc12f279a1905dd1b41d1efa577ee2b7f4f702ef4bc5b09510f70
BLAKE2b-256 checksum
How to use checksums
4f296bae35c0516be8e3bb28fad98fc7c4203bd32015d2dd0351f6e5f40ffc3f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release history Release notifications | RSS feed

This release

1.1 This release

2 release files

1.0

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page