]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG/FLOW/Tasks/AliFlowEvent.cxx
Completed changes needed because of previous commit
[u/mrichter/AliRoot.git] / PWG / FLOW / Tasks / AliFlowEvent.cxx
index f9a7b70de67cde0258399cbdd31b777f24de0dde..1a2e7ec228ae08fe50498ec7c200e16842ae2b06 100644 (file)
@@ -334,7 +334,8 @@ AliFlowEvent::AliFlowEvent( const AliAODEvent* anInput,
   //loop over tracks
   for (Int_t itrkN=0; itrkN<iNumberOfInputTracks; itrkN++)
   {
-    AliAODTrack* pParticle = anInput->GetTrack(itrkN);   //get input particle
+    AliAODTrack* pParticle = dynamic_cast<AliAODTrack*>(anInput->GetTrack(itrkN));
+    if(!pParticle) AliFatal("Not a standard AOD");   //get input particle
 
     //check if pParticle passes the cuts
     Bool_t rpOK = kTRUE;