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 1257d97..15da23e 100644 (file)
@@ -450,6 +450,7 @@ Long64_t AliBackgroundSelection::Merge(TCollection* const list)
        }
       }
 
+      delete iterlist;
       // re-sort before checking
       hlist->Sort();
       fOutputHist->Sort();
index cd88fc3..a083bae 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