Skip to content

Commit 7445830

Browse files
authored
[PWGEM,PWGEM-36] Pi0Flow - ensure bool config is correctly used (#10574)
1 parent 1fa431c commit 7445830

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

PWGEM/PhotonMeson/Tasks/taskPi0FlowEMC.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ struct TaskPi0FlowEMC {
949949

950950
ROOT::Math::PtEtaPhiMVector v1(g1.pt(), g1.eta(), g1.phi(), 0.);
951951
ROOT::Math::PtEtaPhiMVector v2(g2.pt(), g2.eta(), g2.phi(), 0.);
952-
if (cfgDoReverseScaling) {
952+
if (cfgDoReverseScaling.value) {
953953
// Convert to PxPyPzEVector to modify energy
954954
ROOT::Math::PxPyPzEVector v1Mod(v1);
955955
v1Mod.SetE(v1Mod.E() * 1.0505);
@@ -1057,7 +1057,7 @@ struct TaskPi0FlowEMC {
10571057
ROOT::Math::PtEtaPhiMVector v1(g1.pt(), g1.eta(), g1.phi(), 0.);
10581058
ROOT::Math::PtEtaPhiMVector v2(g2.pt(), g2.eta(), g2.phi(), 0.);
10591059

1060-
if (cfgDoReverseScaling) {
1060+
if (cfgDoReverseScaling.value) {
10611061
// Convert to PxPyPzEVector to modify energy
10621062
ROOT::Math::PxPyPzEVector v1Mod(v1);
10631063
v1Mod.SetE(v1Mod.E() * 1.0505);
@@ -1283,7 +1283,7 @@ struct TaskPi0FlowEMC {
12831283

12841284
ROOT::Math::PtEtaPhiMVector v1(g1.pt(), g1.eta(), g1.phi(), 0.);
12851285
ROOT::Math::PtEtaPhiMVector v2(g2.pt(), g2.eta(), g2.phi(), 0.);
1286-
if (cfgDoReverseScaling) {
1286+
if (cfgDoReverseScaling.value) {
12871287
// Convert to PxPyPzEVector to modify energy
12881288
ROOT::Math::PxPyPzEVector v1Mod(v1);
12891289
v1Mod.SetE(v1Mod.E() * 1.0505);

0 commit comments

Comments
 (0)