|
1 | 1 | <img src="docs/logo.svg">
|
2 | 2 |
|
3 | 3 | [![Actions Status][actions-badge]][actions-link]
|
4 |
| -[![Documentation Status][rtd-badge]][rtd-link] |
5 |
| -[![Code style: black][black-badge]][black-link] |
6 |
| - |
7 | 4 | [![PyPI version][pypi-version]][pypi-link]
|
8 | 5 | [![Conda-Forge][conda-badge]][conda-link]
|
9 |
| -[![PyPI platforms][pypi-platforms]][pypi-link] |
10 | 6 |
|
| 7 | +[![PyPI platforms][pypi-platforms]][pypi-link] |
11 | 8 | [![GitHub Discussion][github-discussions-badge]][github-discussions-link]
|
12 | 9 | [![Gitter][gitter-badge]][gitter-link]
|
13 | 10 | [![Scikit-HEP][sk-badge]](https://scikit-hep.org/)
|
|
16 | 13 |
|
17 | 14 | [actions-badge]: https://github.com/scikit-hep/fastjet/workflows/CI/badge.svg
|
18 | 15 | [actions-link]: https://github.com/scikit-hep/fastjet/actions
|
19 |
| -[black-badge]: https://img.shields.io/badge/code%20style-black-000000.svg |
20 |
| -[black-link]: https://github.com/psf/black |
21 | 16 | [conda-badge]: https://img.shields.io/conda/vn/conda-forge/fastjet
|
22 | 17 | [conda-link]: https://github.com/conda-forge/fastjet-feedstock
|
23 | 18 | [github-discussions-badge]: https://img.shields.io/static/v1?label=Discussions&message=Ask&color=blue&logo=github
|
@@ -45,56 +40,18 @@ The package can be installed from PyPI using the following command:
|
45 | 40 | ``` bash
|
46 | 41 | python -m pip install fastjet
|
47 | 42 | ```
|
48 |
| -# Overview |
| 43 | +# Tutorial |
49 | 44 |
|
50 |
| -Some of the basic functionalities of Fastjet and how to use them are listed below. |
| 45 | +For a tutorial please look at the tutorial section of readthedocs page of this package. |
51 | 46 |
|
52 |
| -``` python |
53 |
| -import fastjet |
54 |
| -import awkward as ak |
55 |
| -import vector |
56 |
| -``` |
57 |
| -The input data can be either a awkward array or a list of Pseudojets. |
58 |
| - |
59 |
| -## Awkward Array |
60 |
| -```python |
61 |
| -input_data = ak.Array( |
62 |
| - [ |
63 |
| - [ |
64 |
| - {"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78}, |
65 |
| - {"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35}, |
66 |
| - {"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.0}, |
67 |
| - ], |
68 |
| - [ |
69 |
| - {"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78}, |
70 |
| - {"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35}, |
71 |
| - {"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.0}, |
72 |
| - ], |
73 |
| - ], |
74 |
| - with_name="Momentum4D", |
75 |
| -) |
76 |
| -``` |
77 |
| -## List of PseudoJets |
78 |
| -```Python |
79 |
| -input_data = [fastjet.PseudoJet(1,1,1,1) |
80 |
| - ,fastjet.PseudoJet(1.2,1.2,1.2,1.2) |
81 |
| - ,fastjet.PseudoJet(3,3,3,3) |
82 |
| - ,fastjet.PseudoJet(-1,-12,2,1) |
83 |
| - ,fastjet.PseudoJet(-1,-12,2.1,0.9)] |
84 |
| -``` |
85 |
| -## Clustering |
86 |
| -The classes (clustering and clustering specification) are the same for all the input types: |
87 |
| - |
88 |
| -```python |
89 |
| -jetdef = fastjet.JetDefinition(fastjet.antikt_algorithm, 0.6) |
90 |
| -cluster = fastjet.ClusterSequence(input_data, jetdef) |
91 |
| -``` |
92 |
| -## Outputs |
93 |
| -The output can be extracted using function calls (output can be an Awkward Array or a list of PseudoJets depending on the input). |
| 47 | +<br> |
| 48 | +<p align = "center"> |
| 49 | +<a href = "https://fastjet.readthedocs.io/en/latest/?"> |
| 50 | +<img src = "https://readthedocs.org/projects/fastjet/badge/?" width="200" height="50"> |
| 51 | +</a> |
| 52 | +</p> |
| 53 | +<br> |
94 | 54 |
|
95 |
| -```python |
96 |
| -inclusive_jets = cluster.inclusive_jets() |
97 |
| -``` |
98 | 55 | # Installation For Developers
|
99 | 56 | Clone this repository recursively to get the dependencies.
|
100 | 57 |
|
|
0 commit comments