]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
possiblity to read ESD friends (Jacek)
authorjotwinow <jotwinow@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 6 Jul 2009 17:06:52 +0000 (17:06 +0000)
committerjotwinow <jotwinow@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 6 Jul 2009 17:06:52 +0000 (17:06 +0000)
PWG1/AliPerformanceTPC.cxx

index b7db9c347c23102ec00d38f45d6b91b767aae090..9fb066f59f4fcfc20cbb5d7649485ec861942096 100644 (file)
@@ -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++) 
   {