45 if (
p.getParameter<
std::string>(
"EnergyLossUpdator") !=
"GsfBetheHeitlerUpdator") {
46 return std::optional<BetheHeitlerInit>();
48 return std::make_optional<BetheHeitlerInit>(
p.getParameter<
std::string>(
"BetheHeitlerParametrization"),
49 p.getParameter<
int>(
"BetheHeitlerCorrection"));
60 : betheHeitlerInit_(doInit(
p)),
61 mass_(
p.getParameter<double>(
"Mass")),
62 useMultipleScattering_(
p.getParameter<
std::
string>(
"MultipleScatteringUpdator") ==
"GsfMultipleScatteringUpdator")
71 std::unique_ptr<GsfMaterialEffectsUpdator> msUpdator;
73 msUpdator = std::make_unique<GsfMultipleScatteringUpdator>(
mass_);
78 std::unique_ptr<GsfMaterialEffectsUpdator> elUpdator;
85 auto updator = std::make_unique<GsfCombinedMaterialEffectsUpdator>(*msUpdator, *elUpdator);
94 desc.add<
double>(
"Mass");