Skip to content

Conversation

@olantwin
Copy link
Contributor

@olantwin olantwin commented Dec 2, 2025

Extract duplicated MeanMaterialBudget implementations from MuDISGenerator and GenieGenerator into a standalone function with proper ALICE attribution.

Changes:

  • Add shipgen/MeanMaterialBudget.{h,cxx} with BSD-3-Clause licence
  • Use complete GenieGenerator implementation (10 parameters vs 8)
  • Remove duplicate implementations from MuDISGenerator and GenieGenerator
  • Update all callers to use shipgen::MeanMaterialBudget
  • Add to CMakeLists.txt build configuration

The standalone version includes:

  • Full 10-parameter interface with interaction length (mparam[8]) and maximum cross section (mparam[9]) required by FixedTargetGenerator and Pythia8Generator
  • Original ALICE attribution (Marian Ivanov, Andrea Dainese, Andrei Gheata)
  • SHiP improvements by Anupama Reghunath and Thomas Ruf
  • Improved error logging

@olantwin olantwin requested a review from a team as a code owner December 2, 2025 08:43
@olantwin
Copy link
Contributor Author

olantwin commented Dec 2, 2025

cc @siilieva

@olantwin olantwin force-pushed the refactor/extract-mean-material-budget branch from 9f905af to 44c2625 Compare December 2, 2025 10:22
Extract duplicated MeanMaterialBudget implementations from MuDISGenerator
and GenieGenerator into a standalone function with proper ALICE attribution.

Changes:
- Add shipgen/MeanMaterialBudget.{h,cxx} with BSD-3-Clause licence
- Use complete GenieGenerator implementation (10 parameters vs 8)
- Remove duplicate implementations from MuDISGenerator and GenieGenerator
- Update all callers to use shipgen::MeanMaterialBudget
- Add to CMakeLists.txt build configuration

The standalone version includes:
- Full 10-parameter interface with interaction length (mparam[8]) and
  maximum cross section (mparam[9]) required by FixedTargetGenerator
  and Pythia8Generator
- Original ALICE attribution (Marian Ivanov, Andrea Dainese, Andrei Gheata)
- SHiP improvements by Anupama Reghunath and Thomas Ruf
- Improved error logging
@olantwin olantwin force-pushed the refactor/extract-mean-material-budget branch from 44c2625 to ea42431 Compare December 2, 2025 13:26
@olantwin olantwin merged commit d025bc0 into master Dec 2, 2025
1 of 2 checks passed
@olantwin olantwin deleted the refactor/extract-mean-material-budget branch December 2, 2025 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants