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 e0bc1b6ffef037ec079bafd05c934a8701f0e208..f44fb1cad0bc9f42e4eb46e3251159b1cc29698f 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 2366dd995c326e31c9c0ed28823e11e4ea3e3b49..36dfa0c6dec2cba83eaa0eb3f07ed6076d682fe2 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);
     }