You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Configurations/Template/scripts/correlationMatrix.py
+12-9Lines changed: 12 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
#Script to make correlation matrix of fixed size, showing correlations between signal strengths and nuisances with highest correlations
2
-
#Argument: multidimfit*.root produced when running MultiDimFit in combine and using --saveFitResult
2
+
#Argument: multidimfit*.root produced when running MultiDimFit in combine and using --saveFitResult, or fitDiagnostics*.root produced when running FitDiagnostics
3
3
4
4
fromROOTimportTCanvas, TH2F, gStyle, gPad, TFile, TLatex, gROOT
5
5
fromitertoolsimportcombinations
@@ -36,15 +36,17 @@
36
36
filename=sys.argv[1]
37
37
f0=TFile(filename)
38
38
39
-
fit_mdf=f0.Get("fit_mdf")
40
-
iffit_mdf==None:
41
-
print'Input file must be a multidimfit*.root file containing a fit_mdf object. File can be produced by using --saveFitResult when running MultiDimFit in combine'
39
+
fit_result=f0.Get("fit_mdf")
40
+
iffit_result==None:
41
+
fit_result=f0.Get("fit_s")
42
+
iffit_result==None:
43
+
print'Input file must be a multidimfit*.root file containing a fit_mdf object (produced by using --saveFitResult when running MultiDimFit in combine) or a fitDiagnostics*.root file containing a fit_s object (produced by running FitDiagnostics in combine)'
0 commit comments