64 std::vector<float> trkChi2Map(nCand, 0);
67 for (
size_t i = 0;
i < trks->size();
i++) {
69 const auto& lostTrack = (*tracks2LT)[trk];
70 if (lostTrack.isNonnull()) {
71 const float nChi2 = trk->normalizedChi2();
72 trkChi2Map.at(lostTrack.key()) = MiniFloatConverter::reduceMantissaToNbitsRounding<roundingPrecision>(nChi2);
76 for (
size_t i = 0;
i < nCand;
i++) {
80 if (
cand->charge() == 0 || !
cand->hasTrackDetails())
83 const auto& candTrack = (*candidate2PF)[
cand]->trackRef();
85 if (candTrack.isNonnull()) {
86 const float nChi2 = candTrack->normalizedChi2();
88 trkChi2Map.at(
i) = MiniFloatConverter::reduceMantissaToNbitsRounding<roundingPrecision>(nChi2);
94 std::unique_ptr<FloatMap> valueMap = std::make_unique<FloatMap>();
105 ->setComment(
"packed candidate input collection");
107 desc.add<
bool>(
"doLostTracks",
false);
108 descriptions.
add(
"packedPFCandidateTrackChi2",
desc);