Fixed misplaced }
[u/mrichter/AliRoot.git] / PWG / DevNanoAOD / AliNanoAODReplicator.cxx
index edda693..796137c 100644 (file)
@@ -455,8 +455,8 @@ void AliNanoAODReplicator::ReplicateAndFilter(const AliAODEvent& source)
     fMCHeader->Reset();
     if(!fMCParticles){
       AliFatal(Form("fMCMode = %d, but MC particles not found", fMCMode));
-      fMCParticles->Clear("C");
     }
+    fMCParticles->Clear("C");
   }
   Int_t ntracks(0);
   Int_t input(0);