Cast to AliMCParticle* needed with new implementation of AliMCEvent
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 2 Sep 2009 16:18:01 +0000 (16:18 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 2 Sep 2009 16:18:01 +0000 (16:18 +0000)
CORRFW/AliCFPairAcceptanceCuts.cxx

index c521ecf..58bf433 100755 (executable)
@@ -134,8 +134,8 @@ void AliCFPairAcceptanceCuts::SelectionBitMap(TObject* obj)
 
   Int_t lab0 = part->GetDaughter(0);
   Int_t lab1 = part->GetDaughter(1);
-  AliMCParticle* negDaughter = fMCInfo->GetTrack(lab0) ;
-  AliMCParticle* posDaughter = fMCInfo->GetTrack(lab1) ;
+  AliMCParticle* negDaughter =  (AliMCParticle*) fMCInfo->GetTrack(lab0) ;
+  AliMCParticle* posDaughter =  (AliMCParticle*) fMCInfo->GetTrack(lab1) ;
 
   Int_t iCutBit = 0;