Fork me on GitHub

source: git/cards/delphes_card_CMS_PileUp.tcl@ bdf9e2e

Last change on this file since bdf9e2e 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: 24.4 KB
RevLine 
[d7d2da3]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
[d7d2da3]16 MuonMomentumSmearing
17
18 TrackMerger
[d091310]19
20 ECal
21 HCal
22
[934d037]23 ElectronFilter
[d7d2da3]24 TrackPileUpSubtractor
[27bf162]25 NeutralTowerMerger
[492aef9]26 EFlowMergerAllTracks
[d7d2da3]27 EFlowMerger
[93b4a8c]28 EFlowFilter
29
[be2222c]30 NeutrinoFilter
[d7d2da3]31 GenJetFinder
[59d6164]32 GenMissingET
[d7d2da3]33
34 Rho
35 FastJetFinder
[54b6dfc]36 PileUpJetID
[d7d2da3]37 JetPileUpSubtractor
38
[3c9e6d2]39 JetEnergyScale
[d7d2da3]40
41 PhotonEfficiency
42 PhotonIsolation
43
44 ElectronEfficiency
45 ElectronIsolation
46
47 MuonEfficiency
48 MuonIsolation
49
50 MissingET
[d091310]51
[6153fb0]52 JetFlavorAssociation
[d7d2da3]53
54 BTagging
55 TauTagging
56
57 UniqueObjectFinder
58
59 ScalarHT
60
61 TreeWriter
62}
63
64###############
65# PileUp Merger
66###############
67
68module PileUpMerger PileUpMerger {
69 set InputArray Delphes/stableParticles
70
[fb21bc8]71 set ParticleOutputArray stableParticles
72 set VertexOutputArray vertices
[d7d2da3]73
74 # pre-generated minbias input file
[c526439]75 set PileUpFile MinBias.pileup
[d7d2da3]76
77 # average expected pile up
[be2222c]78 set MeanPileUp 50
[282f591]79
[0a6c72b]80 # maximum spread in the beam direction in m
81 set ZVertexSpread 0.25
[282f591]82
[22dc7fd]83 # maximum spread in time in s
[0a6c72b]84 set TVertexSpread 800E-12
[22dc7fd]85
86 # vertex smearing formula f(z,t) (z,t need to be respectively given in m,s)
[0a6c72b]87 set VertexDistributionFormula {exp(-(t^2/160e-12^2/2))*exp(-(z^2/0.053^2/2))}
[d091310]88
[22dc7fd]89
[d7d2da3]90}
91
92#################################
93# Propagate particles in cylinder
94#################################
95
96module ParticlePropagator ParticlePropagator {
97 set InputArray PileUpMerger/stableParticles
98
99 set OutputArray stableParticles
100 set ChargedHadronOutputArray chargedHadrons
101 set ElectronOutputArray electrons
102 set MuonOutputArray muons
103
104 # radius of the magnetic field coverage, in m
105 set Radius 1.29
106 # half-length of the magnetic field coverage, in m
107 set HalfLength 3.00
108
109 # magnetic field
110 set Bz 3.8
111}
112
113####################################
114# Charged hadron tracking efficiency
115####################################
116
117module Efficiency ChargedHadronTrackingEfficiency {
118 set InputArray ParticlePropagator/chargedHadrons
119 set OutputArray chargedHadrons
120
121 # add EfficiencyFormula {efficiency formula as a function of eta and pt}
122
123 # tracking efficiency formula for charged hadrons
[a2983ec]124 set EfficiencyFormula { (pt <= 0.1) * (0.00) +
125 (abs(eta) <= 1.5) * (pt > 0.1 && pt <= 1.0) * (0.70) +
126 (abs(eta) <= 1.5) * (pt > 1.0) * (0.95) +
127 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 0.1 && pt <= 1.0) * (0.60) +
128 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 1.0) * (0.85) +
[d7d2da3]129 (abs(eta) > 2.5) * (0.00)}
130}
131
132##############################
133# Electron tracking efficiency
134##############################
135
136module Efficiency ElectronTrackingEfficiency {
137 set InputArray ParticlePropagator/electrons
138 set OutputArray electrons
139
140 # set EfficiencyFormula {efficiency formula as a function of eta and pt}
141
142 # tracking efficiency formula for electrons
[a2983ec]143 set EfficiencyFormula { (pt <= 0.1) * (0.00) +
144 (abs(eta) <= 1.5) * (pt > 0.1 && pt <= 1.0) * (0.73) +
145 (abs(eta) <= 1.5) * (pt > 1.0 && pt <= 1.0e2) * (0.95) +
146 (abs(eta) <= 1.5) * (pt > 1.0e2) * (0.99) +
147 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 0.1 && pt <= 1.0) * (0.50) +
148 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 1.0 && pt <= 1.0e2) * (0.83) +
149 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 1.0e2) * (0.90) +
[d7d2da3]150 (abs(eta) > 2.5) * (0.00)}
151}
152
153##########################
154# Muon tracking efficiency
155##########################
156
157module Efficiency MuonTrackingEfficiency {
158 set InputArray ParticlePropagator/muons
159 set OutputArray muons
160
161 # set EfficiencyFormula {efficiency formula as a function of eta and pt}
162
163 # tracking efficiency formula for muons
[a2983ec]164 set EfficiencyFormula { (pt <= 0.1) * (0.00) +
165 (abs(eta) <= 1.5) * (pt > 0.1 && pt <= 1.0) * (0.75) +
[eab6d46]166 (abs(eta) <= 1.5) * (pt > 1.0 && pt <= 1.0e3) * (0.99) +
167 (abs(eta) <= 1.5) * (pt > 1.0e3 ) * (0.99 * exp(0.5 - pt*5.0e-4)) +
168
[a2983ec]169 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 0.1 && pt <= 1.0) * (0.70) +
[eab6d46]170 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 1.0 && pt <= 1.0e3) * (0.98) +
171 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 1.0e3) * (0.98 * exp(0.5 - pt*5.0e-4)) +
[d7d2da3]172 (abs(eta) > 2.5) * (0.00)}
173}
174
175########################################
176# Momentum resolution for charged tracks
177########################################
178
179module MomentumSmearing ChargedHadronMomentumSmearing {
180 set InputArray ChargedHadronTrackingEfficiency/chargedHadrons
181 set OutputArray chargedHadrons
182
183 # set ResolutionFormula {resolution formula as a function of eta and pt}
184
185 # resolution formula for charged hadrons
[934d037]186 # based on arXiv:1405.6569
[a0c065d]187 set ResolutionFormula { (abs(eta) <= 0.5) * (pt > 0.1) * sqrt(0.06^2 + pt^2*1.3e-3^2) +
188 (abs(eta) > 0.5 && abs(eta) <= 1.5) * (pt > 0.1) * sqrt(0.10^2 + pt^2*1.7e-3^2) +
189 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 0.1) * sqrt(0.25^2 + pt^2*3.1e-3^2)}
[d7d2da3]190}
191
[934d037]192###################################
193# Momentum resolution for electrons
194###################################
[d7d2da3]195
[934d037]196module MomentumSmearing ElectronMomentumSmearing {
[d7d2da3]197 set InputArray ElectronTrackingEfficiency/electrons
198 set OutputArray electrons
199
200 # set ResolutionFormula {resolution formula as a function of eta and energy}
201
[3c9e6d2]202 # resolution formula for electrons
[934d037]203 # based on arXiv:1405.6569
[df5084b]204 set ResolutionFormula { (abs(eta) <= 0.5) * (pt > 0.1) * sqrt(0.03^2 + pt^2*1.3e-3^2) +
205 (abs(eta) > 0.5 && abs(eta) <= 1.5) * (pt > 0.1) * sqrt(0.05^2 + pt^2*1.7e-3^2) +
206 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 0.1) * sqrt(0.15^2 + pt^2*3.1e-3^2)}
[d7d2da3]207}
208
209###############################
210# Momentum resolution for muons
211###############################
212
213module MomentumSmearing MuonMomentumSmearing {
214 set InputArray MuonTrackingEfficiency/muons
215 set OutputArray muons
216
217 # set ResolutionFormula {resolution formula as a function of eta and pt}
218
219 # resolution formula for muons
[df5084b]220 set ResolutionFormula { (abs(eta) <= 0.5) * (pt > 0.1) * sqrt(0.01^2 + pt^2*1.0e-4^2) +
221 (abs(eta) > 0.5 && abs(eta) <= 1.5) * (pt > 0.1) * sqrt(0.015^2 + pt^2*1.5e-4^2) +
222 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 0.1) * sqrt(0.025^2 + pt^2*3.5e-4^2)}
[d7d2da3]223}
224
225##############
226# Track merger
227##############
228
229module Merger TrackMerger {
230# add InputArray InputArray
231 add InputArray ChargedHadronMomentumSmearing/chargedHadrons
[934d037]232 add InputArray ElectronMomentumSmearing/electrons
[a0ff736]233 add InputArray MuonMomentumSmearing/muons
[d7d2da3]234 set OutputArray tracks
235}
236
237#############
[d091310]238# ECAL
[d7d2da3]239#############
240
[d091310]241module SimpleCalorimeter ECal {
[d7d2da3]242 set ParticleInputArray ParticlePropagator/stableParticles
243 set TrackInputArray TrackMerger/tracks
244
[d091310]245 set TowerOutputArray ecalTowers
246 set EFlowTrackOutputArray eflowTracks
247 set EFlowTowerOutputArray eflowPhotons
248
249 set IsEcal true
250
251 set EnergyMin 0.5
252 set EnergySignificanceMin 2.0
253
254 set SmearTowerCenter true
255
256 set pi [expr {acos(-1)}]
257
258 # lists of the edges of each tower in eta and phi
259 # each list starts with the lower edge of the first tower
260 # the list ends with the higher edged of the last tower
261
262 # assume 0.02 x 0.02 resolution in eta,phi in the barrel |eta| < 1.5
263
264 set PhiBins {}
265 for {set i -180} {$i <= 180} {incr i} {
266 add PhiBins [expr {$i * $pi/180.0}]
267 }
268
269 # 0.02 unit in eta up to eta = 1.5 (barrel)
270 for {set i -85} {$i <= 86} {incr i} {
271 set eta [expr {$i * 0.0174}]
272 add EtaPhiBins $eta $PhiBins
273 }
274
275 # assume 0.02 x 0.02 resolution in eta,phi in the endcaps 1.5 < |eta| < 3.0 (HGCAL- ECAL)
276
277 set PhiBins {}
278 for {set i -180} {$i <= 180} {incr i} {
279 add PhiBins [expr {$i * $pi/180.0}]
280 }
281
282 # 0.02 unit in eta up to eta = 3
283 for {set i 1} {$i <= 84} {incr i} {
284 set eta [expr { -2.958 + $i * 0.0174}]
285 add EtaPhiBins $eta $PhiBins
286 }
287
288 for {set i 1} {$i <= 84} {incr i} {
289 set eta [expr { 1.4964 + $i * 0.0174}]
290 add EtaPhiBins $eta $PhiBins
291 }
292
293 # take present CMS granularity for HF
[d7d2da3]294
[d091310]295 # 0.175 x (0.175 - 0.35) resolution in eta,phi in the HF 3.0 < |eta| < 5.0
296 set PhiBins {}
297 for {set i -18} {$i <= 18} {incr i} {
298 add PhiBins [expr {$i * $pi/18.0}]
299 }
300
301 foreach eta {-5 -4.7 -4.525 -4.35 -4.175 -4 -3.825 -3.65 -3.475 -3.3 -3.125 -2.958 3.125 3.3 3.475 3.65 3.825 4 4.175 4.35 4.525 4.7 5} {
302 add EtaPhiBins $eta $PhiBins
303 }
304
305
306 add EnergyFraction {0} {0.0}
307 # energy fractions for e, gamma and pi0
308 add EnergyFraction {11} {1.0}
309 add EnergyFraction {22} {1.0}
310 add EnergyFraction {111} {1.0}
311 # energy fractions for muon, neutrinos and neutralinos
312 add EnergyFraction {12} {0.0}
313 add EnergyFraction {13} {0.0}
314 add EnergyFraction {14} {0.0}
315 add EnergyFraction {16} {0.0}
316 add EnergyFraction {1000022} {0.0}
317 add EnergyFraction {1000023} {0.0}
318 add EnergyFraction {1000025} {0.0}
319 add EnergyFraction {1000035} {0.0}
320 add EnergyFraction {1000045} {0.0}
321 # energy fractions for K0short and Lambda
322 add EnergyFraction {310} {0.3}
323 add EnergyFraction {3122} {0.3}
324
325 # set ResolutionFormula {resolution formula as a function of eta and energy}
326
327 # for the ECAL barrel (|eta| < 1.5), see hep-ex/1306.2016 and 1502.02701
328
329 # set ECalResolutionFormula {resolution formula as a function of eta and energy}
330 # Eta shape from arXiv:1306.2016, Energy shape from arXiv:1502.02701
331 set ResolutionFormula { (abs(eta) <= 1.5) * (1+0.64*eta^2) * sqrt(energy^2*0.008^2 + energy*0.11^2 + 0.40^2) +
332 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (2.16 + 5.6*(abs(eta)-2)^2) * sqrt(energy^2*0.008^2 + energy*0.11^2 + 0.40^2) +
333 (abs(eta) > 2.5 && abs(eta) <= 5.0) * sqrt(energy^2*0.107^2 + energy*2.08^2)}
334
335}
336
337
338#############
339# HCAL
340#############
341
342module SimpleCalorimeter HCal {
343 set ParticleInputArray ParticlePropagator/stableParticles
344 set TrackInputArray ECal/eflowTracks
345
346 set TowerOutputArray hcalTowers
[a2983ec]347 set EFlowTrackOutputArray eflowTracks
[d091310]348 set EFlowTowerOutputArray eflowNeutralHadrons
[a2983ec]349
[d091310]350 set IsEcal false
[1c8d9db]351
[d091310]352 set EnergyMin 1.0
353 set EnergySignificanceMin 2.0
[1c8d9db]354
[a2983ec]355 set SmearTowerCenter true
[d7d2da3]356
357 set pi [expr {acos(-1)}]
358
359 # lists of the edges of each tower in eta and phi
360 # each list starts with the lower edge of the first tower
361 # the list ends with the higher edged of the last tower
362
363 # 5 degrees towers
364 set PhiBins {}
365 for {set i -36} {$i <= 36} {incr i} {
366 add PhiBins [expr {$i * $pi/36.0}]
367 }
368 foreach eta {-1.566 -1.479 -1.392 -1.305 -1.218 -1.131 -1.044 -0.957 -0.87 -0.783 -0.696 -0.609 -0.522 -0.435 -0.348 -0.261 -0.174 -0.087 0 0.087 0.174 0.261 0.348 0.435 0.522 0.609 0.696 0.783 0.87 0.957 1.044 1.131 1.218 1.305 1.392 1.479 1.566 1.653} {
369 add EtaPhiBins $eta $PhiBins
370 }
371
372 # 10 degrees towers
373 set PhiBins {}
374 for {set i -18} {$i <= 18} {incr i} {
375 add PhiBins [expr {$i * $pi/18.0}]
376 }
377 foreach eta {-4.35 -4.175 -4 -3.825 -3.65 -3.475 -3.3 -3.125 -2.95 -2.868 -2.65 -2.5 -2.322 -2.172 -2.043 -1.93 -1.83 -1.74 -1.653 1.74 1.83 1.93 2.043 2.172 2.322 2.5 2.65 2.868 2.95 3.125 3.3 3.475 3.65 3.825 4 4.175 4.35 4.525} {
378 add EtaPhiBins $eta $PhiBins
379 }
380
381 # 20 degrees towers
382 set PhiBins {}
383 for {set i -9} {$i <= 9} {incr i} {
384 add PhiBins [expr {$i * $pi/9.0}]
385 }
386 foreach eta {-5 -4.7 -4.525 4.7 5} {
387 add EtaPhiBins $eta $PhiBins
388 }
389
390 # default energy fractions {abs(PDG code)} {Fecal Fhcal}
[d091310]391 add EnergyFraction {0} {1.0}
[d7d2da3]392 # energy fractions for e, gamma and pi0
[d091310]393 add EnergyFraction {11} {0.0}
394 add EnergyFraction {22} {0.0}
395 add EnergyFraction {111} {0.0}
[d7d2da3]396 # energy fractions for muon, neutrinos and neutralinos
[d091310]397 add EnergyFraction {12} {0.0}
398 add EnergyFraction {13} {0.0}
399 add EnergyFraction {14} {0.0}
400 add EnergyFraction {16} {0.0}
401 add EnergyFraction {1000022} {0.0}
402 add EnergyFraction {1000023} {0.0}
403 add EnergyFraction {1000025} {0.0}
404 add EnergyFraction {1000035} {0.0}
405 add EnergyFraction {1000045} {0.0}
[d7d2da3]406 # energy fractions for K0short and Lambda
[d091310]407 add EnergyFraction {310} {0.7}
408 add EnergyFraction {3122} {0.7}
[d7d2da3]409
410 # set HCalResolutionFormula {resolution formula as a function of eta and energy}
[d091310]411 set ResolutionFormula { (abs(eta) <= 3.0) * sqrt(energy^2*0.050^2 + energy*1.50^2) +
[a1ac20e]412 (abs(eta) > 3.0 && abs(eta) <= 5.0) * sqrt(energy^2*0.130^2 + energy*2.70^2)}
[d091310]413
[d7d2da3]414}
415
[934d037]416#################
417# Electron filter
418#################
419
420module PdgCodeFilter ElectronFilter {
[d091310]421 set InputArray HCal/eflowTracks
[934d037]422 set OutputArray electrons
423 set Invert true
424 add PdgCode {11}
425 add PdgCode {-11}
426}
427
[d091310]428###################################################
429# Tower Merger (in case not using e-flow algorithm)
430###################################################
431
432module Merger Calorimeter {
433# add InputArray InputArray
434 add InputArray ECal/ecalTowers
435 add InputArray HCal/hcalTowers
436 set OutputArray towers
437}
438
[93b4a8c]439######################
440# EFlowFilter
441######################
442
443module PdgCodeFilter EFlowFilter {
444 set InputArray EFlowMergerAllTracks/eflow
445 set OutputArray eflow
446
447 add PdgCode {11}
448 add PdgCode {-11}
449 add PdgCode {13}
450 add PdgCode {-13}
451}
[d091310]452
[d7d2da3]453##########################
454# Track pile-up subtractor
455##########################
456
457module TrackPileUpSubtractor TrackPileUpSubtractor {
458# add InputArray InputArray OutputArray
[d091310]459 add InputArray HCal/eflowTracks eflowTracks
[934d037]460 add InputArray ElectronFilter/electrons electrons
[d7d2da3]461 add InputArray MuonMomentumSmearing/muons muons
[282f591]462
[54b6dfc]463 set VertexInputArray PileUpMerger/vertices
[d7d2da3]464 # assume perfect pile-up subtraction for tracks with |z| > fZVertexResolution
465 # Z vertex resolution in m
[4b4207e]466 set ZVertexResolution {0.0001}
[d7d2da3]467}
468
[d091310]469
[27bf162]470####################
[d091310]471# Neutral Tower merger
[27bf162]472####################
473
474module Merger NeutralTowerMerger {
475# add InputArray InputArray
[d091310]476 add InputArray ECal/eflowPhotons
477 add InputArray HCal/eflowNeutralHadrons
478 set OutputArray towers
[27bf162]479}
480
[d091310]481
482####################
483# Energy flow merger
484####################
[492aef9]485
486module Merger EFlowMergerAllTracks {
487# add InputArray InputArray
[d091310]488 add InputArray HCal/eflowTracks
489 add InputArray ECal/eflowPhotons
490 add InputArray HCal/eflowNeutralHadrons
[492aef9]491 set OutputArray eflow
492}
493
[27bf162]494
[d091310]495
496
[d7d2da3]497####################
498# Energy flow merger
499####################
500
501module Merger EFlowMerger {
502# add InputArray InputArray
503 add InputArray TrackPileUpSubtractor/eflowTracks
[d091310]504 add InputArray ECal/eflowPhotons
505 add InputArray HCal/eflowNeutralHadrons
[d7d2da3]506 set OutputArray eflow
507}
508
509#############
510# Rho pile-up
511#############
512
[6fb1a5d]513module FastJetGridMedianEstimator Rho {
[d4b9697]514
[d7d2da3]515 set InputArray EFlowMerger/eflow
516 set RhoOutputArray rho
517
[d4b9697]518 # add GridRange rapmin rapmax drap dphi
519 # rapmin - the minimum rapidity extent of the grid
520 # rapmax - the maximum rapidity extent of the grid
521 # drap - the grid spacing in rapidity
522 # dphi - the grid spacing in azimuth
523
524 add GridRange -5.0 -2.5 1.0 1.0
525 add GridRange -2.5 2.5 1.0 1.0
[6fb1a5d]526 add GridRange 2.5 5.0 1.0 1.0
[d7d2da3]527
528}
529
[be2222c]530#####################
531# Neutrino Filter
532#####################
533
534module PdgCodeFilter NeutrinoFilter {
[d4b9697]535
[be2222c]536 set InputArray Delphes/stableParticles
537 set OutputArray filteredParticles
538
539 set PTMin 0.0
[d4b9697]540
[be2222c]541 add PdgCode {12}
542 add PdgCode {14}
543 add PdgCode {16}
544 add PdgCode {-12}
545 add PdgCode {-14}
546 add PdgCode {-16}
547
548}
549
550
551
[d7d2da3]552#####################
553# MC truth jet finder
554#####################
555
556module FastJetFinder GenJetFinder {
[be2222c]557 set InputArray NeutrinoFilter/filteredParticles
[d7d2da3]558
559 set OutputArray jets
560
561 # algorithm: 1 CDFJetClu, 2 MidPoint, 3 SIScone, 4 kt, 5 Cambridge/Aachen, 6 antikt
562 set JetAlgorithm 6
563 set ParameterR 0.5
564
565 set JetPTMin 20.0
566}
567
[59d6164]568#########################
569# Gen Missing ET merger
570########################
571
572module Merger GenMissingET {
573# add InputArray InputArray
574 add InputArray NeutrinoFilter/filteredParticles
575 set MomentumOutputArray momentum
576}
577
[d7d2da3]578############
579# Jet finder
580############
581
582module FastJetFinder FastJetFinder {
583# set InputArray Calorimeter/towers
584 set InputArray EFlowMerger/eflow
585
586 set OutputArray jets
587
588 # 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
589 set AreaAlgorithm 5
590
591 # jet algorithm: 1 CDFJetClu, 2 MidPoint, 3 SIScone, 4 kt, 5 Cambridge/Aachen, 6 antikt
592 set JetAlgorithm 6
593 set ParameterR 0.5
594
595 set JetPTMin 20.0
596}
597
[54b6dfc]598###########################
599# Jet Pile-Up ID
600###########################
601
602module PileUpJetID PileUpJetID {
603 set JetInputArray FastJetFinder/jets
[d091310]604 set TrackInputArray HCal/eflowTracks
605 set NeutralInputArray NeutralTowerMerger/towers
[54b6dfc]606
607 set VertexInputArray PileUpMerger/vertices
608 # assume perfect pile-up subtraction for tracks with |z| > fZVertexResolution
609 # Z vertex resolution in m
610 set ZVertexResolution 0.0001
[282f591]611
[54b6dfc]612 set OutputArray jets
613
614 set UseConstituents 0
615 set ParameterR 0.5
616
617 set JetPTMin 20.0
618}
619
[d7d2da3]620###########################
621# Jet Pile-Up Subtraction
622###########################
623
624module JetPileUpSubtractor JetPileUpSubtractor {
[54b6dfc]625 set JetInputArray PileUpJetID/jets
[d7d2da3]626 set RhoInputArray Rho/rho
627
628 set OutputArray jets
629
630 set JetPTMin 20.0
631}
632
[3c9e6d2]633##################
634# Jet Energy Scale
635##################
636
637module EnergyScale JetEnergyScale {
638 set InputArray JetPileUpSubtractor/jets
639 set OutputArray jets
640
641 # scale formula for jets
642 set ScaleFormula {1.0}
643}
644
[d7d2da3]645###################
646# Photon efficiency
647###################
648
649module Efficiency PhotonEfficiency {
[d091310]650 set InputArray ECal/eflowPhotons
[d7d2da3]651 set OutputArray photons
652
653 # set EfficiencyFormula {efficiency formula as a function of eta and pt}
654
655 # efficiency formula for photons
[a2983ec]656 set EfficiencyFormula { (pt <= 10.0) * (0.00) +
657 (abs(eta) <= 1.5) * (pt > 10.0) * (0.95) +
658 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 10.0) * (0.85) +
[d7d2da3]659 (abs(eta) > 2.5) * (0.00)}
660}
661
[27bf162]662
[d7d2da3]663##################
664# Photon isolation
665##################
666
667module Isolation PhotonIsolation {
668 set CandidateInputArray PhotonEfficiency/photons
[93b4a8c]669 set IsolationInputArray EFlowFilter/eflow
[d7d2da3]670 set RhoInputArray Rho/rho
671
672 set OutputArray photons
673
674 set DeltaRMax 0.5
675
676 set PTMin 0.5
677
[8e2759b]678 set PTRatioMax 0.12
[d7d2da3]679}
680
681#####################
682# Electron efficiency
683#####################
684
685module Efficiency ElectronEfficiency {
686 set InputArray TrackPileUpSubtractor/electrons
687 set OutputArray electrons
688
689 # set EfficiencyFormula {efficiency formula as a function of eta and pt}
690
691 # efficiency formula for electrons
[a2983ec]692 set EfficiencyFormula { (pt <= 10.0) * (0.00) +
693 (abs(eta) <= 1.5) * (pt > 10.0) * (0.95) +
694 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 10.0) * (0.85) +
[d7d2da3]695 (abs(eta) > 2.5) * (0.00)}
696}
697
698####################
699# Electron isolation
700####################
701
702module Isolation ElectronIsolation {
703 set CandidateInputArray ElectronEfficiency/electrons
[93b4a8c]704 set IsolationInputArray EFlowFilter/eflow
[d7d2da3]705 set RhoInputArray Rho/rho
706
707 set OutputArray electrons
708
709 set DeltaRMax 0.5
710
711 set PTMin 0.5
712
[8e2759b]713 set PTRatioMax 0.12
[d7d2da3]714}
715
716#################
717# Muon efficiency
718#################
719
720module Efficiency MuonEfficiency {
721 set InputArray TrackPileUpSubtractor/muons
722 set OutputArray muons
723
724 # set EfficiencyFormula {efficiency as a function of eta and pt}
725
726 # efficiency formula for muons
[eab6d46]727 set EfficiencyFormula { (pt <= 10.0) * (0.00) +
728 (abs(eta) <= 1.5) * (pt > 10.0) * (0.95) +
729 (abs(eta) > 1.5 && abs(eta) <= 2.4) * (pt > 10.0) * (0.95) +
[1697699]730 (abs(eta) > 2.4) * (0.00)}
[eab6d46]731
[d7d2da3]732}
733
734################
735# Muon isolation
736################
737
738module Isolation MuonIsolation {
739 set CandidateInputArray MuonEfficiency/muons
[93b4a8c]740 set IsolationInputArray EFlowFilter/eflow
[d7d2da3]741 set RhoInputArray Rho/rho
742
743 set OutputArray muons
744
745 set DeltaRMax 0.5
746
747 set PTMin 0.5
748
[8e2759b]749 set PTRatioMax 0.25
[d7d2da3]750}
751
752###################
753# Missing ET merger
754###################
755
756module Merger MissingET {
757# add InputArray InputArray
[492aef9]758 add InputArray EFlowMergerAllTracks/eflow
[d7d2da3]759 set MomentumOutputArray momentum
760}
761
[27bf162]762
763
[d7d2da3]764##################
765# Scalar HT merger
766##################
767
768module Merger ScalarHT {
769# add InputArray InputArray
770 add InputArray UniqueObjectFinder/jets
771 add InputArray UniqueObjectFinder/electrons
772 add InputArray UniqueObjectFinder/photons
[3c9e6d2]773 add InputArray UniqueObjectFinder/muons
[d7d2da3]774 set EnergyOutputArray energy
775}
776
[6153fb0]777########################
778# Jet Flavor Association
779########################
780
781module JetFlavorAssociation JetFlavorAssociation {
[d091310]782
[6153fb0]783 set PartonInputArray Delphes/partons
784 set ParticleInputArray Delphes/allParticles
785 set ParticleLHEFInputArray Delphes/allParticlesLHEF
786 set JetInputArray JetEnergyScale/jets
[d091310]787
[6153fb0]788 set DeltaR 0.5
789 set PartonPTMin 1.0
790 set PartonEtaMax 2.5
791
792}
793
[d7d2da3]794###########
795# b-tagging
796###########
797
798module BTagging BTagging {
[3c9e6d2]799 set JetInputArray JetEnergyScale/jets
[d7d2da3]800
[264bf40]801 set BitNumber 0
802
[d7d2da3]803 # add EfficiencyFormula {abs(PDG code)} {efficiency formula as a function of eta and pt}
804 # PDG code = the highest PDG code of a quark or gluon inside DeltaR cone around jet axis
805 # gluon's PDG code has the lowest priority
806
[8713dee]807 # based on arXiv:1211.4462
[d091310]808
[d7d2da3]809 # default efficiency formula (misidentification rate)
[a356d6d]810 add EfficiencyFormula {0} {0.01+0.000038*pt}
[d7d2da3]811
812 # efficiency formula for c-jets (misidentification rate)
[0413f44]813 add EfficiencyFormula {4} {0.25*tanh(0.018*pt)*(1/(1+ 0.0013*pt))}
[d7d2da3]814
815 # efficiency formula for b-jets
[dddad55]816 add EfficiencyFormula {5} {0.85*tanh(0.0025*pt)*(25.0/(1+0.063*pt))}
[d7d2da3]817}
818
[6153fb0]819#############
820# tau-tagging
821#############
822
[d7d2da3]823module TauTagging TauTagging {
824 set ParticleInputArray Delphes/allParticles
825 set PartonInputArray Delphes/partons
[3c9e6d2]826 set JetInputArray JetEnergyScale/jets
[d7d2da3]827
828 set DeltaR 0.5
829
830 set TauPTMin 1.0
831
832 set TauEtaMax 2.5
833
834 # add EfficiencyFormula {abs(PDG code)} {efficiency formula as a function of eta and pt}
835
836 # default efficiency formula (misidentification rate)
[8713dee]837 add EfficiencyFormula {0} {0.01}
[d7d2da3]838 # efficiency formula for tau-jets
[8713dee]839 add EfficiencyFormula {15} {0.6}
[d7d2da3]840}
841
842#####################################################
843# Find uniquely identified photons/electrons/tau/jets
844#####################################################
845
846module UniqueObjectFinder UniqueObjectFinder {
847# earlier arrays take precedence over later ones
848# add InputArray InputArray OutputArray
849 add InputArray PhotonIsolation/photons photons
850 add InputArray ElectronIsolation/electrons electrons
[3c9e6d2]851 add InputArray MuonIsolation/muons muons
852 add InputArray JetEnergyScale/jets jets
[d7d2da3]853}
854
855##################
856# ROOT tree writer
857##################
858
[27bf162]859# tracks, towers and eflow objects are not stored by default in the output.
[282f591]860# if needed (for jet constituent or other studies), uncomment the relevant
861# "add Branch ..." lines.
[27bf162]862
[d7d2da3]863module TreeWriter TreeWriter {
864# add Branch InputArray BranchName BranchClass
865 add Branch Delphes/allParticles Particle GenParticle
[27bf162]866
867# add Branch TrackMerger/tracks Track Track
868# add Branch Calorimeter/towers Tower Tower
[282f591]869
[27bf162]870# add Branch Calorimeter/eflowTracks EFlowTrack Track
871# add Branch Calorimeter/eflowPhotons EFlowPhoton Tower
872# add Branch Calorimeter/eflowNeutralHadrons EFlowNeutralHadron Tower
873
[d7d2da3]874 add Branch GenJetFinder/jets GenJet Jet
[59d6164]875 add Branch GenMissingET/momentum GenMissingET MissingET
876
[d7d2da3]877 add Branch UniqueObjectFinder/jets Jet Jet
878 add Branch UniqueObjectFinder/electrons Electron Electron
879 add Branch UniqueObjectFinder/photons Photon Photon
[3c9e6d2]880 add Branch UniqueObjectFinder/muons Muon Muon
[d7d2da3]881 add Branch MissingET/momentum MissingET MissingET
882 add Branch ScalarHT/energy ScalarHT ScalarHT
[71648c2]883 add Branch Rho/rho Rho Rho
[fb21bc8]884 add Branch PileUpMerger/vertices Vertex Vertex
[d7d2da3]885}
Note: See TracBrowser for help on using the repository browser.