fITSTree ->Branch("fVtxChi2", &fVtxChi2, "fVtxChi2/D");
fITSTree ->Branch("fVtxNDF", &fVtxNDF, "fVtxNDF/D");
- fITSTree ->Branch("fKfVtxPos", &fKfVtxPos[0], "fKfVtxPos[3]/D");
fITSTree ->Branch("fSpdVtxPos", &fSpdVtxPos[0], "fSpdVtxPos[3]/D");
fITSTree ->Branch("fZDCAenergy", &fZDCAenergy, "fZDCAenergy/D");
fTPCTree ->Branch("fVtxErr", &fVtxErr[0], "fVtxErr[3]/D");
fTPCTree ->Branch("fVtxChi2", &fVtxChi2, "fVtxChi2/D");
fTPCTree ->Branch("fVtxNDF", &fVtxNDF, "fVtxNDF/D");
-
- fTPCTree ->Branch("fKfVtxPos", &fKfVtxPos[0], "fKfVtxPos[3]/D");
fTPCTree ->Branch("fSpdVtxPos", &fSpdVtxPos[0], "fSpdVtxPos[3]/D");
fTPCTree ->Branch("fZDCAenergy", &fZDCAenergy, "fZDCAenergy/D");
//SPD primary vertex
AliAODVertex *fSPDVertex = aod->GetPrimaryVertexSPD();
- if(fSPDVertex){
+ if(fSPDVertex->GetNContributors()>0){
fSpdVtxPos[0] = fSPDVertex->GetX();
fSpdVtxPos[1] = fSPDVertex->GetY();
fSpdVtxPos[2] = fSPDVertex->GetZ();