Skip to content

Commit 781919c

Browse files
committed
Track-nucleus combinations correction
1 parent 4bca7e2 commit 781919c

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

PWGCF/FemtoUniverse/Tasks/femtoUniversePairTaskTrackNucleus.cxx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,9 @@ struct FemtoUniversePairTaskTrackNucleus {
269269
// confNsigmaCombined -> TPC and TOF Sigma (combined) for momentum > confTOFpMin
270270

271271
if (mom < twoobjectsconfigs.confTOFpMin) {
272-
return abs(nsigmaTPC) < twoobjectsconfigs.confNsigmaTPC;
272+
return std::abs(nsigmaTPC) < twoobjectsconfigs.confNsigmaTPC;
273273
} else {
274-
return hypot(nsigmaTOF, nsigmaTPC) < twoobjectsconfigs.confNsigmaCombined;
274+
return std::hypot(nsigmaTOF, nsigmaTPC) < twoobjectsconfigs.confNsigmaCombined;
275275
}
276276
}
277277

@@ -280,13 +280,13 @@ struct FemtoUniversePairTaskTrackNucleus {
280280
{
281281
if (twoobjectsconfigs.isKaonNsigma == true) {
282282
if (mom < 0.4) {
283-
return abs(nsigmaTPCK) < 2;
283+
return std::abs(nsigmaTPCK) < 2;
284284
} else if (mom > 0.4 && mom < 0.45) {
285-
return abs(nsigmaTPCK) < 1;
285+
return std::abs(nsigmaTPCK) < 1;
286286
} else if (mom > 0.45 && mom < 0.8) {
287-
return (abs(nsigmaTPCK) < 3 && abs(nsigmaTOFK) < 2);
287+
return (std::abs(nsigmaTPCK) < 3 && std::abs(nsigmaTOFK) < 2);
288288
} else if (mom > 0.8 && mom < 1.5) {
289-
return (abs(nsigmaTPCK) < 3 && abs(nsigmaTOFK) < 1.5);
289+
return (std::abs(nsigmaTPCK) < 3 && std::abs(nsigmaTOFK) < 1.5);
290290
} else {
291291
return false;
292292
}
@@ -300,9 +300,9 @@ struct FemtoUniversePairTaskTrackNucleus {
300300
{
301301
if (mom > deuteronconfigs.confPlowDe && mom < deuteronconfigs.confPhighDe) {
302302
if (mom < deuteronconfigs.confTOFpMinDe) {
303-
return (abs(nsigmaTPCDe) < deuteronconfigs.confNsigmaTPCDe);
303+
return (std::abs(nsigmaTPCDe) < deuteronconfigs.confNsigmaTPCDe);
304304
} else {
305-
return (abs(nsigmaTOFDe) < deuteronconfigs.confNsigmaTOFDe && (abs(nsigmaTPCDe) < deuteronconfigs.confNsigmaTPCDe));
305+
return (std::abs(nsigmaTOFDe) < deuteronconfigs.confNsigmaTOFDe && (std::abs(nsigmaTPCDe) < deuteronconfigs.confNsigmaTPCDe));
306306
}
307307
} else {
308308
return false;
@@ -331,7 +331,7 @@ struct FemtoUniversePairTaskTrackNucleus {
331331
bool isDeuteronNsigmaPol3Cut(float mom, float nsigmaTPCDe, float nsigmaTOFDe, float tpcSignal)
332332
{
333333
if (polcut.confIsPol3 == true) {
334-
if (tpcSignal > polcut.polCutParA * pow(mom, 3) + polcut.polCutParB * pow(mom, 2) + polcut.polCutParC * mom + polcut.polCutParD) {
334+
if (tpcSignal > polcut.polCutParA * std::pow(mom, 3) + polcut.polCutParB * std::pow(mom, 2) + polcut.polCutParC * mom + polcut.polCutParD) {
335335
return isDeuteronNsigma(mom, nsigmaTPCDe, nsigmaTOFDe);
336336
} else {
337337
return false;

0 commit comments

Comments
 (0)