- Some issues are known to exist.
- So although it is under the MIT license, please contact the author before use.
cw_bw is a lightweight simulation and fitting framework for investigating local baryon conservation (LBC) effects in heavy-ion collisions. It features a blast-wave event generator, with a standalone blast wave fitter on spectrum and elliptic flow.
cw_bw-main/
├── CMakeLists.txt
├── include/ # Core C++ headers
├── src/ # Core implementations
├── configs/ # YAML configuration files
├── refdata/ # Experimental data (ROOT/CSV)
├── scripts/
│ ├── BlastWaveFitter/ # Blast-wave spectrum fitting module (C++ ROOT)
│ ├── FittedData/ # Model vs data comparison (Python)
│ └── ScanPars/ # Parameter scan & plotting (Python)
└── LICENSE
Requires C++17, ROOT, and CMake.
mkdir build && cd build
cmake ..
make -j./bwgen -C 55 -n 100000 -c ../configs/default.yaml -o results.rootArguments:
-C: Centrality class (e.g., 15, 25, 35, 45, 55)-n: Number of events-c: YAML config file-o: Output ROOT file
python3 scripts/FittedData/compare_model_alice_pre.pypython3 scripts/ScanPars/analysis.pyThe scripts/BlastWaveFitter/ directory contains a standalone ROOT macro for blast-wave fits:
root -l -b -q run_batch.CThis module fits identified particle spectra using the blast-wave model:
You can adjust flow parameters like T_kin, beta_T, and n inside BlastWaveFitter.C.
- ROOT files from HEPData
- CSV files from ALICE preliminary results
Available in configs/:
default.yamlno_v2.yamldefault_badboost.yaml
This project is licensed under the MIT License. See LICENSE for details.