Fork me on GitHub

source: git/cards/delphes_card_FCC.tcl@ a0629ab

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

added GenMissingET to all cards

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