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;
}
//______________________________
-void AliCFPairAcceptanceCuts::SetEvtInfo(TObject* mcInfo) {
+void AliCFPairAcceptanceCuts::SetMCEventInfo(const TObject* mcInfo) {
//
// Sets pointer to MC event information (AliMCEvent)
//
if (!mcInfo) {
- Error("SetEvtInfo","Pointer to MC Event is null !");
+ Error("SetMCEventInfo","Pointer to MC Event is null !");
return;
}
TString className(mcInfo->ClassName());
if (className.CompareTo("AliMCEvent") != 0) {
- Error("SetEvtInfo","argument must point to an AliMCEvent !");
+ Error("SetMCEventInfo","argument must point to an AliMCEvent !");
return ;
}