Fork me on GitHub

source: git/cards/FCC/FCChh_PileUpVtx.tcl@ 364dbe1

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

added energy loss parameters explicitely in the card

  • Property mode set to 100644
File size: 26.4 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 MaxEvents 1000
15set RandomSeed 123
16
17set ExecutionPath {
18
19 BeamSpotFilter
20 PileUpMerger
21 ParticlePropagator
22
23 ChargedHadronTrackingEfficiency
24 ElectronTrackingEfficiency
25 MuonTrackingEfficiency
26
27 ChargedHadronMomentumSmearing
28 ElectronMomentumSmearing
29 MuonMomentumSmearing
30
31 EnergyLoss
32
33 TrackMerger
34
35
36 TrackSmearing
37 TimeSmearing
38
39 VertexFinderDA4D
40
41 TrackTimingPileUpSubtractor
42
43 ECal
44 HCal
45
46 Calorimeter
47 EFlowMerger
48 EFlowFilter
49
50 PhotonEfficiency
51 PhotonIsolation
52
53 ElectronFilter
54 ElectronIsolation
55
56 ChargedHadronFilter
57
58 MuonIsolation
59
60 NeutrinoFilter
61
62 MissingET
63 GenMissingET
64
65 GenJetFinder04
66 FastJetFinder04
67 CaloJetFinder04
68 TrackJetFinder04
69
70 JetEnergyScale
71
72 JetFlavorAssociation
73
74 BTagging
75 CTagging
76 TauTagging
77
78 ScalarHT
79
80 UniqueObjectFinder
81
82 TreeWriter
83}
84
85#######################
86# GenBeamSpotFilter
87# Saves a particle intended to represent the beamspot
88#######################
89
90module BeamSpotFilter BeamSpotFilter {
91 set InputArray Delphes/stableParticles
92 set OutputArray beamSpotParticle
93
94}
95
96###############
97# PileUp Merger
98###############
99
100module PileUpMerger PileUpMerger {
101 set InputArray Delphes/stableParticles
102
103 set ParticleOutputArray stableParticles
104 set VertexOutputArray vertices
105
106 # pre-generated minbias input file
107 set PileUpFile MinBias.pileup
108
109 # average expected pile up
110 set MeanPileUp 10
111
112 # 0-poisson, 1-uniform, 2-delta
113 set PileUpDistribution 2
114
115 # maximum spread in the beam direction in m
116 set ZVertexSpread 0.25
117
118 # maximum spread in time in s
119 set TVertexSpread 800E-12
120
121 # vertex smearing formula f(z,t) (z,t need to be respectively given in m,s)
122
123 #set VertexDistributionFormula {exp(-(t^2/(2*(0.063/2.99792458E8*exp(-(z^2/(2*(0.063)^2))))^2)))}
124 set VertexDistributionFormula {exp(-(t^2/160e-12^2/2))*exp(-(z^2/0.053^2/2))}
125
126 # taking 5.3 cm x 160 ps
127
128 #set VertexDistributionFormula { (abs(t) <= 160e-12) * (abs(z) <= 0.053) * (1.00) +
129 # (abs(t) > 160e-12) * (abs(z) <= 0.053) * (0.00) +
130 # (abs(t) <= 160e-12) * (abs(z) > 0.053) * (0.00) +
131 # (abs(t) > 160e-12) * (abs(z) > 0.053) * (0.00)}
132
133}
134
135#################################
136# Propagate particles in cylinder
137#################################
138
139module ParticlePropagator ParticlePropagator {
140 set InputArray PileUpMerger/stableParticles
141 set OutputArray stableParticles
142 set ChargedHadronOutputArray chargedHadrons
143 set ElectronOutputArray electrons
144 set MuonOutputArray muons
145
146 # radius of the magnetic field coverage, in m
147 set Radius 1.5
148 # half-length of the magnetic field coverage, in m
149 set HalfLength 5
150
151 # magnetic field
152 set Bz 4.0
153}
154
155
156####################################
157# Charged hadron tracking efficiency
158####################################
159
160module Efficiency ChargedHadronTrackingEfficiency {
161 set InputArray ParticlePropagator/chargedHadrons
162 set OutputArray chargedHadrons
163
164 # TBC (which eta_max ? which pT min?)
165
166 # tracking efficiency formula for charged hadrons
167
168 set EfficiencyFormula { (pt <= 0.5) * (0.00) + \
169(abs(eta) <= 2.5) * (pt > 0.5 && pt <= 1) * (0.90) + \
170(abs(eta) <= 2.5) * (pt > 1) * (0.95) + \
171(abs(eta) > 2.5 && abs(eta) <= 4) * (pt > 0.5 && pt <= 1) * (0.85) + \
172(abs(eta) > 2.5 && abs(eta) <= 4) * (pt > 1) * (0.90) + \
173(abs(eta) > 4 && abs(eta) <= 6) * (pt > 0.5 && pt <= 1) * (0.80) + \
174(abs(eta) > 4 && abs(eta) <= 6) * (pt > 1.0) * (0.85) + \
175(abs(eta) > 6.0) * (0.00)}
176
177}
178
179##############################
180# Electron tracking efficiency
181##############################
182
183module Efficiency ElectronTrackingEfficiency {
184 set InputArray ParticlePropagator/electrons
185 set OutputArray electrons
186
187# TBC (which eta_max ?)
188# putting same as charged hadrons for now...
189
190 set EfficiencyFormula { (pt <= 0.5) * (0.00) + \
191 (abs(eta) <= 2.5) * (pt > 0.5 && pt <= 1) * (0.90) + \
192 (abs(eta) <= 2.5) * (pt > 1) * (0.95) + \
193 (abs(eta) > 2.5 && abs(eta) <= 4) * (pt > 0.5 && pt <= 1) * (0.85) + \
194 (abs(eta) > 2.5 && abs(eta) <= 4) * (pt > 1) * (0.90) + \
195 (abs(eta) > 4 && abs(eta) <= 6) * (pt > 0.5 && pt <= 1) * (0.80) + \
196 (abs(eta) > 4 && abs(eta) <= 6) * (pt > 1.0) * (0.85) + \
197 (abs(eta) > 6.0) * (0.00)}
198
199}
200
201##########################
202# Muon tracking efficiency
203##########################
204
205module Efficiency MuonTrackingEfficiency {
206 set InputArray ParticlePropagator/muons
207 set OutputArray muons
208
209# TBC (which eta_max ? why eff = 0 for 4 < eta < 6 ? for now put the same as central)
210# what about high pT ?
211 # tracking efficiency formula for muons
212 set EfficiencyFormula { (pt <= 0.5) * (0.00) + \
213 (abs(eta) <= 6.0) * (pt > 0.5 && pt <= 1) * (0.90) + \
214 (abs(eta) <= 6.0) * (pt > 1) * (0.99) + \
215 (abs(eta) > 6.0) * (0.00)}
216
217}
218
219########################################
220# Momentum resolution for charged tracks
221########################################
222
223module MomentumSmearing ChargedHadronMomentumSmearing {
224 set InputArray ChargedHadronTrackingEfficiency/chargedHadrons
225 set OutputArray chargedHadrons
226
227 source momentumResolutionVsP.tcl
228}
229
230
231###################################
232# Momentum resolution for electrons
233###################################
234
235module MomentumSmearing ElectronMomentumSmearing {
236 set InputArray ElectronTrackingEfficiency/electrons
237 set OutputArray electrons
238
239 source momentumResolutionVsP.tcl
240}
241
242
243###############################
244# Momentum resolution for muons
245###############################
246
247module MomentumSmearing MuonMomentumSmearing {
248 set InputArray MuonTrackingEfficiency/muons
249 set OutputArray muons
250
251 # TBC for just putting tracker resolution/ need to add improvement at high pT
252
253 source muonMomentumResolutionVsP.tcl
254}
255
256#################################
257# Charged Energy Loss (dE/dx)
258#################################
259
260module EnergyLoss EnergyLoss {
261 add InputArray ChargedHadronMomentumSmearing/chargedHadrons
262 add InputArray ElectronMomentumSmearing/electrons
263 add InputArray MuonMomentumSmearing/muons
264
265 set ActiveFraction 0.013
266 set ChargeCollectionEfficiency 0.75
267
268 # fixme: this number should probably be charge/energy dependent, or absolute number in MeV/cm?
269 set Resolution 0.15
270
271 # active material properties (cf. http://pdg.lbl.gov/2014/AtomicNuclearProperties/properties8.dat)
272 set Z 14.
273 set A 28.0855
274 set rho 2.329
275
276 # material polarisation correction parameters
277 set a 0.1492
278 set m 3.2546
279 set x0 0.2015
280 set x1 2.8716
281 set I 173.0
282 set c0 4.4355
283
284}
285
286##############
287# Track merger
288##############
289
290module Merger TrackMerger {
291# add InputArray InputArray
292 add InputArray ChargedHadronMomentumSmearing/chargedHadrons
293 add InputArray ElectronMomentumSmearing/electrons
294 add InputArray MuonMomentumSmearing/muons
295 set OutputArray tracks
296}
297
298
299
300########################################
301# Smear tracks
302########################################
303
304module TrackSmearing TrackSmearing {
305 set InputArray TrackMerger/tracks
306 set OutputArray tracks
307 set ApplyToPileUp true
308
309 # from http://mersi.web.cern.ch/mersi/layouts/.private/Baseline_tilted_200_Pixel_1_1_1/index.html
310 source trackResolutionCMS.tcl
311 # FIXME !!!! we need to add track resolution of FCC-hh baseline detector !!!!!
312}
313
314########################################
315# Time Smearing
316########################################
317
318module TimeSmearing TimeSmearing {
319 set InputArray TrackSmearing/tracks
320 set OutputArray tracks
321
322 # assume 20 ps resolution for now
323 set TimeResolution 20E-12
324}
325
326##################################
327# Primary vertex reconstruction
328##################################
329
330
331module VertexFinderDA4D VertexFinderDA4D {
332 set InputArray TimeSmearing/tracks
333
334 set OutputArray tracks
335 set VertexOutputArray vertices
336
337 set Verbose 0
338 set MinPT 1.0
339
340 # in mm
341 set VertexSpaceSize 0.5
342
343 # in s
344 set VertexTimeSize 10E-12
345
346 set UseTc 1
347 set BetaMax 0.1
348 set BetaStop 1.0
349 set CoolingFactor 0.8
350 set MaxIterations 100
351
352 # in mm
353 set DzCutOff 40
354 set D0CutOff 30
355
356}
357
358##########################
359# Track pile-up subtractor
360##########################
361
362module TrackTimingPileUpSubtractor TrackTimingPileUpSubtractor {
363# add InputArray InputArray OutputArray
364
365 add InputArray ChargedHadronMomentumSmearing/chargedHadrons
366 add InputArray ElectronMomentumSmearing/electrons
367 add InputArray MuonMomentumSmearing/muons
368
369 set VertexInputArray VertexFinderDA4D/vertices
370 # assume perfect pile-up subtraction for tracks with |z| > fZVertexResolution
371 # Z vertex resolution in m
372 set ZVertexResolution {0.0001}
373}
374
375
376#############
377# ECAL
378#############
379
380# TBC : calos seems ok, check eta max value though.
381
382module SimpleCalorimeter ECal {
383 set ParticleInputArray ParticlePropagator/stableParticles
384 set TrackInputArray TimeSmearing/tracks
385
386 set TowerOutputArray ecalTowers
387 set EFlowTrackOutputArray eflowTracks
388 set EFlowTowerOutputArray eflowPhotons
389
390 set IsEcal true
391
392 set EnergyMin 0.5
393 set EnergySignificanceMin 2.0
394
395 set SmearTowerCenter true
396
397 set pi [expr {acos(-1)}]
398
399 # lists of the edges of each tower in eta and phi
400 # each list starts with the lower edge of the first tower
401 # the list ends with the higher edged of the last tower
402
403 # 0.012 rad towers up to eta = 2.5 (barrel)
404 set PhiBins {}
405 for {set i -256} {$i <= 256} {incr i} {
406 add PhiBins [expr {$i * $pi/256.0}]
407 }
408
409 # 0.01 unit in eta up to eta = 2.5 (barrel)
410 for {set i -249} {$i <= 250} {incr i} {
411 set eta [expr {$i * 0.01}]
412 add EtaPhiBins $eta $PhiBins
413 }
414
415 # 0.025 rad between 2.5 and 6.0
416 set PhiBins {}
417 for {set i -128} {$i <= 128} {incr i} {
418 add PhiBins [expr {$i * $pi/128.0}]
419 }
420
421 # 0.025 unit in eta between 2.5 and 6.0
422 for {set i 0} {$i <= 140} {incr i} {
423 set eta [expr { -6.00 + $i * 0.025}]
424 add EtaPhiBins $eta $PhiBins
425 }
426
427 for {set i 0} {$i <= 139} {incr i} {
428 set eta [expr { 2.525 + $i * 0.025}]
429 add EtaPhiBins $eta $PhiBins
430 }
431
432 # default energy fractions {abs(PDG code)} {fraction of energy deposited in ECAL}
433
434 add EnergyFraction {0} {0.0}
435 # energy fractions for e, gamma and pi0
436 add EnergyFraction {11} {1.0}
437 add EnergyFraction {22} {1.0}
438 add EnergyFraction {111} {1.0}
439 # energy fractions for muon, neutrinos and neutralinos
440 add EnergyFraction {12} {0.0}
441 add EnergyFraction {13} {0.0}
442 add EnergyFraction {14} {0.0}
443 add EnergyFraction {16} {0.0}
444 add EnergyFraction {1000022} {0.0}
445 add EnergyFraction {1000023} {0.0}
446 add EnergyFraction {1000025} {0.0}
447 add EnergyFraction {1000035} {0.0}
448 add EnergyFraction {1000045} {0.0}
449 # energy fractions for K0short and Lambda
450 # add EnergyFraction {310} {0.3}
451 # add EnergyFraction {3122} {0.3}
452
453 # set ECalResolutionFormula {resolution formula as a function of eta and energy}
454 set ResolutionFormula { (abs(eta) <= 4.0) * sqrt(energy^2*0.007^2 + energy*0.10^2) + \
455 (abs(eta) > 4.0 && abs(eta) <= 6.0) * sqrt(energy^2*0.035^2 + energy*0.30^2)}
456
457
458}
459
460#############
461# HCAL
462#############
463
464module SimpleCalorimeter HCal {
465 set ParticleInputArray ParticlePropagator/stableParticles
466 set TrackInputArray ECal/eflowTracks
467
468 set TowerOutputArray hcalTowers
469 set EFlowTrackOutputArray eflowTracks
470 set EFlowTowerOutputArray eflowNeutralHadrons
471
472 set IsEcal false
473
474 set EnergyMin 1.0
475 set EnergySignificanceMin 2.0
476
477 set SmearTowerCenter true
478
479 set pi [expr {acos(-1)}]
480
481 # lists of the edges of each tower in eta and phi
482 # each list starts with the lower edge of the first tower
483 # the list ends with the higher edged of the last tower
484
485 # 0.025 rad towers up to eta = 2.5 (barrel)
486 set PhiBins {}
487 for {set i -128} {$i <= 128} {incr i} {
488 add PhiBins [expr {$i * $pi/128.0}]
489 }
490
491 # 0.025 unit in eta up to eta = 2.5 (barrel)
492 for {set i -99} {$i <= 100} {incr i} {
493 set eta [expr {$i * 0.025}]
494 add EtaPhiBins $eta $PhiBins
495 }
496
497 # 0.05 rad between 2.5 and 6.0
498 set PhiBins {}
499 for {set i -64} {$i <= 64} {incr i} {
500 add PhiBins [expr {$i * $pi/64.0}]
501 }
502
503 # 0.05 unit in eta between 2.5 and 6.0
504 for {set i 0} {$i <= 70} {incr i} {
505 set eta [expr { -6.00 + $i * 0.05}]
506 add EtaPhiBins $eta $PhiBins
507 }
508
509 for {set i 0} {$i <= 69} {incr i} {
510 set eta [expr { 2.55 + $i * 0.05}]
511 add EtaPhiBins $eta $PhiBins
512 }
513
514
515 # default energy fractions {abs(PDG code)} {Fecal Fhcal}
516 add EnergyFraction {0} {1.0}
517 # energy fractions for e, gamma and pi0
518 add EnergyFraction {11} {0.0}
519 add EnergyFraction {22} {0.0}
520 add EnergyFraction {111} {0.0}
521 # energy fractions for muon, neutrinos and neutralinos
522 add EnergyFraction {12} {0.0}
523 add EnergyFraction {13} {0.0}
524 add EnergyFraction {14} {0.0}
525 add EnergyFraction {16} {0.0}
526 add EnergyFraction {1000022} {0.0}
527 add EnergyFraction {1000023} {0.0}
528 add EnergyFraction {1000025} {0.0}
529 add EnergyFraction {1000035} {0.0}
530 add EnergyFraction {1000045} {0.0}
531 # energy fractions for K0short and Lambda
532 # add EnergyFraction {310} {0.7}
533 # add EnergyFraction {3122} {0.7}
534
535 # set HCalResolutionFormula {resolution formula as a function of eta and energy}
536 set ResolutionFormula { (abs(eta) <= 1.7) * sqrt(energy^2*0.03^2 + energy*0.50^2) + \
537 (abs(eta) > 1.7 && abs(eta) <= 4.0) * sqrt(energy^2*0.03^2 + energy*0.60^2) + \
538 (abs(eta) > 4.0 && abs(eta) <= 6.0) * sqrt(energy^2*0.10^2 + energy*1.00^2)}
539}
540
541
542#################
543# Electron filter
544#################
545
546module PdgCodeFilter ElectronFilter {
547 set InputArray HCal/eflowTracks
548 set OutputArray electrons
549 set Invert true
550 add PdgCode {11}
551 add PdgCode {-11}
552}
553
554
555######################
556# ChargedHadronFilter
557######################
558
559module PdgCodeFilter ChargedHadronFilter {
560 set InputArray HCal/eflowTracks
561 set OutputArray chargedHadrons
562
563 add PdgCode {11}
564 add PdgCode {-11}
565 add PdgCode {13}
566 add PdgCode {-13}
567}
568
569
570###################################################
571# Tower Merger (in case not using e-flow algorithm)
572###################################################
573
574module Merger Calorimeter {
575# add InputArray InputArray
576 add InputArray ECal/ecalTowers
577 add InputArray HCal/hcalTowers
578 add InputArray MuonMomentumSmearing/muons
579 set OutputArray towers
580}
581
582####################
583# Energy flow merger
584####################
585
586module Merger EFlowMerger {
587# add InputArray InputArray
588 add InputArray HCal/eflowTracks
589 add InputArray ECal/eflowPhotons
590 add InputArray HCal/eflowNeutralHadrons
591 set OutputArray eflow
592}
593
594######################
595# EFlowFilter
596######################
597
598module PdgCodeFilter EFlowFilter {
599 set InputArray EFlowMerger/eflow
600 set OutputArray eflow
601
602 add PdgCode {11}
603 add PdgCode {-11}
604 add PdgCode {13}
605 add PdgCode {-13}
606}
607
608
609###################
610# Missing ET merger
611###################
612
613module Merger MissingET {
614# add InputArray InputArray
615 add InputArray EFlowMerger/eflow
616 set MomentumOutputArray momentum
617}
618
619
620
621##################
622# Scalar HT merger
623##################
624
625module Merger ScalarHT {
626# add InputArray InputArray
627 add InputArray EFlowMerger/eflow
628 set EnergyOutputArray energy
629}
630
631#################
632# Neutrino Filter
633#################
634
635module PdgCodeFilter NeutrinoFilter {
636
637 set InputArray Delphes/stableParticles
638 set OutputArray filteredParticles
639
640 set PTMin 0.0
641
642 add PdgCode {12}
643 add PdgCode {14}
644 add PdgCode {16}
645 add PdgCode {-12}
646 add PdgCode {-14}
647 add PdgCode {-16}
648
649}
650
651
652#########################
653# Gen Missing ET merger
654########################
655
656module Merger GenMissingET {
657
658# add InputArray InputArray
659 add InputArray NeutrinoFilter/filteredParticles
660 set MomentumOutputArray momentum
661}
662
663
664#####################
665# MC truth jet finder
666#####################
667
668# TBC: is jet radius fine?
669
670module FastJetFinder GenJetFinder04 {
671 set InputArray NeutrinoFilter/filteredParticles
672
673 set OutputArray jets
674
675 # algorithm: 1 CDFJetClu, 2 MidPoint, 3 SIScone, 4 kt, 5 Cambridge/Aachen, 6 antikt
676 set JetAlgorithm 6
677 set ParameterR 0.4
678
679 set ComputeNsubjettiness 1
680 set Beta 1.0
681 set AxisMode 4
682
683 set ComputeSoftDrop 1
684 set BetaSoftDrop 0.0
685 set SymmetryCutSoftDrop 0.1
686 set R0SoftDrop 0.4
687
688 set JetPTMin 25.0
689}
690
691
692
693##################
694# Fast Jet finder
695##################
696
697module FastJetFinder FastJetFinder04 {
698 set InputArray EFlowMerger/eflow
699
700 set OutputArray jets
701
702 # algorithm: 1 CDFJetClu, 2 MidPoint, 3 SIScone, 4 kt, 5 Cambridge/Aachen, 6 antikt
703 set JetAlgorithm 6
704 set ParameterR 0.4
705
706 set ComputeNsubjettiness 1
707 set Beta 1.0
708 set AxisMode 4
709
710 set ComputeSoftDrop 1
711 set BetaSoftDrop 0.0
712 set SymmetryCutSoftDrop 0.1
713 set R0SoftDrop 0.4
714
715 set JetPTMin 25.0
716}
717
718
719##################
720# Fast Jet finder
721##################
722
723module FastJetFinder CaloJetFinder04 {
724 set InputArray Calorimeter/towers
725
726 set OutputArray jets
727
728 # algorithm: 1 CDFJetClu, 2 MidPoint, 3 SIScone, 4 kt, 5 Cambridge/Aachen, 6 antikt
729 set JetAlgorithm 6
730 set ParameterR 0.4
731
732 set ComputeNsubjettiness 1
733 set Beta 1.0
734 set AxisMode 4
735
736 set ComputeSoftDrop 1
737 set BetaSoftDrop 0.0
738 set SymmetryCutSoftDrop 0.1
739 set R0SoftDrop 0.4
740
741 set JetPTMin 25.0
742}
743
744##################
745# Fast Jet finder
746##################
747
748module FastJetFinder TrackJetFinder04 {
749 set InputArray TrackMerger/tracks
750
751 set OutputArray jets
752
753 # algorithm: 1 CDFJetClu, 2 MidPoint, 3 SIScone, 4 kt, 5 Cambridge/Aachen, 6 antikt
754 set JetAlgorithm 6
755 set ParameterR 0.4
756
757 set ComputeNsubjettiness 1
758 set Beta 1.0
759 set AxisMode 4
760
761 set ComputeSoftDrop 1
762 set BetaSoftDrop 0.0
763 set SymmetryCutSoftDrop 0.1
764 set R0SoftDrop 0.4
765
766 set JetPTMin 25.0
767}
768
769
770##################
771# Jet Energy Scale
772##################
773
774module EnergyScale JetEnergyScale {
775 set InputArray FastJetFinder04/jets
776 set OutputArray jets
777
778 # scale formula for jets
779 set ScaleFormula {1.00}
780}
781
782
783########################
784# Jet Flavor Association
785########################
786
787module JetFlavorAssociation JetFlavorAssociation {
788
789 set PartonInputArray Delphes/partons
790 set ParticleInputArray Delphes/allParticles
791 set ParticleLHEFInputArray Delphes/allParticlesLHEF
792 set JetInputArray JetEnergyScale/jets
793
794 set DeltaR 0.5
795 set PartonPTMin 5.0
796 set PartonEtaMax 6.0
797
798}
799
800###################
801# Photon efficiency
802###################
803
804module Efficiency PhotonEfficiency {
805 set InputArray ECal/eflowPhotons
806 set OutputArray photons
807
808 # set EfficiencyFormula {efficiency formula as a function of eta and pt}
809
810 set EfficiencyFormula {
811 (pt <= 1.0) * (0.00) + \
812 (abs(eta) <= 2.5) * (pt > 1.0 && pt < 5.0) * (0.70) +
813 (abs(eta) <= 2.5) * (pt > 5.0 && pt < 10.0) * (0.85) +
814 (abs(eta) <= 2.5) * (pt > 10.0) * (0.95) +
815
816 (abs(eta) > 2.5 && abs(eta) <= 4.0) * (pt > 1.0 && pt < 5.0) * (0.60) +
817 (abs(eta) > 2.5 && abs(eta) <= 4.0) * (pt > 5.0 && pt < 10.0) * (0.80) +
818 (abs(eta) > 2.5 && abs(eta) <= 4.0) * (pt > 10.0) * (0.90) +
819
820 (abs(eta) > 4.0 && abs(eta) <= 6.0) * (pt > 1.0 && pt < 5.0) * (0.50) + \
821 (abs(eta) > 4.0 && abs(eta) <= 6.0) * (pt > 5.0 && pt < 10.0) * (0.70) + \
822 (abs(eta) > 4.0 && abs(eta) <= 6.0) * (pt > 10.0) * (0.80) + \
823 (abs(eta) > 6.0) * (0.00)}
824
825}
826
827##################
828# Photon isolation
829##################
830
831# TBC: check values for iso cuts
832
833module Isolation PhotonIsolation {
834 set CandidateInputArray PhotonEfficiency/photons
835 set IsolationInputArray EFlowFilter/eflow
836
837 set OutputArray photons
838
839 set DeltaRMax 0.3
840
841 set PTMin 0.5
842
843 set PTRatioMax 0.1
844}
845
846
847####################
848# Electron isolation
849####################
850
851# TBC: check values for iso cuts
852
853module Isolation ElectronIsolation {
854 set CandidateInputArray ElectronFilter/electrons
855 set IsolationInputArray EFlowFilter/eflow
856
857 set OutputArray electrons
858
859 set DeltaRMax 0.3
860
861 set PTMin 0.5
862
863 set PTRatioMax 0.1
864}
865
866
867################
868# Muon isolation
869################
870
871# TBC: check values for iso cuts
872
873module Isolation MuonIsolation {
874 set CandidateInputArray MuonMomentumSmearing/muons
875 set IsolationInputArray EFlowFilter/eflow
876
877 set OutputArray muons
878
879 set DeltaRMax 0.3
880
881 set PTMin 0.5
882
883 set PTRatioMax 0.2
884}
885
886
887
888###########
889# b-tagging
890###########
891
892module BTagging BTagging {
893 set JetInputArray JetEnergyScale/jets
894
895 set BitNumber 0
896
897 add EfficiencyFormula {0} {
898
899 (pt <= 10.0) * (0.00) +
900 (abs(eta) < 2.5) * (pt > 10.0 && pt < 500) * (0.01) + \
901 (abs(eta) < 2.5) * (pt > 500.0 && pt < 15000.0) * (0.01)*(1.0 - pt/15000.) + \
902 (abs(eta) < 2.5) * (pt > 15000.0) * (0.00) + \
903 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 10.0 && pt < 500) * (0.0075) + \
904 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 500.0 && pt < 15000.0) * (0.0075)*(1.0 - pt/15000.) + \
905 (abs(eta) < 2.5 && abs(eta) < 4.0) * (pt > 15000.0) * (0.000) + \
906 (abs(eta) > 4.0) * (0.00)}
907
908 add EfficiencyFormula {4} {
909
910 (pt <= 10.0) * (0.00) +
911 (abs(eta) < 2.5) * (pt > 10.0 && pt < 500) * (0.05) + \
912 (abs(eta) < 2.5) * (pt > 500.0 && pt < 15000.0) * (0.05)*(1.0 - pt/15000.) + \
913 (abs(eta) < 2.5) * (pt > 15000.0) * (0.000) + \
914 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 10.0 && pt < 500) * (0.03) + \
915 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 500.0 && pt < 15000.0) * (0.03)*(1.0 - pt/15000.) + \
916 (abs(eta) < 2.5 && abs(eta) < 4.0) * (pt > 15000.0) * (0.000) + \
917 (abs(eta) > 4.0) * (0.00)}
918
919 add EfficiencyFormula {5} {
920
921 (pt <= 10.0) * (0.00) +
922 (abs(eta) < 2.5) * (pt > 10.0 && pt < 500) * (0.85) +
923 (abs(eta) < 2.5) * (pt > 500.0 && pt < 15000.0) * (0.85)*(1.0 - pt/15000.) +
924 (abs(eta) < 2.5) * (pt > 15000.0) * (0.000) +
925 (abs(eta) >= 2.5 && abs(eta) < 4.0) * (pt > 10.0 && pt < 500) * (0.64) +
926 (abs(eta) >= 2.5 && abs(eta) < 4.0) * (pt > 500.0 && pt < 15000.0) * (0.64)*(1.0 - pt/15000.) +
927 (abs(eta) <= 2.5 && abs(eta) < 4.0) * (pt > 15000.0) * (0.000) +
928 (abs(eta) >= 4.0) * (0.00)}
929
930}
931
932###########
933# c-tagging
934###########
935
936module BTagging CTagging {
937 set JetInputArray JetEnergyScale/jets
938
939 set BitNumber 1
940
941 add EfficiencyFormula {0} {
942
943 (pt <= 10.0) * (0.00) +
944 (abs(eta) < 4.0) * (pt > 10.0) * (0.01) + \
945 (abs(eta) > 4.0) * (pt > 10.0) * (0.00)}
946
947 add EfficiencyFormula {4} {
948
949 (pt <= 10.0) * (0.00) +
950 (abs(eta) < 4.0) * (pt > 10.0) * (0.25) + \
951 (abs(eta) > 4.0) * (pt > 10.0) * (0.00)}
952
953 add EfficiencyFormula {5} {
954
955 (pt <= 10.0) * (0.00) +
956 (abs(eta) < 4.0) * (pt > 10.0) * (0.03) + \
957 (abs(eta) > 4.0) * (pt > 10.0) * (0.00)}
958
959}
960
961
962#############
963# tau-tagging
964#############
965
966
967module TauTagging TauTagging {
968 set ParticleInputArray Delphes/allParticles
969 set PartonInputArray Delphes/partons
970 set JetInputArray JetEnergyScale/jets
971
972 set DeltaR 0.5
973
974 set TauPTMin 1.0
975
976 set TauEtaMax 4.0
977
978 # add EfficiencyFormula {abs(PDG code)} {efficiency formula as a function of eta and pt}
979 add EfficiencyFormula {0} {
980
981 (pt <= 10.0) * (0.00) +
982 (abs(eta) < 2.5) * (pt > 10.0 && pt < 5000.0) * (0.01) + \
983 (abs(eta) < 2.5) * (pt > 5000.0 && pt < 34000.0) * (0.01) *(8./9. - pt/30000.) + \
984 (abs(eta) < 2.5) * (pt > 34000.0) * (0.000) + \
985 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 10.0 && pt < 5000.0) * (0.0075) + \
986 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 5000.0 && pt < 34000.0) * (0.0075)*(8./9. - pt/30000.) + \
987 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 34000.0) * (0.00) + \
988 (abs(eta) > 4.0) * (0.00)}
989
990 add EfficiencyFormula {11} {
991
992 (pt <= 10.0) * (0.00) +
993 (abs(eta) < 2.5) * (pt > 10.0 && pt < 5000.0) * (0.005) + \
994 (abs(eta) < 2.5) * (pt > 5000.0 && pt < 34000.0) * (0.005) *(8./9. - pt/30000.) + \
995 (abs(eta) < 2.5) * (pt > 34000.0) * (0.000) + \
996 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 10.0 && pt < 5000.0) * (0.00375) + \
997 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 5000.0 && pt < 34000.0) * (0.00375)*(8./9. - pt/30000.) + \
998 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 34000.0) * (0.00) + \
999 (abs(eta) > 4.0) * (0.00)}
1000
1001 add EfficiencyFormula {15} {
1002
1003 (pt <= 10.0) * (0.00) +
1004 (abs(eta) < 2.5) * (pt > 10.0 && pt < 5000.0) * (0.8) + \
1005 (abs(eta) < 2.5) * (pt > 5000.0 && pt < 34000.0) * (0.8) *(8./9. - pt/30000.) + \
1006 (abs(eta) < 2.5) * (pt > 34000.0) * (0.000) + \
1007 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 10.0 && pt < 5000.0) * (0.65) + \
1008 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 5000.0 && pt < 34000.0) * (0.65)*(8./9. - pt/30000.) + \
1009 (abs(eta) > 2.5 && abs(eta) < 4.0) * (pt > 34000.0) * (0.00) + \
1010 (abs(eta) > 4.0) * (0.00)}
1011
1012}
1013
1014#####################################################
1015# Find uniquely identified photons/electrons/tau/jets
1016#####################################################
1017
1018module UniqueObjectFinder UniqueObjectFinder {
1019# earlier arrays take precedence over later ones
1020# add InputArray InputArray OutputArray
1021 add InputArray PhotonIsolation/photons photons
1022 add InputArray ElectronIsolation/electrons electrons
1023 add InputArray MuonIsolation/muons muons
1024 add InputArray JetEnergyScale/jets jets
1025
1026}
1027
1028
1029##################
1030# ROOT tree writer
1031##################
1032
1033module TreeWriter TreeWriter {
1034# add Branch InputArray BranchName BranchClass
1035 add Branch Delphes/allParticles Particle GenParticle
1036
1037 add Branch GenMissingET/momentum GenMissingET MissingET
1038
1039 add Branch TimeSmearing/tracks Track Track
1040 add Branch Calorimeter/towers Tower Tower
1041
1042 add Branch HCal/eflowTracks EFlowTrack Track
1043 add Branch ECal/eflowPhotons EFlowPhoton Tower
1044 add Branch HCal/eflowNeutralHadrons EFlowNeutralHadron Tower
1045
1046 add Branch UniqueObjectFinder/photons Photon Photon
1047 add Branch UniqueObjectFinder/electrons Electron Electron
1048 add Branch UniqueObjectFinder/muons Muon Muon
1049 add Branch UniqueObjectFinder/jets Jet Jet
1050
1051 add Branch GenJetFinder04/jets GenJet04 Jet
1052 add Branch FastJetFinder04/jets ParticleFlowJet04 Jet
1053 add Branch CaloJetFinder04/jets CaloJet04 Jet
1054 add Branch TrackJetFinder04/jets TrackJet04 Jet
1055
1056 add Branch MissingET/momentum MissingET MissingET
1057 add Branch ScalarHT/energy ScalarHT ScalarHT
1058 add Branch VertexFinderDA4D/vertices Vertex4D Vertex
1059}
1060
Note: See TracBrowser for help on using the repository browser.