Skip to content

Commit fa7d5bd

Browse files
author
Isabel Kantak
committed
Change Configurable to AlphaMesonCutOption type for switch case
1 parent 1fcb8cb commit fa7d5bd

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

PWGEM/PhotonMeson/Core/Pi0EtaToGammaGamma.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,8 @@ struct Pi0EtaToGammaGamma {
893893

894894
float alpha_meson = std::fabs(g1.e() - g2.e()) / (g1.e() + g2.e());
895895
float alpha_cut = 999.f;
896-
switch (cfgAlphaMesonCut) {
896+
AlphaMesonCutOption alpha_meson_cut = static_cast<AlphaMesonCutOption>(cfgAlphaMesonCut.value);
897+
switch (alpha_meson_cut) {
897898
case AlphaMesonCutOption::Off:
898899
break;
899900
case AlphaMesonCutOption::SpecificValue:

PWGEM/PhotonMeson/Core/Pi0EtaToGammaGammaMC.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,8 @@ struct Pi0EtaToGammaGammaMC {
685685

686686
float alpha_meson = std::fabs(g1.e() - g2.e()) / (g1.e() + g2.e());
687687
float alpha_cut = 999.f;
688-
switch (cfgAlphaMesonCut) {
688+
AlphaMesonCutOption alpha_meson_cut = static_cast<AlphaMesonCutOption>(cfgAlphaMesonCut.value);
689+
switch (alpha_meson_cut) {
689690
case AlphaMesonCutOption::Off:
690691
break;
691692
case AlphaMesonCutOption::SpecificValue:

0 commit comments

Comments
 (0)