From fb199a6479fd090b18df4ed4ca9fb25b1e448a9e Mon Sep 17 00:00:00 2001 From: jotwinow Date: Mon, 6 Jul 2009 17:06:52 +0000 Subject: [PATCH] possiblity to read ESD friends (Jacek) --- PWG1/AliPerformanceTPC.cxx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/PWG1/AliPerformanceTPC.cxx b/PWG1/AliPerformanceTPC.cxx index b7db9c347c2..9fb066f59f4 100644 --- a/PWG1/AliPerformanceTPC.cxx +++ b/PWG1/AliPerformanceTPC.cxx @@ -208,7 +208,7 @@ void AliPerformanceTPC::ProcessConstrained(AliStack* const /*stack*/, AliESDtrac } //_____________________________________________________________________________ -void AliPerformanceTPC::Exec(AliMCEvent* const mcEvent, AliESDEvent* const esdEvent, const Bool_t bUseMC) +void AliPerformanceTPC::Exec(AliMCEvent* const mcEvent, AliESDEvent *const esdEvent, AliESDfriend *const esdFriend, const Bool_t bUseMC, const Bool_t bUseESDfriend) { // Process comparison information // @@ -252,6 +252,17 @@ void AliPerformanceTPC::Exec(AliMCEvent* const mcEvent, AliESDEvent* const esdEv } // end bUseMC + // use ESD friends + if(bUseESDfriend) { + if(!esdFriend) { + AliDebug(AliLog::kError, "esdFriend not available"); + return; + } + } + + + + // Process events for (Int_t iTrack = 0; iTrack < esdEvent->GetNumberOfTracks(); iTrack++) { -- 2.43.0