Flag Secondaries from Weak decays and Material also for sub events
authorkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 6 Sep 2012 10:57:31 +0000 (10:57 +0000)
committerkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 6 Sep 2012 10:57:31 +0000 (10:57 +0000)
STEER/AOD/AliAODHandler.cxx

index 0434a82..90050c7 100644 (file)
@@ -307,8 +307,8 @@ void AliAODHandler::StoreMCParticles(){
          if(i<nprim)flag |= AliAODMCParticle::kPrimary;
          
          if(mcEvent->IsPhysicalPrimary(i))flag |= AliAODMCParticle::kPhysicalPrim;
-         if(mcEvent->Stack()->IsSecondaryFromWeakDecay(i))flag |= AliAODMCParticle::kSecondaryFromWeakDecay;
-         if(mcEvent->Stack()->IsSecondaryFromMaterial(i))flag |= AliAODMCParticle::kSecondaryFromMaterial;
+         if(mcEvent->IsSecondaryFromWeakDecay(i))flag |= AliAODMCParticle::kSecondaryFromWeakDecay;
+         if(mcEvent->IsSecondaryFromMaterial(i))flag |= AliAODMCParticle::kSecondaryFromMaterial;
 
          if(fMCEventH->GetNewLabel(i)!=j){
              AliError(Form("MISMATCH New label %d j: %d",fMCEventH->GetNewLabel(i),j));