Fork me on GitHub

Ticket #850: myFCChh_DelphesCard_WithDipole_PileUp_v02.tcl

File myFCChh_DelphesCard_WithDipole_PileUp_v02.tcl, 34.9 KB (added by Marianna Testa, 9 years ago)
Line 
1#
2# Official Delphes card prepared by FCC-hh collaboration
3#
4# Main authors: Heather Gray (CERN)
5# Filip Moortgat (CERN)
6#
7# Released on: Sep 15th, 2015
8#
9# Version: v00
10#
11# Configuration: FCC-hh generic detector with dipole region, no pile-up
12#
13
14#######################################
15# Order of execution of various modules
16#######################################
17set MaxEvents 100
18set ExecutionPath {
19PileUpMerger
20ParticlePropagator
21
22ChargedHadronTrackingEfficiency
23
24ChargedHadronMomentumSmearing
25
26
27ElectronEfficiency
28MuonEfficiency
29
30ChargedHadronMomentumSmearing
31ElectronEnergySmearing
32MuonMomentumSmearing
33
34TrackMerger
35ImpactParameterSmearing
36
37Ecal
38Hcal
39TrackPileUpSubtractor
40
41NeutralTowerMerger
42TowerMerger
43EFlowMergerAllTracks
44EFlowMerger
45
46NeutrinoFilter
47GenJetFinder
48GenMissingET
49
50Rho
51FastJetFinder
52PileUpJetID
53JetPileUpSubtractor
54
55JetEnergyScale
56
57MissingET
58
59PhotonEfficiency
60PhotonIsolation
61
62ElectronIsolation
63
64MuonIsolation
65
66JetFlavorAssociation
67
68BTagging
69CTagging
70TauTagging
71
72UniqueObjectFinder
73
74ScalarHT
75
76TreeWriter
77}
78
79###############
80# PileUp Merger
81###############
82
83module PileUpMerger PileUpMerger {
84 set InputArray Delphes/stableParticles
85
86 set ParticleOutputArray stableParticles
87 set VertexOutputArray vertices
88
89 # pre-generated minbias input file
90 set PileUpFile /data02/testa/Delphes/Delphes-3.3.2/MinBias.pileup
91
92 # average expected pile up
93 set MeanPileUp 50
94
95 # maximum spread in the beam direction in m
96 set ZVertexSpread 0.10
97
98 # maximum spread in time in s
99 set TVertexSpread 1.5E-09
100
101 # vertex smearing formula f(z,t) (z,t need to be respectively given in m,s)
102
103 set VertexDistributionFormula {exp(-(t^2/(2*(0.05/2.99792458E8*exp(-(z^2/(2*(0.05)^2))))^2)))}
104
105 #set VertexDistributionFormula { (abs(t) <= 1.0e-09) * (abs(z) <= 0.15) * (1.00) +
106 # (abs(t) > 1.0e-09) * (abs(z) <= 0.15) * (0.00) +
107 # (abs(t) <= 1.0e-09) * (abs(z) > 0.15) * (0.00) +
108 # (abs(t) > 1.0e-09) * (abs(z) > 0.15) * (0.00)}
109
110
111}
112
113
114#################################
115# Propagate particles in cylinder
116#################################
117
118module ParticlePropagator ParticlePropagator {
119#set InputArray Delphes/stableParticles
120#new
121set InputArray PileUpMerger/stableParticle
122set OutputArray stableParticles
123set ChargedHadronOutputArray chargedHadrons
124set ElectronOutputArray electrons
125set MuonOutputArray muons
126
127# radius of the magnetic field coverage, in m
128set Radius 6.00
129# half-length of the magnetic field coverage, in m
130set HalfLength 11.5
131
132# magnetic field
133set Bz 6.0
134}
135
136####################################
137# Charged hadron tracking efficiency
138####################################
139
140module Efficiency ChargedHadronTrackingEfficiency {
141set InputArray ParticlePropagator/chargedHadrons
142set OutputArray chargedHadrons
143
144# add EfficiencyFormula {efficiency formula as a function of eta and pt}
145
146# tracking efficiency formula for charged hadrons
147set EfficiencyFormula { (pt <= 0.5) * (0.00) + \
148(abs(eta) <= 1.5) * (pt > 0.5 && pt <= 1) * (0.90) + \
149(abs(eta) <= 1.5) * (pt > 1) * (0.95) + \
150(abs(eta) > 1.5 && abs(eta) <= 4) * (pt > 0.5 && pt <= 1) * (0.85) + \
151(abs(eta) > 1.5 && abs(eta) <= 4) * (pt > 1) * (0.90) + \
152(abs(eta) > 4 && abs(eta) <= 6) * (pt > 0.5 && pt <= 1) * (0.80) + \
153(abs(eta) > 4 && abs(eta) <= 6) * (pt > 1.0) * (0.85) + \
154(abs(eta) > 6.0) * (0.00)}
155}
156
157##############################
158# Electron tracking efficiency
159##############################
160
161module Efficiency ElectronEfficiency {
162set InputArray ParticlePropagator/electrons
163#set InputArray TrackPileUpSubtractor/electrons
164set OutputArray electrons
165
166# set EfficiencyFormula {efficiency formula as a function of eta and pt}
167
168# tracking efficiency formula for electrons
169# tracking efficiency formula for electrons
170set EfficiencyFormula { (pt <= 10) * (0.00) + \
171(abs(eta) <= 1.5) * (pt > 10 && pt <= 50) * (0.80) + \
172(abs(eta) <= 1.5) * (pt > 50) * (0.90) + \
173(abs(eta) > 1.5 && abs(eta) <= 4) * (pt > 10 && pt <= 50) * (0.80) + \
174(abs(eta) > 1.5 && abs(eta) <= 4) * (pt > 50) * (0.90) + \
175(abs(eta) > 4 && abs(eta) <= 6) * (pt > 10 && pt <= 50) * (0.70) + \
176(abs(eta) > 4 && abs(eta) <= 6) * (pt > 50) * (0.80) + \
177(abs(eta) > 6) * (0.00)}
178}
179
180##########################
181# Muon tracking efficiency
182##########################
183
184module Efficiency MuonEfficiency {
185set InputArray ParticlePropagator/muons
186# set InputArray TrackPileUpSubtractor/muons
187set OutputArray muons
188
189# set EfficiencyFormula {efficiency formula as a function of eta and pt}
190
191# tracking efficiency formula for muons
192set EfficiencyFormula { (pt <= 10) * (0.00) + \
193(abs(eta) <= 1.5) * (pt > 10 ) * (0.99) + \
194(abs(eta) <= 4 & abs(eta) > 1.5) * (pt > 10 ) * (0.99) + \
195(abs(eta) > 4) * (0.00)}
196}
197
198########################################
199# Momentum resolution for charged tracks
200########################################
201
202module MomentumSmearing ChargedHadronMomentumSmearing {
203set InputArray ChargedHadronTrackingEfficiency/chargedHadrons
204set OutputArray chargedHadrons
205
206# set ResolutionFormula {resolution formula as a function of eta and pt}
207
208# resolution formula for charged hadrons
209#
210# Automatically generated tracker resolution formula for layout: FCChh_Option2 (by Z. Drasal, CERN)
211#
212# Central and Dipole
213#
214set ResolutionFormula { (abs(eta) >= 0.0000 && abs(eta) < 1.0000) * (pt >= 0.0000 && pt < 5.0000) * (0.00194513) + \
215 (abs(eta) >= 0.0000 && abs(eta) < 1.0000) * (pt >= 5.0000 && pt < 10.0000) * (0.001945 + (pt-5.000000)* 0.000003) + \
216 (abs(eta) >= 0.0000 && abs(eta) < 1.0000) * (pt >= 10.0000 && pt < 100.0000) * (0.001962 + (pt-10.000000)* 0.000006) + \
217 (abs(eta) >= 0.0000 && abs(eta) < 1.0000) * (pt >= 100.0000 && pt < 1000.0000) * (0.002547 + (pt-100.000000)* 0.000014) + \
218 (abs(eta) >= 0.0000 && abs(eta) < 1.0000) * (pt >= 1000.0000 && pt < 10000.0000) * (0.014708 + (pt-1000.000000)* 0.000015) + \
219 (abs(eta) >= 0.0000 && abs(eta) < 1.0000) * (pt >= 10000.0000) * (0.145553*pt/10000.000000) + \
220 (abs(eta) >= 1.0000 && abs(eta) < 2.0000) * (pt >= 0.0000 && pt < 5.0000) * (0.00247067) + \
221 (abs(eta) >= 1.0000 && abs(eta) < 2.0000) * (pt >= 5.0000 && pt < 10.0000) * (0.002471 + (pt-5.000000)* -0.000002) + \
222 (abs(eta) >= 1.0000 && abs(eta) < 2.0000) * (pt >= 10.0000 && pt < 100.0000) * (0.002462 + (pt-10.000000)* 0.000008) + \
223 (abs(eta) >= 1.0000 && abs(eta) < 2.0000) * (pt >= 100.0000 && pt < 1000.0000) * (0.003170 + (pt-100.000000)* 0.000015) + \
224 (abs(eta) >= 1.0000 && abs(eta) < 2.0000) * (pt >= 1000.0000 && pt < 10000.0000) * (0.016485 + (pt-1000.000000)* 0.000016) + \
225 (abs(eta) >= 1.0000 && abs(eta) < 2.0000) * (pt >= 10000.0000) * (0.162501*pt/10000.000000) + \
226 (abs(eta) >= 2.0000 && abs(eta) < 3.0000) * (pt >= 0.0000 && pt < 5.0000) * (0.00242524) + \
227 (abs(eta) >= 2.0000 && abs(eta) < 3.0000) * (pt >= 5.0000 && pt < 10.0000) * (0.002425 + (pt-5.000000)* 0.000013) + \
228 (abs(eta) >= 2.0000 && abs(eta) < 3.0000) * (pt >= 10.0000 && pt < 100.0000) * (0.002490 + (pt-10.000000)* 0.000042) + \
229 (abs(eta) >= 2.0000 && abs(eta) < 3.0000) * (pt >= 100.0000 && pt < 1000.0000) * (0.006273 + (pt-100.000000)* 0.000049) + \
230 (abs(eta) >= 2.0000 && abs(eta) < 3.0000) * (pt >= 1000.0000 && pt < 10000.0000) * (0.050079 + (pt-1000.000000)* 0.000050) + \
231 (abs(eta) >= 2.0000 && abs(eta) < 3.0000) * (pt >= 10000.0000) * (0.498773*pt/10000.000000) + \
232 (abs(eta) >= 3.0000 && abs(eta) < 4.0000) * (pt >= 0.0000 && pt < 5.0000) * (0.00168511) + \
233 (abs(eta) >= 3.0000 && abs(eta) < 4.0000) * (pt >= 5.0000 && pt < 10.0000) * (0.001685 + (pt-5.000000)* 0.000115) + \
234 (abs(eta) >= 3.0000 && abs(eta) < 4.0000) * (pt >= 10.0000 && pt < 100.0000) * (0.002262 + (pt-10.000000)* 0.000167) + \
235 (abs(eta) >= 3.0000 && abs(eta) < 4.0000) * (pt >= 100.0000 && pt < 1000.0000) * (0.017274 + (pt-100.000000)* 0.000172) + \
236 (abs(eta) >= 3.0000 && abs(eta) < 4.0000) * (pt >= 1000.0000 && pt < 10000.0000) * (0.172095 + (pt-1000.000000)* 0.000172) + \
237 (abs(eta) >= 3.0000 && abs(eta) < 4.0000) * (pt >= 10000.0000) * (1.720887*pt/10000.000000) + \
238 (abs(eta) >= 4.0000 && abs(eta) < 5.0000) * (pt >= 0.0000 && pt < 5.0000) * (0.00277124) + \
239 (abs(eta) >= 4.0000 && abs(eta) < 5.0000) * (pt >= 5.0000 && pt < 10.0000) * (0.002771 + (pt-5.000000)* 0.000430) + \
240 (abs(eta) >= 4.0000 && abs(eta) < 5.0000) * (pt >= 10.0000 && pt < 100.0000) * (0.004921 + (pt-10.000000)* 0.000467) + \
241 (abs(eta) >= 4.0000 && abs(eta) < 5.0000) * (pt >= 100.0000 && pt < 1000.0000) * (0.046933 + (pt-100.000000)* 0.000469) + \
242 (abs(eta) >= 4.0000 && abs(eta) < 5.0000) * (pt >= 1000.0000 && pt < 10000.0000) * (0.469096 + (pt-1000.000000)* 0.000469) + \
243 (abs(eta) >= 4.0000 && abs(eta) < 5.0000) * (pt >= 10000.0000) * (4.690935*pt/10000.000000) + \
244 (abs(eta) >= 5.0000 && abs(eta) < 6.0000) * (pt >= 0.0000 && pt < 5.0000) * (0.00653887) + \
245 (abs(eta) >= 5.0000 && abs(eta) < 6.0000) * (pt >= 5.0000 && pt < 10.0000) * (0.006539 + (pt-5.000000)* 0.001256) + \
246 (abs(eta) >= 5.0000 && abs(eta) < 6.0000) * (pt >= 10.0000 && pt < 100.0000) * (0.012821 + (pt-10.000000)* 0.001272) + \
247 (abs(eta) >= 5.0000 && abs(eta) < 6.0000) * (pt >= 100.0000 && pt < 1000.0000) * (0.127345 + (pt-100.000000)* 0.001273) + \
248 (abs(eta) >= 5.0000 && abs(eta) < 6.0000) * (pt >= 1000.0000 && pt < 10000.0000) * (1.273365 + (pt-1000.000000)* 0.001273) + \
249 (abs(eta) >= 5.0000 && abs(eta) < 6.0000) * (pt >= 10000.0000) * (12.733637*pt/10000.000000)
250}
251}
252#################################
253# Energy resolution for electrons
254#################################
255
256module EnergySmearing ElectronEnergySmearing {
257set InputArray ElectronEfficiency/electrons
258set OutputArray electrons
259
260# set ResolutionFormula {resolution formula as a function of eta and energy}
261
262# check compared to compare to tracket resolution for low
263# resolution formula for electrons
264set ResolutionFormula {
265(abs(eta) <= 1.5) * sqrt(energy^2*0.01^2 + energy*0.10^2) + \
266(abs(eta) > 1.5 && abs(eta) <= 2.5) * sqrt(energy^2*0.01^2 + energy*0.10^2) + \
267(abs(eta) > 2.5 && abs(eta) <= 4.0) * sqrt(energy^2*0.01^2 + energy*0.10^2) + \
268(abs(eta) > 4.0 && abs(eta) <= 6.0) * sqrt(energy^2*0.01^2 + energy*0.10^2)}
269}
270
271
272#################################
273# Energy resolution for photons
274#################################
275#not used for the moment (has been removed from the ExecutionPath)
276
277module EnergySmearing PhotonEnergySmearing {
278set InputArray PhotonEfficiency/photons
279set OutputArray photons
280
281# set ResolutionFormula {resolution formula as a function of eta and energy}
282
283# check compared to compare to track resolution for low
284# resolution formula for photons
285set ResolutionFormula {
286(abs(eta) <= 1.5) * sqrt(energy^2*0.01^2 + energy*0.10^2) + \
287(abs(eta) > 1.5 && abs(eta) <= 2.5) * sqrt(energy^2*0.01^2 + energy*0.10^2) + \
288(abs(eta) > 2.5 && abs(eta) <= 4.0) * sqrt(energy^2*0.01^2 + energy*0.10^2) + \
289(abs(eta) > 4.0 && abs(eta) <= 6.0) * sqrt(energy^2*0.01^2 + energy*0.10^2)}
290}
291
292
293###############################
294# Momentum resolution for muons
295###############################
296
297module MomentumSmearing MuonMomentumSmearing {
298set InputArray MuonEfficiency/muons
299set OutputArray muons
300
301# set ResolutionFormula {resolution formula as a function of eta and pt}
302
303# resolution formula for muons
304# Automatically generated tracker resolution formula for layout: FCChh_Option2 (by Z. Drasal, CERN)
305# Central and Dipole
306#
307set ResolutionFormula { (abs(eta) >= 0.0000 && abs(eta) < 1.0000) * (pt >= 0.0000 && pt < 5.0000) * (0.00194513) + \
308 (abs(eta) >= 0.0000 && abs(eta) < 1.0000) * (pt >= 5.0000 && pt < 10.0000) * (0.001945 + (pt-5.000000)* 0.000003) + \
309 (abs(eta) >= 0.0000 && abs(eta) < 1.0000) * (pt >= 10.0000 && pt < 100.0000) * (0.001962 + (pt-10.000000)* 0.000006) + \
310 (abs(eta) >= 0.0000 && abs(eta) < 1.0000) * (pt >= 100.0000 && pt < 1000.0000) * (0.002547 + (pt-100.000000)* 0.000014) + \
311 (abs(eta) >= 0.0000 && abs(eta) < 1.0000) * (pt >= 1000.0000 && pt < 10000.0000) * (0.014708 + (pt-1000.000000)* 0.000015) + \
312 (abs(eta) >= 0.0000 && abs(eta) < 1.0000) * (pt >= 10000.0000) * (0.145553*pt/10000.000000) + \
313 (abs(eta) >= 1.0000 && abs(eta) < 2.0000) * (pt >= 0.0000 && pt < 5.0000) * (0.00247067) + \
314 (abs(eta) >= 1.0000 && abs(eta) < 2.0000) * (pt >= 5.0000 && pt < 10.0000) * (0.002471 + (pt-5.000000)* -0.000002) + \
315 (abs(eta) >= 1.0000 && abs(eta) < 2.0000) * (pt >= 10.0000 && pt < 100.0000) * (0.002462 + (pt-10.000000)* 0.000008) + \
316 (abs(eta) >= 1.0000 && abs(eta) < 2.0000) * (pt >= 100.0000 && pt < 1000.0000) * (0.003170 + (pt-100.000000)* 0.000015) + \
317 (abs(eta) >= 1.0000 && abs(eta) < 2.0000) * (pt >= 1000.0000 && pt < 10000.0000) * (0.016485 + (pt-1000.000000)* 0.000016) + \
318 (abs(eta) >= 1.0000 && abs(eta) < 2.0000) * (pt >= 10000.0000) * (0.162501*pt/10000.000000) + \
319 (abs(eta) >= 2.0000 && abs(eta) < 3.0000) * (pt >= 0.0000 && pt < 5.0000) * (0.00242524) + \
320 (abs(eta) >= 2.0000 && abs(eta) < 3.0000) * (pt >= 5.0000 && pt < 10.0000) * (0.002425 + (pt-5.000000)* 0.000013) + \
321 (abs(eta) >= 2.0000 && abs(eta) < 3.0000) * (pt >= 10.0000 && pt < 100.0000) * (0.002490 + (pt-10.000000)* 0.000042) + \
322 (abs(eta) >= 2.0000 && abs(eta) < 3.0000) * (pt >= 100.0000 && pt < 1000.0000) * (0.006273 + (pt-100.000000)* 0.000049) + \
323 (abs(eta) >= 2.0000 && abs(eta) < 3.0000) * (pt >= 1000.0000 && pt < 10000.0000) * (0.050079 + (pt-1000.000000)* 0.000050) + \
324 (abs(eta) >= 2.0000 && abs(eta) < 3.0000) * (pt >= 10000.0000) * (0.498773*pt/10000.000000) + \
325 (abs(eta) >= 3.0000 && abs(eta) < 4.0000) * (pt >= 0.0000 && pt < 5.0000) * (0.00168511) + \
326 (abs(eta) >= 3.0000 && abs(eta) < 4.0000) * (pt >= 5.0000 && pt < 10.0000) * (0.001685 + (pt-5.000000)* 0.000115) + \
327 (abs(eta) >= 3.0000 && abs(eta) < 4.0000) * (pt >= 10.0000 && pt < 100.0000) * (0.002262 + (pt-10.000000)* 0.000167) + \
328 (abs(eta) >= 3.0000 && abs(eta) < 4.0000) * (pt >= 100.0000 && pt < 1000.0000) * (0.017274 + (pt-100.000000)* 0.000172) + \
329 (abs(eta) >= 3.0000 && abs(eta) < 4.0000) * (pt >= 1000.0000 && pt < 10000.0000) * (0.172095 + (pt-1000.000000)* 0.000172) + \
330 (abs(eta) >= 3.0000 && abs(eta) < 4.0000) * (pt >= 10000.0000) * (1.720887*pt/10000.000000) + \
331 (abs(eta) >= 4.0000 && abs(eta) < 5.0000) * (pt >= 0.0000 && pt < 5.0000) * (0.00277124) + \
332 (abs(eta) >= 4.0000 && abs(eta) < 5.0000) * (pt >= 5.0000 && pt < 10.0000) * (0.002771 + (pt-5.000000)* 0.000430) + \
333 (abs(eta) >= 4.0000 && abs(eta) < 5.0000) * (pt >= 10.0000 && pt < 100.0000) * (0.004921 + (pt-10.000000)* 0.000467) + \
334 (abs(eta) >= 4.0000 && abs(eta) < 5.0000) * (pt >= 100.0000 && pt < 1000.0000) * (0.046933 + (pt-100.000000)* 0.000469) + \
335 (abs(eta) >= 4.0000 && abs(eta) < 5.0000) * (pt >= 1000.0000 && pt < 10000.0000) * (0.469096 + (pt-1000.000000)* 0.000469) + \
336 (abs(eta) >= 4.0000 && abs(eta) < 5.0000) * (pt >= 10000.0000) * (4.690935*pt/10000.000000) + \
337 (abs(eta) >= 5.0000 && abs(eta) < 6.0000) * (pt >= 0.0000 && pt < 5.0000) * (0.00653887) + \
338 (abs(eta) >= 5.0000 && abs(eta) < 6.0000) * (pt >= 5.0000 && pt < 10.0000) * (0.006539 + (pt-5.000000)* 0.001256) + \
339 (abs(eta) >= 5.0000 && abs(eta) < 6.0000) * (pt >= 10.0000 && pt < 100.0000) * (0.012821 + (pt-10.000000)* 0.001272) + \
340 (abs(eta) >= 5.0000 && abs(eta) < 6.0000) * (pt >= 100.0000 && pt < 1000.0000) * (0.127345 + (pt-100.000000)* 0.001273) + \
341 (abs(eta) >= 5.0000 && abs(eta) < 6.0000) * (pt >= 1000.0000 && pt < 10000.0000) * (1.273365 + (pt-1000.000000)* 0.001273) + \
342 (abs(eta) >= 5.0000 && abs(eta) < 6.0000) * (pt >= 10000.0000) * (12.733637*pt/10000.000000)
343}
344}
345####################
346# Electron isolation
347####################
348
349module Isolation ElectronIsolation {
350set CandidateInputArray ElectronEnergySmearing/electrons
351set IsolationInputArray EFlowMerger/eflow
352
353set OutputArray electrons
354
355set DeltaRMax 0.3
356
357set PTMin 0.5
358
359set PTRatioMax 0.1
360}
361
362################
363# Muon isolation
364################
365
366module Isolation MuonIsolation {
367set CandidateInputArray MuonMomentumSmearing/muons
368set IsolationInputArray EFlowMerger/eflow
369
370set OutputArray muons
371
372set DeltaRMax 0.3
373
374set PTMin 0.5
375
376set PTRatioMax 0.1
377}
378
379###################
380# Photon efficiency
381###################
382
383module Efficiency PhotonEfficiency {
384set InputArray Ecal/eflowPhotons
385set OutputArray photons
386
387# set EfficiencyFormula {efficiency formula as a function of eta and pt}
388# efficiency formula for photons
389set EfficiencyFormula {
390(pt <= 10.0) * (0.00) + \
391(abs(eta) <= 1.5) * (pt > 10.0) * (0.95) + \
392(abs(eta) > 1.5 && abs(eta) <= 4.0) * (pt > 10.0) * (0.90) + \
393(abs(eta) > 4.0 && abs(eta) <= 6.0) * (pt > 10.0) * (0.80) + \
394(abs(eta) > 6.0) * (0.00)}
395}
396
397##################
398# Photon isolation
399##################
400
401module Isolation PhotonIsolation {
402set CandidateInputArray PhotonEfficiency/photons
403set IsolationInputArray EFlowMerger/eflow
404
405set OutputArray photons
406
407set DeltaRMax 0.3
408
409set PTMin 0.5
410
411set PTRatioMax 0.1
412}
413
414##############
415# Track merger
416##############
417
418module Merger TrackMerger {
419# add InputArray InputArray
420add InputArray ChargedHadronMomentumSmearing/chargedHadrons
421add InputArray ElectronEnergySmearing/electrons
422add InputArray MuonMomentumSmearing/muons
423set OutputArray tracks
424}
425
426################################
427# Track impact parameter smearing
428################################
429
430#not used at the moment
431
432module ImpactParameterSmearing ImpactParameterSmearing {
433set InputArray TrackMerger/tracks
434set OutputArray tracks
435
436
437# absolute impact parameter smearing formula (in mm) as a function of pt and eta
438set ResolutionFormula {(pt > 0.1 && pt <= 5.0) * (0.010) + \
439(pt > 5.0) * (0.005)}
440
441}
442
443#############
444# ECAL
445#############
446
447module SimpleCalorimeter Ecal {
448 set ParticleInputArray ParticlePropagator/stableParticles
449 set TrackInputArray ImpactParameterSmearing/tracks
450
451 set TowerOutputArray ecalTowers
452 set EFlowTowerOutputArray eflowPhotons
453
454 set pi [expr {acos(-1)}]
455
456 # lists of the edges of each tower in eta and phi
457 # each list starts with the lower edge of the first tower
458 # the list ends with the higher edged of the last tower
459 # 0.0125 x 0.0125 for eta between 0 and 2.5
460 set PhiBins {}
461 for {set i -256} {$i <= 256} {incr i} {
462 add PhiBins [expr {$i * $pi/256.0}]
463 }
464 foreach eta {-2.5 -2.4875 -2.475 -2.4625 -2.45 -2.4375 -2.425 -2.4125 -2.4 -2.3875 -2.375 -2.3625 -2.35 -2.3375 -2.325 -2.3125 -2.3 -2.2875 -2.275 -2.2625 -2.25 -2.2375 -2.225 -2.2125 -2.2 -2.1875 -2.175 -2.1625 -2.15 -2.1375 -2.125 -2.1125 -2.1 -2.0875 -2.075 -2.0625 -2.05 -2.0375 -2.025 -2.0125 -2 -1.9875 -1.975 -1.9625 -1.95 -1.9375 -1.925 -1.9125 -1.9 -1.8875 -1.875 -1.8625 -1.85 -1.8375 -1.825 -1.8125 -1.8 -1.7875 -1.775 -1.7625 -1.75 -1.7375 -1.725 -1.7125 -1.7 -1.6875 -1.675 -1.6625 -1.65 -1.6375 -1.625 -1.6125 -1.6 -1.5875 -1.575 -1.5625 -1.55 -1.5375 -1.525 -1.5125 -1.5 -1.4875 -1.475 -1.4625 -1.45 -1.4375 -1.425 -1.4125 -1.4 -1.3875 -1.375 -1.3625 -1.35 -1.3375 -1.325 -1.3125 -1.3 -1.2875 -1.275 -1.2625 -1.25 -1.2375 -1.225 -1.2125 -1.2 -1.1875 -1.175 -1.1625 -1.15 -1.1375 -1.125 -1.1125 -1.1 -1.0875 -1.075 -1.0625 -1.05 -1.0375 -1.025 -1.0125 -1.0 -0.9875 -0.975 -0.9625 -0.95 -0.9375 -0.925 -0.9125 -0.9 -0.8875 -0.875 -0.8625 -0.85 -0.8375 -0.825 -0.8125 -0.8 -0.7875 -0.775 -0.7625 -0.75 -0.7375 -0.725 -0.7125 -0.7 -0.6875 -0.675 -0.6625 -0.65 -0.6375 -0.625 -0.6125 -0.6 -0.5875 -0.575 -0.5625 -0.55 -0.5375 -0.525 -0.5125 -0.5 -0.4875 -0.475 -0.4625 -0.45 -0.4375 -0.425 -0.4125 -0.4 -0.3875 -0.375 -0.3625 -0.35 -0.3375 -0.325 -0.3125 -0.3 -0.2875 -0.275 -0.2625 -0.25 -0.2375 -0.225 -0.2125 -0.2 -0.1875 -0.175 -0.1625 -0.15 -0.1375 -0.125 -0.1125 -0.1 -0.0875 -0.075 -0.0625 -0.05 -0.0375 -0.025 -0.0125 0 0.0125 0.025 0.0375 0.05 0.0625 0.075 0.0875 0.1 0.1125 0.125 0.1375 0.15 0.1625 0.175 0.1875 0.2 0.2125 0.225 0.2375 0.25 0.2625 0.275 0.2875 0.3 0.3125 0.325 0.3375 0.35 0.3625 0.375 0.3875 0.4 0.4125 0.425 0.4375 0.45 0.4625 0.475 0.4875 0.5 0.5125 0.525 0.5375 0.55 0.5625 0.575 0.5875 0.6 0.6125 0.625 0.6375 0.65 0.6625 0.675 0.6875 0.7 0.7125 0.725 0.7375 0.75 0.7625 0.775 0.7875 0.8 0.8125 0.825 0.8375 0.85 0.8625 0.875 0.8875 0.9 0.9125 0.925 0.9375 0.95 0.9625 0.975 0.9875 1.0 1.0125 1.025 1.0375 1.05 1.0625 1.075 1.0875 1.1 1.1125 1.125 1.1375 1.15 1.1625 1.175 1.1875 1.2 1.2125 1.225 1.2375 1.25 1.2625 1.275 1.2875 1.3 1.3125 1.325 1.3375 1.35 1.3625 1.375 1.3875 1.4 1.4125 1.425 1.4375 1.45 1.4625 1.475 1.4875 1.5 1.5125 1.525 1.5375 1.55 1.5625 1.575 1.5875 1.6 1.6125 1.625 1.6375 1.65 1.6625 1.675 1.6875 1.7 1.7125 1.725 1.7375 1.75 1.7625 1.775 1.7875 1.8 1.8125 1.825 1.8375 1.85 1.8625 1.875 1.8875 1.9 1.9125 1.925 1.9375 1.95 1.9625 1.975 1.9875 2 2.0125 2.025 2.0375 2.05 2.0625 2.075 2.0875 2.1 2.1125 2.125 2.1375 2.15 2.1625 2.175 2.1875 2.2 2.2125 2.225 2.2375 2.25 2.2625 2.275 2.2875 2.3 2.3125 2.325 2.3375 2.35 2.3625 2.375 2.3875 2.4 2.4125 2.425 2.4375 2.45 2.4625 2.475 2.4875 2.5} {
465 add EtaPhiBins $eta $PhiBins
466 }
467 # 0.025 eta x 0.025 for eta between 2.5 and 4.0
468 set PhiBins {}
469 for {set i -128} {$i <= 128} {incr i} {
470 add PhiBins [expr {$i * $pi/128.0}]
471 }
472 foreach eta {-4.0 -3.975 -3.95 -3.925 -3.9 -3.875 -3.85 -3.825 -3.8 -3.775 -3.75 -3.725 -3.7 -3.675 -3.65 -3.625 -3.6 -3.575 -3.55 -3.525 -3.5 -3.475 -3.45 -3.425 -3.4 -3.375 -3.35 -3.325 -3.3 -3.275 -3.25 -3.225 -3.2 -3.175 -3.15 -3.125 -3.1 -3.075 -3.05 -3.025 -3.0 -2.975 -2.95 -2.925 -2.9 -2.875 -2.85 -2.825 -2.8 -2.775 -2.75 -2.725 -2.7 -2.675 -2.65 -2.625 -2.6 -2.575 -2.55 -2.525 2.525 2.55 2.575 2.6 2.625 2.65 2.675 2.7 2.725 2.75 2.775 2.8 2.825 2.85 2.875 2.9 2.925 2.95 2.975 3.0 3.025 3.05 3.075 3.1 3.125 3.15 3.175 3.2 3.225 3.25 3.275 3.3 3.325 3.35 3.375 3.4 3.425 3.45 3.475 3.5 3.525 3.55 3.575 3.6 3.625 3.65 3.675 3.7 3.725 3.75 3.775 3.8 3.825 3.85 3.875 3.9 3.925 3.95 3.975 4.0} {
473 add EtaPhiBins $eta $PhiBins
474 }
475
476 # 0.05 x 0.05 for eta between 4.0 and 6.0
477 set PhiBins {}
478 for {set i -64} {$i <= 64} {incr i} {
479 add PhiBins [expr {$i * $pi/64.0}]
480 }
481 foreach eta {-6.0 -5.95 -5.9 -5.85 -5.8 -5.75 -5.7 -5.65 -5.6 -5.55 -5.5 -5.45 -5.4 -5.35 -5.3 -5.25 -5.2 -5.15 -5.1 -5.05 -5.0 -4.95 -4.9 -4.85 -4.8 -4.75 -4.7 -4.65 -4.6 -4.55 -4.5 -4.45 -4.4 -4.35 -4.3 -4.25 -4.2 -4.15 -4.1 -4.05 4.05 4.1 4.15 4.2 4.25 4.3 4.35 4.4 4.45 4.5 4.55 4.6 4.65 4.7 4.75 4.8 4.85 4.9 4.95 5.0 5.05 5.1 5.15 5.2 5.25 5.3 5.35 5.4 5.45 5.5 5.55 5.6 5.65 5.7 5.75 5.8 5.85 5.9 5.95 6.0} {
482 add EtaPhiBins $eta $PhiBins
483 }
484 # default energy fractions {abs(PDG code)} {fraction of energy deposited in ECAL}
485
486 add EnergyFraction {0} {0.4}
487 # energy fractions for e, gamma and pi0
488 add EnergyFraction {11} {1.0}
489 add EnergyFraction {22} {1.0}
490 add EnergyFraction {111} {1.0}
491 # energy fractions for muon, neutrinos and neutralinos
492 add EnergyFraction {12} {0.0}
493 add EnergyFraction {13} {0.0}
494 add EnergyFraction {14} {0.0}
495 add EnergyFraction {16} {0.0}
496 add EnergyFraction {1000022} {0.0}
497 add EnergyFraction {1000023} {0.0}
498 add EnergyFraction {1000025} {0.0}
499 add EnergyFraction {1000035} {0.0}
500 add EnergyFraction {1000045} {0.0}
501 # energy fractions for K0short and Lambda
502 # add EnergyFraction {310} {0.3}
503 # add EnergyFraction {3122} {0.3}
504
505 # set ECalResolutionFormula {resolution formula as a function of eta and energy}
506 set ResolutionFormula { (abs(eta) <= 4.0) * sqrt(energy^2*0.01^2 + energy*0.10^2) + \
507 (abs(eta) > 4.0 && abs(eta) <= 6.0) * sqrt(energy^2*0.01^2 + energy*0.10^2)}
508
509
510}
511####################
512# Neutral tower merger
513####################
514
515module Merger NeutralTowerMerger {
516# add InputArray InputArray
517 add InputArray Ecal/eflowPhotons
518 add InputArray Hcal/eflowNeutralHadrons
519 set OutputArray eflowTowers
520}
521
522
523#############
524# HCAL
525#############
526
527module SimpleCalorimeter Hcal {
528 set ParticleInputArray ParticlePropagator/stableParticles
529 set TrackInputArray ImpactParameterSmearing/tracks
530
531 set TowerOutputArray hcalTowers
532 set EFlowTowerOutputArray eflowNeutralHadrons
533
534 set pi [expr {acos(-1)}]
535
536 # lists of the edges of each tower in eta and phi
537 # each list starts with the lower edge of the first tower
538 # the list ends with the higher edged of the last tower
539
540 # 0.05 x 0.05 between eta 0 and 2.5
541 set PhiBins {}
542 for {set i -128} {$i <= 128} {incr i} {
543 add PhiBins [expr {$i * $pi/128.0}]
544 }
545 foreach eta {-2.5 -2.45 -2.4 -2.35 -2.3 -2.25 -2.2 -2.15 -2.1 -2.05 -2.0 -1.95 -1.9 -1.85 -1.8 -1.75 -1.7 -1.65 -1.6 -1.55 -1.5 -1.45 -1.4 -1.35 -1.3 -1.25 -1.2 -1.15 -1.1 -1.05 -1.0 -0.95 -0.9 -0.85 -0.8 -0.75 -0.7 -0.65 -0.6 -0.55 -0.5 -0.45 -0.4 -0.35 -0.3 -0.25 -0.2 -0.15 -0.1 -0.05 0.0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5 0.55 0.6 0.65 0.7 0.75 0.8 0.85 0.9 0.95 1.0 1.05 1.1 1.15 1.2 1.25 1.3 1.35 1.4 1.45 1.5 1.55 1.6 1.65 1.7 1.75 1.8 1.85 1.9 1.95 2.0 2.05 2.1 2.15 2.2 2.25 2.3 2.35 2.4 2.45 2.5} {
546 add EtaPhiBins $eta $PhiBins
547 }
548
549 # 0.1 x 0.1 between eta 2.5 and 4.0
550 set PhiBins {}
551 for {set i -64} {$i <= 64} {incr i} {
552 add PhiBins [expr {$i * $pi/64.0}]
553 }
554 foreach eta {-4.0 -3.9 -3.8 -3.7 -3.6 -3.5 -3.4 -3.3 -3.2 -3.1 -3.0 -2.9 -2.8 -2.7 -2.6 2.6 2.7 2.8 2.9 3.0 3.1 3.2 3.3 3.4 3.5 3.6 3.7 3.8 3.9 4.0} {
555 add EtaPhiBins $eta $PhiBins
556 }
557
558 # 0.2 x 0.2 between eta 4.0 and 6.0
559 set PhiBins {}
560 for {set i -32} {$i <= 32} {incr i} {
561 add PhiBins [expr {$i * $pi/32.0}]
562 }
563 foreach eta {-6.0 -5.8 -5.6 -5.4 -5.2 -5.0 -4.8 -4.6 -4.4 -4.2 4.2 4.4 4.6 4.8 5.0 5.2 5.4 5.6 5.8 6.0} {
564 add EtaPhiBins $eta $PhiBins
565 }
566
567 # default energy fractions {abs(PDG code)} {Fecal Fhcal}
568 add EnergyFraction {0} {0.6}
569 # energy fractions for e, gamma and pi0
570 add EnergyFraction {11} {0.0}
571 add EnergyFraction {22} {0.0}
572 add EnergyFraction {111} {0.0}
573 # energy fractions for muon, neutrinos and neutralinos
574 add EnergyFraction {12} {0.0}
575 add EnergyFraction {13} {0.0}
576 add EnergyFraction {14} {0.0}
577 add EnergyFraction {16} {0.0}
578 add EnergyFraction {1000022} {0.0}
579 add EnergyFraction {1000023} {0.0}
580 add EnergyFraction {1000025} {0.0}
581 add EnergyFraction {1000035} {0.0}
582 add EnergyFraction {1000045} {0.0}
583 # energy fractions for K0short and Lambda
584 # add EnergyFraction {310} {0.7}
585 # add EnergyFraction {3122} {0.7}
586
587 # set HCalResolutionFormula {resolution formula as a function of eta and energy}
588 set ResolutionFormula { (abs(eta) <= 4.0) * sqrt(energy^2*0.03^2 + energy*0.50^2) + \
589 (abs(eta) > 4.0 && abs(eta) <= 6.0) * sqrt(energy^2*0.05^2 + energy*1.00^2)}
590}
591
592
593##########################
594# Track pile-up subtractor
595##########################
596
597module TrackPileUpSubtractor TrackPileUpSubtractor {
598# add InputArray InputArray OutputArray
599# add InputArray Calorimeter/eflowTracks eflowTracks
600 add InputArray ImpactParameterSmearing/tracks tracks
601# add InputArray ElectronFilter/electrons electrons
602 add InputArray ElectronEfficiency/electrons electrons
603 add InputArray MuonMomentumSmearing/muons muons
604
605 set VertexInputArray PileUpMerger/vertices
606 # assume perfect pile-up subtraction for tracks with |z| > fZVertexResolution
607 # Z vertex resolution in m
608 set ZVertexResolution 0.0001
609#my
610# set OutputArray tracksPV
611}
612
613
614####################
615# Tower Merger (in case not using e-flow algorithm)
616####################
617
618module Merger TowerMerger {
619# add InputArray InputArray
620add InputArray Ecal/ecalTowers
621add InputArray Hcal/hcalTowers
622set OutputArray towers
623}
624##################################
625# Energy flow merger (all tracks)
626##################################
627
628module Merger EFlowMergerAllTracks {
629# add InputArray InputArray
630add InputArray ImpactParameterSmearing/tracks
631add InputArray Ecal/eflowPhotons
632add InputArray Hcal/eflowNeutralHadrons
633 set OutputArray eflow
634}
635####################
636# Energy flow merger
637####################
638
639module Merger EFlowMerger {
640# add InputArray InputArray
641#add InputArray ImpactParameterSmearing/tracks
642add InputArray TrackPileUpSubtractor/tracks
643add InputArray Ecal/eflowPhotons
644add InputArray Hcal/eflowNeutralHadrons
645set OutputArray eflow
646}
647#############
648# Rho pile-up
649#############
650
651module FastJetGridMedianEstimator Rho {
652
653 set InputArray EFlowMerger/eflow
654 set RhoOutputArray rho
655
656 # add GridRange rapmin rapmax drap dphi
657 # rapmin - the minimum rapidity extent of the grid
658 # rapmax - the maximum rapidity extent of the grid
659 # drap - the grid spacing in rapidity
660 # dphi - the grid spacing in azimuth
661
662 add GridRange -5.0 -2.5 1.0 1.0
663 add GridRange -2.5 2.5 1.0 1.0
664 add GridRange 2.5 5.0 1.0 1.0
665
666}
667
668#####################
669# Neutrino Filter
670#####################
671
672module PdgCodeFilter NeutrinoFilter {
673
674 set InputArray Delphes/stableParticles
675 set OutputArray filteredParticles
676
677 set PTMin 0.0
678
679 add PdgCode {12}
680 add PdgCode {14}
681 add PdgCode {16}
682 add PdgCode {-12}
683 add PdgCode {-14}
684 add PdgCode {-16}
685
686}
687
688
689
690###################
691# Missing ET merger
692###################
693
694module Merger MissingET {
695# add InputArray InputArray
696#default
697#add InputArray EFlowMerger/eflow
698add InputArray JetPileUpSubtractor/jets
699
700set MomentumOutputArray momentum
701}
702
703
704##################
705# Scalar HT merger
706##################
707
708module Merger ScalarHT {
709# add InputArray InputArray
710add InputArray EFlowMerger/eflow
711set EnergyOutputArray energy
712}
713########################
714# Jet Flavor Association
715########################
716
717module JetFlavorAssociation JetFlavorAssociation {
718
719 set PartonInputArray Delphes/partons
720 set ParticleInputArray Delphes/allParticles
721 set ParticleLHEFInputArray Delphes/allParticlesLHEF
722 set JetInputArray JetEnergyScale/jets
723
724 set DeltaR 0.5
725 set PartonPTMin 1.0
726 set PartonEtaMax 6.0
727
728}
729#####################
730# MC truth jet finder
731#####################
732
733module FastJetFinder GenJetFinder {
734set InputArray Delphes/stableParticles
735
736set OutputArray jets
737
738# algorithm: 1 CDFJetClu, 2 MidPoint, 3 SIScone, 4 kt, 5 Cambridge/Aachen, 6 antikt 7 antikt wta algorithm
739set JetAlgorithm 7
740set ParameterR 0.4
741
742set JetPTMin 5.0
743}
744
745#########################
746# Gen Missing ET merger
747########################
748
749module Merger GenMissingET {
750# add InputArray InputArray
751 add InputArray NeutrinoFilter/filteredParticles
752 set MomentumOutputArray momentum
753}
754
755############
756# Jet finder
757############
758
759module FastJetFinder FastJetFinder {
760# set InputArray Calorimeter/towers
761set InputArray EFlowMerger/eflow
762
763set OutputArray jets
764
765# algorithm: 1 CDFJetClu, 2 MidPoint, 3 SIScone, 4 kt, 5 Cambridge/Aachen, 6 antikt, 7 antikt wta algorithm
766set JetAlgorithm 7
767set ParameterR 0.4
768
769set JetPTMin 30.0
770}
771
772##################
773# Jet Energy Scale
774##################
775# not used at the moment
776
777module EnergyScale JetEnergyScale {
778set InputArray FastJetFinder/jets
779set OutputArray jets
780
781# scale formula for jets
782set ScaleFormula {1.00}
783}
784
785###########################
786# Jet Pile-Up ID
787###########################
788
789module PileUpJetID PileUpJetID {
790 set JetInputArray FastJetFinder/jets
791# set TrackInputArray Calorimeter/eflowTracks
792 set TrackInputArray ImpactParameterSmearing/tracks
793 set NeutralInputArray NeutralTowerMerger/eflowTowers
794
795 set VertexInputArray PileUpMerger/vertices
796 # assume perfect pile-up subtraction for tracks with |z| > fZVertexResolution
797 # Z vertex resolution in m
798 set ZVertexResolution 0.0001
799
800 set OutputArray jets
801
802 set UseConstituents 0
803 set ParameterR 0.5
804
805 set JetPTMin 20.0
806}
807
808###########################
809# Jet Pile-Up Subtraction
810###########################
811
812module JetPileUpSubtractor JetPileUpSubtractor {
813 set JetInputArray PileUpJetID/jets
814 set RhoInputArray Rho/rho
815
816 set OutputArray jets
817
818 set JetPTMin 20.0
819}
820
821
822
823##########################
824# tau-tagging
825##########################
826
827
828module TauTagging TauTagging {
829set ParticleInputArray Delphes/allParticles
830set PartonInputArray Delphes/partons
831set JetInputArray JetEnergyScale/jets
832set DeltaR 0.4
833set TauPTMin 15.0
834set TauEtaMax 6
835# add EfficiencyFormula {abs(PDG code)} {efficiency formula as a function of eta and pt}
836add EfficiencyFormula {0} {0.01}
837add EfficiencyFormula {11} {0.005}
838add EfficiencyFormula {15} {0.6}
839}
840
841
842##########################
843# b-tagging
844##########################
845
846module BTagging BTagging { # need to check that this module exists or write it
847set JetInputArray JetEnergyScale/jets
848
849# add EfficiencyFormula {abs(PDG code)} {efficiency formula as a function of eta and pt}
850
851# default efficiency formula (misidentification rate)
852add EfficiencyFormula {0} {0.001}
853add EfficiencyFormula {4} {0.04}
854add EfficiencyFormula {5} {0.75}
855}
856
857##########################
858# c-tagging
859##########################
860
861
862module BTagging CTagging {
863set ParticleInputArray Delphes/allParticles
864set PartonInputArray Delphes/partons
865set JetInputArray JetEnergyScale/jets
866
867set DeltaR 0.4
868set BPTMin 30.0
869set BEtaMax 6.0
870
871# add EfficiencyFormula {abs(PDG code)} {efficiency formula as a function of eta and pt}
872add EfficiencyFormula {0} {0.01}
873add EfficiencyFormula {5} {0.10}
874add EfficiencyFormula {4} {0.25}
875}
876
877#####################################################
878# Find uniquely identified photons/electrons/tau/jets
879#####################################################
880
881module UniqueObjectFinder UniqueObjectFinder {
882# earlier arrays take precedence over later ones
883# add InputArray InputArray OutputArray
884add InputArray MuonIsolation/muons muons
885add InputArray ElectronIsolation/electrons electrons
886add InputArray PhotonIsolation/photons photons
887add InputArray JetEnergyScale/jets jets
888}
889
890##################
891# ROOT tree writer
892##################
893
894module TreeWriter TreeWriter {
895# add Branch InputArray BranchName BranchClass
896
897#my
898#add Branch TrackMerger/tracks Track Track
899add Branch TowerMerger/towers Tower Tower
900add Branch ImpactParameterSmearing/tracks TrackWithIPSmearing Track
901#my
902#add Branch TrackPileUpSubtractor/tracksPV TrackPV Track
903add Branch TrackPileUpSubtractor/tracks TrackPV Track
904#add Branch EFlowMerger/eflow PFO Eflow
905#
906add Branch Delphes/allParticles Particle GenParticle
907add Branch GenJetFinder/jets GenJet Jet
908
909add Branch ChargedHadronMomentumSmearing/chargedHadrons ChargedHadron Track
910add Branch Hcal/eflowNeutralHadrons NeutralHadron Tower
911add Branch UniqueObjectFinder/photons Photon Photon
912
913#my
914#add Branch Calorimeter/eflowTracks EFlowTrack Track
915add Branch Ecal/eflowPhotons EFlowPhoton Tower
916
917#add Branch Calorimeter/eflowNeutralHadrons EFlowNeutralHadron Tower
918#
919add Branch GenJetFinder/jets GenJet Jet
920add Branch GenMissingET/momentum GenMissingET MissingET
921
922
923add Branch UniqueObjectFinder/electrons Electron Electron
924add Branch UniqueObjectFinder/muons Muon Muon
925add Branch UniqueObjectFinder/jets Jet Jet
926#add Branch JetEnergyScale/jets Jet Jet
927add Branch MissingET/momentum MissingET MissingET
928add Branch ScalarHT/energy ScalarHT ScalarHT
929add Branch Rho/rho Rho Rho
930add Branch PileUpMerger/vertices Vertex Vertex
931}
932
933
934