@@ -169,7 +169,7 @@ DECLARE_SOA_TABLE(HfToOmegaPiEvs, "AOD", "HFTOOMEPIEV",
169169 full::IsEventSel8, full::IsEventSelZ);
170170
171171DECLARE_SOA_TABLE (HfOmegac0ToOmegaPiLites, " AOD" , " HFTOOMEPILITE" ,
172- full::XPv, full::YPv, full::ZPv, collision::NumContrib, collision::Chi2,
172+ full::XPv, full::YPv, full::ZPv, collision::NumContrib, collision::Chi2, , cent::CentFT0M,
173173 full::XDecayVtxCharmBaryon, full::YDecayVtxCharmBaryon, full::ZDecayVtxCharmBaryon,
174174 full::XDecayVtxCascade, full::YDecayVtxCascade, full::ZDecayVtxCascade,
175175 full::XDecayVtxV0, full::YDecayVtxV0, full::ZDecayVtxV0,
@@ -211,7 +211,7 @@ DECLARE_SOA_TABLE(HfKfOmegacFulls, "AOD", "HFKFOMEGACFULL",
211211 full::MassV0Ndf, full::MassCascNdf,
212212 full::V0Chi2OverNdf, full::CascChi2OverNdf, full::OmegacChi2OverNdf,
213213 full::MassV0Chi2OverNdf, full::MassCascChi2OverNdf, full::CascRejectInvmass,
214- full::FlagMcMatchRec, full::OriginMcRec, full::CollisionMatched, hf_track_index::HFflag, collision::NumContrib);
214+ full::FlagMcMatchRec, full::OriginMcRec, full::CollisionMatched, hf_track_index::HFflag, collision::NumContrib, cent::CentFT0M );
215215
216216DECLARE_SOA_TABLE (HfKfOmegacLites, " AOD" , " HFKFOMEGACLITE" ,
217217 full::NSigmaTPCPiFromOmegac, full::NSigmaTOFPiFromOmegac, full::NSigmaTPCKaFromCasc, full::NSigmaTOFKaFromCasc,
@@ -225,7 +225,7 @@ DECLARE_SOA_TABLE(HfKfOmegacLites, "AOD", "HFKFOMEGACLITE",
225225 full::CosThetaStarPiFromOmegac, full::CtOmegac, full::EtaOmegac,
226226 full::V0Chi2OverNdf, full::CascChi2OverNdf, full::OmegacChi2OverNdf,
227227 full::CascRejectInvmass,
228- full::FlagMcMatchRec, full::OriginMcRec, full::CollisionMatched, hf_track_index::HFflag, collision::NumContrib);
228+ full::FlagMcMatchRec, full::OriginMcRec, full::CollisionMatched, hf_track_index::HFflag, collision::NumContrib, cent::CentFT0M );
229229} // namespace o2::aod
230230
231231// / Writes the full information in an output TTree
@@ -257,7 +257,7 @@ struct HfTreeCreatorOmegac0ToOmegaPi {
257257 }
258258
259259 template <typename T>
260- void fillCandidateLite (const T& candidate, int8_t flagMc, int8_t originMc, bool collisionMatched)
260+ void fillCandidateLite (const T& candidate, int8_t flagMc, int8_t originMc, bool collisionMatched, float centFt0m )
261261 {
262262 if (candidate.resultSelections () && candidate.statusPidCharmBaryon () && candidate.statusInvMassLambda () && candidate.statusInvMassCascade () && candidate.statusInvMassCharmBaryon ()) {
263263
@@ -267,6 +267,7 @@ struct HfTreeCreatorOmegac0ToOmegaPi {
267267 candidate.zPv (),
268268 candidate.template collision_as <Colls>().numContrib (),
269269 candidate.template collision_as <Colls>().chi2 (),
270+ centFt0m,
270271 candidate.xDecayVtxCharmBaryon (),
271272 candidate.yDecayVtxCharmBaryon (),
272273 candidate.zDecayVtxCharmBaryon (),
@@ -332,7 +333,7 @@ struct HfTreeCreatorOmegac0ToOmegaPi {
332333 }
333334
334335 template <typename T>
335- void fillKfCandidate (const T& candidate, int8_t flagMc, int8_t originMc, bool collisionMatched)
336+ void fillKfCandidate (const T& candidate, int8_t flagMc, int8_t originMc, bool collisionMatched, float centFt0m )
336337 {
337338 if (candidate.resultSelections () && candidate.statusPidCharmBaryon () && candidate.statusInvMassLambda () && candidate.statusInvMassCascade () && candidate.statusInvMassCharmBaryon ()) {
338339
@@ -397,12 +398,13 @@ struct HfTreeCreatorOmegac0ToOmegaPi {
397398 originMc,
398399 collisionMatched,
399400 candidate.hfflag (),
400- candidate.template collision_as <Colls>().numContrib ());
401+ candidate.template collision_as <Colls>().numContrib (),
402+ centFt0m);
401403 }
402404 }
403405
404406 template <typename T>
405- void fillKfCandidateLite (const T& candidate, int8_t flagMc, int8_t originMc, bool collisionMatched)
407+ void fillKfCandidateLite (const T& candidate, int8_t flagMc, int8_t originMc, bool collisionMatched, float centFt0m )
406408 {
407409 if (candidate.resultSelections () && candidate.statusPidCharmBaryon () && candidate.statusInvMassLambda () && candidate.statusInvMassCascade () && candidate.statusInvMassCharmBaryon ()) {
408410
@@ -441,7 +443,8 @@ struct HfTreeCreatorOmegac0ToOmegaPi {
441443 originMc,
442444 collisionMatched,
443445 candidate.hfflag (),
444- candidate.template collision_as <Colls>().numContrib ());
446+ candidate.template collision_as <Colls>().numContrib (),
447+ centFt0m);
445448 }
446449 } // fillKfCandidateLite end
447450
@@ -457,7 +460,7 @@ struct HfTreeCreatorOmegac0ToOmegaPi {
457460 // Filling candidate properties
458461 rowCandidateLite.reserve (candidates.size ());
459462 for (const auto & candidate : candidates) {
460- fillCandidateLite (candidate, -7 , RecoDecay::OriginType::None, false );
463+ fillCandidateLite (candidate, -7 , RecoDecay::OriginType::None, false , - 1 . );
461464 }
462465 }
463466 PROCESS_SWITCH (HfTreeCreatorOmegac0ToOmegaPi, processDataLite, " Process data" , false );
@@ -473,7 +476,7 @@ struct HfTreeCreatorOmegac0ToOmegaPi {
473476 // Filling candidate properties
474477 rowKfCandidateFull.reserve (candidates.size ());
475478 for (const auto & candidate : candidates) {
476- fillKfCandidate (candidate, -7 , RecoDecay::OriginType::None, false );
479+ fillKfCandidate (candidate, -7 , RecoDecay::OriginType::None, false ), - 1 . ;
477480 }
478481 }
479482 PROCESS_SWITCH (HfTreeCreatorOmegac0ToOmegaPi, processKfDataFull, " Process KF data" , false );
@@ -489,7 +492,7 @@ struct HfTreeCreatorOmegac0ToOmegaPi {
489492 // Filling candidate properties
490493 rowKfCandidateFull.reserve (candidates.size ());
491494 for (const auto & candidate : candidates) {
492- fillKfCandidateLite (candidate, -7 , RecoDecay::OriginType::None, false );
495+ fillKfCandidateLite (candidate, -7 , RecoDecay::OriginType::None, false , - 1 . );
493496 }
494497 }
495498 PROCESS_SWITCH (HfTreeCreatorOmegac0ToOmegaPi, processKfDataLite, " Process KF data Lite" , false );
@@ -506,7 +509,10 @@ struct HfTreeCreatorOmegac0ToOmegaPi {
506509 // Filling candidate properties
507510 rowCandidateLite.reserve (candidates.size ());
508511 for (const auto & candidate : candidates) {
509- fillCandidateLite (candidate, candidate.flagMcMatchRec (), candidate.originMcRec (), candidate.collisionMatched ());
512+ if (keepOnlyMcSignal && candidate.originMcRec () == 0 ) {
513+ continue ;
514+ }
515+ fillCandidateLite (candidate, candidate.flagMcMatchRec (), candidate.originMcRec (), candidate.collisionMatched (), -1 .);
510516 }
511517 }
512518 PROCESS_SWITCH (HfTreeCreatorOmegac0ToOmegaPi, processMcLite, " Process MC" , false );
@@ -522,13 +528,10 @@ struct HfTreeCreatorOmegac0ToOmegaPi {
522528 // Filling candidate properties
523529 rowCandidateLite.reserve (candidates.size ());
524530 for (const auto & candidate : candidates) {
525- if (keepOnlyMcSignal) {
526- if (candidate.originMcRec () != 0 ) {
527- fillKfCandidate (candidate, candidate.flagMcMatchRec (), candidate.originMcRec (), candidate.collisionMatched ());
528- }
529- } else {
530- fillKfCandidate (candidate, candidate.flagMcMatchRec (), candidate.originMcRec (), candidate.collisionMatched ());
531+ if (keepOnlyMcSignal && candidate.originMcRec () == 0 ) {
532+ continue ;
531533 }
534+ fillKfCandidate (candidate, candidate.flagMcMatchRec (), candidate.originMcRec (), candidate.collisionMatched (), -1 .);
532535 }
533536 }
534537 PROCESS_SWITCH (HfTreeCreatorOmegac0ToOmegaPi, processKFMcFull, " Process KF MC" , false );
@@ -544,13 +547,10 @@ struct HfTreeCreatorOmegac0ToOmegaPi {
544547 // Filling candidate properties
545548 rowCandidateLite.reserve (candidates.size ());
546549 for (const auto & candidate : candidates) {
547- if (keepOnlyMcSignal) {
548- if (candidate.originMcRec () != 0 ) {
549- fillKfCandidateLite (candidate, candidate.flagMcMatchRec (), candidate.originMcRec (), candidate.collisionMatched ());
550- }
551- } else {
552- fillKfCandidateLite (candidate, candidate.flagMcMatchRec (), candidate.originMcRec (), candidate.collisionMatched ());
550+ if (keepOnlyMcSignal && candidate.originMcRec () == 0 ) {
551+ continue ;
553552 }
553+ fillKfCandidateLite (candidate, candidate.flagMcMatchRec (), candidate.originMcRec (), candidate.collisionMatched (), -1 .);
554554 }
555555 }
556556 PROCESS_SWITCH (HfTreeCreatorOmegac0ToOmegaPi, processKFMcLite, " Process KF MC Lite" , false );
0 commit comments