-
Notifications
You must be signed in to change notification settings - Fork 1
/
HgParameters.py
82 lines (74 loc) · 3.28 KB
/
HgParameters.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# functions to centrally store Hgamma parameters
# John Hakala - May 16, 2016
from ROOT import *
def getSamplesDirs():
response = {}
response["signalsSmall3sDir"] = "/Users/johakala/HgammaMacros/organize_smallifications/signals"
response["bkgSmall3sDir"] = "/Users/johakala/HgammaMacros/organize_smallifications/backgrounds"
response["dataSmall3Dir"] = "/Users/johakala/HgammaMacros/organize_smallifications/data"
response["dataSmall3File"] = "/Users/johakala/HgammaMacros/organize_smallifications/smallification_data2016SinglePhoton.root"
response["bkgDDdir"] = "/Users/johakala/HgammaMacros/organize_DDs/backgrounds"
response["sigDDdir"] = "/Users/johakala/HgammaMacros/organize_DDs/signals"
response["dataDDdir"] = "/Users/johakala/HgammaMacros/organize_DDs/data/"
response["dataDDFile"] = "/Users/johakala/HgammaMacros/organize_DDs/data/ddTree_data2016SinglePhoton.root"
return response
def getNormalizations():
normalizations = {}
normalizations["650"] = 1.0
normalizations["750"] = 1.0
normalizations["850"] = 1.0
normalizations["1000"] = 0.8
normalizations["1150"] = 0.8
normalizations["1300"] = 0.4
normalizations["1450"] = 0.4
normalizations["1600"] = 0.4
normalizations["1750"] = 0.4
normalizations["1900"] = 0.2
normalizations["2050"] = 0.2
normalizations["2450"] = 0.2
normalizations["2850"] = 0.2
normalizations["3250"] = 0.2
return normalizations
def getMassWindows():
# TODO: this needs updating for the new signals
massWindows = {}
massWindows[650] = [600, 700]
massWindows[750] = [700, 800]
massWindows[850] = [800, 900]
massWindows[1000] = [900, 1100]
massWindows[1150] = [1050, 1250]
massWindows[1300] = [1175, 1425]
massWindows[1450] = [1300, 1600]
massWindows[1600] = [1400, 1800]
massWindows[1750] = [1550, 1950]
massWindows[1900] = [1700, 2100]
massWindows[2050] = [1850, 2250]
massWindows[2450] = [2200, 2700]
massWindows[2850] = [2600, 3100]
massWindows[3250] = [3000, 3500]
return massWindows
def getSigNevents():
sigNevents = {}
for mass in getNormalizations().keys():
flattuple = TFile("%s/smallified_sig_m%s.root"%(getSamplesDirs()["signalsSmall3sDir"], mass))
hCounter = flattuple.Get("ntuplizer/hCounter")
sigNevents[mass] = hCounter.GetBinContent(1)
return sigNevents
def getVariableDict():
varDict = {}
varDict["higgsJet_puppi_abseta"] = "#||{#eta_{J}}"
varDict["higgsJet_puppi_eta"] = "#eta_{J}"
varDict["higgsJet_puppi_phi"] = "#phi_{J}"
varDict["higgsJet_puppi_pt"] = "p_{T}^{J}"
varDict["leadingPhEta"] = "#eta_{#gamma}"
varDict["higgsJet_HbbTag"] = "Hb#bar{b} tagger discriminant"
varDict["phJetDeltaR_higgs"] = "#DeltaR(#gamma, jet)"
varDict["leadingPhPt"] = "p_{T}^{#gamma} (GeV)"
varDict["higgsJett2t1"] = "#tau_{21}"
varDict["leadingPhAbsEta"] = "#||{#eta_{#gamma}}"
varDict["phPtOverMgammaj"] = "p_{T}^{#gamma}/m_{#gammaJ} "
varDict["leadingPhPhi"] = "#phi_{#gamma}"
varDict["cosThetaStar"] = "#||{cos(#theta*)}"
varDict["phJetInvMass_puppi_softdrop_higgs"] = "m_{#gammaJ} (GeV)"
varDict["higgsPuppi_softdropJetCorrMass"] = "m_{J}^{PUPPI+SD} (GeV)"
return varDict