Flag for non-existance of SPD vertex
authormbroz <Michal.Broz@cern.ch>
Wed, 5 Nov 2014 14:19:02 +0000 (15:19 +0100)
committerhristov <Peter.Hristov@cern.ch>
Thu, 6 Nov 2014 10:15:30 +0000 (11:15 +0100)
PWGUD/UPC/AliAnalysisTaskUpcPsi2s.cxx

index a5dfa80..d85a634 100644 (file)
@@ -845,6 +845,11 @@ void AliAnalysisTaskUpcPsi2s::RunAODtree()
        fSpdVtxPos[1] = fSPDVertex->GetY();
        fSpdVtxPos[2] = fSPDVertex->GetZ();
        }
+  else{
+       fSpdVtxPos[0] = -666;
+       fSpdVtxPos[1] = -666;
+       fSpdVtxPos[2] = -666;
+       }
 
   //Tracklets
   fNtracklets = aod->GetTracklets()->GetNumberOfTracklets();