Fork me on GitHub

source: git/cards/delphes_card_CMS_NoFastJet.tcl@ eab6d46

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

apply muon eff drop in tracking

  • Property mode set to 100644
File size: 9.8 KB
RevLine 
[d7d2da3]1#######################################
2# Order of execution of various modules
3#######################################
4
5set ExecutionPath {
6 ParticlePropagator
7
8 ChargedHadronTrackingEfficiency
9 ElectronTrackingEfficiency
10 MuonTrackingEfficiency
11
12 ChargedHadronMomentumSmearing
[934d037]13 ElectronMomentumSmearing
[d7d2da3]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
[a2983ec]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) +
[d7d2da3]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
[a2983ec]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) +
[d7d2da3]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
[a2983ec]93 set EfficiencyFormula { (pt <= 0.1) * (0.00) +
94 (abs(eta) <= 1.5) * (pt > 0.1 && pt <= 1.0) * (0.75) +
[eab6d46]95 (abs(eta) <= 1.5) * (pt > 1.0 && pt <= 1.0e3) * (0.99) +
96 (abs(eta) <= 1.5) * (pt > 1.0e3 ) * (0.99 * exp(0.5 - pt*5.0e-4)) +
97
[a2983ec]98 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 0.1 && pt <= 1.0) * (0.70) +
[eab6d46]99 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 1.0 && pt <= 1.0e3) * (0.98) +
100 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 1.0e3) * (0.98 * exp(0.5 - pt*5.0e-4)) +
[d7d2da3]101 (abs(eta) > 2.5) * (0.00)}
[eab6d46]102
[d7d2da3]103}
104
105########################################
106# Momentum resolution for charged tracks
107########################################
108
109module MomentumSmearing ChargedHadronMomentumSmearing {
110 set InputArray ChargedHadronTrackingEfficiency/chargedHadrons
111 set OutputArray chargedHadrons
112
113 # set ResolutionFormula {resolution formula as a function of eta and pt}
114
115 # resolution formula for charged hadrons
[934d037]116 # based on arXiv:1405.6569
117 set ResolutionFormula { (abs(eta) <= 0.5) * (pt > 0.1) * sqrt(0.06^2 + pt^2*1.3e-3^2) +
118 (abs(eta) > 0.5 && abs(eta) <= 1.5) * (pt > 0.1) * sqrt(0.10^2 + pt^2*1.7e-3^2) +
119 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 0.1) * sqrt(0.25^2 + pt^2*3.1e-3^2)}
[d7d2da3]120}
121
[934d037]122###################################
123# Momentum resolution for electrons
124###################################
[d7d2da3]125
[934d037]126module MomentumSmearing ElectronMomentumSmearing {
[d7d2da3]127 set InputArray ElectronTrackingEfficiency/electrons
128 set OutputArray electrons
129
130 # set ResolutionFormula {resolution formula as a function of eta and energy}
131
[8839353]132 # resolution formula for electrons
[934d037]133 # based on arXiv:1405.6569
[a17ec5a]134 set ResolutionFormula { (abs(eta) <= 0.5) * (pt > 0.1) * sqrt(0.03^2 + pt^2*1.3e-3^2) +
135 (abs(eta) > 0.5 && abs(eta) <= 1.5) * (pt > 0.1) * sqrt(0.05^2 + pt^2*1.7e-3^2) +
136 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 0.1) * sqrt(0.15^2 + pt^2*3.1e-3^2)}
[d7d2da3]137}
138
139###############################
140# Momentum resolution for muons
141###############################
142
143module MomentumSmearing MuonMomentumSmearing {
144 set InputArray MuonTrackingEfficiency/muons
145 set OutputArray muons
146
147 # set ResolutionFormula {resolution formula as a function of eta and pt}
148
149 # resolution formula for muons
[a17ec5a]150 set ResolutionFormula { (abs(eta) <= 0.5) * (pt > 0.1) * sqrt(0.01^2 + pt^2*1.0e-4^2) +
151 (abs(eta) > 0.5 && abs(eta) <= 1.5) * (pt > 0.1) * sqrt(0.015^2 + pt^2*1.5e-4^2) +
152 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 0.1) * sqrt(0.025^2 + pt^2*3.5e-4^2)}
[d7d2da3]153}
154
[a17ec5a]155
[d7d2da3]156##############
157# Track merger
158##############
159
160module Merger TrackMerger {
161# add InputArray InputArray
162 add InputArray ChargedHadronMomentumSmearing/chargedHadrons
[934d037]163 add InputArray ElectronMomentumSmearing/electrons
[a0ff736]164 add InputArray MuonMomentumSmearing/muons
[d7d2da3]165 set OutputArray tracks
166}
167
168#############
169# Calorimeter
170#############
171
172module Calorimeter Calorimeter {
173 set ParticleInputArray ParticlePropagator/stableParticles
174 set TrackInputArray TrackMerger/tracks
175
176 set TowerOutputArray towers
177 set PhotonOutputArray photons
178
[a2983ec]179 set EFlowTrackOutputArray eflowTracks
180 set EFlowPhotonOutputArray eflowPhotons
181 set EFlowNeutralHadronOutputArray eflowNeutralHadrons
182
[38bf1ae]183 set ECalEnergyMin 0.5
184 set HCalEnergyMin 1.0
[1c8d9db]185
[38bf1ae]186 set ECalEnergySignificanceMin 1.0
187 set HCalEnergySignificanceMin 1.0
[a2983ec]188
189 set SmearTowerCenter true
[d7d2da3]190
191 set pi [expr {acos(-1)}]
192
193 # lists of the edges of each tower in eta and phi
194 # each list starts with the lower edge of the first tower
195 # the list ends with the higher edged of the last tower
196
197 # 5 degrees towers
198 set PhiBins {}
199 for {set i -36} {$i <= 36} {incr i} {
200 add PhiBins [expr {$i * $pi/36.0}]
201 }
202 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} {
203 add EtaPhiBins $eta $PhiBins
204 }
205
206 # 10 degrees towers
207 set PhiBins {}
208 for {set i -18} {$i <= 18} {incr i} {
209 add PhiBins [expr {$i * $pi/18.0}]
210 }
211 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} {
212 add EtaPhiBins $eta $PhiBins
213 }
214
215 # 20 degrees towers
216 set PhiBins {}
217 for {set i -9} {$i <= 9} {incr i} {
218 add PhiBins [expr {$i * $pi/9.0}]
219 }
220 foreach eta {-5 -4.7 -4.525 4.7 5} {
221 add EtaPhiBins $eta $PhiBins
222 }
223
224 # default energy fractions {abs(PDG code)} {Fecal Fhcal}
225 add EnergyFraction {0} {0.0 1.0}
226 # energy fractions for e, gamma and pi0
227 add EnergyFraction {11} {1.0 0.0}
228 add EnergyFraction {22} {1.0 0.0}
229 add EnergyFraction {111} {1.0 0.0}
230 # energy fractions for muon, neutrinos and neutralinos
231 add EnergyFraction {12} {0.0 0.0}
232 add EnergyFraction {13} {0.0 0.0}
233 add EnergyFraction {14} {0.0 0.0}
234 add EnergyFraction {16} {0.0 0.0}
235 add EnergyFraction {1000022} {0.0 0.0}
236 add EnergyFraction {1000023} {0.0 0.0}
237 add EnergyFraction {1000025} {0.0 0.0}
238 add EnergyFraction {1000035} {0.0 0.0}
239 add EnergyFraction {1000045} {0.0 0.0}
240 # energy fractions for K0short and Lambda
241 add EnergyFraction {310} {0.3 0.7}
242 add EnergyFraction {3122} {0.3 0.7}
243
244 # set ECalResolutionFormula {resolution formula as a function of eta and energy}
[a2983ec]245 set ECalResolutionFormula { (abs(eta) <= 3.0) * sqrt(energy^2*0.007^2 + energy*0.07^2 + 0.35^2) +
[d7d2da3]246 (abs(eta) > 3.0 && abs(eta) <= 5.0) * sqrt(energy^2*0.107^2 + energy*2.08^2)}
247
248 # set HCalResolutionFormula {resolution formula as a function of eta and energy}
[a2983ec]249 set HCalResolutionFormula { (abs(eta) <= 3.0) * sqrt(energy^2*0.050^2 + energy*1.50^2) +
[a1ac20e]250 (abs(eta) > 3.0 && abs(eta) <= 5.0) * sqrt(energy^2*0.130^2 + energy*2.70^2)}
[d7d2da3]251}
252
253####################
254# Energy flow merger
255####################
256
257module Merger EFlowMerger {
258# add InputArray InputArray
259 add InputArray Calorimeter/eflowTracks
[27bf162]260 add InputArray Calorimeter/eflowPhotons
261 add InputArray Calorimeter/eflowNeutralHadrons
[d7d2da3]262 set OutputArray eflow
263}
Note: See TracBrowser for help on using the repository browser.