Set the default size of TArrayF
[u/mrichter/AliRoot.git] / STEER / AliGenEventHeader.cxx
index 16a7ecabf3d02617c121d8d53e9340ac2eca9045..1ff582f2143f08294d60cd9834a923adeb4fb27d 100644 (file)
@@ -65,6 +65,7 @@ void  AliGenEventHeader::PrimaryVertex(TArrayF &o) const
     //
     // Return the primary vertex for the event
     //
     //
     // Return the primary vertex for the event
     //
+    o.Set(3);
     o[0] = fVertex.At(0);
     o[1] = fVertex.At(1);
     o[2] = fVertex.At(2);    
     o[0] = fVertex.At(0);
     o[1] = fVertex.At(1);
     o[2] = fVertex.At(2);