4242#include < DetectorsBase/Propagator.h>
4343#include < DetectorsVertexing/PVertexer.h>
4444#include < DetectorsVertexing/PVertexerHelpers.h>
45+ #include < DetectorsVertexing/PVertexerParams.h>
4546#include < Field/MagneticField.h>
4647#include < Framework/AnalysisDataModel.h>
4748#include < Framework/AnalysisTask.h>
@@ -474,6 +475,7 @@ struct OnTheFlyTracker {
474475
475476 if (doExtraQA) {
476477 histos.add (" h2dVerticesVsContributors" , " h2dVerticesVsContributors" , kTH2F , {axes.axisMultiplicity , axes.axisNVertices });
478+ histos.add (" h1dVerticesNotReco" , " h1dVerticesNotReco" , kTH1F , {axes.axisMultiplicity });
477479 histos.add (" hRecoVsSimMultiplicity" , " hRecoVsSimMultiplicity" , kTH2F , {axes.axisMultiplicity , axes.axisMultiplicity });
478480
479481 histos.add (" hSimTrackX" , " hSimTrackX" , kTH1F , {axes.axisX });
@@ -554,9 +556,13 @@ struct OnTheFlyTracker {
554556 irSampler.init ();
555557
556558 vertexer.setValidateWithIR (kFALSE );
559+ vertexer.setTrackSources (o2::dataformats::GlobalTrackID::ITS);
557560 vertexer.setBunchFilling (irSampler.getBunchFilling ());
561+ vertexer.setBz (mMagneticField );
558562 vertexer.init ();
559563
564+ o2::vertexing::PVertexerParams::Instance ().printKeyValues ();
565+
560566 // initialize O2 2-prong fitter
561567 fitter.setPropagateToPCA (true );
562568 fitter.setMaxR (200 .);
@@ -1361,7 +1367,7 @@ struct OnTheFlyTracker {
13611367 // data preparation
13621368 o2::vertexing::PVertex primaryVertex;
13631369 if (enablePrimaryVertexing) {
1364- LOG (debug ) << " Starting primary vertexing with " << tracksAlice3.size () << " tracks." ;
1370+ LOG (info ) << " Starting primary vertexing with " << tracksAlice3.size () << " tracks." ;
13651371 std::vector<o2::MCCompLabel> lblTracks;
13661372 std::vector<o2::vertexing::PVertex> vertices;
13671373 std::vector<o2::vertexing::GIndex> vertexTrackIDs;
@@ -1387,8 +1393,13 @@ struct OnTheFlyTracker {
13871393 lblVtx);
13881394
13891395 if (n_vertices < 1 ) {
1396+ LOG (info) << " Vertexing completed, no vtx found." ;
1397+ if (doExtraQA) {
1398+ histos.fill (HIST (" h1dVerticesNotReco" ), tracksAlice3.size ());
1399+ }
13901400 return ; // primary vertex not reconstructed
13911401 }
1402+ LOG (info) << " Vertexing completed with " << n_vertices << " vertices found." ;
13921403
13931404 // Find largest vertex
13941405 int largestVertex = 0 ;
0 commit comments