Fork me on GitHub

source: git/cards/delphes_card_ILD.tcl@ 31def62

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

"output from ILD card convertable by root2lhco"

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