Fork me on GitHub

source: git/cards/delphes_card_ATLAS_PileUp.tcl@ dda357d

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

put formula instead of constant value for z vertex res.

  • Property mode set to 100644
File size: 21.0 KB
RevLine 
[89c5be4]1#######################################
2# Order of execution of various modules
3#######################################
4
5set ExecutionPath {
6
7 PileUpMerger
8 ParticlePropagator
9
10 ChargedHadronTrackingEfficiency
11 ElectronTrackingEfficiency
12 MuonTrackingEfficiency
13
14 ChargedHadronMomentumSmearing
[934d037]15 ElectronMomentumSmearing
[89c5be4]16 MuonMomentumSmearing
17
18 TrackMerger
19 Calorimeter
[934d037]20 ElectronFilter
[89c5be4]21 TrackPileUpSubtractor
[27bf162]22 NeutralTowerMerger
[6fb1a5d]23 EFlowMergerAllTracks
[89c5be4]24 EFlowMerger
[93b4a8c]25 EFlowFilter
26
[be2222c]27 NeutrinoFilter
[89c5be4]28 GenJetFinder
[59d6164]29 GenMissingET
30
[89c5be4]31 Rho
32 FastJetFinder
33 JetPileUpSubtractor
34
35 JetEnergyScale
36
37 PhotonEfficiency
38 PhotonIsolation
39
40 ElectronEfficiency
41 ElectronIsolation
42
43 MuonEfficiency
44 MuonIsolation
[59d6164]45
[89c5be4]46 MissingET
[6153fb0]47
48 JetFlavorAssociation
[89c5be4]49
50 BTagging
51 TauTagging
52
53 UniqueObjectFinder
54
55 ScalarHT
56
57 TreeWriter
58}
59
60###############
61# PileUp Merger
62###############
63
64module PileUpMerger PileUpMerger {
65 set InputArray Delphes/stableParticles
66
[fb21bc8]67 set ParticleOutputArray stableParticles
68 set VertexOutputArray vertices
[89c5be4]69
70 # pre-generated minbias input file
71 set PileUpFile MinBias.pileup
72
73 # average expected pile up
74 set MeanPileUp 50
[282f591]75
[0a6c72b]76 # maximum spread in the beam direction in m
77 set ZVertexSpread 0.25
[282f591]78
[22dc7fd]79 # maximum spread in time in s
[0a6c72b]80 set TVertexSpread 800E-12
[22dc7fd]81
82 # vertex smearing formula f(z,t) (z,t need to be respectively given in m,s)
[0a6c72b]83 set VertexDistributionFormula {exp(-(t^2/160e-12^2/2))*exp(-(z^2/0.053^2/2))}
[22dc7fd]84
85
[89c5be4]86}
87
88#################################
89# Propagate particles in cylinder
90#################################
91
92module ParticlePropagator ParticlePropagator {
93 set InputArray PileUpMerger/stableParticles
94
95 set OutputArray stableParticles
96 set ChargedHadronOutputArray chargedHadrons
97 set ElectronOutputArray electrons
98 set MuonOutputArray muons
99
100 # radius of the magnetic field coverage, in m
101 set Radius 1.15
102 # half-length of the magnetic field coverage, in m
103 set HalfLength 3.51
104
105 # magnetic field
106 set Bz 2.0
107}
108
109####################################
110# Charged hadron tracking efficiency
111####################################
112
113module Efficiency ChargedHadronTrackingEfficiency {
114 set InputArray ParticlePropagator/chargedHadrons
115 set OutputArray chargedHadrons
116
117 # add EfficiencyFormula {efficiency formula as a function of eta and pt}
118
119 # tracking efficiency formula for charged hadrons
[a2983ec]120 set EfficiencyFormula { (pt <= 0.1) * (0.00) +
121 (abs(eta) <= 1.5) * (pt > 0.1 && pt <= 1.0) * (0.70) +
122 (abs(eta) <= 1.5) * (pt > 1.0) * (0.95) +
123 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 0.1 && pt <= 1.0) * (0.60) +
124 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 1.0) * (0.85) +
[89c5be4]125 (abs(eta) > 2.5) * (0.00)}
126}
127
128##############################
129# Electron tracking efficiency
130##############################
131
132module Efficiency ElectronTrackingEfficiency {
133 set InputArray ParticlePropagator/electrons
134 set OutputArray electrons
135
136 # set EfficiencyFormula {efficiency formula as a function of eta and pt}
137
138 # tracking efficiency formula for electrons
[a2983ec]139 set EfficiencyFormula { (pt <= 0.1) * (0.00) +
140 (abs(eta) <= 1.5) * (pt > 0.1 && pt <= 1.0) * (0.73) +
141 (abs(eta) <= 1.5) * (pt > 1.0 && pt <= 1.0e2) * (0.95) +
142 (abs(eta) <= 1.5) * (pt > 1.0e2) * (0.99) +
143 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 0.1 && pt <= 1.0) * (0.50) +
144 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 1.0 && pt <= 1.0e2) * (0.83) +
145 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 1.0e2) * (0.90) +
[89c5be4]146 (abs(eta) > 2.5) * (0.00)}
147}
148
149##########################
150# Muon tracking efficiency
151##########################
152
153module Efficiency MuonTrackingEfficiency {
154 set InputArray ParticlePropagator/muons
155 set OutputArray muons
156
157 # set EfficiencyFormula {efficiency formula as a function of eta and pt}
158
159 # tracking efficiency formula for muons
[a2983ec]160 set EfficiencyFormula { (pt <= 0.1) * (0.00) +
161 (abs(eta) <= 1.5) * (pt > 0.1 && pt <= 1.0) * (0.75) +
162 (abs(eta) <= 1.5) * (pt > 1.0) * (0.99) +
163 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 0.1 && pt <= 1.0) * (0.70) +
164 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 1.0) * (0.98) +
[89c5be4]165 (abs(eta) > 2.5) * (0.00)}
166}
167
168########################################
169# Momentum resolution for charged tracks
170########################################
171
172module MomentumSmearing ChargedHadronMomentumSmearing {
173 set InputArray ChargedHadronTrackingEfficiency/chargedHadrons
174 set OutputArray chargedHadrons
175
176 # set ResolutionFormula {resolution formula as a function of eta and pt}
177
178 # resolution formula for charged hadrons
[df5084b]179 # based on arXiv:1405.6569
[a0c065d]180 set ResolutionFormula { (abs(eta) <= 0.5) * (pt > 0.1) * sqrt(0.06^2 + pt^2*1.3e-3^2) +
181 (abs(eta) > 0.5 && abs(eta) <= 1.5) * (pt > 0.1) * sqrt(0.10^2 + pt^2*1.7e-3^2) +
182 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 0.1) * sqrt(0.25^2 + pt^2*3.1e-3^2)}
[89c5be4]183}
184
[934d037]185###################################
186# Momentum resolution for electrons
187###################################
[89c5be4]188
[934d037]189module MomentumSmearing ElectronMomentumSmearing {
[89c5be4]190 set InputArray ElectronTrackingEfficiency/electrons
191 set OutputArray electrons
192
193 # set ResolutionFormula {resolution formula as a function of eta and energy}
194
[934d037]195 # resolution formula for electrons
[df5084b]196 # based on arXiv:1405.6569
197 set ResolutionFormula { (abs(eta) <= 0.5) * (pt > 0.1) * sqrt(0.03^2 + pt^2*1.3e-3^2) +
198 (abs(eta) > 0.5 && abs(eta) <= 1.5) * (pt > 0.1) * sqrt(0.05^2 + pt^2*1.7e-3^2) +
199 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 0.1) * sqrt(0.15^2 + pt^2*3.1e-3^2)}
[89c5be4]200}
201
202###############################
203# Momentum resolution for muons
204###############################
205
206module MomentumSmearing MuonMomentumSmearing {
207 set InputArray MuonTrackingEfficiency/muons
208 set OutputArray muons
209
210 # set ResolutionFormula {resolution formula as a function of eta and pt}
211
212 # resolution formula for muons
[df5084b]213 set ResolutionFormula { (abs(eta) <= 0.5) * (pt > 0.1) * sqrt(0.01^2 + pt^2*1.0e-4^2) +
214 (abs(eta) > 0.5 && abs(eta) <= 1.5) * (pt > 0.1) * sqrt(0.015^2 + pt^2*1.5e-4^2) +
215 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 0.1) * sqrt(0.025^2 + pt^2*3.5e-4^2)}
[89c5be4]216}
217
218##############
219# Track merger
220##############
221
222module Merger TrackMerger {
223# add InputArray InputArray
224 add InputArray ChargedHadronMomentumSmearing/chargedHadrons
[934d037]225 add InputArray ElectronMomentumSmearing/electrons
[984cd31]226 add InputArray MuonMomentumSmearing/muons
[89c5be4]227 set OutputArray tracks
228}
229
230#############
231# Calorimeter
232#############
233
234module Calorimeter Calorimeter {
235 set ParticleInputArray ParticlePropagator/stableParticles
236 set TrackInputArray TrackMerger/tracks
237
238 set TowerOutputArray towers
239 set PhotonOutputArray photons
240
[a2983ec]241 set EFlowTrackOutputArray eflowTracks
242 set EFlowPhotonOutputArray eflowPhotons
243 set EFlowNeutralHadronOutputArray eflowNeutralHadrons
244
245 set ECalEnergyMin 0.5
246 set HCalEnergyMin 1.0
[1c8d9db]247
[38bf1ae]248 set ECalEnergySignificanceMin 1.0
249 set HCalEnergySignificanceMin 1.0
[1c8d9db]250
[a2983ec]251 set SmearTowerCenter true
[282f591]252
[89c5be4]253 set pi [expr {acos(-1)}]
254
255 # lists of the edges of each tower in eta and phi
256 # each list starts with the lower edge of the first tower
257 # the list ends with the higher edged of the last tower
258
259 # 10 degrees towers
260 set PhiBins {}
261 for {set i -18} {$i <= 18} {incr i} {
262 add PhiBins [expr {$i * $pi/18.0}]
263 }
264 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} {
265 add EtaPhiBins $eta $PhiBins
266 }
267
268 # 20 degrees towers
269 set PhiBins {}
270 for {set i -9} {$i <= 9} {incr i} {
271 add PhiBins [expr {$i * $pi/9.0}]
272 }
273 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} {
274 add EtaPhiBins $eta $PhiBins
275 }
276
277 # default energy fractions {abs(PDG code)} {Fecal Fhcal}
278 add EnergyFraction {0} {0.0 1.0}
279 # energy fractions for e, gamma and pi0
280 add EnergyFraction {11} {1.0 0.0}
281 add EnergyFraction {22} {1.0 0.0}
282 add EnergyFraction {111} {1.0 0.0}
283 # energy fractions for muon, neutrinos and neutralinos
284 add EnergyFraction {12} {0.0 0.0}
285 add EnergyFraction {13} {0.0 0.0}
286 add EnergyFraction {14} {0.0 0.0}
287 add EnergyFraction {16} {0.0 0.0}
288 add EnergyFraction {1000022} {0.0 0.0}
289 add EnergyFraction {1000023} {0.0 0.0}
290 add EnergyFraction {1000025} {0.0 0.0}
291 add EnergyFraction {1000035} {0.0 0.0}
292 add EnergyFraction {1000045} {0.0 0.0}
293 # energy fractions for K0short and Lambda
294 add EnergyFraction {310} {0.3 0.7}
295 add EnergyFraction {3122} {0.3 0.7}
296
297 # set ECalResolutionFormula {resolution formula as a function of eta and energy}
298 # http://arxiv.org/pdf/physics/0608012v1 jinst8_08_s08003
299 # http://villaolmo.mib.infn.it/ICATPP9th_2005/Calorimetry/Schram.p.pdf
300 # http://www.physics.utoronto.ca/~krieger/procs/ComoProceedings.pdf
[a2983ec]301 set ECalResolutionFormula { (abs(eta) <= 3.2) * sqrt(energy^2*0.0017^2 + energy*0.101^2) +
[89c5be4]302 (abs(eta) > 3.2 && abs(eta) <= 4.9) * sqrt(energy^2*0.0350^2 + energy*0.285^2)}
303
304 # set HCalResolutionFormula {resolution formula as a function of eta and energy}
305 # http://arxiv.org/pdf/hep-ex/0004009v1
306 # http://villaolmo.mib.infn.it/ICATPP9th_2005/Calorimetry/Schram.p.pdf
[a2983ec]307 set HCalResolutionFormula { (abs(eta) <= 1.7) * sqrt(energy^2*0.0302^2 + energy*0.5205^2 + 1.59^2) +
308 (abs(eta) > 1.7 && abs(eta) <= 3.2) * sqrt(energy^2*0.0500^2 + energy*0.706^2) +
[f42fdd9]309 (abs(eta) > 3.2 && abs(eta) <= 4.9) * sqrt(energy^2*0.09420^2 + energy*1.00^2)}
[89c5be4]310}
311
[934d037]312#################
313# Electron filter
314#################
315
316module PdgCodeFilter ElectronFilter {
317 set InputArray Calorimeter/eflowTracks
318 set OutputArray electrons
319 set Invert true
320 add PdgCode {11}
321 add PdgCode {-11}
322}
323
[89c5be4]324##########################
325# Track pile-up subtractor
326##########################
327
328module TrackPileUpSubtractor TrackPileUpSubtractor {
329# add InputArray InputArray OutputArray
330 add InputArray Calorimeter/eflowTracks eflowTracks
[934d037]331 add InputArray ElectronFilter/electrons electrons
[89c5be4]332 add InputArray MuonMomentumSmearing/muons muons
333
334 # assume perfect pile-up subtraction for tracks with |z| > fZVertexResolution
335 # Z vertex resolution in m
[4b4207e]336 set ZVertexResolution {0.0001}
[89c5be4]337}
338
339####################
[27bf162]340# Neutral tower merger
[89c5be4]341####################
342
[27bf162]343module Merger NeutralTowerMerger {
344# add InputArray InputArray
345 add InputArray Calorimeter/eflowPhotons
346 add InputArray Calorimeter/eflowNeutralHadrons
347 set OutputArray eflowTowers
[282f591]348}
[27bf162]349
[6fb1a5d]350##################################
351# Energy flow merger (all tracks)
352##################################
353
354module Merger EFlowMergerAllTracks {
355# add InputArray InputArray
356 add InputArray TrackMerger/tracks
357 add InputArray Calorimeter/eflowPhotons
358 add InputArray Calorimeter/eflowNeutralHadrons
359 set OutputArray eflow
360}
361
[27bf162]362
363####################
364# Energy flow merger
365####################
[282f591]366
[89c5be4]367module Merger EFlowMerger {
368# add InputArray InputArray
[27bf162]369 add InputArray Calorimeter/eflowTracks
370 add InputArray Calorimeter/eflowPhotons
371 add InputArray Calorimeter/eflowNeutralHadrons
[89c5be4]372 set OutputArray eflow
[282f591]373}
[27bf162]374
[93b4a8c]375######################
376# EFlowFilter
377######################
378
379module PdgCodeFilter EFlowFilter {
380 set InputArray EFlowMergerAllTracks/eflow
381 set OutputArray eflow
382
383 add PdgCode {11}
384 add PdgCode {-11}
385 add PdgCode {13}
386 add PdgCode {-13}
387}
388
389
[89c5be4]390#############
391# Rho pile-up
392#############
393
[6fb1a5d]394module FastJetGridMedianEstimator Rho {
[d4b9697]395
[89c5be4]396 set InputArray Calorimeter/towers
397 set RhoOutputArray rho
398
[d4b9697]399 # add GridRange rapmin rapmax drap dphi
400 # rapmin - the minimum rapidity extent of the grid
401 # rapmax - the maximum rapidity extent of the grid
402 # drap - the grid spacing in rapidity
403 # dphi - the grid spacing in azimuth
404
[7b50bf8]405 add GridRange -5.0 -2.5 1.0 1.0
[914a1f5]406 add GridRange -2.5 2.5 0.5 0.5
[7b50bf8]407 add GridRange 2.5 5.0 1.0 1.0
[984cd31]408
[89c5be4]409}
410
[be2222c]411
412#####################
413# Neutrino Filter
414#####################
415
416module PdgCodeFilter NeutrinoFilter {
[d4b9697]417
[be2222c]418 set InputArray Delphes/stableParticles
419 set OutputArray filteredParticles
420
421 set PTMin 0.0
[d4b9697]422
[be2222c]423 add PdgCode {12}
424 add PdgCode {14}
425 add PdgCode {16}
426 add PdgCode {-12}
427 add PdgCode {-14}
428 add PdgCode {-16}
429
430}
431
[89c5be4]432#####################
433# MC truth jet finder
434#####################
435
436module FastJetFinder GenJetFinder {
[be2222c]437 set InputArray NeutrinoFilter/filteredParticles
[89c5be4]438
439 set OutputArray jets
440
441 # algorithm: 1 CDFJetClu, 2 MidPoint, 3 SIScone, 4 kt, 5 Cambridge/Aachen, 6 antikt
442 set JetAlgorithm 6
443 set ParameterR 0.6
444
445 set JetPTMin 20.0
446}
447
[59d6164]448#########################
449# Gen Missing ET merger
450########################
451
452module Merger GenMissingET {
453# add InputArray InputArray
454 add InputArray NeutrinoFilter/filteredParticles
455 set MomentumOutputArray momentum
456}
457
458
[89c5be4]459############
460# Jet finder
461############
462
463module FastJetFinder FastJetFinder {
464 set InputArray Calorimeter/towers
465
466 set OutputArray jets
467
468 # area algorithm: 0 Do not compute area, 1 Active area explicit ghosts, 2 One ghost passive area, 3 Passive area, 4 Voronoi, 5 Active area
469 set AreaAlgorithm 5
470
471 # jet algorithm: 1 CDFJetClu, 2 MidPoint, 3 SIScone, 4 kt, 5 Cambridge/Aachen, 6 antikt
472 set JetAlgorithm 6
473 set ParameterR 0.6
474
475 set JetPTMin 20.0
476}
477
478###########################
479# Jet Pile-Up Subtraction
480###########################
481
482module JetPileUpSubtractor JetPileUpSubtractor {
483 set JetInputArray FastJetFinder/jets
484 set RhoInputArray Rho/rho
485
486 set OutputArray jets
487
488 set JetPTMin 20.0
489}
490
491##################
492# Jet Energy Scale
493##################
494
495module EnergyScale JetEnergyScale {
496 set InputArray JetPileUpSubtractor/jets
497 set OutputArray jets
498
499 # scale formula for jets
500 set ScaleFormula {1.0}
501}
502
503###################
504# Photon efficiency
505###################
506
507module Efficiency PhotonEfficiency {
[9458a020]508 set InputArray Calorimeter/eflowPhotons
[89c5be4]509 set OutputArray photons
510
511 # set EfficiencyFormula {efficiency formula as a function of eta and pt}
512
513 # efficiency formula for photons
[a2983ec]514 set EfficiencyFormula { (pt <= 10.0) * (0.00) +
515 (abs(eta) <= 1.5) * (pt > 10.0) * (0.95) +
516 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 10.0) * (0.85) +
[89c5be4]517 (abs(eta) > 2.5) * (0.00)}
518}
519
520##################
521# Photon isolation
522##################
523
524module Isolation PhotonIsolation {
525 set CandidateInputArray PhotonEfficiency/photons
[93b4a8c]526 set IsolationInputArray EFlowFilter/eflow
[89c5be4]527 set RhoInputArray Rho/rho
528
529 set OutputArray photons
530
531 set DeltaRMax 0.5
532
533 set PTMin 0.5
534
[8e2759b]535 set PTRatioMax 0.12
[89c5be4]536}
537
538#####################
539# Electron efficiency
540#####################
541
542module Efficiency ElectronEfficiency {
543 set InputArray TrackPileUpSubtractor/electrons
544 set OutputArray electrons
545
546 # set EfficiencyFormula {efficiency formula as a function of eta and pt}
547
548 # efficiency formula for electrons
[a2983ec]549 set EfficiencyFormula { (pt <= 10.0) * (0.00) +
550 (abs(eta) <= 1.5) * (pt > 10.0) * (0.95) +
551 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 10.0) * (0.85) +
[89c5be4]552 (abs(eta) > 2.5) * (0.00)}
553}
554
555####################
556# Electron isolation
557####################
558
559module Isolation ElectronIsolation {
560 set CandidateInputArray ElectronEfficiency/electrons
[93b4a8c]561 set IsolationInputArray EFlowFilter/eflow
[89c5be4]562 set RhoInputArray Rho/rho
563
564 set OutputArray electrons
565
566 set DeltaRMax 0.5
567
568 set PTMin 0.5
569
[8e2759b]570 set PTRatioMax 0.12
[89c5be4]571}
572
573#################
574# Muon efficiency
575#################
576
577module Efficiency MuonEfficiency {
578 set InputArray TrackPileUpSubtractor/muons
579 set OutputArray muons
580
581 # set EfficiencyFormula {efficiency as a function of eta and pt}
582
583 # efficiency formula for muons
[a2983ec]584 set EfficiencyFormula { (pt <= 10.0) * (0.00) +
585 (abs(eta) <= 1.5) * (pt > 10.0) * (0.95) +
586 (abs(eta) > 1.5 && abs(eta) <= 2.7) * (pt > 10.0) * (0.85) +
[89c5be4]587 (abs(eta) > 2.7) * (0.00)}
588}
589
590################
591# Muon isolation
592################
593
594module Isolation MuonIsolation {
595 set CandidateInputArray MuonEfficiency/muons
[93b4a8c]596 set IsolationInputArray EFlowFilter/eflow
[89c5be4]597 set RhoInputArray Rho/rho
598
599 set OutputArray muons
600
601 set DeltaRMax 0.5
602
603 set PTMin 0.5
604
[8e2759b]605 set PTRatioMax 0.25
[89c5be4]606}
607
608###################
609# Missing ET merger
610###################
611
612module Merger MissingET {
613# add InputArray InputArray
[6fb1a5d]614 add InputArray EFlowMergerAllTracks/eflow
[89c5be4]615 set MomentumOutputArray momentum
616}
617
[27bf162]618
[89c5be4]619##################
620# Scalar HT merger
621##################
622
623module Merger ScalarHT {
624# add InputArray InputArray
625 add InputArray UniqueObjectFinder/jets
626 add InputArray UniqueObjectFinder/electrons
627 add InputArray UniqueObjectFinder/photons
628 add InputArray UniqueObjectFinder/muons
629 set EnergyOutputArray energy
630}
631
[6153fb0]632########################
633# Jet Flavor Association
634########################
635
636module JetFlavorAssociation JetFlavorAssociation {
637
638 set PartonInputArray Delphes/partons
639 set ParticleInputArray Delphes/allParticles
640 set ParticleLHEFInputArray Delphes/allParticlesLHEF
641 set JetInputArray JetEnergyScale/jets
642
643 set DeltaR 0.5
644 set PartonPTMin 1.0
645 set PartonEtaMax 2.5
646
647}
648
[89c5be4]649###########
650# b-tagging
651###########
652
653module BTagging BTagging {
654 set JetInputArray JetEnergyScale/jets
655
656 set BitNumber 0
657
658 # add EfficiencyFormula {abs(PDG code)} {efficiency formula as a function of eta and pt}
659 # PDG code = the highest PDG code of a quark or gluon inside DeltaR cone around jet axis
660 # gluon's PDG code has the lowest priority
661
[8713dee]662 # based on ATL-PHYS-PUB-2015-022
663
[89c5be4]664 # default efficiency formula (misidentification rate)
[dddad55]665 add EfficiencyFormula {0} {0.002+7.3e-06*pt}
[89c5be4]666
667 # efficiency formula for c-jets (misidentification rate)
[0413f44]668 add EfficiencyFormula {4} {0.20*tanh(0.02*pt)*(1/(1+0.0034*pt))}
[89c5be4]669
670 # efficiency formula for b-jets
[0413f44]671 add EfficiencyFormula {5} {0.80*tanh(0.003*pt)*(30/(1+0.086*pt))}
[89c5be4]672}
673
[6153fb0]674#############
675# tau-tagging
676#############
677
[437e999]678module TrackCountingTauTagging TauTagging {
679
[89c5be4]680 set ParticleInputArray Delphes/allParticles
681 set PartonInputArray Delphes/partons
[437e999]682 set TrackInputArray TrackMerger/tracks
[89c5be4]683 set JetInputArray JetEnergyScale/jets
684
[437e999]685 set DeltaR 0.2
686 set DeltaRTrack 0.2
[89c5be4]687
[437e999]688 set TrackPTMin 1.0
689
[89c5be4]690 set TauPTMin 1.0
691 set TauEtaMax 2.5
692
[437e999]693 # instructions: {n-prongs} {eff}
694
695 # 1 - one prong efficiency
696 # 2 - two or more efficiency
697 # -1 - one prong mistag rate
698 # -2 - two or more mistag rate
699
[7e227ae]700 set BitNumber 0
701
[437e999]702 # taken from ATL-PHYS-PUB-2015-045 (medium working point)
703 add EfficiencyFormula {1} {0.70}
704 add EfficiencyFormula {2} {0.60}
705 add EfficiencyFormula {-1} {0.02}
706 add EfficiencyFormula {-2} {0.01}
[89c5be4]707
708}
709
710#####################################################
711# Find uniquely identified photons/electrons/tau/jets
712#####################################################
713
714module UniqueObjectFinder UniqueObjectFinder {
715# earlier arrays take precedence over later ones
716# add InputArray InputArray OutputArray
717 add InputArray PhotonIsolation/photons photons
718 add InputArray ElectronIsolation/electrons electrons
719 add InputArray MuonIsolation/muons muons
720 add InputArray JetEnergyScale/jets jets
721}
722
723##################
724# ROOT tree writer
725##################
726
[27bf162]727# tracks, towers and eflow objects are not stored by default in the output.
[282f591]728# if needed (for jet constituent or other studies), uncomment the relevant
729# "add Branch ..." lines.
[27bf162]730
[89c5be4]731module TreeWriter TreeWriter {
732# add Branch InputArray BranchName BranchClass
733 add Branch Delphes/allParticles Particle GenParticle
[27bf162]734
735# add Branch TrackMerger/tracks Track Track
[1c8d9db]736 add Branch Calorimeter/towers Tower Tower
[282f591]737
[89c5be4]738# add Branch Calorimeter/eflowTracks EFlowTrack Track
[27bf162]739# add Branch Calorimeter/eflowPhotons EFlowPhoton Tower
740# add Branch Calorimeter/eflowNeutralHadrons EFlowNeutralHadron Tower
741
[89c5be4]742 add Branch GenJetFinder/jets GenJet Jet
[59d6164]743 add Branch GenMissingET/momentum GenMissingET MissingET
744
[89c5be4]745 add Branch UniqueObjectFinder/jets Jet Jet
746 add Branch UniqueObjectFinder/electrons Electron Electron
747 add Branch UniqueObjectFinder/photons Photon Photon
748 add Branch UniqueObjectFinder/muons Muon Muon
749 add Branch MissingET/momentum MissingET MissingET
750 add Branch ScalarHT/energy ScalarHT ScalarHT
751 add Branch Rho/rho Rho Rho
[fb21bc8]752 add Branch PileUpMerger/vertices Vertex Vertex
[27bf162]753
[89c5be4]754}
Note: See TracBrowser for help on using the repository browser.