SFS: CMS_default.ma5

File CMS_default.ma5, 5.2 KB (added by jackaraz, 4 years ago)
Line 
1#<><><><><><><><><><><><><><><><><><><><><><><><><>
2# <>
3# CMS-Default <>
4# Author: Jack Y. Araz, Benjamin Fuks <>
5# <>
6# Please cite arXiv:2006.09387 <>
7# <>
8# Based on MadAnalysis 5 v1.8 <>
9# <>
10#<><><><><><><><><><><><><><><><><><><><><><><><><>
11
12# Set FastJet variables
13
14set main.fastsim.package = fastjet
15set main.fastsim.algorithm = antikt
16set main.fastsim.radius = 0.5
17set main.fastsim.bjet_id.matching_dr = 0.3
18set main.fastsim.bjet_id.exclusive = true
19set main.fastsim.exclusive_id = false
20set main.fastsim.ptmin = 20.0
21set main.fastsim.jetrecomode = jets
22
23# Jet Smearing
24
25## Momentum smearing
26
27# based on arXiv:1405.6569 (optimized for dijet process)
28define reco_efficiency j 0.925 [abseta <= 1.5]
29define reco_efficiency j 0.875 [abseta > 1.5 and abseta <= 2.5]
30define reco_efficiency j 0.80 [abseta > 2.5]
31
32define smearer j with PT sqrt(0.06^2 + pt^2*1.3e-3^2) [abseta <= 0.5 and pt > 0.1]
33define smearer j with PT sqrt(0.10^2 + pt^2*1.7e-3^2) [abseta > 0.5 and abseta <= 1.5 and pt > 0.1]
34define smearer j with PT sqrt(0.25^2 + pt^2*3.1e-3^2) [abseta > 1.5 and abseta <= 2.5 and pt > 0.1]
35
36## HCAL
37
38define smearer j with E sqrt(E^2*0.050^2 + E*1.50^2) [abseta <= 3.0]
39define smearer j with E sqrt(E^2*0.130^2 + E*2.70^2) [abseta > 3.0 and abseta <= 5.0]
40
41### Electron Smearing
42
43## Momentum Smearing
44
45# based on arXiv:1502.02701
46
47define smearer e with PT sqrt(0.03^2 + (pt^2)*((1.3e-3)^2)) [abseta <= 0.5 and pt > 0.1]
48define smearer e with PT sqrt(0.05^2 + pt^2*((1.7e-3)^2)) [abseta > 0.5 and abseta <= 1.5 and pt > 0.1]
49define smearer e with PT sqrt(0.15^2 + pt^2*((3.1e-3)^2)) [abseta > 1.5 and abseta <= 2.5 and pt > 0.1]
50
51## ECAL
52
53# Eta shape from arXiv:1306.2016, Energy shape from arXiv:1502.02701
54
55define smearer e with E (1+0.64*eta^2)*sqrt(E^2*0.008^2 + E*0.11^2 + 0.40^2) [abseta <= 1.5]
56define smearer e with E (2.16 + 5.6*(abseta-2)^2)*sqrt(E^2*0.008^2 + E*0.11^2 + 0.40^2) [abseta>1.5 and abseta<=2.5]
57define smearer e with E sqrt(E^2*0.107^2 + E*2.08^2) [abseta > 2.5 and abseta <= 5.0]
58
59## Reconstruction efficiency
60# with tracker (optimized for Drell Yan process)
61
62define reco_efficiency e 0.0 [pt <= 10.0 or abseta > 2.5]
63define reco_efficiency e 0.7 [pt > 10.0 and abseta <= 1.5]
64define reco_efficiency e 0.525 [pt > 10.0 and abseta > 1.5 and abseta <= 2.5]
65
66
67## Muon Smearing
68
69
70## Momentum Smearing
71
72define smearer mu with PT sqrt(0.01^2 + pt^2*1.0e-4^2) [abseta <= 0.5 and pt > 0.1]
73define smearer mu with PT sqrt(0.015^2 + pt^2*1.5e-4^2) [abseta > 0.5 and abseta <= 1.5 and pt > 0.1]
74define smearer mu with PT sqrt(0.025^2 + pt^2*3.5e-4^2) [abseta > 1.5 and abseta <= 2.5 and pt > 0.1]
75
76## Reconstruction efficiency
77
78
79## with Tracker (optimized for Drell Yan process)
80
81define reco_efficiency mu 0.0 [pt <= 10.0 or abseta > 2.4]
82define reco_efficiency mu 0.9*0.99 [abseta <= 1.5 and pt > 10.0 and pt <= 1000.]
83define reco_efficiency mu 0.9*0.99*exp(0.5 - pt*5.0e-4) [abseta <= 1.5 and pt > 1000.]
84define reco_efficiency mu 0.9*0.98 [abseta > 1.5 and abseta <= 2.4 and pt > 10.0 and pt <= 1000.]
85define reco_efficiency mu 0.9*0.98*exp(0.5 - pt*5.0e-4) [abseta > 1.5 and abseta <= 2.4 and pt > 1000.]
86
87
88
89### Photon reconstruction
90
91## ECAL
92
93# Eta shape from arXiv:1306.2016, Energy shape from arXiv:1502.02701
94
95define smearer a with E (1+0.64*eta^2)*sqrt(E^2*0.008^2 + E*0.11^2 + 0.40^2) [abseta <= 1.5]
96define smearer a with E (2.16 + 5.6*(abseta-2)^2)*sqrt(E^2*0.008^2 + E*0.11^2 + 0.40^2) [abseta>1.5 and abseta<=2.5]
97define smearer a with E sqrt(E^2*0.107^2 + E*2.08^2) [abseta > 2.5 and abseta <= 5.0]
98
99
100# Reconstruction efficiency (optimized for diphoton process)
101
102define reco_efficiency a 0.0 [pt <= 10.0 or abseta > 2.5]
103define reco_efficiency a 0.96 [abseta <= 1.5 and pt > 10.0]
104define reco_efficiency a 0.875 [abseta > 1.5 and abseta <= 2.5 and pt > 10.0]
105
106
107## B tagging
108
109define tagger j as b 0.01+0.000038*pt
110define tagger c as b 0.25*tanh(0.018*pt)/(1.0+ 0.0013*pt) [abseta < 2.5]
111define tagger c as b 0.0 [abseta >=2.5]
112define tagger b as b 0.85*tanh(0.0025*pt)*(25.0/(1+0.063*pt)) [abseta < 2.5]
113define tagger b as b 0.0 [abseta >= 2.5]
114
115## Tau
116
117# Tracker
118define smearer ta with PT sqrt(0.06^2 + pt^2*1.3e-3^2) [abseta <= 0.5 and pt > 0.1]
119define smearer ta with PT sqrt(0.10^2 + pt^2*1.7e-3^2) [abseta > 0.5 and abseta <= 1.5 and pt > 0.1]
120define smearer ta with PT sqrt(0.25^2 + pt^2*3.1e-3^2) [abseta > 1.5 and abseta <= 2.5 and pt > 0.1]
121
122## HCAL
123define smearer ta with E sqrt(E^2*0.050^2 + E*1.50^2) [abseta <= 3.0]
124define smearer ta with E sqrt(E^2*0.130^2 + E*2.70^2) [abseta > 3.0 and abseta <= 5.0]
125
126# Tagging
127define tagger j as ta 0.01
128define tagger ta as ta 0.6 [abseta < 2.5]
129define tagger ta as ta 0.0 [abseta >= 2.5]
130
131# Reconstruction efficiency (optimized for ditau process)
132define reco_efficiency ta 0.0 [pt <= 20.]
133define reco_efficiency ta 0.7 [pt > 20. and abseta<2.5]
134define reco_efficiency ta 1.0 [pt > 20. and abseta>=2.5] #safety
135
136
137