Fix the number of contributors in case a vertex constraint is used (+1)
authorkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 1 Sep 2010 15:59:52 +0000 (15:59 +0000)
committerkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 1 Sep 2010 15:59:52 +0000 (15:59 +0000)
STEER/AliAODVertex.cxx

index 33b3ad8..0b4bf91 100644 (file)
@@ -275,7 +275,9 @@ Int_t AliAODVertex::GetNContributors() const
        if (!aodT) continue;
        if (aodT->GetUsedForPrimVtxFit()) cont++;
     } 
- }
+    // the constraint adds another DOF
+    if(vtitle.Contains("VertexerTracksWithConstraint"))cont++;
+  }
   return cont;
 }