Fork me on GitHub

source: git/cards/delphes_card_FCC.tcl@ 0413f44

ImprovedOutputFile Timing dual_readout llp
Last change on this file since 0413f44 was 679a87e, checked in by Michele Selvaggi <michele.selvaggi@…>, 9 years ago

put sqrt in mom. reso. formulae

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