Fork me on GitHub

source: git/cards/delphes_card_ILD.tcl@ 933e560

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

replace TowerMerger by Calorimeter for validation

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