]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - JETAN/AliJetFinder.cxx
make scan of dEdx blocks consistent, there is only one block
[u/mrichter/AliRoot.git] / JETAN / AliJetFinder.cxx
index 2e4aaa3c019522870dcd21bd24884bb491caeea8..bdad6045e357270c5dfbf6fe4f551d44a080aeb7 100644 (file)
@@ -42,7 +42,8 @@ AliJetFinder::AliJetFinder():
     fHeader(0x0),
     fAODjets(0x0),
     fNAODjets(0),
-    fAODEvBkg(0)
+    fAODEvBkg(0),
+    fDebug(0)
 {
   //
   // Constructor
@@ -160,6 +161,7 @@ void AliJetFinder::ConnectAOD(AliAODEvent* aod)
 {
 // Connect to the AOD
     fAODjets = aod->GetJets();
+    fAODEvBkg = (AliAODJetEventBackground*)(aod->FindListObject(AliAODJetEventBackground::StdBranchName()));
 }
 
 ////////////////////////////////////////////////////////////////////////
@@ -167,6 +169,7 @@ void AliJetFinder::ConnectAODNonStd(AliAODEvent* aod,const char *bname)
 {
 
   fAODjets = dynamic_cast<TClonesArray*>(aod->FindListObject(bname));
-  // how is this is reset? Cleared?
+  fAODEvBkg = (AliAODJetEventBackground*)(aod->FindListObject(Form("%s_%s",AliAODJetEventBackground::StdBranchName(),bname)));
+  // how is this is reset? Cleared? -> by the UserExec!!
 }