key4hep / k4GeneratorsConfig

0 stars 2 forks source link

WHIZARD GenCrossSection error message #7

Open dirkzerwas opened 6 months ago

dirkzerwas commented 6 months ago

WHIZARD: activating the writing of the cross section to the HepMC event record leads to the error message: WARNING::GenCrossSection::to_string: the number of cross-sections cross_sections.size()=1 does not match the number of weights0 not reproduced by Juergen Reuter in standalone mode. Need to check versions of Whizard and HEPMC to solve the problem.

apricePhy commented 6 months ago

The error "the number of cross-sections cross_sections.size()=1 does not match the number of weights" is a HepMC3 issue. Hepmc requires the MC to set an xs for each weight that it is given. We had this in sherpa and we to adjust how we fill event weights

dirkzerwas commented 6 months ago

In KEY4HEP we have: HepMC 3.02.07 WHIZARD 3.1.2 I asked Juergen to compare with his setup.

Hi sinput (attached) gave him no errors, where as running it in KEY4HEP had the error (output attached) output.txt input.txt