Skip to content

Commit 211fdb6

Browse files
authored
Fix treeCreatorOmegac0ToOmegaPi.cxx
1 parent 3cc1a20 commit 211fdb6

File tree

1 file changed

+1
-38
lines changed

1 file changed

+1
-38
lines changed

PWGHF/TableProducer/treeCreatorOmegac0ToOmegaPi.cxx

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ DECLARE_SOA_TABLE(HfKfOmegacFulls, "AOD", "HFKFOMEGACFULL",
200200
full::V0Ndf, full::CascNdf, full::OmegacNdf,
201201
full::MassV0Ndf, full::MassCascNdf,
202202
full::V0Chi2OverNdf, full::CascChi2OverNdf, full::OmegacChi2OverNdf,
203-
full::MassV0Chi2OverNdf, full::MassCascChi2OverNdf, full::CascRejectInvmass, full::OutputMlOmegac,
203+
full::MassV0Chi2OverNdf, full::MassCascChi2OverNdf, full::CascRejectInvmass,
204204
full::FlagMcMatchRec, full::OriginRec, full::CollisionMatched, hf_track_index::HFflag);
205205

206206
DECLARE_SOA_TABLE(HfKfOmegacLites, "AOD", "HFKFOMEGACLITE",
@@ -216,9 +216,6 @@ DECLARE_SOA_TABLE(HfKfOmegacLites, "AOD", "HFKFOMEGACLITE",
216216
full::V0Chi2OverNdf, full::CascChi2OverNdf, full::OmegacChi2OverNdf,
217217
full::CascRejectInvmass,
218218
full::FlagMcMatchRec, full::OriginRec, full::CollisionMatched, hf_track_index::HFflag);
219-
220-
DECLARE_SOA_TABLE(HfKfOmegacMl, "AOD", "HFKFOMEGACML",
221-
full::InvMassCharmBaryon, full::KfptOmegac, full::KfptPiFromOmegac, full::OutputMlOmegac, full::FlagMcMatchRec, full::OriginRec, full::CollisionMatched, hf_track_index::HFflag);
222219
} // namespace o2::aod
223220

224221
/// Writes the full information in an output TTree
@@ -227,7 +224,6 @@ struct HfTreeCreatorOmegac0ToOmegaPi {
227224
Produces<o2::aod::HfOmegac0ToOmegaPiLites> rowCandidateLite;
228225
Produces<o2::aod::HfKfOmegacFulls> rowKfCandidateFull;
229226
Produces<o2::aod::HfKfOmegacLites> rowKfCandidateLite;
230-
Produces<o2::aod::HfKfOmegacMl> rowKfCandidateMl;
231227
Produces<o2::aod::HfToOmegaPiEvs> rowEv;
232228

233229
Configurable<float> zPvCut{"zPvCut", 10., "Cut on absolute value of primary vertex z coordinate"};
@@ -387,7 +383,6 @@ struct HfTreeCreatorOmegac0ToOmegaPi {
387383
candidate.massV0Chi2OverNdf(),
388384
candidate.massCascChi2OverNdf(),
389385
candidate.cascRejectInvmass(),
390-
candidate.mlValueOmegac(),
391386
flagMc,
392387
originMc,
393388
collisionMatched,
@@ -438,22 +433,6 @@ struct HfTreeCreatorOmegac0ToOmegaPi {
438433
}
439434
} // fillKfCandidateLite end
440435

441-
template <typename T>
442-
void fillKfCandidateMl(const T& candidate, int8_t flagMc, int8_t originMc, bool collisionMatched)
443-
{
444-
if (candidate.resultSelections() && candidate.statusPidCharmBaryon() && candidate.statusInvMassLambda() && candidate.statusInvMassCascade() && candidate.statusInvMassCharmBaryon()) {
445-
446-
rowKfCandidateMl(
447-
candidate.invMassCharmBaryon(),
448-
candidate.kfptOmegac(),
449-
candidate.kfptPiFromOmegac(),
450-
candidate.mlValueOmegac(),
451-
flagMc,
452-
originMc,
453-
collisionMatched,
454-
candidate.hfflag());
455-
}
456-
} // fillCandidateMl end
457436

458437
void processDataLite(Colls const& collisions, Tracks const&,
459438
soa::Filtered<soa::Join<aod::HfCandToOmegaPi, aod::HfSelToOmegaPi>> const& candidates)
@@ -504,22 +483,6 @@ struct HfTreeCreatorOmegac0ToOmegaPi {
504483
}
505484
PROCESS_SWITCH(HfTreeCreatorOmegac0ToOmegaPi, processKfDataLite, "Process KF data Lite", false);
506485

507-
void processKfCandidateMl(Colls const& collisions, Tracks const&, CandKfSel const& candidates)
508-
{
509-
// Filling event properties
510-
rowEv.reserve(collisions.size());
511-
for (const auto& collision : collisions) {
512-
fillEvent(collision, zPvCut);
513-
}
514-
515-
// Filling candidate properties
516-
rowKfCandidateFull.reserve(candidates.size());
517-
for (const auto& candidate : candidates) {
518-
fillKfCandidateMl(candidate, -7, RecoDecay::OriginType::None, false);
519-
}
520-
}
521-
PROCESS_SWITCH(HfTreeCreatorOmegac0ToOmegaPi, processKfCandidateMl, "Process KF data ML", true);
522-
523486
void processMcLite(Colls const& collisions, Tracks const&,
524487
soa::Filtered<soa::Join<aod::HfCandToOmegaPi, aod::HfSelToOmegaPi, aod::HfToOmegaPiMCRec>> const& candidates)
525488
{

0 commit comments

Comments
 (0)