Add dataset card
Browse files
README.md
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
pretty_name: BEvAn — COSI activation simulations (β⁺ / 511 keV)
|
| 4 |
+
tags:
|
| 5 |
+
- astrophysics
|
| 6 |
+
- gamma-ray
|
| 7 |
+
- compton-telescope
|
| 8 |
+
- megalib
|
| 9 |
+
- cosi
|
| 10 |
+
- simulation
|
| 11 |
+
size_categories:
|
| 12 |
+
- 1K<n<10K
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# BEvAn — COSI activation simulations
|
| 16 |
+
|
| 17 |
+
MEGAlib simulation files backing [`cosi-betadecay/BEvAn`](https://github.com/cosi-betadecay/BEvAn),
|
| 18 |
+
a physics-based likelihood classifier that tags each simulated COSI event as a
|
| 19 |
+
β⁺ / positron-annihilation signal (back-to-back 511 keV photons) or background
|
| 20 |
+
from its Compton kinematics.
|
| 21 |
+
|
| 22 |
+
All events come from a **cosima activation simulation** (`BeamType Activation`,
|
| 23 |
+
`DecayMode ActivationBuildup`): cosmic-ray protons irradiate the instrument, the
|
| 24 |
+
activated isotopes decay, and the β⁺ emitters among them produce the 511 keV
|
| 25 |
+
annihilation signal the classifier is trained to find. The three-step cosima
|
| 26 |
+
source files that generate this are in the GitHub repo under
|
| 27 |
+
[`data/cosima/`](https://github.com/cosi-betadecay/BEvAn/tree/main/data/cosima)
|
| 28 |
+
and are **not** duplicated here. Produced with MEGAlib 4.00.00.
|
| 29 |
+
|
| 30 |
+
## Datasets
|
| 31 |
+
|
| 32 |
+
One folder per detector geometry. The geometries ship with MEGAlib under
|
| 33 |
+
`$MEGALIB/resource/examples/geomega/`:
|
| 34 |
+
|
| 35 |
+
| Folder | Geometry (`.geo.setup`) | Size |
|
| 36 |
+
|---|---|---|
|
| 37 |
+
| `SPILike/` | `special/SPILike` | 382 MB |
|
| 38 |
+
| `NCT/` | `special/Simple_Ge_NCT_try1_040721` | 848 MB |
|
| 39 |
+
| `Max/` | `special/Max` | 1.2 GB |
|
| 40 |
+
| `GeACT/` | `special/GeACT` | 3.8 GB |
|
| 41 |
+
| `COSIBalloon_9det/` | `cosiballoon/COSIBalloon.9Detector` | 1.0 GB |
|
| 42 |
+
| `COSIBalloon_10det/` | `cosiballoon/COSIBalloon.10Detector` | 980 MB |
|
| 43 |
+
| `COSIBalloon_12det/` | `cosiballoon/COSIBalloon.12Detector` | 1.1 GB |
|
| 44 |
+
|
| 45 |
+
## Files in each folder
|
| 46 |
+
|
| 47 |
+
For a dataset `{name}`:
|
| 48 |
+
|
| 49 |
+
| File | What it is |
|
| 50 |
+
|---|---|
|
| 51 |
+
| `{name}.sim` | **Concatenation file written by `mcosima` — it holds no events.** It is a short header plus `IN {name}.incN.id1.sim.gz` lines pointing at the chunks below. This is the path you pass to the pipeline; MEGAlib follows the pointers. |
|
| 52 |
+
| `{name}.incN.id1.sim.gz` | The actual simulated events, one chunk per parallel `mcosima` thread (N = 1…4). Required — `{name}.sim` is useless without them. |
|
| 53 |
+
| `{name}.tra` | Compton-reconstructed events (`revan` output) for `{name}.sim`. |
|
| 54 |
+
| `{name}_P1.*`, `{name}_P2.*` | Two **dedicated prior simulations** against the same geometry, each a full `.sim` (+ `.tra`) set of its own. Their ANNI-labeled events, counted per hit-multiplicity bucket, form the classifier's class priors. The training split is never used for the prior, which is why these are separate runs. Passed via `--prior-sim`. `_P1` files are self-contained `.sim` files from an earlier run; `_P2` files use the same `mcosima` concatenation layout as above. |
|
| 55 |
+
|
| 56 |
+
The `COSIBalloon_*` folders additionally carry a `crossections/` directory —
|
| 57 |
+
MEGAlib-generated cross-section tables. They are regenerated on demand by
|
| 58 |
+
MEGAlib and are included only so the folders are a byte-exact mirror.
|
| 59 |
+
|
| 60 |
+
## Download
|
| 61 |
+
|
| 62 |
+
```bash
|
| 63 |
+
hf download aryaraeesi/BEvAn-data --repo-type dataset --local-dir data/
|
| 64 |
+
```
|
| 65 |
+
|
| 66 |
+
Or a single dataset (remember to take its `.inc*` chunks along with the `.sim`):
|
| 67 |
+
|
| 68 |
+
```bash
|
| 69 |
+
hf download aryaraeesi/BEvAn-data --repo-type dataset \
|
| 70 |
+
--include "SPILike/*" --local-dir data/
|
| 71 |
+
```
|
| 72 |
+
|
| 73 |
+
## Gotcha: the geometry path is absolute
|
| 74 |
+
|
| 75 |
+
The `Geometry` line inside every `.sim` header is an **absolute path from the
|
| 76 |
+
machine that ran the simulation** (`/home/arya/Documents/megalib/...`). MEGAlib
|
| 77 |
+
will not find the geometry on your machine unless you either point that line at
|
| 78 |
+
your own `$MEGALIB` checkout or pass the geometry explicitly — which is what the
|
| 79 |
+
BEvAn entry scripts do via `--geo-file`:
|
| 80 |
+
|
| 81 |
+
```bash
|
| 82 |
+
python src/BEvAn/analysis.py \
|
| 83 |
+
--geo-file $MEGALIB/resource/examples/geomega/special/SPILike.geo.setup \
|
| 84 |
+
--sim-file data/SPILike/SPILike.sim \
|
| 85 |
+
--tra-file data/SPILike/SPILike.tra \
|
| 86 |
+
--prior-sim data/SPILike/SPILike_P1.sim data/SPILike/SPILike_P2.sim
|
| 87 |
+
```
|
| 88 |
+
|
| 89 |
+
## License
|
| 90 |
+
|
| 91 |
+
Apache-2.0, matching the BEvAn repository.
|