Skip to content

Commit ae7e00c

Browse files
authored
[PWGHF] XicToXiPiPi: Add MC process function to candidate selector and restructure lite/full KF output tables (#11941)
1 parent d5d76f2 commit ae7e00c

File tree

4 files changed

+412
-240
lines changed

4 files changed

+412
-240
lines changed

PWGHF/DataModel/CandidateReconstructionTables.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1844,7 +1844,7 @@ namespace hf_cand_xic_to_xi_pi_pi
18441844
{
18451845
DECLARE_SOA_INDEX_COLUMN_FULL(Pi0, pi0, int, Tracks, "_pi0");
18461846
DECLARE_SOA_INDEX_COLUMN_FULL(Pi1, pi1, int, Tracks, "_pi1");
1847-
DECLARE_SOA_COLUMN(Sign, sign, float);
1847+
DECLARE_SOA_COLUMN(Sign, sign, int8_t);
18481848
DECLARE_SOA_COLUMN(InvMassXicPlus, invMassXicPlus, float);
18491849
DECLARE_SOA_COLUMN(InvMassXi, invMassXi, float);
18501850
DECLARE_SOA_COLUMN(InvMassLambda, invMassLambda, float);

PWGHF/TableProducer/candidateCreatorXicToXiPiPi.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ struct HfCandidateCreatorXicToXiPiPi {
300300

301301
//----------------------------calculate physical properties-----------------------
302302
// Charge of charm baryon
303-
int signXic = casc.sign() < 0 ? +1 : -1;
303+
int8_t signXic = casc.sign() < 0 ? +1 : -1;
304304

305305
// get SV properties
306306
const auto& secondaryVertex = df.getPCACandidate();
@@ -561,7 +561,7 @@ struct HfCandidateCreatorXicToXiPiPi {
561561

562562
//---------------------calculate physical parameters of XicPlus candidate----------------------
563563
// sign of charm baryon
564-
int signXic = casc.sign() < 0 ? +1 : -1;
564+
int8_t signXic = casc.sign() < 0 ? +1 : -1;
565565

566566
// transport XicPlus daughters to XicPlus decay vertex (secondary vertex)
567567
float secondaryVertex[3] = {0.};
@@ -1073,7 +1073,7 @@ struct HfCandidateCreatorXicToXiPiPiExpressions {
10731073

10741074
// Fill tables
10751075
rowMcMatchRec(flag, origin);
1076-
if (fillResidualTable) {
1076+
if (flag != 0 && fillResidualTable) {
10771077
rowResiduals(origin, momentumResiduals[0], momentumResiduals[1],
10781078
pvResiduals[0], pvResiduals[1], pvResiduals[2],
10791079
pvPulls[0], pvPulls[1], pvPulls[2],

0 commit comments

Comments
 (0)