Skip to content

Commit

Permalink
Add information on swapped candidates and which mass hypotesis is con…
Browse files Browse the repository at this point in the history
…sidered in Ds tree creator
  • Loading branch information
fchinu committed Oct 11, 2024
1 parent 46f2490 commit 53a0304
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions PWGHF/TableProducer/treeCreatorDsToKKPi.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ DECLARE_SOA_TABLE(HfCandDsLites, "AOD", "HFCANDDSLITE",
hf_cand_3prong::FlagMcMatchRec,
hf_cand_3prong::OriginMcRec,
hf_cand_3prong::FlagMcDecayChanRec,
hf_cand_3prong::IsCandidateSwapped,
full::Sign);

DECLARE_SOA_TABLE(HfCandDsFulls, "AOD", "HFCANDDSFULL",
Expand Down Expand Up @@ -205,6 +206,7 @@ DECLARE_SOA_TABLE(HfCandDsFulls, "AOD", "HFCANDDSFULL",
hf_cand_3prong::FlagMcMatchRec,
hf_cand_3prong::OriginMcRec,
hf_cand_3prong::FlagMcDecayChanRec,
hf_cand_3prong::IsCandidateSwapped,
full::Sign);

DECLARE_SOA_TABLE(HfCandDsFullEvs, "AOD", "HFCANDDSFULLEV",
Expand Down Expand Up @@ -294,13 +296,15 @@ struct HfTreeCreatorDsToKKPi {
int8_t flagMc = 0;
int8_t originMc = 0;
int8_t channelMc = 0;
int8_t isSwapped = 1 - massHypo; // 0 if PiKK, 1 if KKPi
float yCand = 0;
float eCand = 0;
float ctCand = 0;
if constexpr (doMc) {
flagMc = candidate.flagMcMatchRec();
originMc = candidate.originMcRec();
channelMc = candidate.flagMcDecayChanRec();
isSwapped = candidate.isCandidateSwapped();
if (fillDplusMc && candidate.flagMcDecayChanRec() == (decayChannel + offsetDplusDecayChannel)) {
yCand = hfHelper.yDplus(candidate);
eCand = hfHelper.eDplus(candidate);
Expand Down Expand Up @@ -358,8 +362,8 @@ struct HfTreeCreatorDsToKKPi {
prong2.tofNSigmaKa(),
prong2.tpcTofNSigmaPi(),
prong2.tpcTofNSigmaKa(),
candidate.isSelDsToKKPi(),
candidate.isSelDsToPiKK(),
massHypo == 0 ? candidate.isSelDsToKKPi() : -1,
massHypo == 1 ? candidate.isSelDsToPiKK() : -1,
invMassDs,
candidate.pt(),
candidate.eta(),
Expand All @@ -381,6 +385,7 @@ struct HfTreeCreatorDsToKKPi {
flagMc,
originMc,
channelMc,
isSwapped,
prong0.sign() + prong1.sign() + prong2.sign());
} else {
rowCandidateFull(
Expand Down Expand Up @@ -425,8 +430,8 @@ struct HfTreeCreatorDsToKKPi {
prong2.tofNSigmaKa(),
prong2.tpcTofNSigmaPi(),
prong2.tpcTofNSigmaKa(),
candidate.isSelDsToKKPi(),
candidate.isSelDsToPiKK(),
massHypo == 0 ? candidate.isSelDsToKKPi() : -1,
massHypo == 1 ? candidate.isSelDsToPiKK() : -1,
candidate.xSecondaryVertex(),
candidate.ySecondaryVertex(),
candidate.zSecondaryVertex(),
Expand All @@ -453,6 +458,7 @@ struct HfTreeCreatorDsToKKPi {
flagMc,
originMc,
channelMc,
isSwapped,
prong0.sign() + prong1.sign() + prong2.sign());
}
}
Expand Down

0 comments on commit 53a0304

Please sign in to comment.