Fork me on GitHub

source: git/cards/FCC/FCChh_PileUpVtx.tcl@ 4265189

Timing
Last change on this file since 4265189 was 4265189, checked in by Michele Selvaggi <michele.selvaggi@…>, 5 years ago

added RHadron filter

  • Property mode set to 100644
File size: 22.9 KB
Line 
1#
2# Official Delphes card prepared by FCC-hh collaboration
3#
4# Main authors: Michele Selvaggi (CERN)
5#
6# Released on: Dec. 1st, 2017
7#
8# Configuration: FCC-hh baseline detector
9#
10#######################################
11# Order of execution of various modules
12#######################################
13
14set ExecutionPath {
15
16 RHadronFilter
17 RHadronMerger
18 ParticlePropagator
19
20 ChargedHadronTrackingEfficiency
21 ElectronTrackingEfficiency
22 MuonTrackingEfficiency
23
24 ChargedHadronMomentumSmearing
25 ElectronMomentumSmearing
26 MuonMomentumSmearing
27
28 TrackMerger
29
30 ECal
31 HCal
32
33 Calorimeter
34 EFlowMerger
35 EFlowFilter
36
37 PhotonEfficiency
38 PhotonIsolation
39
40 ElectronFilter
41 ElectronIsolation
42
43 ChargedHadronFilter
44
45 MuonIsolation
46
47 NeutrinoFilter
48
49 MissingET
50 GenMissingET
51
52 GenJetFinder04
53 FastJetFinder04
54 CaloJetFinder04
55 TrackJetFinder04
56
57 JetEnergyScale
58
59 JetFlavorAssociation
60
61 BTagging
62 CTagging
63 TauTagging
64
65 ScalarHT
66
67 UniqueObjectFinder
68
69 TreeWriter
70}
71
72#################################
73# Get stable R-Hadrons
74#################################
75
76module PdgCodeFilter RHadronFilter {
77 set InputArray Delphes/allParticles
78 set OutputArray stableRHadrons
79 set Invert false
80
81 set RequireStatus true
82 set Status 104
83}
84
85#################################
86# Merge R-Hadrons with other sable
87#################################
88
89module Merger RHadronMerger {
90 add InputArray RHadronFilter/stableRHadrons
91 add InputArray Delphes/stableParticles
92 set OutputArray stableParticles
93}
94
95
96#################################
97# Propagate particles in cylinder
98#################################
99
100module ParticlePropagator ParticlePropagator {
101 #set InputArray Delphes/stableParticles
102 set InputArray RHadronMerger/stableParticles
103 set OutputArray stableParticles
104 set ChargedHadronOutputArray chargedHadrons
105 set ElectronOutputArray electrons
106 set MuonOutputArray muons
107
108 # radius of the magnetic field coverage, in m
109 set Radius 1.5
110 # half-length of the magnetic field coverage, in m
111 set HalfLength 5
112
113 # magnetic field
114 set Bz 4.0
115}
116
117
118
119####################################
120# Charged hadron tracking efficiency
121####################################
122
123module Efficiency ChargedHadronTrackingEfficiency {
124 set InputArray ParticlePropagator/chargedHadrons
125 set OutputArray chargedHadrons
126
127 # TBC (which eta_max ? which pT min?)
128
129 # tracking efficiency formula for charged hadrons
130
131 set EfficiencyFormula { (pt <= 0.5) * (0.00) + \
132(abs(eta) <= 2.5) * (pt > 0.5 && pt <= 1) * (0.90) + \
133(abs(eta) <= 2.5) * (pt > 1) * (0.95) + \
134(abs(eta) > 2.5 && abs(eta) <= 4) * (pt > 0.5 && pt <= 1) * (0.85) + \
135(abs(eta) > 2.5 && abs(eta) <= 4) * (pt > 1) * (0.90) + \
136(abs(eta) > 4 && abs(eta) <= 6) * (pt > 0.5 && pt <= 1) * (0.80) + \
137(abs(eta) > 4 && abs(eta) <= 6) * (pt > 1.0) * (0.85) + \
138(abs(eta) > 6.0) * (0.00)}
139
140}
141
142##############################
143# Electron tracking efficiency
144##############################
145
146module Efficiency ElectronTrackingEfficiency {
147 set InputArray ParticlePropagator/electrons
148 set OutputArray electrons
149
150# TBC (which eta_max ?)
151# putting same as charged hadrons for now...
152
153 set EfficiencyFormula { (pt <= 0.5) * (0.00) + \
154 (abs(eta) <= 2.5) * (pt > 0.5 && pt <= 1) * (0.90) + \
155 (abs(eta) <= 2.5) * (pt > 1) * (0.95) + \
156 (abs(eta) > 2.5 && abs(eta) <= 4) * (pt > 0.5 && pt <= 1) * (0.85) + \
157 (abs(eta) > 2.5 && abs(eta) <= 4) * (pt > 1) * (0.90) + \
158 (abs(eta) > 4 && abs(eta) <= 6) * (pt > 0.5 && pt <= 1) * (0.80) + \
159 (abs(eta) > 4 && abs(eta) <= 6) * (pt > 1.0) * (0.85) + \
160 (abs(eta) > 6.0) * (0.00)}
161
162}
163
164##########################
165# Muon tracking efficiency
166##########################
167
168module Efficiency MuonTrackingEfficiency {
169 set InputArray ParticlePropagator/muons
170 set OutputArray muons
171
172# TBC (which eta_max ? why eff = 0 for 4 < eta < 6 ? for now put the same as central)
173# what about high pT ?
174 # tracking efficiency formula for muons
175 set EfficiencyFormula { (pt <= 0.5) * (0.00) + \
176 (abs(eta) <= 6.0) * (pt > 0.5 && pt <= 1) * (0.90) + \
177 (abs(eta) <= 6.0) * (pt > 1) * (0.99) + \
178 (abs(eta) > 6.0) * (0.00)}
179
180}
181
182########################################
183# Momentum resolution for charged tracks
184########################################
185
186module MomentumSmearing ChargedHadronMomentumSmearing {
187 set InputArray ChargedHadronTrackingEfficiency/chargedHadrons
188 set OutputArray chargedHadrons
189
190 source momentumResolutionVsP.tcl
191}
192
193
194###################################
195# Momentum resolution for electrons
196###################################
197
198module MomentumSmearing ElectronMomentumSmearing {
199 set InputArray ElectronTrackingEfficiency/electrons
200 set OutputArray electrons
201
202 source momentumResolutionVsP.tcl
203}
204
205
206###############################
207# Momentum resolution for muons
208###############################
209
210module MomentumSmearing MuonMomentumSmearing {
211 set InputArray MuonTrackingEfficiency/muons
212 set OutputArray muons
213
214 # TBC for just putting tracker resolution/ need to add improvement at high pT
215
216 source muonMomentumResolutionVsP.tcl
217}
218
219##############
220# Track merger
221##############
222
223module Merger TrackMerger {
224# add InputArray InputArray
225 add InputArray ChargedHadronMomentumSmearing/chargedHadrons
226 add InputArray ElectronMomentumSmearing/electrons
227 add InputArray MuonMomentumSmearing/muons
228 set OutputArray tracks
229}
230
231
232#### ADD TRACKSMEARING
233#### ADD TIMESMEARING
234
235
236
237#############
238# ECAL
239#############
240
241# TBC : calos seems ok, check eta max value though.
242
243module SimpleCalorimeter ECal {
244 set ParticleInputArray ParticlePropagator/stableParticles
245 set TrackInputArray TrackMerger/tracks
246
247 set TowerOutputArray ecalTowers
248 set EFlowTrackOutputArray eflowTracks
249 set EFlowTowerOutputArray eflowPhotons
250
251 set IsEcal true
252
253 set EnergyMin 0.5
254 set EnergySignificanceMin 2.0
255
256 set SmearTowerCenter true
257
258 set pi [expr {acos(-1)}]
259
260 # lists of the edges of each tower in eta and phi
261 # each list starts with the lower edge of the first tower
262 # the list ends with the higher edged of the last tower
263
264 # 0.012 rad towers up to eta = 2.5 (barrel)
265 set PhiBins {}
266 for {set i -256} {$i <= 256} {incr i} {
267 add PhiBins [expr {$i * $pi/256.0}]
268 }
269
270 # 0.01 unit in eta up to eta = 2.5 (barrel)
271 for {set i -249} {$i <= 250} {incr i} {
272 set eta [expr {$i * 0.01}]
273 add EtaPhiBins $eta $PhiBins
274 }
275
276 # 0.025 rad between 2.5 and 6.0
277 set PhiBins {}
278 for {set i -128} {$i <= 128} {incr i} {
279 add PhiBins [expr {$i * $pi/128.0}]
280 }
281
282 # 0.025 unit in eta between 2.5 and 6.0
283 for {set i 0} {$i <= 140} {incr i} {
284 set eta [expr { -6.00 + $i * 0.025}]
285 add EtaPhiBins $eta $PhiBins
286 }
287
288 for {set i 0} {$i <= 139} {incr i} {
289 set eta [expr { 2.525 + $i * 0.025}]
290 add EtaPhiBins $eta $PhiBins
291 }
292
293 # default energy fractions {abs(PDG code)} {fraction of energy deposited in ECAL}
294
295 add EnergyFraction {0} {0.0}
296 # energy fractions for e, gamma and pi0
297 add EnergyFraction {11} {1.0}
298 add EnergyFraction {22} {1.0}
299 add EnergyFraction {111} {1.0}
300 # energy fractions for muon, neutrinos and neutralinos
301 add EnergyFraction {12} {0.0}
302 add EnergyFraction {13} {0.0}
303 add EnergyFraction {14} {0.0}
304 add EnergyFraction {16} {0.0}
305 add EnergyFraction {1000022} {0.0}
306 add EnergyFraction {1000023} {0.0}
307 add EnergyFraction {1000025} {0.0}
308 add EnergyFraction {1000035} {0.0}
309 add EnergyFraction {1000045} {0.0}
310 # energy fractions for K0short and Lambda
311 # add EnergyFraction {310} {0.3}
312 # add EnergyFraction {3122} {0.3}
313
314 # set ECalResolutionFormula {resolution formula as a function of eta and energy}
315 set ResolutionFormula { (abs(eta) <= 4.0) * sqrt(energy^2*0.007^2 + energy*0.10^2) + \
316 (abs(eta) > 4.0 && abs(eta) <= 6.0) * sqrt(energy^2*0.035^2 + energy*0.30^2)}
317
318
319}
320
321#############
322# HCAL
323#############
324
325module SimpleCalorimeter HCal {
326 set ParticleInputArray ParticlePropagator/stableParticles
327 set TrackInputArray ECal/eflowTracks
328
329 set TowerOutputArray hcalTowers
330 set EFlowTrackOutputArray eflowTracks
331 set EFlowTowerOutputArray eflowNeutralHadrons
332
333 set IsEcal false
334
335 set EnergyMin 1.0
336 set EnergySignificanceMin 2.0
337
338 set SmearTowerCenter true
339
340 set pi [expr {acos(-1)}]
341
342 # lists of the edges of each tower in eta and phi
343 # each list starts with the lower edge of the first tower
344 # the list ends with the higher edged of the last tower
345
346 # 0.025 rad towers up to eta = 2.5 (barrel)
347 set PhiBins {}
348 for {set i -128} {$i <= 128} {incr i} {
349 add PhiBins [expr {$i * $pi/128.0}]
350 }
351
352 # 0.025 unit in eta up to eta = 2.5 (barrel)
353 for {set i -99} {$i <= 100} {incr i} {
354 set eta [expr {$i * 0.025}]
355 add EtaPhiBins $eta $PhiBins
356 }
357
358 # 0.05 rad between 2.5 and 6.0
359 set PhiBins {}
360 for {set i -64} {$i <= 64} {incr i} {
361 add PhiBins [expr {$i * $pi/64.0}]
362 }
363
364 # 0.05 unit in eta between 2.5 and 6.0
365 for {set i 0} {$i <= 70} {incr i} {
366 set eta [expr { -6.00 + $i * 0.05}]
367 add EtaPhiBins $eta $PhiBins
368 }
369
370 for {set i 0} {$i <= 69} {incr i} {
371 set eta [expr { 2.55 + $i * 0.05}]
372 add EtaPhiBins $eta $PhiBins
373 }
374
375
376 # default energy fractions {abs(PDG code)} {Fecal Fhcal}
377 add EnergyFraction {0} {1.0}
378 # energy fractions for e, gamma and pi0
379 add EnergyFraction {11} {0.0}
380 add EnergyFraction {22} {0.0}
381 add EnergyFraction {111} {0.0}
382 # energy fractions for muon, neutrinos and neutralinos
383 add EnergyFraction {12} {0.0}
384 add EnergyFraction {13} {0.0}
385 add EnergyFraction {14} {0.0}
386 add EnergyFraction {16} {0.0}
387 add EnergyFraction {1000022} {0.0}
388 add EnergyFraction {1000023} {0.0}
389 add EnergyFraction {1000025} {0.0}
390 add EnergyFraction {1000035} {0.0}
391 add EnergyFraction {1000045} {0.0}
392 # energy fractions for K0short and Lambda
393 # add EnergyFraction {310} {0.7}
394 # add EnergyFraction {3122} {0.7}
395
396 # set HCalResolutionFormula {resolution formula as a function of eta and energy}
397 set ResolutionFormula { (abs(eta) <= 1.7) * sqrt(energy^2*0.03^2 + energy*0.50^2) + \
398 (abs(eta) > 1.7 && abs(eta) <= 4.0) * sqrt(energy^2*0.03^2 + energy*0.60^2) + \
399 (abs(eta) > 4.0 && abs(eta) <= 6.0) * sqrt(energy^2*0.10^2 + energy*1.00^2)}
400}
401
402#################
403# Electron filter
404#################
405
406module PdgCodeFilter ElectronFilter {
407 set InputArray HCal/eflowTracks
408 set OutputArray electrons
409 set Invert true
410 add PdgCode {11}
411 add PdgCode {-11}
412}
413
414
415######################
416# ChargedHadronFilter
417######################
418
419module PdgCodeFilter ChargedHadronFilter {
420 set InputArray HCal/eflowTracks
421 set OutputArray chargedHadrons
422
423 add PdgCode {11}
424 add PdgCode {-11}
425 add PdgCode {13}
426 add PdgCode {-13}
427}
428
429
430###################################################
431# Tower Merger (in case not using e-flow algorithm)
432###################################################
433
434module Merger Calorimeter {
435# add InputArray InputArray
436 add InputArray ECal/ecalTowers
437 add InputArray HCal/hcalTowers
438 add InputArray MuonMomentumSmearing/muons
439 set OutputArray towers
440}
441
442####################
443# Energy flow merger
444####################
445
446module Merger EFlowMerger {
447# add InputArray InputArray
448 add InputArray HCal/eflowTracks
449 add InputArray ECal/eflowPhotons
450 add InputArray HCal/eflowNeutralHadrons
451 set OutputArray eflow
452}
453
454######################
455# EFlowFilter
456######################
457
458module PdgCodeFilter EFlowFilter {
459 set InputArray EFlowMerger/eflow
460 set OutputArray eflow
461
462 add PdgCode {11}
463 add PdgCode {-11}
464 add PdgCode {13}
465 add PdgCode {-13}
466}
467
468
469###################
470# Missing ET merger
471###################
472
473module Merger MissingET {
474# add InputArray InputArray
475 add InputArray EFlowMerger/eflow
476 set MomentumOutputArray momentum
477}
478
479
480
481##################
482# Scalar HT merger
483##################
484
485module Merger ScalarHT {
486# add InputArray InputArray
487 add InputArray EFlowMerger/eflow
488 set EnergyOutputArray energy
489}
490
491#################
492# Neutrino Filter
493#################
494
495module PdgCodeFilter NeutrinoFilter {
496
497 set InputArray Delphes/stableParticles
498 set OutputArray filteredParticles
499
500 set PTMin 0.0
501
502 add PdgCode {12}
503 add PdgCode {14}
504 add PdgCode {16}
505 add PdgCode {-12}
506 add PdgCode {-14}
507 add PdgCode {-16}
508
509}
510
511
512#########################
513# Gen Missing ET merger
514########################
515
516module Merger GenMissingET {
517
518# add InputArray InputArray
519 add InputArray NeutrinoFilter/filteredParticles
520 set MomentumOutputArray momentum
521}
522
523
524
525
526#####################
527# MC truth jet finder
528#####################
529
530# TBC: is jet radius fine?
531
532module FastJetFinder GenJetFinder04 {
533 set InputArray NeutrinoFilter/filteredParticles
534
535 set OutputArray jets
536
537 # algorithm: 1 CDFJetClu, 2 MidPoint, 3 SIScone, 4 kt, 5 Cambridge/Aachen, 6 antikt
538 set JetAlgorithm 6
539 set ParameterR 0.4
540
541 set ComputeNsubjettiness 1
542 set Beta 1.0
543 set AxisMode 4
544
545 set ComputeSoftDrop 1
546 set BetaSoftDrop 0.0
547 set SymmetryCutSoftDrop 0.1
548 set R0SoftDrop 0.4
549
550 set JetPTMin 25.0
551}
552
553
554
555##################
556# Fast Jet finder
557##################
558
559module FastJetFinder FastJetFinder04 {
560 set InputArray EFlowMerger/eflow
561
562 set OutputArray jets
563
564 # algorithm: 1 CDFJetClu, 2 MidPoint, 3 SIScone, 4 kt, 5 Cambridge/Aachen, 6 antikt
565 set JetAlgorithm 6
566 set ParameterR 0.4
567
568 set ComputeNsubjettiness 1
569 set Beta 1.0
570 set AxisMode 4
571
572 set ComputeSoftDrop 1
573 set BetaSoftDrop 0.0
574 set SymmetryCutSoftDrop 0.1
575 set R0SoftDrop 0.4
576
577 set JetPTMin 25.0
578}
579
580
581##################
582# Fast Jet finder
583##################
584
585module FastJetFinder CaloJetFinder04 {
586 set InputArray Calorimeter/towers
587
588 set OutputArray jets
589
590 # algorithm: 1 CDFJetClu, 2 MidPoint, 3 SIScone, 4 kt, 5 Cambridge/Aachen, 6 antikt
591 set JetAlgorithm 6
592 set ParameterR 0.4
593
594 set ComputeNsubjettiness 1
595 set Beta 1.0
596 set AxisMode 4
597
598 set ComputeSoftDrop 1
599 set BetaSoftDrop 0.0
600 set SymmetryCutSoftDrop 0.1
601 set R0SoftDrop 0.4
602
603 set JetPTMin 25.0
604}
605
606##################
607# Fast Jet finder
608##################
609
610module FastJetFinder TrackJetFinder04 {
611 set InputArray TrackMerger/tracks
612
613 set OutputArray jets
614
615 # algorithm: 1 CDFJetClu, 2 MidPoint, 3 SIScone, 4 kt, 5 Cambridge/Aachen, 6 antikt
616 set JetAlgorithm 6
617 set ParameterR 0.4
618
619 set ComputeNsubjettiness 1
620 set Beta 1.0
621 set AxisMode 4
622
623 set ComputeSoftDrop 1
624 set BetaSoftDrop 0.0
625 set SymmetryCutSoftDrop 0.1
626 set R0SoftDrop 0.4
627
628 set JetPTMin 25.0
629}
630
631
632##################
633# Jet Energy Scale
634##################
635
636module EnergyScale JetEnergyScale {
637 set InputArray FastJetFinder04/jets
638 set OutputArray jets
639
640 # scale formula for jets
641 set ScaleFormula {1.00}
642}
643
644
645########################
646# Jet Flavor Association
647########################
648
649module JetFlavorAssociation JetFlavorAssociation {
650
651 set PartonInputArray Delphes/partons
652 set ParticleInputArray Delphes/allParticles
653 set ParticleLHEFInputArray Delphes/allParticlesLHEF
654 set JetInputArray JetEnergyScale/jets
655
656 set DeltaR 0.5
657 set PartonPTMin 5.0
658 set PartonEtaMax 6.0
659
660}
661
662###################
663# Photon efficiency
664###################
665
666module Efficiency PhotonEfficiency {
667 set InputArray ECal/eflowPhotons
668 set OutputArray photons
669
670 # set EfficiencyFormula {efficiency formula as a function of eta and pt}
671
672 set EfficiencyFormula {
673 (pt <= 1.0) * (0.00) + \
674 (abs(eta) <= 2.5) * (pt > 1.0 && pt < 5.0) * (0.70) +
675 (abs(eta) <= 2.5) * (pt > 5.0 && pt < 10.0) * (0.85) +
676 (abs(eta) <= 2.5) * (pt > 10.0) * (0.95) +
677
678 (abs(eta) > 2.5 && abs(eta) <= 4.0) * (pt > 1.0 && pt < 5.0) * (0.60) +
679 (abs(eta) > 2.5 && abs(eta) <= 4.0) * (pt > 5.0 && pt < 10.0) * (0.80) +
680 (abs(eta) > 2.5 && abs(eta) <= 4.0) * (pt > 10.0) * (0.90) +
681
682 (abs(eta) > 4.0 && abs(eta) <= 6.0) * (pt > 1.0 && pt < 5.0) * (0.50) + \
683 (abs(eta) > 4.0 && abs(eta) <= 6.0) * (pt > 5.0 && pt < 10.0) * (0.70) + \
684 (abs(eta) > 4.0 && abs(eta) <= 6.0) * (pt > 10.0) * (0.80) + \
685 (abs(eta) > 6.0) * (0.00)}
686
687}
688
689##################
690# Photon isolation
691##################
692
693# TBC: check values for iso cuts
694
695module Isolation PhotonIsolation {
696 set CandidateInputArray PhotonEfficiency/photons
697 set IsolationInputArray EFlowFilter/eflow
698
699 set OutputArray photons
700
701 set DeltaRMax 0.3
702
703 set PTMin 0.5
704
705 set PTRatioMax 0.1
706}
707
708
709####################
710# Electron isolation
711####################
712
713# TBC: check values for iso cuts
714
715module Isolation ElectronIsolation {
716 set CandidateInputArray ElectronFilter/electrons
717 set IsolationInputArray EFlowFilter/eflow
718
719 set OutputArray electrons
720
721 set DeltaRMax 0.3
722
723 set PTMin 0.5
724
725 set PTRatioMax 0.1
726}
727
728
729################
730# Muon isolation
731################
732
733# TBC: check values for iso cuts
734
735module Isolation MuonIsolation {
736 set CandidateInputArray MuonMomentumSmearing/muons
737 set IsolationInputArray EFlowFilter/eflow
738
739 set OutputArray muons
740
741 set DeltaRMax 0.3
742
743 set PTMin 0.5
744
745 set PTRatioMax 0.2
746}
747
748
749
750###########
751# b-tagging
752###########
753
754module BTagging BTagging {
755 set JetInputArray JetEnergyScale/jets
756
757 set BitNumber 0
758
759 add EfficiencyFormula {0} {
760
761 (pt <= 10.0) * (0.00) +
762 (abs(eta) < 2.5) * (pt > 10.0 && pt < 500) * (0.01) + \
763 (abs(eta) < 2.5) * (pt > 500.0 && pt < 15000.0) * (0.01)*(1.0 - pt/15000.) + \
764 (abs(eta) < 2.5) * (pt > 15000.0) * (0.00) + \
765 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 10.0 && pt < 500) * (0.0075) + \
766 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 500.0 && pt < 15000.0) * (0.0075)*(1.0 - pt/15000.) + \
767 (abs(eta) < 2.5 && abs(eta) < 4.0) * (pt > 15000.0) * (0.000) + \
768 (abs(eta) > 4.0) * (0.00)}
769
770 add EfficiencyFormula {4} {
771
772 (pt <= 10.0) * (0.00) +
773 (abs(eta) < 2.5) * (pt > 10.0 && pt < 500) * (0.05) + \
774 (abs(eta) < 2.5) * (pt > 500.0 && pt < 15000.0) * (0.05)*(1.0 - pt/15000.) + \
775 (abs(eta) < 2.5) * (pt > 15000.0) * (0.000) + \
776 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 10.0 && pt < 500) * (0.03) + \
777 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 500.0 && pt < 15000.0) * (0.03)*(1.0 - pt/15000.) + \
778 (abs(eta) < 2.5 && abs(eta) < 4.0) * (pt > 15000.0) * (0.000) + \
779 (abs(eta) > 4.0) * (0.00)}
780
781 add EfficiencyFormula {5} {
782
783 (pt <= 10.0) * (0.00) +
784 (abs(eta) < 2.5) * (pt > 10.0 && pt < 500) * (0.85) +
785 (abs(eta) < 2.5) * (pt > 500.0 && pt < 15000.0) * (0.85)*(1.0 - pt/15000.) +
786 (abs(eta) < 2.5) * (pt > 15000.0) * (0.000) +
787 (abs(eta) >= 2.5 && abs(eta) < 4.0) * (pt > 10.0 && pt < 500) * (0.64) +
788 (abs(eta) >= 2.5 && abs(eta) < 4.0) * (pt > 500.0 && pt < 15000.0) * (0.64)*(1.0 - pt/15000.) +
789 (abs(eta) <= 2.5 && abs(eta) < 4.0) * (pt > 15000.0) * (0.000) +
790 (abs(eta) >= 4.0) * (0.00)}
791
792}
793
794###########
795# c-tagging
796###########
797
798module BTagging CTagging {
799 set JetInputArray JetEnergyScale/jets
800
801 set BitNumber 1
802
803 add EfficiencyFormula {0} {
804
805 (pt <= 10.0) * (0.00) +
806 (abs(eta) < 4.0) * (pt > 10.0) * (0.01) + \
807 (abs(eta) > 4.0) * (pt > 10.0) * (0.00)}
808
809 add EfficiencyFormula {4} {
810
811 (pt <= 10.0) * (0.00) +
812 (abs(eta) < 4.0) * (pt > 10.0) * (0.25) + \
813 (abs(eta) > 4.0) * (pt > 10.0) * (0.00)}
814
815 add EfficiencyFormula {5} {
816
817 (pt <= 10.0) * (0.00) +
818 (abs(eta) < 4.0) * (pt > 10.0) * (0.03) + \
819 (abs(eta) > 4.0) * (pt > 10.0) * (0.00)}
820
821}
822
823
824#############
825# tau-tagging
826#############
827
828
829module TauTagging TauTagging {
830 set ParticleInputArray Delphes/allParticles
831 set PartonInputArray Delphes/partons
832 set JetInputArray JetEnergyScale/jets
833
834 set DeltaR 0.5
835
836 set TauPTMin 1.0
837
838 set TauEtaMax 4.0
839
840 # add EfficiencyFormula {abs(PDG code)} {efficiency formula as a function of eta and pt}
841 add EfficiencyFormula {0} {
842
843 (pt <= 10.0) * (0.00) +
844 (abs(eta) < 2.5) * (pt > 10.0 && pt < 5000.0) * (0.01) + \
845 (abs(eta) < 2.5) * (pt > 5000.0 && pt < 34000.0) * (0.01) *(8./9. - pt/30000.) + \
846 (abs(eta) < 2.5) * (pt > 34000.0) * (0.000) + \
847 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 10.0 && pt < 5000.0) * (0.0075) + \
848 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 5000.0 && pt < 34000.0) * (0.0075)*(8./9. - pt/30000.) + \
849 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 34000.0) * (0.00) + \
850 (abs(eta) > 4.0) * (0.00)}
851
852 add EfficiencyFormula {11} {
853
854 (pt <= 10.0) * (0.00) +
855 (abs(eta) < 2.5) * (pt > 10.0 && pt < 5000.0) * (0.005) + \
856 (abs(eta) < 2.5) * (pt > 5000.0 && pt < 34000.0) * (0.005) *(8./9. - pt/30000.) + \
857 (abs(eta) < 2.5) * (pt > 34000.0) * (0.000) + \
858 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 10.0 && pt < 5000.0) * (0.00375) + \
859 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 5000.0 && pt < 34000.0) * (0.00375)*(8./9. - pt/30000.) + \
860 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 34000.0) * (0.00) + \
861 (abs(eta) > 4.0) * (0.00)}
862
863 add EfficiencyFormula {15} {
864
865 (pt <= 10.0) * (0.00) +
866 (abs(eta) < 2.5) * (pt > 10.0 && pt < 5000.0) * (0.8) + \
867 (abs(eta) < 2.5) * (pt > 5000.0 && pt < 34000.0) * (0.8) *(8./9. - pt/30000.) + \
868 (abs(eta) < 2.5) * (pt > 34000.0) * (0.000) + \
869 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 10.0 && pt < 5000.0) * (0.65) + \
870 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 5000.0 && pt < 34000.0) * (0.65)*(8./9. - pt/30000.) + \
871 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 34000.0) * (0.00) + \
872 (abs(eta) > 4.0) * (0.00)}
873
874}
875
876#####################################################
877# Find uniquely identified photons/electrons/tau/jets
878#####################################################
879
880module UniqueObjectFinder UniqueObjectFinder {
881# earlier arrays take precedence over later ones
882# add InputArray InputArray OutputArray
883 add InputArray PhotonIsolation/photons photons
884 add InputArray ElectronIsolation/electrons electrons
885 add InputArray MuonIsolation/muons muons
886 add InputArray JetEnergyScale/jets jets
887
888}
889
890
891##################
892# ROOT tree writer
893##################
894
895module TreeWriter TreeWriter {
896# add Branch InputArray BranchName BranchClass
897 add Branch Delphes/allParticles Particle GenParticle
898
899 add Branch GenMissingET/momentum GenMissingET MissingET
900
901 add Branch TrackMerger/tracks Track Track
902 add Branch Calorimeter/towers Tower Tower
903
904 add Branch HCal/eflowTracks EFlowTrack Track
905 add Branch ECal/eflowPhotons EFlowPhoton Tower
906 add Branch HCal/eflowNeutralHadrons EFlowNeutralHadron Tower
907
908 add Branch UniqueObjectFinder/photons Photon Photon
909 add Branch UniqueObjectFinder/electrons Electron Electron
910 add Branch UniqueObjectFinder/muons Muon Muon
911 add Branch UniqueObjectFinder/jets Jet Jet
912
913 add Branch GenJetFinder04/jets GenJet04 Jet
914 add Branch FastJetFinder04/jets ParticleFlowJet04 Jet
915 add Branch CaloJetFinder04/jets CaloJet04 Jet
916 add Branch TrackJetFinder04/jets TrackJet04 Jet
917
918 add Branch MissingET/momentum MissingET MissingET
919 add Branch ScalarHT/energy ScalarHT ScalarHT
920}
921
Note: See TracBrowser for help on using the repository browser.