Fork me on GitHub

source: git/cards/delphes_card_ILD.tcl@ 93b4a8c

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

removed leptons from isolation

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