Files
beta_shape_pnpi/beta_spectrum/__init__.py
T
unzhakov 5c2b12c0e6 feat: experimental data calibration pipeline with ROOT I/O
- Fix chi2 calculation bug in calibration.py (remove incorrect
  coeffs[::-1] reversal in np.polyval)
- Fix broken beta_spectrum/cli.py (remove orphaned detector response
  add_argument calls and unused imports)
- Add ExpSpectrum.apply_calibration() and EnergyCalibrator.from_am241_spectrum()
- Add LivetimeDetermination class for pulser-based livetime
- Add SpectrumPipeline orchestration (read→subtract→calibrate→livetime→validate)
- Add ROOT I/O with PyROOT primary + uproot fallback
- Add bs_exp CLI with process, livetime, export subcommands
- Add exp_calibration notebook with pre-calibration visualization
- Add comprehensive tests (73 passing)
- Add bs_exp console script and [root] extra to pyproject.toml
- Remove obsolete detector_response module and unused notebooks
2026-05-21 16:01:25 +03:00

56 lines
1.4 KiB
Python

# beta_spectrum/__init__.py
from .constants import ALPHA, HBAR_C_MEV_FM, ME_MEV, MP_MEV
from .utils import T_to_W, W_to_T, momentum
from .components.phase_space import PhaseSpace
from .components.fermi import FermiFunction
from .components.finite_size import FiniteSizeL0, ChargeDistributionU
from .components.screening import ScreeningCorrection
from .components.exchange import ExchangeCorrection
from .components.radiative import RadiativeCorrection
from .spectrum import BetaSpectrum, SpectrumConfig, BranchConfig
from .visualize import BetaSpectrumAnalyzer
from .nuclear_data import (
DecayInfo,
BranchInfo,
get_decay_info_from_paceENSDF,
decay_info_to_config,
create_config_from_source,
load_json_input,
json_to_config,
DEFAULT_JSON_SCHEMA,
)
__all__ = [
"ALPHA",
"HBAR_C_MEV_FM",
"ME_MEV",
"MP_MEV",
"T_to_W",
"W_to_T",
"momentum",
"PhaseSpace",
"FermiFunction",
"FiniteSizeL0",
"ChargeDistributionU",
"ScreeningCorrection",
"ExchangeCorrection",
"RadiativeCorrection",
"BetaSpectrum",
"SpectrumConfig",
"BetaSpectrumAnalyzer",
"BranchConfig",
"DecayInfo",
"BranchInfo",
"get_decay_info_from_paceENSDF",
"decay_info_to_config",
"create_config_from_source",
"load_json_input",
"json_to_config",
"DEFAULT_JSON_SCHEMA",
]
__version__ = "0.3.0"