@@ -92,15 +92,9 @@ DECLARE_SOA_COLUMN(DcaPi0Xi, dcaPi0Xi, float);
9292DECLARE_SOA_COLUMN (DcaPi1Xi, dcaPi1Xi, float );
9393DECLARE_SOA_COLUMN (InvMassXiPi0, invMassXiPi0, float );
9494DECLARE_SOA_COLUMN (InvMassXiPi1, invMassXiPi1, float );
95- // PID daughters
96- DECLARE_SOA_COLUMN (NSigTpcPi1, nSigTpcPi1, float ); // ! TPC Nsigma separation for prong1 with pion mass hypothesis
97- DECLARE_SOA_COLUMN (NSigTofPi1, nSigTofPi1, float ); // ! TOF Nsigma separation for prong1 with pion mass hypothesis
98- // Events
99- DECLARE_SOA_COLUMN (IsEventReject, isEventReject, int ); // ! Event rejection flag
100- DECLARE_SOA_COLUMN (RunNumber, runNumber, int ); // ! Run number
10195} // namespace full
10296
103- DECLARE_SOA_TABLE (HfCandXicLites , " AOD" , " HFCANDXICLITE " ,
97+ DECLARE_SOA_TABLE (HfCandXicToXiPiPiLites , " AOD" , " HFXICXI2PILITE " ,
10498 full::XiId,
10599 full::Pi0Id,
106100 full::Pi1Id,
@@ -137,7 +131,7 @@ DECLARE_SOA_TABLE(HfCandXicLites, "AOD", "HFCANDXICLITE",
137131 full::CpaXYLam,
138132 hf_cand_xic_to_xi_pi_pi::FlagMcMatchRec);
139133
140- DECLARE_SOA_TABLE (HfCandXicLiteKfs , " AOD" , " HFCANDXICLITEKF " ,
134+ DECLARE_SOA_TABLE (HfCandXicToXiPiPiLiteKfs , " AOD" , " HFXICXI2PILITKF " ,
141135 full::XiId,
142136 full::Pi0Id,
143137 full::Pi1Id,
@@ -179,7 +173,7 @@ DECLARE_SOA_TABLE(HfCandXicLiteKfs, "AOD", "HFCANDXICLITEKF",
179173 full::DcaPi1Xi,
180174 hf_cand_xic_to_xi_pi_pi::FlagMcMatchRec);
181175
182- DECLARE_SOA_TABLE (HfCandXicFulls , " AOD" , " HFCANDXICFULL " ,
176+ DECLARE_SOA_TABLE (HfCandXicToXiPiPiFulls , " AOD" , " HFXICXI2PIFULL " ,
183177 full::XiId,
184178 full::Pi0Id,
185179 full::Pi1Id,
@@ -236,7 +230,7 @@ DECLARE_SOA_TABLE(HfCandXicFulls, "AOD", "HFCANDXICFULL",
236230 full::InvMassXiPi1,
237231 hf_cand_xic_to_xi_pi_pi::FlagMcMatchRec);
238232
239- DECLARE_SOA_TABLE (HfCandXicFullKfs , " AOD" , " HFCANDXICFULLKF " ,
233+ DECLARE_SOA_TABLE (HfCandXicToXiPiPiFullKfs , " AOD" , " HFXICXI2PIFULKF " ,
240234 full::XiId,
241235 full::Pi0Id,
242236 full::Pi1Id,
@@ -298,14 +292,14 @@ DECLARE_SOA_TABLE(HfCandXicFullKfs, "AOD", "HFCANDXICFULLKF",
298292 full::DcaPi1Xi,
299293 hf_cand_xic_to_xi_pi_pi::FlagMcMatchRec);
300294
301- DECLARE_SOA_TABLE (HfCandXicFullEvs , " AOD" , " HFCANDXICFULLEV " ,
295+ DECLARE_SOA_TABLE (HfCandXicToXiPiPiFullEvs , " AOD" , " HFXICXI2PIFULEV " ,
302296 collision::BCId,
303297 collision::NumContrib,
304298 collision::PosX,
305299 collision::PosY,
306300 collision::PosZ);
307301
308- DECLARE_SOA_TABLE (HfCandXicFullPs , " AOD" , " HFCANDXICFULLP " ,
302+ DECLARE_SOA_TABLE (HfCandXicToXiPiPiFullPs , " AOD" , " HFXICXI2PIFULLP " ,
309303 collision::BCId,
310304 full::Pt,
311305 full::Eta,
@@ -316,12 +310,12 @@ DECLARE_SOA_TABLE(HfCandXicFullPs, "AOD", "HFCANDXICFULLP",
316310
317311// / Writes the full information in an output TTree
318312struct HfTreeCreatorXicToXiPiPi {
319- Produces<o2::aod::HfCandXicLites > rowCandidateLite;
320- Produces<o2::aod::HfCandXicLiteKfs > rowCandidateLiteKf;
321- Produces<o2::aod::HfCandXicFulls > rowCandidateFull;
322- Produces<o2::aod::HfCandXicFullKfs > rowCandidateFullKf;
323- Produces<o2::aod::HfCandXicFullEvs > rowCandidateFullEvents;
324- Produces<o2::aod::HfCandXicFullPs > rowCandidateFullParticles;
313+ Produces<o2::aod::HfCandXicToXiPiPiLites > rowCandidateLite;
314+ Produces<o2::aod::HfCandXicToXiPiPiLiteKfs > rowCandidateLiteKf;
315+ Produces<o2::aod::HfCandXicToXiPiPiFulls > rowCandidateFull;
316+ Produces<o2::aod::HfCandXicToXiPiPiFullKfs > rowCandidateFullKf;
317+ Produces<o2::aod::HfCandXicToXiPiPiFullEvs > rowCandidateFullEvents;
318+ Produces<o2::aod::HfCandXicToXiPiPiFullPs > rowCandidateFullParticles;
325319
326320 Configurable<int > selectionFlagXic{" selectionXic" , 1 , " Selection Flag for Xic" };
327321 Configurable<bool > fillCandidateLiteTable{" fillCandidateLiteTable" , false , " Switch to fill lite table with candidate properties" };
@@ -359,14 +353,14 @@ struct HfTreeCreatorXicToXiPiPi {
359353 collision.posZ ());
360354 }
361355
362- template <bool doMc = false , bool noKf = true , typename T>
356+ template <bool doMc, bool doKf , typename T>
363357 void fillCandidateTable (const T& candidate)
364358 {
365359 int8_t flagMc = 0 ;
366360 if constexpr (doMc) {
367361 flagMc = candidate.flagMcMatchRec ();
368362 }
369- if constexpr (noKf ) {
363+ if constexpr (!doKf ) {
370364 if (fillCandidateLiteTable) {
371365 rowCandidateLite (
372366 candidate.cascadeId (),
@@ -594,7 +588,7 @@ struct HfTreeCreatorXicToXiPiPi {
594588 continue ;
595589 }
596590 }
597- fillCandidateTable (candidate);
591+ fillCandidateTable< false , false > (candidate);
598592 }
599593 }
600594 PROCESS_SWITCH (HfTreeCreatorXicToXiPiPi, processData, " Process data" , true );
@@ -622,7 +616,7 @@ struct HfTreeCreatorXicToXiPiPi {
622616 continue ;
623617 }
624618 }
625- fillCandidateTable<false , false >(candidate);
619+ fillCandidateTable<false , true >(candidate);
626620 }
627621 }
628622 PROCESS_SWITCH (HfTreeCreatorXicToXiPiPi, processDataKf, " Process data with KF Particle reconstruction" , false );
@@ -647,7 +641,7 @@ struct HfTreeCreatorXicToXiPiPi {
647641 rowCandidateFull.reserve (recSig.size ());
648642 }
649643 for (const auto & candidate : recSig) {
650- fillCandidateTable<true , true >(candidate);
644+ fillCandidateTable<true , false >(candidate);
651645 }
652646 } else if (fillOnlyBackground) {
653647 if (fillCandidateLiteTable) {
@@ -660,7 +654,7 @@ struct HfTreeCreatorXicToXiPiPi {
660654 if (candidate.pt () < ptMaxForDownSample && pseudoRndm >= downSampleBkgFactor) {
661655 continue ;
662656 }
663- fillCandidateTable<true , true >(candidate);
657+ fillCandidateTable<true , false >(candidate);
664658 }
665659 } else {
666660 if (fillCandidateLiteTable) {
@@ -669,7 +663,7 @@ struct HfTreeCreatorXicToXiPiPi {
669663 rowCandidateFull.reserve (candidates.size ());
670664 }
671665 for (const auto & candidate : candidates) {
672- fillCandidateTable<true , true >(candidate);
666+ fillCandidateTable<true , false >(candidate);
673667 }
674668 }
675669
@@ -709,7 +703,7 @@ struct HfTreeCreatorXicToXiPiPi {
709703 rowCandidateFull.reserve (recSigKf.size ());
710704 }
711705 for (const auto & candidate : recSigKf) {
712- fillCandidateTable<true , false >(candidate);
706+ fillCandidateTable<true , true >(candidate);
713707 }
714708 } else if (fillOnlyBackground) {
715709 if (fillCandidateLiteTable) {
@@ -722,7 +716,7 @@ struct HfTreeCreatorXicToXiPiPi {
722716 if (candidate.pt () < ptMaxForDownSample && pseudoRndm >= downSampleBkgFactor) {
723717 continue ;
724718 }
725- fillCandidateTable<true , false >(candidate);
719+ fillCandidateTable<true , true >(candidate);
726720 }
727721 } else {
728722 if (fillCandidateLiteTable) {
@@ -731,7 +725,7 @@ struct HfTreeCreatorXicToXiPiPi {
731725 rowCandidateFull.reserve (candidates.size ());
732726 }
733727 for (const auto & candidate : candidates) {
734- fillCandidateTable<true , false >(candidate);
728+ fillCandidateTable<true , true >(candidate);
735729 }
736730 }
737731
0 commit comments