@@ -622,7 +622,6 @@ struct EmcalPhotonMcTask {
622622 std::vector<float > bestNegativeScore (clusters.size (), 0 );
623623
624624 std::vector<float > mMlInputBuffer ;
625- std::vector<float > mMlOutputBuffer ;
626625
627626 std::vector<PendingConvPair> pending;
628627 std::vector<float > mlBatchBuffer;
@@ -732,32 +731,6 @@ struct EmcalPhotonMcTask {
732731 emcFlagsTagging.set (g2.globalIndex ());
733732 }
734733
735- // if (mlConfig.useMlTagging.value) {
736- // o2::analysis::em::EMCConversionCandidate candidate{
737- // .mMinv = static_cast<float>(vMeson.M()), .mDeltaEta = deltaEta, .mDeltaR = std::hypot(deltaEta, deltaPhi), .mPhiv = phiV, .mRConv = rConv, .mTotE = (g2.e() + g1.e()), .mE2 = g2.e(), .mE1 = g1.e(), .mDeltaPhi = deltaPhi};
738- // mMlResponse.getInputFeatures(candidate, mMlInputBuffer);
739- // bool isTagged = mMlResponse.isSelectedMl(mMlInputBuffer, 0.f, mMlOutputBuffer);
740-
741- // const float posScore = mMlOutputBuffer[1];
742- // const float negScore = mMlOutputBuffer[0]; // = 1 - posScore for binary classification as we use
743-
744- // for (auto idx : {g1.globalIndex(), g2.globalIndex()}) {
745- // if (posScore > bestPositiveScore[idx]) {
746- // bestPositiveScore[idx] = posScore;
747- // }
748- // if (negScore > bestNegativeScore[idx]) {
749- // bestNegativeScore[idx] = negScore;
750- // }
751- // }
752-
753- // if (isTagged) {
754- // emcFlagsMlTagging.set(g1.globalIndex());
755- // emcFlagsMlTagging.set(g2.globalIndex());
756- // }
757- // registry.fill(HIST("hMlScore"), mMlOutputBuffer[1]); // positive-class score, always, tagged or not
758- // mMlOutputBuffer.clear();
759- // }
760-
761734 if (mlConfig.useMlTagging .value ) {
762735 o2::analysis::em::EMCConversionCandidate candidate{
763736 .mMinv = static_cast <float >(vMeson.M ()), .mDeltaEta = deltaEta, .mDeltaR = std::hypot (deltaEta, deltaPhi), .mPhiv = phiV, .mRConv = rConv, .mTotE = (g2.e () + g1.e ()), .mE2 = g2.e (), .mE1 = g1.e (), .mDeltaPhi = deltaPhi, .mHarmonicEt = harmonicET, .mM021 = g1.m02 (), .mM022 = g2.m02 (), .mTime1 = g1.time (), .mTime2 = g2.time (), .mNcell1 = g1.nCells (), .mNcell2 = g2.nCells ()};
0 commit comments