Skip to content

Commit b414d8d

Browse files
authored
[PWGHF] Add swapping info in XicToPKPi tree creator (#10497)
1 parent f6b8056 commit b414d8d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

PWGHF/TableProducer/candidateCreator3Prong.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -999,6 +999,9 @@ struct HfCandidateCreator3ProngExpressions {
999999
}
10001000
if (indexRec > -1) {
10011001
flag = sign * (1 << DecayType::XicToPKPi);
1002+
if (arrayDaughters[0].has_mcParticle()) {
1003+
swapping = int8_t(std::abs(arrayDaughters[0].mcParticle().pdgCode()) == kPiPlus);
1004+
}
10021005
}
10031006
}
10041007

PWGHF/TableProducer/treeCreatorXicToPKPi.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ DECLARE_SOA_COLUMN(Ct, ct, float);
7575
DECLARE_SOA_COLUMN(FlagMc, flagMc, int8_t);
7676
DECLARE_SOA_COLUMN(OriginMcRec, originMcRec, int8_t);
7777
DECLARE_SOA_COLUMN(OriginMcGen, originMcGen, int8_t);
78-
DECLARE_SOA_COLUMN(IsCandidateSwapped, isCandidateSwapped, int8_t);
78+
DECLARE_SOA_COLUMN(IsCandidateSwapped, isCandidateSwapped, int);
7979

8080
// Events
8181
DECLARE_SOA_COLUMN(IsEventReject, isEventReject, int);
@@ -265,7 +265,7 @@ struct HfTreeCreatorXicToPKPi {
265265
{
266266
int8_t flagMc = 0;
267267
int8_t originMc = 0;
268-
int8_t candSwapped = -1;
268+
int candSwapped = 0;
269269
if constexpr (doMc) {
270270
flagMc = candidate.flagMcMatchRec();
271271
originMc = candidate.originMcRec();

0 commit comments

Comments
 (0)