]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliAODMCParticle.cxx
Store the status code of the MC particle in the AOD, used the upper bits of fFlag...
[u/mrichter/AliRoot.git] / STEER / AliAODMCParticle.cxx
index ee25c4de4b039ba03947e055715343a696b03ace..b9abf7cceed6a27fb4fe640e7eea8b3480ce6acb 100644 (file)
@@ -71,8 +71,6 @@ AliAODMCParticle::AliAODMCParticle(AliMCParticle* mcpart, Int_t label,Int_t flag
 {
   fDaughter[0] =  mcpart->GetFirstDaughter(); 
   fDaughter[1] =  mcpart->GetLastDaughter();
-  // Set unique id
-  TObject::SetUniqueID(mcpart->Particle()->GetUniqueID());
 }
     
     
@@ -94,7 +92,6 @@ AliAODMCParticle::AliAODMCParticle(const AliAODMCParticle& mcPart) :
   // Copy constructor
   fDaughter[0] = mcPart.fDaughter[0]; 
   fDaughter[1] = mcPart.fDaughter[1]; 
-
 }
 
 AliAODMCParticle& AliAODMCParticle::operator=(const AliAODMCParticle& mcPart)
@@ -151,5 +148,7 @@ void AliAODMCParticle::Print(const Option_t */*opt*/) const {
     Printf(">>> PDG (%d) : %s",fPdgCode,"Unknown");
   }
   Printf(">>  P(%3.3f,%3.3f,%3.3f) V((%3.3f,%3.3f,%3.3f,%3.3f)",fPx,fPy,fPz,fVx,fVy,fVz,fVt);  
-  Printf(">   Mother %d, First Daughter %d Last Daughter %d Process %d",fMother,fDaughter[0],fDaughter[1],TObject::GetUniqueID());
+  Printf(">   Mother %d, First Daughter %d Last Daughter %d , Status %d, PhysicalPrimary %d",
+        fMother,fDaughter[0],fDaughter[1],GetStatus(),
+        IsPhysicalPrimary());
 }