fixed coverity error
authorssakai <ssakai@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 17 May 2012 18:31:57 +0000 (18:31 +0000)
committerssakai <ssakai@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 17 May 2012 18:31:57 +0000 (18:31 +0000)
PWGHF/hfe/AliAnalysisTaskElecV2.cxx

index 2e0c580..97a70cb 100644 (file)
@@ -271,13 +271,12 @@ void AliAnalysisTaskElecV2::UserExec(Option_t*)
   AliEventplane* esdTPCep = fESD->GetEventplane();
   TVector2 *standardQ = 0x0;
   Double_t qx = -999., qy = -999.;
-  
   standardQ = esdTPCep->GetQVector(); 
-  if(standardQ)
-  {
-         qx = standardQ->X();
-         qy = standardQ->Y();
-  }
+  if(!standardQ)return;
+  qx = standardQ->X();
+  qy = standardQ->Y();
+  
   TVector2 qVectorfortrack;
   qVectorfortrack.Set(qx,qy);
   Float_t evPlaneTPC = TVector2::Phi_0_2pi(qVectorfortrack.Phi())/2.;