From 8663e267e0f2d97230c05a30649dfb49a321e717 Mon Sep 17 00:00:00 2001 From: mfloris Date: Sat, 10 Jul 2010 06:15:35 +0000 Subject: [PATCH] Small bugfixes to AliPhysicsSelection (Constantin) and to AliBackgroundSelection --- ANALYSIS/AliBackgroundSelection.cxx | 1 + ANALYSIS/AliPhysicsSelection.cxx | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ANALYSIS/AliBackgroundSelection.cxx b/ANALYSIS/AliBackgroundSelection.cxx index 1257d9764cf..15da23e39e5 100644 --- a/ANALYSIS/AliBackgroundSelection.cxx +++ b/ANALYSIS/AliBackgroundSelection.cxx @@ -450,6 +450,7 @@ Long64_t AliBackgroundSelection::Merge(TCollection* const list) } } + delete iterlist; // re-sort before checking hlist->Sort(); fOutputHist->Sort(); diff --git a/ANALYSIS/AliPhysicsSelection.cxx b/ANALYSIS/AliPhysicsSelection.cxx index cd88fc35d50..a083baed725 100644 --- a/ANALYSIS/AliPhysicsSelection.cxx +++ b/ANALYSIS/AliPhysicsSelection.cxx @@ -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 (aEsd)); - + Bool_t bgID = kFALSE; + if (fBackgroundIdentification) + bgID = ! fBackgroundIdentification->IsSelected(const_cast (aEsd)); + Int_t ntrig = fastOROffline; // any 2 hits if(v0A) ntrig += 1; if(v0C) ntrig += 1; //v0C alone is enough -- 2.39.3