Neutron generator updates#1878
Conversation
|
Hi @michaelmackenzie,
which require these tests: build. @Mu2e/write, @Mu2e/fnalbuild-users have access to CI actions on main. ⌛ The following tests have been triggered for fd5c2a7: build (Build queue - API unavailable) |
Core changeNew helper in the base class centralizes what double calculateBinnedSpectrumEnergyFraction(fhicl::ParameterSet pset,
std::string var_low = "elow",
std::string var_high = "ehi",
double full_var_low = 0.,
double full_var_high = 0.) const {
BinnedSpectrum spectrum(pset);
pset.erase(var_low);
pset.erase(var_high);
pset.put(var_low, full_var_low);
pset.put(var_high, full_var_high);
BinnedSpectrum fullSpectrum(pset);
...
const double fraction = (fullIntegral > 0.) ? integral / fullIntegral : 0.;
return fraction;
}
Issues / concerns1. Behavior change in DIO: dropped threshold correction (medium). The old DIO code added a near-threshold correction before computing the fraction; the new shared helper omits it: // removed in DIOGenerator_tool.cc
double pmin = _spectrum.getAbscissa(0);
double pdfmin = _spectrum.getPDF(0);
double binsize = _spectrum.getBinWidth();
fullintegral += 0.5*pdfmin*pmin/binsize;This changes the DIO 2. 3. Debug 4. |
|
☀️ The build tests passed at fd5c2a7.
N.B. These results were obtained from a build of this Pull Request at fd5c2a7 after being merged into the base branch at 20895af. For more information, please check the job page here. |
This is so we can simulate the high energy neutron tail component for calo cluster background studies