From 0cc43e44649d9b1de4333428ccdb13d65ddf33ce Mon Sep 17 00:00:00 2001
From: Christian Weber <cweber@bnl.gov>
Date: Fri, 9 Dec 2022 11:23:02 -0500
Subject: [PATCH] Add missing flavor combination to 'flavorsToPlotDefaults' and
 make signal only plots non-stacked

---
 plotPostProcess.py | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/plotPostProcess.py b/plotPostProcess.py
index 3007b90..031ab0f 100644
--- a/plotPostProcess.py
+++ b/plotPostProcess.py
@@ -1135,7 +1135,7 @@ if __name__ == '__main__':
             e.g. --DSIDsToPlot 343238 343239\
             If you do not use this argument, we will plot all of the DSIDs in the file together" ) 
 
-    flavorsToPlotDefaults = ["2e2mu", "2mu2e", "4e", "4mu", "2l2j", "2e2j", "2mu2j","All"]
+    flavorsToPlotDefaults = ["2e2mu", "2mu2e", "4e", "4mu", "2l2e", "2l2mu", "2l2j", "2e2j", "2mu2j","All"]
     parser.add_argument( "--flavorsToPlot", nargs='*', 
     default=flavorsToPlotDefaults, 
     help = "If we only want to list a subset of the kninematic variables, list them here.\
@@ -1467,7 +1467,12 @@ if __name__ == '__main__':
 
             backgroundTHStack.SetTitle("")
 
-            backgroundTHStack.Draw("Hist")
+
+            drawString_backgroundTHStack = "Hist" + " NOSTACK"
+
+            if treatSignalAsBackgroundsForPlotting: drawString_backgroundTHStack += " NOSTACK"
+
+            backgroundTHStack.Draw(drawString_backgroundTHStack)
             drawPrefix = "SAME " # after we draw out first histogram(stack) we need to add 'same' to the draw command 
             for signalStack in signalTHStacks:
                 signalStack.Draw(drawPrefix + "HIST")
-- 
GitLab