From 921c078cbff5606240b51f199d4bd5140e8b9fce Mon Sep 17 00:00:00 2001 From: morsch Date: Wed, 23 Nov 2011 09:17:58 +0000 Subject: [PATCH] incomplete assignment operator corrected. --- STEER/AOD/AliAODVertex.cxx | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/STEER/AOD/AliAODVertex.cxx b/STEER/AOD/AliAODVertex.cxx index 5c36de6c7c4..29a8f37986b 100644 --- a/STEER/AOD/AliAODVertex.cxx +++ b/STEER/AOD/AliAODVertex.cxx @@ -221,23 +221,25 @@ AliAODVertex& AliAODVertex::operator=(const AliAODVertex& vtx) //momentum for (int i = 0; i < 3; i++) - fPosition[i] = vtx.fPosition[i]; + fPosition[i] = vtx.fPosition[i]; fChi2perNDF = vtx.fChi2perNDF; - fID = vtx.fID; + fID = vtx.fID; fType = vtx.fType; - + fBCID = vtx.fBCID; + //covariance matrix delete fCovMatrix; fCovMatrix = NULL; - if (vtx.fCovMatrix) fCovMatrix=new AliAODRedCov<3>(*vtx.fCovMatrix); + if (vtx.fCovMatrix) fCovMatrix = new AliAODRedCov<3>(*vtx.fCovMatrix); //other stuff - fParent = vtx.fParent; - fDaughters = vtx.fDaughters; - fNprong = vtx.fNprong; - fIprong = vtx.fIprong; - + fNContributors = vtx.fNContributors; + fParent = vtx.fParent; + fDaughters = vtx.fDaughters; + fNprong = vtx.fNprong; + fIprong = vtx.fIprong; + MakeProngs(); for (int i = 0; i < fNprong; i++) { fProngs[i] = vtx.fProngs[i]; -- 2.43.0