From 657422708dc0e93452c0499f6fe8f1ed2dbc7d2a Mon Sep 17 00:00:00 2001 From: Salvatore Rappoccio Date: Thu, 30 Jan 2014 11:09:58 -0600 Subject: [PATCH] A few annoying theta issues I had to work out with respect to naming schema --- .../test/histfiles/normalized_mujets.root | Bin 21209 -> 18209 bytes IHeartNY/test/makeBarePlots.py | 11 ++++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/IHeartNY/test/histfiles/normalized_mujets.root b/IHeartNY/test/histfiles/normalized_mujets.root index c2a945f537cb1c29f16a228047c1badf6f4f4dff..4dbb11f26a225b40cdd4b957546963c88dd5b1b3 100644 GIT binary patch delta 1666 zcma)7ZAg<*6u$2quIc=!Ic;NezG};*q76+kO;@3AYE7GIiV0=EMBPF#NJ8j?qO9~p zN-Q#=Fer3g6hjiz@~8T%FO2o^ClE65Pd~f&yvxl=*5HNroO91}pXc7^y!-G-cz9DN zKHJgJNyy?7A*6+nGLeu{AA3K@9)Ud$x%6UbBqY*Fgs-pau3lT({%s(^^YY8Z>D4}~ zNlVBL!k0NKyS*bMANv>ge^?DOc4ct@~8l-VrlU=LOaDH`1j$om36;SEQYwPF7; zME(gbxrWZj9t#m{H_XY#sY`wr<2t@ZUQ1)cM=-YYI9vffvyLt+o(k$&1Z+jXYF<=) zWKk6&R{0qOUa#m_sEyc0+7NC#^ z>giDODQ?b?wr5Jf$a+^6<}$L*Apo*9&9iGrq6^uQI%J&I%C101+bmuog?XclU(22n z=B5_8vwUx9jH|Qe%;^qihpV~yu+?b=YmP0#G<|_i zJR6d!$C4Xy{UgB6-3lt3icd+< z6hNWPu+n-*0hdnqs&w=|IxDDdrgqKf_I@AMiP>rHXvXz0ezwEDw_=EI$do zg?0C5ateOqGcV_Gu)kQJeThuGJb++9A1Y}IAS25JgO0#ONP_?i4pfhtq&WaXb?SeO zff%(DK2<2AHkckJa`99yBaNUE`u_me%fznSJLEUeaJ7yA delta 3574 zcmdUye@s(X6vyvFpcdNNLHV&-`h!AOm0GPZ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..eb427480 100644 --- a/IHeartNY/test/makeBarePlots.py +++ b/IHeartNY/test/makeBarePlots.py @@ -91,7 +91,7 @@ e_TT_Mtt_0_700 = 1.0 - e_TT_Mtt_700_1000 - e_TT_Mtt_1000_Inf # -names = [ 'Data', 'TTbar', 'WJets', 'SingleTop', 'QCD' ] +names = [ 'DATA', 'TTbar', 'WJets', 'SingleTop', 'QCD' ] plots = [ 'jec__down' , 'jec__up' , 'jer__down' , 'jer__up' , 'pdf__down' , 'pdf__up' , 'nom' ] canvs = [] histsData = [] @@ -531,11 +531,12 @@ for ihist in xrange(len(histsAll)) : hist = histsAll[ihist] if hist is not None : - if plots[m] != 'nom' : - hist.SetName(options.hist + '__' + names[ihist] + '__' + plots [m] ) - else : + if plots[m] == 'nom' : hist.SetName(options.hist + '__' + names[ihist] ) - hist.Write() + hist.Write() + elif ihist != 0 : + hist.SetName(options.hist + '__' + names[ihist] + '__' + plots [m] ) + hist.Write() fout.Close()