Fork me on GitHub

source: git/cards/delphes_card_ATLAS.tcl@ 00e8dca

ImprovedOutputFile Timing dual_readout llp
Last change on this file since 00e8dca was 934d037, checked in by Pavel Demin <pavel.demin@…>, 9 years ago

replace ElectronEnergySmearing with ElectronMomentumSmearing and add ElectronFilter

  • Property mode set to 100644
File size: 18.0 KB
RevLine 
[d7d2da3]1#######################################
2# Order of execution of various modules
3#######################################
4
5set ExecutionPath {
6 ParticlePropagator
7
8 ChargedHadronTrackingEfficiency
9 ElectronTrackingEfficiency
10 MuonTrackingEfficiency
11
12 ChargedHadronMomentumSmearing
[934d037]13 ElectronMomentumSmearing
[d7d2da3]14 MuonMomentumSmearing
15
16 TrackMerger
17 Calorimeter
18 EFlowMerger
19
20 PhotonEfficiency
21 PhotonIsolation
22
[934d037]23 ElectronFilter
[d7d2da3]24 ElectronEfficiency
25 ElectronIsolation
26
27 MuonEfficiency
28 MuonIsolation
29
30 MissingET
31
[be2222c]32 NeutrinoFilter
[d7d2da3]33 GenJetFinder
34 FastJetFinder
35
[3731158]36 JetEnergyScale
[6153fb0]37
38 JetFlavorAssociation
[d7d2da3]39
40 BTagging
41 TauTagging
42
43 UniqueObjectFinder
44
45 ScalarHT
46
47 TreeWriter
48}
49
50#################################
51# Propagate particles in cylinder
52#################################
53
54module ParticlePropagator ParticlePropagator {
55 set InputArray Delphes/stableParticles
56
57 set OutputArray stableParticles
58 set ChargedHadronOutputArray chargedHadrons
59 set ElectronOutputArray electrons
60 set MuonOutputArray muons
61
62 # radius of the magnetic field coverage, in m
63 set Radius 1.15
64 # half-length of the magnetic field coverage, in m
65 set HalfLength 3.51
66
67 # magnetic field
68 set Bz 2.0
69}
70
71####################################
72# Charged hadron tracking efficiency
73####################################
74
75module Efficiency ChargedHadronTrackingEfficiency {
76 set InputArray ParticlePropagator/chargedHadrons
77 set OutputArray chargedHadrons
78
79 # add EfficiencyFormula {efficiency formula as a function of eta and pt}
80
81 # tracking efficiency formula for charged hadrons
[a2983ec]82 set EfficiencyFormula { (pt <= 0.1) * (0.00) +
83 (abs(eta) <= 1.5) * (pt > 0.1 && pt <= 1.0) * (0.70) +
84 (abs(eta) <= 1.5) * (pt > 1.0) * (0.95) +
85 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 0.1 && pt <= 1.0) * (0.60) +
86 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 1.0) * (0.85) +
[d7d2da3]87 (abs(eta) > 2.5) * (0.00)}
88}
89
90##############################
91# Electron tracking efficiency
92##############################
93
94module Efficiency ElectronTrackingEfficiency {
95 set InputArray ParticlePropagator/electrons
96 set OutputArray electrons
97
98 # set EfficiencyFormula {efficiency formula as a function of eta and pt}
99
100 # tracking efficiency formula for electrons
[a2983ec]101 set EfficiencyFormula { (pt <= 0.1) * (0.00) +
102 (abs(eta) <= 1.5) * (pt > 0.1 && pt <= 1.0) * (0.73) +
103 (abs(eta) <= 1.5) * (pt > 1.0 && pt <= 1.0e2) * (0.95) +
104 (abs(eta) <= 1.5) * (pt > 1.0e2) * (0.99) +
105 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 0.1 && pt <= 1.0) * (0.50) +
106 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 1.0 && pt <= 1.0e2) * (0.83) +
107 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 1.0e2) * (0.90) +
[d7d2da3]108 (abs(eta) > 2.5) * (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
[a2983ec]122 set EfficiencyFormula { (pt <= 0.1) * (0.00) +
123 (abs(eta) <= 1.5) * (pt > 0.1 && pt <= 1.0) * (0.75) +
124 (abs(eta) <= 1.5) * (pt > 1.0) * (0.99) +
125 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 0.1 && pt <= 1.0) * (0.70) +
126 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 1.0) * (0.98) +
[d7d2da3]127 (abs(eta) > 2.5) * (0.00)}
128}
129
130########################################
131# Momentum resolution for charged tracks
132########################################
133
134module MomentumSmearing ChargedHadronMomentumSmearing {
135 set InputArray ChargedHadronTrackingEfficiency/chargedHadrons
136 set OutputArray chargedHadrons
137
138 # set ResolutionFormula {resolution formula as a function of eta and pt}
139
140 # resolution formula for charged hadrons
[934d037]141 set ResolutionFormula { (abs(eta) <= 0.5) * (pt > 0.1) * sqrt(0.06^2 + pt^2*1.3e-3^2) +
142 (abs(eta) > 0.5 && abs(eta) <= 1.5) * (pt > 0.1) * sqrt(0.10^2 + pt^2*1.7e-3^2) +
143 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 0.1) * sqrt(0.25^2 + pt^2*3.1e-3^2)}
[d7d2da3]144}
145
[934d037]146###################################
147# Momentum resolution for electrons
148###################################
[d7d2da3]149
[934d037]150module MomentumSmearing ElectronMomentumSmearing {
[d7d2da3]151 set InputArray ElectronTrackingEfficiency/electrons
152 set OutputArray electrons
153
154 # set ResolutionFormula {resolution formula as a function of eta and energy}
155
[934d037]156 # resolution formula for electrons
157 set ResolutionFormula { (abs(eta) <= 0.5) * (pt > 0.1) * sqrt(0.06^2 + pt^2*1.3e-3^2) +
158 (abs(eta) > 0.5 && abs(eta) <= 1.5) * (pt > 0.1) * sqrt(0.10^2 + pt^2*1.7e-3^2) +
159 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 0.1) * sqrt(0.25^2 + pt^2*3.1e-3^2)}
[d7d2da3]160}
161
162###############################
163# Momentum resolution for muons
164###############################
165
166module MomentumSmearing MuonMomentumSmearing {
167 set InputArray MuonTrackingEfficiency/muons
168 set OutputArray muons
169
170 # set ResolutionFormula {resolution formula as a function of eta and pt}
171
172 # resolution formula for muons
[934d037]173 set ResolutionFormula { (abs(eta) <= 0.5) * (pt > 0.1) * sqrt(0.02^2 + pt^2*2.0e-4^2) +
174 (abs(eta) > 0.5 && abs(eta) <= 1.5) * (pt > 0.1) * sqrt(0.03^2 + pt^2*3.0e-4^2) +
175 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 0.1) * sqrt(0.06^2 + pt^2*6.0e-4^2)}
[d7d2da3]176}
177
178##############
179# Track merger
180##############
181
182module Merger TrackMerger {
183# add InputArray InputArray
184 add InputArray ChargedHadronMomentumSmearing/chargedHadrons
[934d037]185 add InputArray ElectronMomentumSmearing/electrons
[984cd31]186 add InputArray MuonMomentumSmearing/muons
[d7d2da3]187 set OutputArray tracks
188}
189
190#############
191# Calorimeter
192#############
193
194module Calorimeter Calorimeter {
195 set ParticleInputArray ParticlePropagator/stableParticles
196 set TrackInputArray TrackMerger/tracks
197
198 set TowerOutputArray towers
199 set PhotonOutputArray photons
200
201 set EFlowTrackOutputArray eflowTracks
[27bf162]202 set EFlowPhotonOutputArray eflowPhotons
203 set EFlowNeutralHadronOutputArray eflowNeutralHadrons
[d7d2da3]204
[a2983ec]205 set ECalEnergyMin 0.5
206 set HCalEnergyMin 1.0
207
208 set ECalEnergySignificanceMin 1.0
209 set HCalEnergySignificanceMin 1.0
210
211 set SmearTowerCenter true
212
[d7d2da3]213 set pi [expr {acos(-1)}]
214
215 # lists of the edges of each tower in eta and phi
216 # each list starts with the lower edge of the first tower
217 # the list ends with the higher edged of the last tower
218
219 # 10 degrees towers
220 set PhiBins {}
221 for {set i -18} {$i <= 18} {incr i} {
222 add PhiBins [expr {$i * $pi/18.0}]
223 }
224 foreach eta {-3.2 -2.5 -2.4 -2.3 -2.2 -2.1 -2 -1.9 -1.8 -1.7 -1.6 -1.5 -1.4 -1.3 -1.2 -1.1 -1 -0.9 -0.8 -0.7 -0.6 -0.5 -0.4 -0.3 -0.2 -0.1 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 2 2.1 2.2 2.3 2.4 2.5 2.6 3.3} {
225 add EtaPhiBins $eta $PhiBins
226 }
227
228 # 20 degrees towers
229 set PhiBins {}
230 for {set i -9} {$i <= 9} {incr i} {
231 add PhiBins [expr {$i * $pi/9.0}]
232 }
233 foreach eta {-4.9 -4.7 -4.5 -4.3 -4.1 -3.9 -3.7 -3.5 -3.3 -3 -2.8 -2.6 2.8 3 3.2 3.5 3.7 3.9 4.1 4.3 4.5 4.7 4.9} {
234 add EtaPhiBins $eta $PhiBins
235 }
236
237 # default energy fractions {abs(PDG code)} {Fecal Fhcal}
238 add EnergyFraction {0} {0.0 1.0}
239 # energy fractions for e, gamma and pi0
240 add EnergyFraction {11} {1.0 0.0}
241 add EnergyFraction {22} {1.0 0.0}
242 add EnergyFraction {111} {1.0 0.0}
243 # energy fractions for muon, neutrinos and neutralinos
244 add EnergyFraction {12} {0.0 0.0}
245 add EnergyFraction {13} {0.0 0.0}
246 add EnergyFraction {14} {0.0 0.0}
247 add EnergyFraction {16} {0.0 0.0}
248 add EnergyFraction {1000022} {0.0 0.0}
249 add EnergyFraction {1000023} {0.0 0.0}
250 add EnergyFraction {1000025} {0.0 0.0}
251 add EnergyFraction {1000035} {0.0 0.0}
252 add EnergyFraction {1000045} {0.0 0.0}
253 # energy fractions for K0short and Lambda
254 add EnergyFraction {310} {0.3 0.7}
255 add EnergyFraction {3122} {0.3 0.7}
256
257 # set ECalResolutionFormula {resolution formula as a function of eta and energy}
258 # http://arxiv.org/pdf/physics/0608012v1 jinst8_08_s08003
259 # http://villaolmo.mib.infn.it/ICATPP9th_2005/Calorimetry/Schram.p.pdf
260 # http://www.physics.utoronto.ca/~krieger/procs/ComoProceedings.pdf
[a2983ec]261 set ECalResolutionFormula { (abs(eta) <= 3.2) * sqrt(energy^2*0.0017^2 + energy*0.101^2) +
[d7d2da3]262 (abs(eta) > 3.2 && abs(eta) <= 4.9) * sqrt(energy^2*0.0350^2 + energy*0.285^2)}
263
264 # set HCalResolutionFormula {resolution formula as a function of eta and energy}
265 # http://arxiv.org/pdf/hep-ex/0004009v1
266 # http://villaolmo.mib.infn.it/ICATPP9th_2005/Calorimetry/Schram.p.pdf
[a2983ec]267 set HCalResolutionFormula { (abs(eta) <= 1.7) * sqrt(energy^2*0.0302^2 + energy*0.5205^2 + 1.59^2) +
268 (abs(eta) > 1.7 && abs(eta) <= 3.2) * sqrt(energy^2*0.0500^2 + energy*0.706^2) +
[1c8d9db]269 (abs(eta) > 3.2 && abs(eta) <= 4.9) * sqrt(energy^2*0.09420^2 + energy*1.00^2)}
[d7d2da3]270}
271
272####################
273# Energy flow merger
274####################
275
276module Merger EFlowMerger {
277# add InputArray InputArray
278 add InputArray Calorimeter/eflowTracks
[27bf162]279 add InputArray Calorimeter/eflowPhotons
280 add InputArray Calorimeter/eflowNeutralHadrons
[d7d2da3]281 set OutputArray eflow
282}
283
284###################
285# Photon efficiency
286###################
287
288module Efficiency PhotonEfficiency {
[3cac201]289 set InputArray Calorimeter/eflowPhotons
[d7d2da3]290 set OutputArray photons
291
292 # set EfficiencyFormula {efficiency formula as a function of eta and pt}
293
294 # efficiency formula for photons
[a2983ec]295 set EfficiencyFormula { (pt <= 10.0) * (0.00) +
296 (abs(eta) <= 1.5) * (pt > 10.0) * (0.95) +
297 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 10.0) * (0.85) +
[d7d2da3]298 (abs(eta) > 2.5) * (0.00)}
299}
300
301##################
302# Photon isolation
303##################
304
305module Isolation PhotonIsolation {
306 set CandidateInputArray PhotonEfficiency/photons
[fcb7e9c]307 set IsolationInputArray EFlowMerger/eflow
[d7d2da3]308
309 set OutputArray photons
310
311 set DeltaRMax 0.5
312
313 set PTMin 0.5
314
315 set PTRatioMax 0.1
316}
317
[934d037]318#################
319# Electron filter
320#################
321
322module PdgCodeFilter ElectronFilter {
323 set InputArray Calorimeter/eflowTracks
324 set OutputArray electrons
325 set Invert true
326 add PdgCode {11}
327 add PdgCode {-11}
328}
329
[d7d2da3]330#####################
331# Electron efficiency
332#####################
333
334module Efficiency ElectronEfficiency {
[934d037]335 set InputArray ElectronFilter/electrons
[d7d2da3]336 set OutputArray electrons
337
338 # set EfficiencyFormula {efficiency formula as a function of eta and pt}
339
340 # efficiency formula for electrons
[a2983ec]341 set EfficiencyFormula { (pt <= 10.0) * (0.00) +
342 (abs(eta) <= 1.5) * (pt > 10.0) * (0.95) +
343 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 10.0) * (0.85) +
[d7d2da3]344 (abs(eta) > 2.5) * (0.00)}
345}
346
347####################
348# Electron isolation
349####################
350
351module Isolation ElectronIsolation {
352 set CandidateInputArray ElectronEfficiency/electrons
[fcb7e9c]353 set IsolationInputArray EFlowMerger/eflow
[d7d2da3]354
355 set OutputArray electrons
356
357 set DeltaRMax 0.5
358
359 set PTMin 0.5
360
361 set PTRatioMax 0.1
362}
363
364#################
365# Muon efficiency
366#################
367
368module Efficiency MuonEfficiency {
369 set InputArray MuonMomentumSmearing/muons
370 set OutputArray muons
371
372 # set EfficiencyFormula {efficiency as a function of eta and pt}
373
374 # efficiency formula for muons
[a2983ec]375 set EfficiencyFormula { (pt <= 10.0) * (0.00) +
376 (abs(eta) <= 1.5) * (pt > 10.0) * (0.95) +
377 (abs(eta) > 1.5 && abs(eta) <= 2.7) * (pt > 10.0) * (0.85) +
[d7d2da3]378 (abs(eta) > 2.7) * (0.00)}
379}
380
381################
382# Muon isolation
383################
384
385module Isolation MuonIsolation {
386 set CandidateInputArray MuonEfficiency/muons
[fcb7e9c]387 set IsolationInputArray EFlowMerger/eflow
[d7d2da3]388
389 set OutputArray muons
390
391 set DeltaRMax 0.5
392
393 set PTMin 0.5
394
395 set PTRatioMax 0.1
396}
397
398###################
399# Missing ET merger
400###################
401
402module Merger MissingET {
403# add InputArray InputArray
[27bf162]404 add InputArray EFlowMerger/eflow
[d7d2da3]405 set MomentumOutputArray momentum
406}
407
408##################
409# Scalar HT merger
410##################
411
412module Merger ScalarHT {
413# add InputArray InputArray
414 add InputArray UniqueObjectFinder/jets
415 add InputArray UniqueObjectFinder/electrons
416 add InputArray UniqueObjectFinder/photons
[3731158]417 add InputArray UniqueObjectFinder/muons
[d7d2da3]418 set EnergyOutputArray energy
419}
420
[be2222c]421
422#####################
423# Neutrino Filter
424#####################
425
426module PdgCodeFilter NeutrinoFilter {
[a2983ec]427
[be2222c]428 set InputArray Delphes/stableParticles
429 set OutputArray filteredParticles
430
431 set PTMin 0.0
[a2983ec]432
[be2222c]433 add PdgCode {12}
434 add PdgCode {14}
435 add PdgCode {16}
436 add PdgCode {-12}
437 add PdgCode {-14}
438 add PdgCode {-16}
439
440}
441
[d7d2da3]442#####################
443# MC truth jet finder
444#####################
445
446module FastJetFinder GenJetFinder {
[be2222c]447 set InputArray NeutrinoFilter/filteredParticles
[d7d2da3]448
449 set OutputArray jets
450
451 # algorithm: 1 CDFJetClu, 2 MidPoint, 3 SIScone, 4 kt, 5 Cambridge/Aachen, 6 antikt
452 set JetAlgorithm 6
[3731158]453 set ParameterR 0.6
[d7d2da3]454
455 set JetPTMin 20.0
456}
457
[be2222c]458
[d7d2da3]459############
460# Jet finder
461############
462
463module FastJetFinder FastJetFinder {
[3731158]464 set InputArray Calorimeter/towers
[d7d2da3]465
466 set OutputArray jets
467
468 # algorithm: 1 CDFJetClu, 2 MidPoint, 3 SIScone, 4 kt, 5 Cambridge/Aachen, 6 antikt
469 set JetAlgorithm 6
[3731158]470 set ParameterR 0.6
[d7d2da3]471
472 set JetPTMin 20.0
473}
474
[3731158]475##################
476# Jet Energy Scale
477##################
[d7d2da3]478
[3731158]479module EnergyScale JetEnergyScale {
480 set InputArray FastJetFinder/jets
481 set OutputArray jets
[d7d2da3]482
[a2983ec]483 # scale formula for jets
[35b9204]484 set ScaleFormula { sqrt( (3.0 - 0.2*(abs(eta)))^2 / pt + 1.0 ) }
[d7d2da3]485}
486
[6153fb0]487########################
488# Jet Flavor Association
489########################
490
491module JetFlavorAssociation JetFlavorAssociation {
492
493 set PartonInputArray Delphes/partons
494 set ParticleInputArray Delphes/allParticles
495 set ParticleLHEFInputArray Delphes/allParticlesLHEF
496 set JetInputArray JetEnergyScale/jets
497
498 set DeltaR 0.5
499 set PartonPTMin 1.0
500 set PartonEtaMax 2.5
501
502}
503
[d7d2da3]504###########
505# b-tagging
506###########
507
508module BTagging BTagging {
[fcb7e9c]509 set JetInputArray JetEnergyScale/jets
[d7d2da3]510
[264bf40]511 set BitNumber 0
512
[d7d2da3]513 # add EfficiencyFormula {abs(PDG code)} {efficiency formula as a function of eta and pt}
514 # PDG code = the highest PDG code of a quark or gluon inside DeltaR cone around jet axis
515 # gluon's PDG code has the lowest priority
516
517 # default efficiency formula (misidentification rate)
518 add EfficiencyFormula {0} {0.001}
[3731158]519
[d7d2da3]520 # efficiency formula for c-jets (misidentification rate)
[a2983ec]521 add EfficiencyFormula {4} { (pt <= 15.0) * (0.000) +
522 (abs(eta) <= 1.2) * (pt > 15.0) * (0.2*tanh(pt*0.03 - 0.4)) +
523 (abs(eta) > 1.2 && abs(eta) <= 2.5) * (pt > 15.0) * (0.1*tanh(pt*0.03 - 0.4)) +
[3731158]524 (abs(eta) > 2.5) * (0.000)}
525
[d7d2da3]526 # efficiency formula for b-jets
[a2983ec]527 add EfficiencyFormula {5} { (pt <= 15.0) * (0.000) +
528 (abs(eta) <= 1.2) * (pt > 15.0) * (0.5*tanh(pt*0.03 - 0.4)) +
529 (abs(eta) > 1.2 && abs(eta) <= 2.5) * (pt > 15.0) * (0.4*tanh(pt*0.03 - 0.4)) +
[3731158]530 (abs(eta) > 2.5) * (0.000)}
[d7d2da3]531}
532
[6153fb0]533#############
534# tau-tagging
535#############
536
[d7d2da3]537module TauTagging TauTagging {
538 set ParticleInputArray Delphes/allParticles
539 set PartonInputArray Delphes/partons
[fcb7e9c]540 set JetInputArray JetEnergyScale/jets
[d7d2da3]541
542 set DeltaR 0.5
543
544 set TauPTMin 1.0
545
546 set TauEtaMax 2.5
547
548 # add EfficiencyFormula {abs(PDG code)} {efficiency formula as a function of eta and pt}
549
550 # default efficiency formula (misidentification rate)
551 add EfficiencyFormula {0} {0.001}
552 # efficiency formula for tau-jets
553 add EfficiencyFormula {15} {0.4}
554}
555
556#####################################################
557# Find uniquely identified photons/electrons/tau/jets
558#####################################################
559
560module UniqueObjectFinder UniqueObjectFinder {
561# earlier arrays take precedence over later ones
562# add InputArray InputArray OutputArray
563 add InputArray PhotonIsolation/photons photons
564 add InputArray ElectronIsolation/electrons electrons
[3731158]565 add InputArray MuonIsolation/muons muons
[fcb7e9c]566 add InputArray JetEnergyScale/jets jets
[d7d2da3]567}
568
569##################
570# ROOT tree writer
571##################
572
[27bf162]573# tracks, towers and eflow objects are not stored by default in the output.
[282f591]574# if needed (for jet constituent or other studies), uncomment the relevant
575# "add Branch ..." lines.
[27bf162]576
[d7d2da3]577module TreeWriter TreeWriter {
578# add Branch InputArray BranchName BranchClass
579 add Branch Delphes/allParticles Particle GenParticle
[27bf162]580
[f2d7d0c]581 add Branch TrackMerger/tracks Track Track
582 add Branch Calorimeter/towers Tower Tower
[282f591]583
[f2d7d0c]584 add Branch Calorimeter/eflowTracks EFlowTrack Track
585 add Branch Calorimeter/eflowPhotons EFlowPhoton Tower
586 add Branch Calorimeter/eflowNeutralHadrons EFlowNeutralHadron Tower
[282f591]587
[d7d2da3]588 add Branch GenJetFinder/jets GenJet Jet
589 add Branch UniqueObjectFinder/jets Jet Jet
590 add Branch UniqueObjectFinder/electrons Electron Electron
591 add Branch UniqueObjectFinder/photons Photon Photon
[3731158]592 add Branch UniqueObjectFinder/muons Muon Muon
[d7d2da3]593 add Branch MissingET/momentum MissingET MissingET
594 add Branch ScalarHT/energy ScalarHT ScalarHT
595}
596
Note: See TracBrowser for help on using the repository browser.