Skip to content

Commit a98a806

Browse files
committed
Feat: use consistent data type for indices
1 parent 098c3fd commit a98a806

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

PWGCF/Femto/Core/cascadeBuilder.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -386,9 +386,9 @@ class CascadeBuilder
386386
return;
387387
}
388388

389-
int32_t bachelorIndex = 0;
390-
int32_t posDaughterIndex = 0;
391-
int32_t negDaughterIndex = 0;
389+
int64_t bachelorIndex = 0;
390+
int64_t posDaughterIndex = 0;
391+
int64_t negDaughterIndex = 0;
392392
for (const auto& cascade : fullCascades) {
393393
if (!mCascadeSelection.checkCandidate(cascade)) {
394394
continue;

PWGCF/Femto/Core/kinkBuilder.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ class KinkBuilder
433433
}
434434

435435
template <typename T1, typename T2, typename T3>
436-
void fillSigma(T1& collisionProducts, T2& kinkProducts, T3 const& kink, int32_t daughterIndex)
436+
void fillSigma(T1& collisionProducts, T2& kinkProducts, T3 const& kink, int64_t daughterIndex)
437437
{
438438
float mass = kink.mSigmaMinus();
439439

@@ -490,7 +490,7 @@ class KinkBuilder
490490
}
491491

492492
template <typename T1, typename T2, typename T3>
493-
void fillSigmaPlus(T1& collisionProducts, T2& kinkProducts, T3 const& kink, int32_t daughterIndex)
493+
void fillSigmaPlus(T1& collisionProducts, T2& kinkProducts, T3 const& kink, int64_t daughterIndex)
494494
{
495495
float mass = kink.mSigmaPlus();
496496

PWGCF/Femto/Core/v0Builder.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ class V0Builder
407407
}
408408

409409
template <typename T1, typename T2, typename T3>
410-
void fillLambda(T1& collisionProducts, T2& v0products, T3 const& v0, float sign, int32_t posDaughterIndex, int32_t negDaughterIndex)
410+
void fillLambda(T1& collisionProducts, T2& v0products, T3 const& v0, float sign, int64_t posDaughterIndex, int64_t negDaughterIndex)
411411
{
412412
float mass, massAnti;
413413
if (sign > 0.f) {
@@ -443,7 +443,7 @@ class V0Builder
443443
}
444444

445445
template <typename T1, typename T2, typename T3>
446-
void fillK0short(T1& collisionProducts, T2& v0products, T3 const& v0, int32_t posDaughterIndex, int32_t negDaughterIndex)
446+
void fillK0short(T1& collisionProducts, T2& v0products, T3 const& v0, int64_t posDaughterIndex, int64_t negDaughterIndex)
447447
{
448448
if (mProduceK0shorts) {
449449
v0products.producedK0shorts(collisionProducts.producedCollision.lastIndex(),

0 commit comments

Comments
 (0)