@@ -95,7 +95,7 @@ void VertexTrackMatcher::process(const o2::globaltracking::RecoContainer& recoDa
9595
9696 extractTracks (recoData, vcont); // extract all track t-brackets, excluding those tracks which contribute to vertex (already attached)
9797
98- int ivStart = 0 ;
98+ int ivStart = 0 , nAssigned = 0 , nAmbiguous = 0 ;
9999 std::vector<int > vtxList; // list of vertices which match to checked track
100100 for (const auto & tro : mTBrackets ) {
101101 vtxList.clear ();
@@ -116,13 +116,15 @@ void VertexTrackMatcher::process(const o2::globaltracking::RecoContainer& recoDa
116116 // track matches to vertex, register
117117 vtxList.push_back (vto.origID ); // flag matching vertex
118118 }
119- bool ambigous = vtxList.size () > 1 ; // did track match to multiple vertices?
120- for (auto v : vtxList) {
121- auto & ref = tmpMap[v].emplace_back (tro.origID );
122- if (ambigous) {
123- ref.setAmbiguous ();
119+ if (vtxList.size () > 1 ) { // did track match to multiple vertices?
120+ nAmbiguous++;
121+ for (auto v : vtxList) {
122+ tmpMap[v].emplace_back (tro.origID ).setAmbiguous ();
124123 }
125124 }
125+ if (!vtxList.empty ()) {
126+ nAssigned++;
127+ }
126128 }
127129
128130 // build final vector of global indices
@@ -151,6 +153,7 @@ void VertexTrackMatcher::process(const o2::globaltracking::RecoContainer& recoDa
151153 vr.setEnd (trackIndex.size ());
152154 LOG (INFO ) << " Vertxex " << iv << " Tracks " << vr;
153155 }
156+ LOG (INFO ) << " Assigned " << nAssigned << " (" << nAmbiguous << " ambigously) out of " << mTBrackets .size () << " non-contributor tracks + " << vcont.size () << " contributors" ;
154157}
155158
156159// ________________________________________________________
@@ -185,5 +188,5 @@ void VertexTrackMatcher::extractTracks(const o2::globaltracking::RecoContainer&
185188 // sort in increasing min.time
186189 std::sort (mTBrackets .begin (), mTBrackets .end (), [](const TrackTBracket& a, const TrackTBracket& b) { return a.tBracket .getMin () < b.tBracket .getMin (); });
187190
188- LOG (INFO ) << " collected " << mTBrackets .size () << " seeds" ;
191+ LOG (INFO ) << " collected " << mTBrackets .size () << " non-contributor and " << vcont. size () << " contributor seeds" ;
189192}
0 commit comments