-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathiso_variations.py
65 lines (58 loc) · 1.87 KB
/
iso_variations.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
def apply_leptonIsoCutVariations(configuration, cut_lo = -1., cut_up = 0.15):
configuration.add_config_parameters(
["mm"],
{
# "muon_iso_cut": 0.15,
"muon_iso_cut_barrel_lo": cut_lo,
"muon_iso_cut_barrel_up": cut_up,
"muon_iso_cut_endcap_lo": cut_lo,
"muon_iso_cut_endcap_up": cut_up,
},
)
configuration.add_config_parameters(
["mmet"],
{
# "muon_iso_cut": 0.15,
"muon_iso_cut_barrel_lo": -1.,
"muon_iso_cut_barrel_up": 1.e9,
"muon_iso_cut_endcap_lo": -1.,
"muon_iso_cut_endcap_up": 1.e9,
},
)
# muon_iso_variations = [
# (0.15, 0.20),
# (0.20, 0.25),
# (0.25, 0.30),
# (0.30, 0.35),
# (0.35, 0.40),
# (0.40, 0.45),
# (0.45, 0.50),
# (0.50, 0.55),
# (0.55, 0.60),
# (0.60, 1.0),
# ]
# for cut_lo, cut_up in muon_iso_variations:
# cut_name = "CutMuonIso{:.2f}To{:.2f}".format(cut_lo, cut_up).replace(".", "p")
# configuration.add_shift(
# SystematicShift(
# name=cut_name,
# scopes = ["mm", "mmet"],
# shift_config={
# ("mm", "mmet"): {
# "muon_iso_cut_barrel_lo": cut_lo,
# "muon_iso_cut_barrel_up": cut_up,
# "muon_iso_cut_endcap_lo": cut_lo,
# "muon_iso_cut_endcap_up": cut_up,
# },
# },
# producers={
# "mm": [
# muons.GoodMuonIsoCut,
# ],
# "mmet": [
# muons.GoodMuonIsoCut,
# ]
# },
# )
# )
return configuration