Fork me on GitHub

source: git/cards/delphes_card_ILD.tcl@ 122e1e5

ImprovedOutputFile Timing dual_readout llp
Last change on this file since 122e1e5 was a097e98, checked in by Michele Selvaggi <michele.selvaggi@…>, 9 years ago

fixed typo in Hcal resolution formula and set more realistic values for min energy and sig. for towers

  • Property mode set to 100644
File size: 13.0 KB
Line 
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
15 ElectronEnergySmearing
16 MuonMomentumSmearing
17
18 TrackMerger
19 AngularSmearing
20 ImpactParameterSmearing
21
22 ECal
23 HCal
24
25 TowerMerger
26 EFlowMerger
27
28 MissingET
29
30 NeutrinoFilter
31 GenJetFinder
32 FastJetFinder
33
34 JetEnergyScale
35
36 TrackCountingBTagging
37 TauTagging
38
39 ScalarHT
40
41 TreeWriter
42}
43
44#################################
45# Propagate particles in cylinder
46#################################
47
48module ParticlePropagator ParticlePropagator {
49 set InputArray Delphes/stableParticles
50
51 set OutputArray stableParticles
52 set ChargedHadronOutputArray chargedHadrons
53 set ElectronOutputArray electrons
54 set MuonOutputArray muons
55
56 # radius of the magnetic field coverage, in m
57 set Radius 1.8
58 # half-length of the magnetic field coverage, in m
59 set HalfLength 2.4
60
61 # magnetic field
62 set Bz 3.5
63}
64
65####################################
66# Charged hadron tracking efficiency
67####################################
68
69module Efficiency ChargedHadronTrackingEfficiency {
70 set InputArray ParticlePropagator/chargedHadrons
71 set OutputArray chargedHadrons
72
73 # add EfficiencyFormula {efficiency formula as a function of eta and pt}
74
75 # tracking efficiency formula for charged hadrons
76 set EfficiencyFormula { (pt <= 0.1) * (0.00) +
77 (abs(eta) <= 2.4) * (pt > 0.1) * (0.99) +
78 (abs(eta) > 2.4) * (0.00)}
79}
80
81##############################
82# Electron tracking efficiency
83##############################
84
85module Efficiency ElectronTrackingEfficiency {
86 set InputArray ParticlePropagator/electrons
87 set OutputArray electrons
88
89 # set EfficiencyFormula {efficiency formula as a function of eta and pt}
90
91 # tracking efficiency formula for electrons
92 set EfficiencyFormula { (pt <= 0.1) * (0.00) +
93 (abs(eta) <= 2.4) * (pt > 0.1) * (0.99) +
94 (abs(eta) > 2.4) * (0.00)}
95}
96
97##########################
98# Muon tracking efficiency
99##########################
100
101module Efficiency MuonTrackingEfficiency {
102 set InputArray ParticlePropagator/muons
103 set OutputArray muons
104
105 # set EfficiencyFormula {efficiency formula as a function of eta and pt}
106
107 # tracking efficiency formula for muons
108 set EfficiencyFormula { (pt <= 0.1) * (0.00) +
109 (abs(eta) <= 2.4) * (pt > 0.1) * (0.99) +
110 (abs(eta) > 2.4) * (0.00)}
111}
112
113########################################
114# Momentum resolution for charged tracks
115########################################
116
117module MomentumSmearing ChargedHadronMomentumSmearing {
118 set InputArray ChargedHadronTrackingEfficiency/chargedHadrons
119 set OutputArray chargedHadrons
120
121 # set ResolutionFormula {resolution formula as a function of eta and pt}
122
123 # resolution formula for charged hadrons
124 set ResolutionFormula { (abs(eta) <= 1.0) * (0.001 + pt*1.e-5) +
125 (abs(eta) > 1.0 && abs(eta) <= 2.4) * (0.01 + pt*1.e-4)}
126
127
128}
129
130#################################
131# Energy resolution for electrons
132#################################
133
134module EnergySmearing ElectronEnergySmearing {
135 set InputArray ElectronTrackingEfficiency/electrons
136 set OutputArray electrons
137
138 # set ResolutionFormula {resolution formula as a function of eta and energy}
139
140 # resolution formula for electrons (we keep nominal tracking reso since ECAL can't beat this, even at high E)
141 set ResolutionFormula { (abs(eta) <= 1.0) * (0.001 + pt*1.e-5) +
142 (abs(eta) > 1.0 && abs(eta) <= 2.4) * (0.01 + pt*1.e-4)}
143}
144
145###############################
146# Momentum resolution for muons
147###############################
148
149module MomentumSmearing MuonMomentumSmearing {
150 set InputArray MuonTrackingEfficiency/muons
151 set OutputArray muons
152
153 # set ResolutionFormula {resolution formula as a function of eta and pt}
154
155 # resolution formula for muons
156 set ResolutionFormula { (abs(eta) <= 1.0) * (0.001 + pt*1.e-5) +
157 (abs(eta) > 1.0 && abs(eta) <= 2.4) * (0.01 + pt*1.e-4)}
158
159
160}
161
162##############
163# Track merger
164##############
165
166module Merger TrackMerger {
167# add InputArray InputArray
168 add InputArray ChargedHadronMomentumSmearing/chargedHadrons
169 add InputArray ElectronEnergySmearing/electrons
170 add InputArray MuonMomentumSmearing/muons
171 set OutputArray tracks
172}
173
174
175################################
176# Track angular smearing
177################################
178
179module AngularSmearing AngularSmearing {
180 set InputArray TrackMerger/tracks
181 set OutputArray tracks
182
183
184 # angular smearing in eta formula as a function of pt and eta
185 set EtaResolutionFormula { 0.001 }
186
187 # angular smearing in phi formula as a function of pt and eta
188 set PhiResolutionFormula { 0.001 }
189
190}
191
192################################
193# Track impact parameter smearing
194################################
195
196module ImpactParameterSmearing ImpactParameterSmearing {
197 set InputArray AngularSmearing/tracks
198 set OutputArray tracks
199
200
201 # absolute impact parameter smearing formula (in mm) as a function of pt and eta
202 set ResolutionFormula {(pt > 0.1 && pt <= 5.0) * (0.010) +
203 (pt > 5.0) * (0.005)}
204
205}
206
207#############
208# ECAL
209#############
210
211module SimpleCalorimeter ECal {
212 set ParticleInputArray ParticlePropagator/stableParticles
213 set TrackInputArray ImpactParameterSmearing/tracks
214
215 set TowerOutputArray ecalTowers
216 set EFlowTowerOutputArray eflowPhotons
217
218 set IsEcal true
219
220 set EnergyMin 0.5
221 set EnergySignificanceMin 1.0
222
223 set SmearTowerCenter true
224
225 set pi [expr {acos(-1)}]
226
227 # lists of the edges of each tower in eta and phi
228 # each list starts with the lower edge of the first tower
229 # the list ends with the higher edged of the last tower
230
231 # 0.5 degree towers (5x5 mm^2)
232 set PhiBins {}
233 for {set i -360} {$i <= 360} {incr i} {
234 add PhiBins [expr {$i * $pi/360.0}]
235 }
236
237 # 0.01 unit in eta up to eta = 2.5
238 for {set i -500} {$i <= 500} {incr i} {
239 set eta [expr {$i * 0.005}]
240 add EtaPhiBins $eta $PhiBins
241 }
242
243 # default energy fractions {abs(PDG code)} {fraction of energy deposited in ECAL}
244
245 add EnergyFraction {0} {0.0}
246 # energy fractions for e, gamma and pi0
247 add EnergyFraction {11} {1.0}
248 add EnergyFraction {22} {1.0}
249 add EnergyFraction {111} {1.0}
250 # energy fractions for muon, neutrinos and neutralinos
251 add EnergyFraction {12} {0.0}
252 add EnergyFraction {13} {0.0}
253 add EnergyFraction {14} {0.0}
254 add EnergyFraction {16} {0.0}
255 add EnergyFraction {1000022} {0.0}
256 add EnergyFraction {1000023} {0.0}
257 add EnergyFraction {1000025} {0.0}
258 add EnergyFraction {1000035} {0.0}
259 add EnergyFraction {1000045} {0.0}
260 # energy fractions for K0short and Lambda
261 add EnergyFraction {310} {0.3}
262 add EnergyFraction {3122} {0.3}
263
264 # set ECalResolutionFormula {resolution formula as a function of eta and energy}
265
266 set ResolutionFormula { (abs(eta) <= 3.0) * sqrt(energy^2*0.01^2 + energy*0.15^2) }
267
268}
269
270#############
271# HCAL
272#############
273
274module SimpleCalorimeter HCal {
275 set ParticleInputArray ParticlePropagator/stableParticles
276 set TrackInputArray ImpactParameterSmearing/tracks
277
278 set TowerOutputArray hcalTowers
279 set EFlowTowerOutputArray eflowNeutralHadrons
280
281 set IsEcal false
282
283 set EnergyMin 1.0
284 set EnergySignificanceMin 1.0
285
286 set SmearTowerCenter true
287
288 set pi [expr {acos(-1)}]
289
290 # lists of the edges of each tower in eta and phi
291 # each list starts with the lower edge of the first tower
292 # the list ends with the higher edged of the last tower
293
294
295 # 6 degree towers
296 set PhiBins {}
297 for {set i -60} {$i <= 60} {incr i} {
298 add PhiBins [expr {$i * $pi/60.0}]
299 }
300
301 # 0.5 unit in eta up to eta = 3
302 for {set i -60} {$i <= 60} {incr i} {
303 set eta [expr {$i * 0.05}]
304 add EtaPhiBins $eta $PhiBins
305 }
306
307
308 # default energy fractions {abs(PDG code)} {Fecal Fhcal}
309 add EnergyFraction {0} {1.0}
310 # energy fractions for e, gamma and pi0
311 add EnergyFraction {11} {0.0}
312 add EnergyFraction {22} {0.0}
313 add EnergyFraction {111} {0.0}
314 # energy fractions for muon, neutrinos and neutralinos
315 add EnergyFraction {12} {0.0}
316 add EnergyFraction {13} {0.0}
317 add EnergyFraction {14} {0.0}
318 add EnergyFraction {16} {0.0}
319 add EnergyFraction {1000022} {0.0}
320 add EnergyFraction {1000023} {0.0}
321 add EnergyFraction {1000025} {0.0}
322 add EnergyFraction {1000035} {0.0}
323 add EnergyFraction {1000045} {0.0}
324 # energy fractions for K0short and Lambda
325 add EnergyFraction {310} {0.7}
326 add EnergyFraction {3122} {0.7}
327
328 # set HCalResolutionFormula {resolution formula as a function of eta and energy}
329
330 set ResolutionFormula { (abs(eta) <= 3.0) * sqrt(energy^2*0.015^2 + energy*0.50^2)}
331
332}
333
334####################
335# Tower Merger (in case not using e-flow algorithm)
336####################
337
338module Merger TowerMerger {
339# add InputArray InputArray
340 add InputArray ECal/ecalTowers
341 add InputArray HCal/hcalTowers
342 set OutputArray towers
343}
344
345####################
346# Energy flow merger
347####################
348
349module Merger EFlowMerger {
350# add InputArray InputArray
351 add InputArray ImpactParameterSmearing/tracks
352 add InputArray ECal/eflowPhotons
353 add InputArray HCal/eflowNeutralHadrons
354 set OutputArray eflow
355}
356
357
358###################
359# Missing ET merger
360###################
361
362module Merger MissingET {
363# add InputArray InputArray
364 add InputArray EFlowMerger/eflow
365 set MomentumOutputArray momentum
366}
367
368
369##################
370# Scalar HT merger
371##################
372
373module Merger ScalarHT {
374# add InputArray InputArray
375 add InputArray EFlowMerger/eflow
376 set EnergyOutputArray energy
377}
378
379#####################
380# Neutrino Filter
381#####################
382
383module PdgCodeFilter NeutrinoFilter {
384
385 set InputArray Delphes/stableParticles
386 set OutputArray filteredParticles
387
388 set PTMin 0.0
389
390 add PdgCode {12}
391 add PdgCode {14}
392 add PdgCode {16}
393 add PdgCode {-12}
394 add PdgCode {-14}
395 add PdgCode {-16}
396
397}
398
399
400#####################
401# MC truth jet finder
402#####################
403
404module FastJetFinder GenJetFinder {
405 set InputArray NeutrinoFilter/filteredParticles
406
407 set OutputArray jets
408
409 # algorithm: 1 CDFJetClu, 2 MidPoint, 3 SIScone, 4 kt, 5 Cambridge/Aachen, 6 antikt
410 set JetAlgorithm 6
411 set ParameterR 0.5
412
413 set JetPTMin 20.0
414}
415
416############
417# Jet finder
418############
419
420module FastJetFinder FastJetFinder {
421# set InputArray TowerMerger/towers
422 set InputArray EFlowMerger/eflow
423
424 set OutputArray jets
425
426 # algorithm: 1 CDFJetClu, 2 MidPoint, 3 SIScone, 4 kt, 5 Cambridge/Aachen, 6 antikt
427 set JetAlgorithm 6
428 set ParameterR 0.5
429
430 set JetPTMin 20.0
431}
432
433##################
434# Jet Energy Scale
435##################
436
437module EnergyScale JetEnergyScale {
438 set InputArray FastJetFinder/jets
439 set OutputArray jets
440
441 # scale formula for jets
442 set ScaleFormula {1.00}
443}
444
445##########################
446# Track Counting b-tagging
447##########################
448
449module TrackCountingBTagging TrackCountingBTagging {
450 set TrackInputArray ImpactParameterSmearing/tracks
451 set JetInputArray JetEnergyScale/jets
452
453 set BitNumber 0
454
455 # maximum distance between jet and track
456 set DeltaR 0.3
457
458 # minimum pt of tracks
459 set TrackPTMin 1.0
460
461 # minimum transverse impact parameter (in mm)
462 set TrackIPMax 2.0
463
464 # minimum ip significance for the track to be counted
465 set SigMin 6.5
466
467 # minimum number of tracks (high efficiency n=2, high purity n=3)
468 set Ntracks 3
469}
470
471
472##########################
473# tau-tagging
474##########################
475
476
477module TauTagging TauTagging {
478 set ParticleInputArray Delphes/allParticles
479 set PartonInputArray Delphes/partons
480 set JetInputArray JetEnergyScale/jets
481
482 set DeltaR 0.5
483
484 set TauPTMin 1.0
485
486 set TauEtaMax 4.0
487
488 # add EfficiencyFormula {abs(PDG code)} {efficiency formula as a function of eta and pt}
489
490 # default efficiency formula (misidentification rate)
491 add EfficiencyFormula {0} {0.001}
492 # efficiency formula for tau-jets
493 add EfficiencyFormula {15} {0.4}
494}
495
496##################
497# ROOT tree writer
498##################
499
500module TreeWriter TreeWriter {
501# add Branch InputArray BranchName BranchClass
502 add Branch Delphes/allParticles Particle GenParticle
503 add Branch GenJetFinder/jets GenJet Jet
504
505 add Branch ChargedHadronMomentumSmearing/chargedHadrons ChargedHadron Track
506 add Branch HCal/eflowNeutralHadrons NeutralHadron Tower
507 add Branch ECal/eflowPhotons Photon Photon
508
509 add Branch ElectronEnergySmearing/electrons Electron Electron
510 add Branch MuonMomentumSmearing/muons Muon Muon
511 add Branch JetEnergyScale/jets Jet Jet
512 add Branch MissingET/momentum MissingET MissingET
513 add Branch ScalarHT/energy ScalarHT ScalarHT
514}
515
Note: See TracBrowser for help on using the repository browser.