1-pass reference to aod branch to the frame, not the pointer; 2-track references...
authorgconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 22 Jul 2008 13:58:55 +0000 (13:58 +0000)
committergconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 22 Jul 2008 13:58:55 +0000 (13:58 +0000)
PWG4/AliAnalysisTaskPHOSExample.cxx
PWG4/macros/anaExampleTask.C

index e0bc1b6..f44fb1c 100644 (file)
@@ -130,7 +130,7 @@ void AliAnalysisTaskPHOSExample::UserCreateOutputObjects()
    //AODs
   fAODPhotons = new TClonesArray("AliAODPhoton", 0);
   fAODPhotons->SetName("Photons");
-  AddAODBranch("TClonesArray", fAODPhotons);
+  AddAODBranch("TClonesArray", &fAODPhotons);
 
   OpenFile(1) ; 
 
@@ -156,6 +156,8 @@ void AliAnalysisTaskPHOSExample::UserCreateOutputObjects()
   fOutputList->AddAt(fhPHOSPhotons,         5) ; 
   fOutputList->AddAt(fhPHOSInvariantMass,   6) ; 
   fOutputList->AddAt(fhPHOSDigitsEvent,     7) ; 
+
+
 }
 
 //______________________________________________________________________________
index 2366dd9..36dfa0c 100644 (file)
@@ -75,6 +75,7 @@ void anaExampleTask(Int_t mode=mLocal)
     // MC handler
     if(kMC){
       AliMCEventHandler* mcHandler = new AliMCEventHandler();
+      mcHandler->SetReadTR(kFALSE);//Do not search TrackRef file
       mgr->SetMCtruthEventHandler(mcHandler);
     }