Fork me on GitHub

source: git/cards/delphes_card_CMS_NoFastJet.tcl@ a933829

ImprovedOutputFile Timing dual_readout llp
Last change on this file since a933829 was a17ec5a, checked in by Michele Selvaggi <michele.selvaggi@…>, 8 years ago

put back old charged hadron resolution

  • Property mode set to 100644
File size: 9.5 KB
Line 
1#######################################
2# Order of execution of various modules
3#######################################
4
5set ExecutionPath {
6 ParticlePropagator
7
8 ChargedHadronTrackingEfficiency
9 ElectronTrackingEfficiency
10 MuonTrackingEfficiency
11
12 ChargedHadronMomentumSmearing
13 ElectronMomentumSmearing
14 MuonMomentumSmearing
15
16 TrackMerger
17 Calorimeter
18 EFlowMerger
19}
20
21#################################
22# Propagate particles in cylinder
23#################################
24
25module ParticlePropagator ParticlePropagator {
26 set InputArray Delphes/stableParticles
27
28 set OutputArray stableParticles
29 set ChargedHadronOutputArray chargedHadrons
30 set ElectronOutputArray electrons
31 set MuonOutputArray muons
32
33 # radius of the magnetic field coverage, in m
34 set Radius 1.29
35 # half-length of the magnetic field coverage, in m
36 set HalfLength 3.00
37
38 # magnetic field
39 set Bz 3.8
40}
41
42####################################
43# Charged hadron tracking efficiency
44####################################
45
46module Efficiency ChargedHadronTrackingEfficiency {
47 set InputArray ParticlePropagator/chargedHadrons
48 set OutputArray chargedHadrons
49
50 # add EfficiencyFormula {efficiency formula as a function of eta and pt}
51
52 # tracking efficiency formula for charged hadrons
53 set EfficiencyFormula { (pt <= 0.1) * (0.00) +
54 (abs(eta) <= 1.5) * (pt > 0.1 && pt <= 1.0) * (0.70) +
55 (abs(eta) <= 1.5) * (pt > 1.0) * (0.95) +
56 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 0.1 && pt <= 1.0) * (0.60) +
57 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 1.0) * (0.85) +
58 (abs(eta) > 2.5) * (0.00)}
59}
60
61##############################
62# Electron tracking efficiency
63##############################
64
65module Efficiency ElectronTrackingEfficiency {
66 set InputArray ParticlePropagator/electrons
67 set OutputArray electrons
68
69 # set EfficiencyFormula {efficiency formula as a function of eta and pt}
70
71 # tracking efficiency formula for electrons
72 set EfficiencyFormula { (pt <= 0.1) * (0.00) +
73 (abs(eta) <= 1.5) * (pt > 0.1 && pt <= 1.0) * (0.73) +
74 (abs(eta) <= 1.5) * (pt > 1.0 && pt <= 1.0e2) * (0.95) +
75 (abs(eta) <= 1.5) * (pt > 1.0e2) * (0.99) +
76 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 0.1 && pt <= 1.0) * (0.50) +
77 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 1.0 && pt <= 1.0e2) * (0.83) +
78 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 1.0e2) * (0.90) +
79 (abs(eta) > 2.5) * (0.00)}
80}
81
82##########################
83# Muon tracking efficiency
84##########################
85
86module Efficiency MuonTrackingEfficiency {
87 set InputArray ParticlePropagator/muons
88 set OutputArray muons
89
90 # set EfficiencyFormula {efficiency formula as a function of eta and pt}
91
92 # tracking efficiency formula for muons
93 set EfficiencyFormula { (pt <= 0.1) * (0.00) +
94 (abs(eta) <= 1.5) * (pt > 0.1 && pt <= 1.0) * (0.75) +
95 (abs(eta) <= 1.5) * (pt > 1.0) * (0.99) +
96 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 0.1 && pt <= 1.0) * (0.70) +
97 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 1.0) * (0.98) +
98 (abs(eta) > 2.5) * (0.00)}
99}
100
101########################################
102# Momentum resolution for charged tracks
103########################################
104
105module MomentumSmearing ChargedHadronMomentumSmearing {
106 set InputArray ChargedHadronTrackingEfficiency/chargedHadrons
107 set OutputArray chargedHadrons
108
109 # set ResolutionFormula {resolution formula as a function of eta and pt}
110
111 # resolution formula for charged hadrons
112 # based on arXiv:1405.6569
113 set ResolutionFormula { (abs(eta) <= 0.5) * (pt > 0.1) * sqrt(0.06^2 + pt^2*1.3e-3^2) +
114 (abs(eta) > 0.5 && abs(eta) <= 1.5) * (pt > 0.1) * sqrt(0.10^2 + pt^2*1.7e-3^2) +
115 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 0.1) * sqrt(0.25^2 + pt^2*3.1e-3^2)}
116}
117
118###################################
119# Momentum resolution for electrons
120###################################
121
122module MomentumSmearing ElectronMomentumSmearing {
123 set InputArray ElectronTrackingEfficiency/electrons
124 set OutputArray electrons
125
126 # set ResolutionFormula {resolution formula as a function of eta and energy}
127
128 # resolution formula for electrons
129 # based on arXiv:1405.6569
130 set ResolutionFormula { (abs(eta) <= 0.5) * (pt > 0.1) * sqrt(0.03^2 + pt^2*1.3e-3^2) +
131 (abs(eta) > 0.5 && abs(eta) <= 1.5) * (pt > 0.1) * sqrt(0.05^2 + pt^2*1.7e-3^2) +
132 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 0.1) * sqrt(0.15^2 + pt^2*3.1e-3^2)}
133}
134
135###############################
136# Momentum resolution for muons
137###############################
138
139module MomentumSmearing MuonMomentumSmearing {
140 set InputArray MuonTrackingEfficiency/muons
141 set OutputArray muons
142
143 # set ResolutionFormula {resolution formula as a function of eta and pt}
144
145 # resolution formula for muons
146 set ResolutionFormula { (abs(eta) <= 0.5) * (pt > 0.1) * sqrt(0.01^2 + pt^2*1.0e-4^2) +
147 (abs(eta) > 0.5 && abs(eta) <= 1.5) * (pt > 0.1) * sqrt(0.015^2 + pt^2*1.5e-4^2) +
148 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 0.1) * sqrt(0.025^2 + pt^2*3.5e-4^2)}
149}
150
151
152##############
153# Track merger
154##############
155
156module Merger TrackMerger {
157# add InputArray InputArray
158 add InputArray ChargedHadronMomentumSmearing/chargedHadrons
159 add InputArray ElectronMomentumSmearing/electrons
160 add InputArray MuonMomentumSmearing/muons
161 set OutputArray tracks
162}
163
164#############
165# Calorimeter
166#############
167
168module Calorimeter Calorimeter {
169 set ParticleInputArray ParticlePropagator/stableParticles
170 set TrackInputArray TrackMerger/tracks
171
172 set TowerOutputArray towers
173 set PhotonOutputArray photons
174
175 set EFlowTrackOutputArray eflowTracks
176 set EFlowPhotonOutputArray eflowPhotons
177 set EFlowNeutralHadronOutputArray eflowNeutralHadrons
178
179 set ECalEnergyMin 0.5
180 set HCalEnergyMin 1.0
181
182 set ECalEnergySignificanceMin 1.0
183 set HCalEnergySignificanceMin 1.0
184
185 set SmearTowerCenter true
186
187 set pi [expr {acos(-1)}]
188
189 # lists of the edges of each tower in eta and phi
190 # each list starts with the lower edge of the first tower
191 # the list ends with the higher edged of the last tower
192
193 # 5 degrees towers
194 set PhiBins {}
195 for {set i -36} {$i <= 36} {incr i} {
196 add PhiBins [expr {$i * $pi/36.0}]
197 }
198 foreach eta {-1.566 -1.479 -1.392 -1.305 -1.218 -1.131 -1.044 -0.957 -0.87 -0.783 -0.696 -0.609 -0.522 -0.435 -0.348 -0.261 -0.174 -0.087 0 0.087 0.174 0.261 0.348 0.435 0.522 0.609 0.696 0.783 0.87 0.957 1.044 1.131 1.218 1.305 1.392 1.479 1.566 1.653} {
199 add EtaPhiBins $eta $PhiBins
200 }
201
202 # 10 degrees towers
203 set PhiBins {}
204 for {set i -18} {$i <= 18} {incr i} {
205 add PhiBins [expr {$i * $pi/18.0}]
206 }
207 foreach eta {-4.35 -4.175 -4 -3.825 -3.65 -3.475 -3.3 -3.125 -2.95 -2.868 -2.65 -2.5 -2.322 -2.172 -2.043 -1.93 -1.83 -1.74 -1.653 1.74 1.83 1.93 2.043 2.172 2.322 2.5 2.65 2.868 2.95 3.125 3.3 3.475 3.65 3.825 4 4.175 4.35 4.525} {
208 add EtaPhiBins $eta $PhiBins
209 }
210
211 # 20 degrees towers
212 set PhiBins {}
213 for {set i -9} {$i <= 9} {incr i} {
214 add PhiBins [expr {$i * $pi/9.0}]
215 }
216 foreach eta {-5 -4.7 -4.525 4.7 5} {
217 add EtaPhiBins $eta $PhiBins
218 }
219
220 # default energy fractions {abs(PDG code)} {Fecal Fhcal}
221 add EnergyFraction {0} {0.0 1.0}
222 # energy fractions for e, gamma and pi0
223 add EnergyFraction {11} {1.0 0.0}
224 add EnergyFraction {22} {1.0 0.0}
225 add EnergyFraction {111} {1.0 0.0}
226 # energy fractions for muon, neutrinos and neutralinos
227 add EnergyFraction {12} {0.0 0.0}
228 add EnergyFraction {13} {0.0 0.0}
229 add EnergyFraction {14} {0.0 0.0}
230 add EnergyFraction {16} {0.0 0.0}
231 add EnergyFraction {1000022} {0.0 0.0}
232 add EnergyFraction {1000023} {0.0 0.0}
233 add EnergyFraction {1000025} {0.0 0.0}
234 add EnergyFraction {1000035} {0.0 0.0}
235 add EnergyFraction {1000045} {0.0 0.0}
236 # energy fractions for K0short and Lambda
237 add EnergyFraction {310} {0.3 0.7}
238 add EnergyFraction {3122} {0.3 0.7}
239
240 # set ECalResolutionFormula {resolution formula as a function of eta and energy}
241 set ECalResolutionFormula { (abs(eta) <= 3.0) * sqrt(energy^2*0.007^2 + energy*0.07^2 + 0.35^2) +
242 (abs(eta) > 3.0 && abs(eta) <= 5.0) * sqrt(energy^2*0.107^2 + energy*2.08^2)}
243
244 # set HCalResolutionFormula {resolution formula as a function of eta and energy}
245 set HCalResolutionFormula { (abs(eta) <= 3.0) * sqrt(energy^2*0.050^2 + energy*1.50^2) +
246 (abs(eta) > 3.0 && abs(eta) <= 5.0) * sqrt(energy^2*0.130^2 + energy*2.70^2)}
247}
248
249####################
250# Energy flow merger
251####################
252
253module Merger EFlowMerger {
254# add InputArray InputArray
255 add InputArray Calorimeter/eflowTracks
256 add InputArray Calorimeter/eflowPhotons
257 add InputArray Calorimeter/eflowNeutralHadrons
258 set OutputArray eflow
259}
Note: See TracBrowser for help on using the repository browser.