]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Small bugfixes to AliPhysicsSelection (Constantin) and to AliBackgroundSelection
authormfloris <mfloris@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 10 Jul 2010 06:15:35 +0000 (06:15 +0000)
committermfloris <mfloris@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 10 Jul 2010 06:15:35 +0000 (06:15 +0000)
ANALYSIS/AliBackgroundSelection.cxx
ANALYSIS/AliPhysicsSelection.cxx

index 1257d9764cfbe3f2ab126b70aaa565ac5eb42af4..15da23e39e550eb139e8eda7d9f3f6fef771ef5b 100644 (file)
@@ -450,6 +450,7 @@ Long64_t AliBackgroundSelection::Merge(TCollection* const list)
        }
       }
 
+      delete iterlist;
       // re-sort before checking
       hlist->Sort();
       fOutputHist->Sort();
index cd88fc35d507aa67b2473513a1cb72660389240b..a083baed725d7c32c008865d5004e1c4457edf3f 100644 (file)
@@ -333,8 +333,10 @@ Bool_t AliPhysicsSelection::IsCollisionCandidate(const AliESDEvent* aEsd)
       Bool_t mb1prime = (fastOROffline > 1 || (fastOROffline > 0 && (v0A || v0C)) || (v0A && v0C) ) && (!v0BG);
 
       // Background rejection
-      Bool_t bgID = ! fBackgroundIdentification->IsSelected(const_cast<AliESDEvent*> (aEsd));
-
+      Bool_t bgID = kFALSE;
+      if (fBackgroundIdentification)
+        bgID = ! fBackgroundIdentification->IsSelected(const_cast<AliESDEvent*> (aEsd));
+      
       Int_t ntrig = fastOROffline; // any 2 hits
       if(v0A)              ntrig += 1;
       if(v0C)              ntrig += 1; //v0C alone is enough