Fork me on GitHub

source: git/cards/delphes_card_ILD.tcl@ 35df584

ImprovedOutputFile Timing dual_readout llp
Last change on this file since 35df584 was 16aa8a3, checked in by Michele Selvaggi <michele.selvaggi@…>, 9 years ago

replace IP smearing formula with analytic

  • Property mode set to 100644
File size: 13.2 KB
Line 
1# based on arXiv:1306.6329
2
3#######################################
4# Order of execution of various modules
5#######################################
6
7set ExecutionPath {
8 ParticlePropagator
9
10 ChargedHadronTrackingEfficiency
11 ElectronTrackingEfficiency
12 MuonTrackingEfficiency
13
14 ChargedHadronMomentumSmearing
15 ElectronMomentumSmearing
16 MuonMomentumSmearing
17
18 TrackMerger
19 AngularSmearing
20 ImpactParameterSmearing
21
22 ECal
23 HCal
24
25 ElectronFilter
26
27 TowerMerger
28 EFlowMerger
29
30 MissingET
31
32 NeutrinoFilter
33 GenJetFinder
34 FastJetFinder
35
36 JetEnergyScale
37
38 TrackCountingBTagging
39 TauTagging
40
41 ScalarHT
42
43 TreeWriter
44}
45
46#################################
47# Propagate particles in cylinder
48#################################
49
50module ParticlePropagator ParticlePropagator {
51 set InputArray Delphes/stableParticles
52
53 set OutputArray stableParticles
54 set ChargedHadronOutputArray chargedHadrons
55 set ElectronOutputArray electrons
56 set MuonOutputArray muons
57
58 # radius of the magnetic field coverage, in m
59 set Radius 1.8
60 # half-length of the magnetic field coverage, in m
61 set HalfLength 2.4
62
63 # magnetic field
64 set Bz 3.5
65}
66
67####################################
68# Charged hadron tracking efficiency
69####################################
70
71module Efficiency ChargedHadronTrackingEfficiency {
72 set InputArray ParticlePropagator/chargedHadrons
73 set OutputArray chargedHadrons
74
75 # add EfficiencyFormula {efficiency formula as a function of eta and pt}
76
77 # tracking efficiency formula for charged hadrons
78 set EfficiencyFormula { (pt <= 0.1) * (0.00) +
79 (abs(eta) <= 2.4) * (pt > 0.1) * (0.99) +
80 (abs(eta) > 2.4) * (0.00)}
81}
82
83##############################
84# Electron tracking efficiency
85##############################
86
87module Efficiency ElectronTrackingEfficiency {
88 set InputArray ParticlePropagator/electrons
89 set OutputArray electrons
90
91 # set EfficiencyFormula {efficiency formula as a function of eta and pt}
92
93 # tracking efficiency formula for electrons
94 set EfficiencyFormula { (pt <= 0.1) * (0.00) +
95 (abs(eta) <= 2.4) * (pt > 0.1) * (0.99) +
96 (abs(eta) > 2.4) * (0.00)}
97}
98
99##########################
100# Muon tracking efficiency
101##########################
102
103module Efficiency MuonTrackingEfficiency {
104 set InputArray ParticlePropagator/muons
105 set OutputArray muons
106
107 # set EfficiencyFormula {efficiency formula as a function of eta and pt}
108
109 # tracking efficiency formula for muons
110 set EfficiencyFormula { (pt <= 0.1) * (0.00) +
111 (abs(eta) <= 2.4) * (pt > 0.1) * (0.99) +
112 (abs(eta) > 2.4) * (0.00)}
113}
114
115########################################
116# Momentum resolution for charged tracks
117########################################
118
119module MomentumSmearing ChargedHadronMomentumSmearing {
120 set InputArray ChargedHadronTrackingEfficiency/chargedHadrons
121 set OutputArray chargedHadrons
122
123 # set ResolutionFormula {resolution formula as a function of eta and pt}
124
125 # resolution formula for charged hadrons
126 set ResolutionFormula { (abs(eta) <= 1.0) * sqrt(0.001^2 + pt^2*1.e-5^2) +
127 (abs(eta) > 1.0 && abs(eta) <= 2.4) * sqrt(0.01^2 + pt^2*1.e-4^2)}
128
129
130}
131
132###################################
133# Momentum resolution for electrons
134###################################
135
136module MomentumSmearing ElectronMomentumSmearing {
137 set InputArray ElectronTrackingEfficiency/electrons
138 set OutputArray electrons
139
140 # set ResolutionFormula {resolution formula as a function of eta and energy}
141
142 # resolution formula for charged hadrons
143 set ResolutionFormula { (abs(eta) <= 1.0) * sqrt(0.001^2 + pt^2*1.e-5^2) +
144 (abs(eta) > 1.0 && abs(eta) <= 2.4) * sqrt(0.01^2 + pt^2*1.e-4^2)}
145}
146
147###############################
148# Momentum resolution for muons
149###############################
150
151module MomentumSmearing MuonMomentumSmearing {
152 set InputArray MuonTrackingEfficiency/muons
153 set OutputArray muons
154
155 # set ResolutionFormula {resolution formula as a function of eta and pt}
156
157 # resolution formula for charged hadrons
158 set ResolutionFormula { (abs(eta) <= 1.0) * sqrt(0.001^2 + pt^2*1.e-5^2) +
159 (abs(eta) > 1.0 && abs(eta) <= 2.4) * sqrt(0.01^2 + pt^2*1.e-4^2)}
160
161}
162
163##############
164# Track merger
165##############
166
167module Merger TrackMerger {
168# add InputArray InputArray
169 add InputArray ChargedHadronMomentumSmearing/chargedHadrons
170 add InputArray ElectronMomentumSmearing/electrons
171 add InputArray MuonMomentumSmearing/muons
172 set OutputArray tracks
173}
174
175
176########################
177# Track angular smearing
178########################
179
180module AngularSmearing AngularSmearing {
181 set InputArray TrackMerger/tracks
182 set OutputArray tracks
183
184
185 # angular smearing in eta formula as a function of pt and eta
186 set EtaResolutionFormula { 0.001 }
187
188 # angular smearing in phi formula as a function of pt and eta
189 set PhiResolutionFormula { 0.001 }
190
191}
192
193#################################
194# Track impact parameter smearing
195#################################
196
197module ImpactParameterSmearing ImpactParameterSmearing {
198 set InputArray AngularSmearing/tracks
199 set OutputArray tracks
200
201
202 # absolute impact parameter smearing formula (in mm) as a function of pt and eta
203 set ResolutionFormula {0.010/sqrt(pt)}
204}
205
206#############
207# ECAL
208#############
209
210module SimpleCalorimeter ECal {
211 set ParticleInputArray ParticlePropagator/stableParticles
212 set TrackInputArray ImpactParameterSmearing/tracks
213
214 set TowerOutputArray ecalTowers
215 set EFlowTrackOutputArray eflowTracks
216 set EFlowTowerOutputArray eflowPhotons
217
218 set IsEcal true
219
220 set EnergyMin 0.5
221 set EnergySignificanceMin 1.0
222
223 set SmearTowerCenter true
224
225 set pi [expr {acos(-1)}]
226
227 # lists of the edges of each tower in eta and phi
228 # each list starts with the lower edge of the first tower
229 # the list ends with the higher edged of the last tower
230
231 # 0.5 degree towers (5x5 mm^2)
232 set PhiBins {}
233 for {set i -360} {$i <= 360} {incr i} {
234 add PhiBins [expr {$i * $pi/360.0}]
235 }
236
237 # 0.01 unit in eta up to eta = 2.5
238 for {set i -500} {$i <= 500} {incr i} {
239 set eta [expr {$i * 0.005}]
240 add EtaPhiBins $eta $PhiBins
241 }
242
243 # default energy fractions {abs(PDG code)} {fraction of energy deposited in ECAL}
244
245 add EnergyFraction {0} {0.0}
246 # energy fractions for e, gamma and pi0
247 add EnergyFraction {11} {1.0}
248 add EnergyFraction {22} {1.0}
249 add EnergyFraction {111} {1.0}
250 # energy fractions for muon, neutrinos and neutralinos
251 add EnergyFraction {12} {0.0}
252 add EnergyFraction {13} {0.0}
253 add EnergyFraction {14} {0.0}
254 add EnergyFraction {16} {0.0}
255 add EnergyFraction {1000022} {0.0}
256 add EnergyFraction {1000023} {0.0}
257 add EnergyFraction {1000025} {0.0}
258 add EnergyFraction {1000035} {0.0}
259 add EnergyFraction {1000045} {0.0}
260 # energy fractions for K0short and Lambda
261 add EnergyFraction {310} {0.3}
262 add EnergyFraction {3122} {0.3}
263
264 # set ECalResolutionFormula {resolution formula as a function of eta and energy}
265
266 set ResolutionFormula { (abs(eta) <= 3.0) * sqrt(energy^2*0.01^2 + energy*0.15^2) }
267
268}
269
270#############
271# HCAL
272#############
273
274module SimpleCalorimeter HCal {
275 set ParticleInputArray ParticlePropagator/stableParticles
276 set TrackInputArray ECal/eflowTracks
277
278 set TowerOutputArray hcalTowers
279 set EFlowTrackOutputArray eflowTracks
280 set EFlowTowerOutputArray eflowNeutralHadrons
281
282 set IsEcal false
283
284 set EnergyMin 1.0
285 set EnergySignificanceMin 1.0
286
287 set SmearTowerCenter true
288
289 set pi [expr {acos(-1)}]
290
291 # lists of the edges of each tower in eta and phi
292 # each list starts with the lower edge of the first tower
293 # the list ends with the higher edged of the last tower
294
295
296 # 6 degree towers
297 set PhiBins {}
298 for {set i -60} {$i <= 60} {incr i} {
299 add PhiBins [expr {$i * $pi/60.0}]
300 }
301
302 # 0.5 unit in eta up to eta = 3
303 for {set i -60} {$i <= 60} {incr i} {
304 set eta [expr {$i * 0.05}]
305 add EtaPhiBins $eta $PhiBins
306 }
307
308
309 # default energy fractions {abs(PDG code)} {Fecal Fhcal}
310 add EnergyFraction {0} {1.0}
311 # energy fractions for e, gamma and pi0
312 add EnergyFraction {11} {0.0}
313 add EnergyFraction {22} {0.0}
314 add EnergyFraction {111} {0.0}
315 # energy fractions for muon, neutrinos and neutralinos
316 add EnergyFraction {12} {0.0}
317 add EnergyFraction {13} {0.0}
318 add EnergyFraction {14} {0.0}
319 add EnergyFraction {16} {0.0}
320 add EnergyFraction {1000022} {0.0}
321 add EnergyFraction {1000023} {0.0}
322 add EnergyFraction {1000025} {0.0}
323 add EnergyFraction {1000035} {0.0}
324 add EnergyFraction {1000045} {0.0}
325 # energy fractions for K0short and Lambda
326 add EnergyFraction {310} {0.7}
327 add EnergyFraction {3122} {0.7}
328
329 # set HCalResolutionFormula {resolution formula as a function of eta and energy}
330
331 set ResolutionFormula { (abs(eta) <= 3.0) * sqrt(energy^2*0.015^2 + energy*0.50^2)}
332
333}
334
335#################
336# Electron filter
337#################
338
339module PdgCodeFilter ElectronFilter {
340 set InputArray HCal/eflowTracks
341 set OutputArray electrons
342 set Invert true
343 add PdgCode {11}
344 add PdgCode {-11}
345}
346
347###################################################
348# Tower Merger (in case not using e-flow algorithm)
349###################################################
350
351module Merger TowerMerger {
352# add InputArray InputArray
353 add InputArray ECal/ecalTowers
354 add InputArray HCal/hcalTowers
355 set OutputArray towers
356}
357
358####################
359# Energy flow merger
360####################
361
362module Merger EFlowMerger {
363# add InputArray InputArray
364 add InputArray HCal/eflowTracks
365 add InputArray ECal/eflowPhotons
366 add InputArray HCal/eflowNeutralHadrons
367 set OutputArray eflow
368}
369
370
371###################
372# Missing ET merger
373###################
374
375module Merger MissingET {
376# add InputArray InputArray
377 add InputArray EFlowMerger/eflow
378 set MomentumOutputArray momentum
379}
380
381
382##################
383# Scalar HT merger
384##################
385
386module Merger ScalarHT {
387# add InputArray InputArray
388 add InputArray EFlowMerger/eflow
389 set EnergyOutputArray energy
390}
391
392#################
393# Neutrino Filter
394#################
395
396module PdgCodeFilter NeutrinoFilter {
397
398 set InputArray Delphes/stableParticles
399 set OutputArray filteredParticles
400
401 set PTMin 0.0
402
403 add PdgCode {12}
404 add PdgCode {14}
405 add PdgCode {16}
406 add PdgCode {-12}
407 add PdgCode {-14}
408 add PdgCode {-16}
409
410}
411
412
413#####################
414# MC truth jet finder
415#####################
416
417module FastJetFinder GenJetFinder {
418 set InputArray NeutrinoFilter/filteredParticles
419
420 set OutputArray jets
421
422 # algorithm: 1 CDFJetClu, 2 MidPoint, 3 SIScone, 4 kt, 5 Cambridge/Aachen, 6 antikt
423 set JetAlgorithm 6
424 set ParameterR 0.5
425
426 set JetPTMin 20.0
427}
428
429############
430# Jet finder
431############
432
433module FastJetFinder FastJetFinder {
434# set InputArray TowerMerger/towers
435 set InputArray EFlowMerger/eflow
436
437 set OutputArray jets
438
439 # algorithm: 1 CDFJetClu, 2 MidPoint, 3 SIScone, 4 kt, 5 Cambridge/Aachen, 6 antikt
440 set JetAlgorithm 6
441 set ParameterR 0.5
442
443 set JetPTMin 20.0
444}
445
446##################
447# Jet Energy Scale
448##################
449
450module EnergyScale JetEnergyScale {
451 set InputArray FastJetFinder/jets
452 set OutputArray jets
453
454 # scale formula for jets
455 set ScaleFormula {1.00}
456}
457
458##########################
459# Track Counting b-tagging
460##########################
461
462module TrackCountingBTagging TrackCountingBTagging {
463 set TrackInputArray ImpactParameterSmearing/tracks
464 set JetInputArray JetEnergyScale/jets
465
466 set BitNumber 0
467
468 # maximum distance between jet and track
469 set DeltaR 0.3
470
471 # minimum pt of tracks
472 set TrackPTMin 1.0
473
474 # minimum transverse impact parameter (in mm)
475 set TrackIPMax 2.0
476
477 # minimum ip significance for the track to be counted
478 set SigMin 6.5
479
480 # minimum number of tracks (high efficiency n=2, high purity n=3)
481 set Ntracks 3
482}
483
484
485#############
486# tau-tagging
487#############
488
489
490module TauTagging TauTagging {
491 set ParticleInputArray Delphes/allParticles
492 set PartonInputArray Delphes/partons
493 set JetInputArray JetEnergyScale/jets
494
495 set DeltaR 0.5
496
497 set TauPTMin 1.0
498
499 set TauEtaMax 4.0
500
501 # add EfficiencyFormula {abs(PDG code)} {efficiency formula as a function of eta and pt}
502
503 # default efficiency formula (misidentification rate)
504 add EfficiencyFormula {0} {0.001}
505 # efficiency formula for tau-jets
506 add EfficiencyFormula {15} {0.4}
507}
508
509##################
510# ROOT tree writer
511##################
512
513module TreeWriter TreeWriter {
514# add Branch InputArray BranchName BranchClass
515 add Branch Delphes/allParticles Particle GenParticle
516 add Branch GenJetFinder/jets GenJet Jet
517
518 add Branch ChargedHadronMomentumSmearing/chargedHadrons ChargedHadron Track
519 add Branch HCal/eflowNeutralHadrons NeutralHadron Tower
520 add Branch ECal/eflowPhotons Photon Photon
521
522 add Branch ElectronFilter/electrons Electron Electron
523 add Branch MuonMomentumSmearing/muons Muon Muon
524 add Branch JetEnergyScale/jets Jet Jet
525 add Branch MissingET/momentum MissingET MissingET
526 add Branch ScalarHT/energy ScalarHT ScalarHT
527}
528
Note: See TracBrowser for help on using the repository browser.