@@ -1741,9 +1741,8 @@ struct OnTheFlyTracker {
17411741 std::vector<int > genCascades;
17421742 std::vector<int > genV0s;
17431743 bcData.clear ();
1744-
1745- o2::dataformats::DCA dcaInfo;
1746- // o2::dataformats::VertexBase vtx;
1744+ recoPrimaries.clear ();
1745+ ghostPrimaries.clear ();
17471746
17481747 // *+~+*+~+*+~+*+~+*+~+*+~+*+~+*+~+*+~+*+~+*+~+*+~+*+~+*+~+*
17491748 // Study collision and perform vertexing
@@ -1856,7 +1855,7 @@ struct OnTheFlyTracker {
18561855
18571856 // Compute primary vertex with primary tracks
18581857 o2::vertexing::PVertex primaryVertex;
1859- if (recoPrimaries.size () <= 2 ) {
1858+ if (enablePrimaryVertexing && recoPrimaries.size () <= 2 ) {
18601859 LOG (info) << " Not enough primary tracks (" << recoPrimaries.size () << " ) to compute vertex, skipping vertexing and collision population." ;
18611860 return ;
18621861 }
@@ -1921,6 +1920,7 @@ struct OnTheFlyTracker {
19211920 processWithLUTs (mcCollision, mcParticles, static_cast <int >(icfg));
19221921 }
19231922 }
1923+
19241924 void processConfigurationDev (aod::McCollision const & mcCollision, aod::McPartWithDaus const & mcParticles, const int icfg)
19251925 {
19261926 // const int lastTrackIndex = tableStoredTracksCov.lastIndex() + 1; // bookkeep the last added track
@@ -2032,7 +2032,7 @@ struct OnTheFlyTracker {
20322032 }
20332033
20342034 o2::vertexing::PVertex primaryVertex;
2035- if (recoPrimaries.size () <= 2 ) {
2035+ if (enablePrimaryVertexing && recoPrimaries.size () <= 2 ) {
20362036 LOG (info) << " Not enough primary tracks (" << recoPrimaries.size () << " ) to compute vertex, skipping vertexing and collision population." ;
20372037 return ;
20382038 }
0 commit comments