@@ -958,10 +958,7 @@ struct HfTrackIndexSkimCreatorTagSelTracks {
958958 }
959959 if (config.debugPvRefit ) {
960960 LOG (info) << " ### vecPvContributorGlobId.size()=" << vecPvContributorGlobId.size () << " , vecPvContributorTrackParCov.size()=" << vecPvContributorTrackParCov.size () << " , N. original contributors=" << collision.numContrib ();
961- }
962-
963- // / Perform the PV refit only for tracks with an assigned collision
964- if (config.debugPvRefit ) {
961+ // / Perform the PV refit only for tracks with an assigned collision
965962 LOG (info) << " [BEFORE performPvRefitTrack] track.collision().globalIndex(): " << collision.globalIndex ();
966963 }
967964 performPvRefitTrack (collision, bcWithTimeStamps, vecPvContributorGlobId, vecPvContributorTrackParCov, track, pvRefitPvCoord, pvRefitPvCovMatrix, pvRefitDcaXYDcaZ);
@@ -1964,12 +1961,11 @@ struct HfTrackIndexSkimCreator {
19641961
19651962 // / PV refitting, if the tracks contributed to this at the beginning
19661963 o2::dataformats::VertexBase primVtxBaseRecalc;
1967- bool recalcPvRefit = false ;
19681964 if ((doprocess2And3ProngsWithPvRefit || doprocess2And3ProngsWithPvRefitWithPidForHfFiltersBdt) && pvRefitDoable) {
19691965 if (config.fillHistograms ) {
19701966 registry.fill (HIST (" PvRefit/verticesPerCandidate" ), 2 );
19711967 }
1972- recalcPvRefit = true ;
1968+ bool recalcPvRefit = true ;
19731969 int nCandContr = 0 ;
19741970 for (const uint64_t myGlobalID : vecCandPvContributorGlobId) { // o2-linter: disable=const-ref-in-for-loop (small type)
19751971 auto trackIterator = std::find (vecPvContributorGlobId.begin (), vecPvContributorGlobId.end (), myGlobalID); // / track global index
@@ -2007,10 +2003,6 @@ struct HfTrackIndexSkimCreator {
20072003 registry.fill (HIST (" PvRefit/hChi2vsNContrib" ), primVtxRefitted.getNContributors (), primVtxRefitted.getChi2 ());
20082004 }
20092005
2010- for (size_t i = 0 ; i < vecPvContributorGlobId.size (); i++) {
2011- vecPvRefitContributorUsed[i] = true ; // / restore the tracks for the next PV refitting (probably not necessary here)
2012- }
2013-
20142006 if (recalcPvRefit) {
20152007 // fill the histograms for refitted PV with good Chi2
20162008 const double deltaX = primVtx.getX () - primVtxRefitted.getX ();
0 commit comments