Use SetInputEvent()
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 16 Aug 2007 15:25:11 +0000 (15:25 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 16 Aug 2007 15:25:11 +0000 (15:25 +0000)
JETAN/AliAnalysisTaskJets.cxx

index 5998bb9..9b5b684 100644 (file)
@@ -104,7 +104,10 @@ void AliAnalysisTaskJets::ConnectInputData(Option_t */*option*/)
     fESD = new AliESDEvent();
     fESD->ReadFromTree(fChain);
 
-    fJetFinder->ConnectTree(fChain, fESD);
+    AliMCEventHandler*    mcTruth = (AliMCEventHandler*) 
+       ((AliAnalysisManager::GetAnalysisManager())->GetMCtruthEventHandler());
+
+    fJetFinder->GetReader()->SetInputEvent(fESD, fAOD, mcTruth);
 }
 
 void AliAnalysisTaskJets::Exec(Option_t */*option*/)
@@ -120,7 +123,6 @@ void AliAnalysisTaskJets::Exec(Option_t */*option*/)
     
     AliESD* old = fESD->GetAliESDOld();
     if (old) {
-       fChain->SetBranchStatus("*FMD*", 0);
        fESD->CopyFromOldESD();
     }