How hr17291109/boss-dq-emulator works
This repository estimates cosmological parameters by comparing Dark Quest halo-catalogue predictions with BOSS CMASS power-spectrum multipoles. The principal workflow runs an inner C++ search over the two galaxy–halo selection parameters: select halos, measure redshift-space multipoles, apply observational window effects, and record fit quality. An outer Python workflow aggregates those scores, fits a Gaussian-process emulator, and samples cosmological posteriors. The README documents these stages; several internal call details and some Python data-loading connections were not shown, so those links are omitted.
Main entry points: halos_mcmc.cpp Inner MCMC · fielddata.hpp Field & Power · pk_tools.hpp Window & Chi-square · cosmo_inference.py GP & Posterior MCMC
Components 25
C++ Fit Pipeline
- Inner MCMC
halos_mcmc.cpp - Fit Scores
Simulation Physics
- Halo Selection
select_halos.hpp - Field & Power
fielddata.hpp - Cosmology Functions
cosmo.hpp - Transfer Functions
transfer.hpp - Galaxy–Halo Model
hod.hpp
Python Inference
- GP & Posterior MCMC
cosmo_inference.py - Inference Runner
run_cosmo_inference.py - Chain Diagnostics
plot_ghc_mcmc.py - Diagnostics Runner
run_mcmc_diagnostics.py - Cosmological Posterior
Observation Comparison
- Window & Chi-square
pk_tools.hpp - BOSS Inputs
- Python Comparison
pk_compare.py - Python Power Tools
pk_tools.py - Comparison Runner
scpt.py
Shared Numerics
- Binned Data
binneddata.hpp - 2D Binned Data
binneddata_2D.hpp - Power Binning
binning.hpp - File Loading
fileloader.hpp - Simulation Paths
filenames.hpp - Parameter Parsing
param.hpp
Other components
- Researcher
- Run Configuration
configs_example/example_highz_ngc.yaml
Connections 25
- Researcher → Inner MCMC: runs
README.md - Run Configuration → Inner MCMC: configures
README.md - Inner MCMC → Halo Selection: selects halos
README.md - Inner MCMC → Field & Power: measures multipoles
README.md - Inner MCMC → Window & Chi-square: evaluates fit
README.md - Halo Selection → Field & Power: provides catalog
README.md - Field & Power → Cosmology Functions: uses cosmology
fielddata.hpp - Field & Power → Transfer Functions: applies transfer
fielddata.hpp - Inner MCMC → Galaxy–Halo Model: uses model
- Window & Chi-square → BOSS Inputs: loads window and covariance
README.md - BOSS Inputs → Python Comparison: supplies comparison data
README.md - Python Comparison → Python Power Tools: uses tools
pk_compare.py - Comparison Runner → Python Comparison: runs
scpt.py - Inner MCMC → Fit Scores: writes fit scores
README.md - Fit Scores → GP & Posterior MCMC: aggregates scores
README.md - Inference Runner → GP & Posterior MCMC: runs
run_cosmo_inference.py - GP & Posterior MCMC → Cosmological Posterior: samples posterior
README.md - Diagnostics Runner → Chain Diagnostics: runs
run_mcmc_diagnostics.py - Chain Diagnostics → Fit Scores: reads chains
README.md - Inner MCMC → File Loading: loads inputs
halos_mcmc.cpp - Inner MCMC → Simulation Paths: uses paths
halos_mcmc.cpp - Inner MCMC → Parameter Parsing: reads parameters
halos_mcmc.cpp - Field & Power → Binned Data: bins measurements
fielddata.hpp - Field & Power → 2D Binned Data: bins measurements
fielddata.hpp - Window & Chi-square → Power Binning: uses bin grid
pk_tools.hpp