4 ChargedHadronTrackingEfficiency
5 ElectronTrackingEfficiency
8 ChargedHadronMomentumSmearing
9 ElectronMomentumSmearing
38 GenJetFlavorAssociation
50 module ParticlePropagator ParticlePropagator {
51 set InputArray Delphes/stableParticles
52 set OutputArray stableParticles
53 set ChargedHadronOutputArray chargedHadrons
54 set ElectronOutputArray electrons
56 # radius of the magnetic field coverage, in m
58 # half-length of the magnetic field coverage, in m
65 set CommonTrackingEfficiency {
66 (abs(eta) <= 2.0) * (pt > 0.100) * (1.0) +
70 set CommonTrackingResolution {
71 (abs(eta)<=1.0) * (sqrt( (2.0e-2)^2 + (pt*cosh(eta)*5e-3)^2 ) ) +
72 (abs(eta)>1.0 && abs(eta)<2.0) * (sqrt( (10.0e-2)^2 + (pt*cosh(eta)*1e-2)^2 ) )
76 module Efficiency ChargedHadronTrackingEfficiency {
77 set InputArray ParticlePropagator/chargedHadrons
78 set OutputArray chargedHadrons
79 set EfficiencyFormula $CommonTrackingEfficiency
86 module Efficiency ElectronTrackingEfficiency {
87 set InputArray ParticlePropagator/electrons
88 set OutputArray electrons
89 set EfficiencyFormula $CommonTrackingEfficiency
96 module MomentumSmearing ChargedHadronMomentumSmearing {
97 set InputArray ChargedHadronTrackingEfficiency/chargedHadrons
98 set OutputArray chargedHadrons
99 set ResolutionFormula $CommonTrackingResolution
104 module MomentumSmearing ElectronMomentumSmearing {
105 set InputArray ElectronTrackingEfficiency/electrons
106 set OutputArray electrons
107 set ResolutionFormula $CommonTrackingResolution
115 module Merger TrackMerger {
116 # add InputArray InputArray
117 add InputArray ChargedHadronMomentumSmearing/chargedHadrons
118 add InputArray ElectronMomentumSmearing/electrons
120 set OutputArray tracks
149 module SimpleCalorimeter ECal {
150 set ParticleInputArray ParticlePropagator/stableParticles
151 set TrackInputArray TrackMerger/tracks
153 set TowerOutputArray ecalTowers
154 set EFlowTrackOutputArray eflowTracks
155 set EFlowTowerOutputArray eflowPhotons
162 set EnergySignificanceMin 1.0
164 set SmearTowerCenter true
165 set pi [
expr {acos(-1)}]
167 for {set i -30} {$i <=30} {incr i} {
168 add PhiBins [
expr {$i * $pi/30.0}]
170 for {set i -10} {$i <=10} {incr i} {
171 set eta [
expr {$i * 0.1}]
172 add EtaPhiBins $eta $PhiBins
175 for {set i -30} {$i <=30} {incr i} {
176 add PhiBins [
expr {$i * $pi/30.0}]
179 foreach eta {-3.3 -3.26996837 -3.14642305 -3.03653567 -2.93760447 -2.84766006 -2.76522251 -2.68915144 \
180 -2.61854952 -2.55269788 -2.49101173 -2.43300894 -2.3782873 -2.3265078 -2.27738197 -2.23066235 -2.1861350\
181 3 -2.14361383 -2.10293569 -2.063957 -2.02655061 -1.99060337 -1.95601417 -1.92269228 -1.89055593 -1.8595312\
182 -1.82955102 -1.80055436 -1.77248548 -1.74529337 -1.71893119 -1.69335587 -1.66852765 -1.64440978 -1.62096\
183 821 -1.59817135 -1.57598979 -1.55439612 -1.53336478 -1.51287184 -1.4928949 -1.47341295 -1.45440623 -1.435\
184 85618 -1.41774529 -1.40005705 -1.38277588 -1.36588703 -1.34937654 -1.33323117 -1.31743839 -1.30198626 -1.2\
185 8686345 -1.27205918 -1.25756317 -1.24336562 -1.22945719 -1.21582897 -1.20247241 -1.18937936 -1.17654201 -1\
186 .16395288 -1.15160481 -1.13949092 -1.12760462 -1.11593955 -1.10448965 -1.09324904 -1.08221211 -1.07137\
187 342 -1.06072776 -1.0502701 -1.03999558} {
188 add EtaPhiBins $eta $PhiBins
190 foreach eta {1.0 1.0502701 1.06072776 1.07137342 1.08221211 1.09324904 1.10448965 1.11593955 1.127604\
191 62 1.13949092 1.15160481 1.16395288 1.17654201 1.18937936 1.20247241 1.21582897 1.22945719 1.24336562 1.25\
192 756317 1.27205918 1.28686345 1.30198626 1.31743839 1.33323117 1.34937654 1.36588703 1.38277588 1.40005705 \
193 1.41774529 1.43585618 1.45440623 1.47341295 1.4928949 1.51287184 1.53336478 1.55439612 1.57598979 1.59817\
194 135 1.62096821 1.64440978 1.66852765 1.69335587 1.71893119 1.74529337 1.77248548 1.80055436 1.82955102 1.8\
195 595312 1.89055593 1.92269228 1.95601417 1.99060337 2.02655061 2.063957 2.10293569 2.14361383 2.18613503 2.\
196 23066235 2.27738197 2.3265078 2.3782873 2.43300894 2.49101173 2.55269788 2.61854952 2.68915144 2.76522251\
197 2.84766006 2.93760447 3.03653567 3.14642305 3.26996837 3.3} {
198 add EtaPhiBins $eta $PhiBins
201 add EnergyFraction {0} {0.0}
202 # energy fractions for e, gamma and pi0
203 add EnergyFraction {11} {1.0}
204 add EnergyFraction {22} {1.0}
205 add EnergyFraction {111} {1.0}
206 # energy fractions for muon, neutrinos and neutralinos
207 add EnergyFraction {12} {0.0}
208 add EnergyFraction {13} {0.0}
209 add EnergyFraction {14} {0.0}
210 add EnergyFraction {16} {0.0}
211 add EnergyFraction {1000022} {0.0}
212 add EnergyFraction {1000023} {0.0}
213 add EnergyFraction {1000025} {0.0}
214 add EnergyFraction {1000035} {0.0}
215 add EnergyFraction {1000045} {0.0}
216 # energy fractions for K0short and Lambda
217 add EnergyFraction {310} {0.3}
218 add EnergyFraction {3122} {0.3}
221 set ResolutionFormula {
222 ( eta> -1.46 && eta < 3.35 ) * sqrt(energy^2*0.025^2 + energy*0.11^2 )
223 + ( eta> -3.35 && eta < -1.46 ) * sqrt(energy^2*0.030^2 + energy*0.10^2 )
232 module SimpleCalorimeter HCal {
233 set ParticleInputArray ParticlePropagator/stableParticles
234 set TrackInputArray ECal/eflowTracks
236 set TowerOutputArray hcalTowers
237 set EFlowTrackOutputArray eflowTracks
238 set EFlowTowerOutputArray eflowNeutralHadrons
242 ##Assumes noise 100 MeV per tower.
244 set EnergySignificanceMin 1.0
246 set SmearTowerCenter true
248 set SmearTowerCenter true
250 set pi [
expr {acos(-1)}]
253 for {set i -30} {$i <=30} {incr i} {
254 add PhiBins [
expr {$i * $pi/30.0}]
256 for {set i -10} {$i <=10} {incr i} {
257 set eta [
expr {$i * 0.1}]
258 add EtaPhiBins $eta $PhiBins
261 for {set i -30} {$i <=30} {incr i} {
262 add PhiBins [
expr {$i * $pi/30.0}]
265 foreach eta {-3.3 -2.95880652 -2.68264484 -2.46773612 -2.29224349 -2.14432155 -2.01681569 -1.90506801 \
266 -1.80587261 -1.71692581 -1.63651428 -1.56332731 -1.49633825 -1.43472677 -1.37782606 -1.325086 -1.2760468\
267 4 -1.23031998 -1.18757364 -1.14752205 -1.10991713 -1.07454199 -1.04120583 -1.00} {
268 add EtaPhiBins $eta $PhiBins
271 foreach eta {1.0 1.04 1.075 1.1099 1.14752205 1.18757364 1.23031998 1.27604684 1.325086 1.37782606 1.4\
272 3472677 1.49633825 1.56332731 1.63651428 1.71692581 1.80587261 1.90506801 2.01681569 2.14432155 2.29224349\
273 2.46773612 2.68264484 2.95880652 3.3} {
274 add EtaPhiBins $eta $PhiBins
277 add EnergyFraction {0} {1.0}
278 # energy fractions for e, gamma and pi0
279 add EnergyFraction {11} {0.0}
280 add EnergyFraction {22} {0.0}
281 add EnergyFraction {111} {0.0}
282 # energy fractions for muon, neutrinos and neutralinos
283 add EnergyFraction {12} {0.0}
284 add EnergyFraction {13} {0.0}
285 add EnergyFraction {14} {0.0}
286 add EnergyFraction {16} {0.0}
287 add EnergyFraction {1000022} {0.0}
288 add EnergyFraction {1000023} {0.0}
289 add EnergyFraction {1000025} {0.0}
290 add EnergyFraction {1000035} {0.0}
291 add EnergyFraction {1000045} {0.0}
293 add EnergyFraction {310} {0.7}
294 add EnergyFraction {3122} {0.7}
296 # set HCalResolutionFormula {resolution formula as a function of eta and energy}
298 set ResolutionFormula {
299 ( eta> -0.64 && eta < 3.20 ) * sqrt(energy^2*0.20^2 + energy*0.50^2)
300 + ( eta> 3.20 && eta < 3.35 ) * sqrt(energy^2*0.40^2 + energy*0.90^2)
301 + ( eta> -0.97 && eta < -0.64 ) * sqrt(energy^2*0.40^2 + energy*0.90^2)
309 module PdgCodeFilter ElectronFilter {
310 set InputArray HCal/eflowTracks
311 set OutputArray electrons
320 module PdgCodeFilter ChargedHadronFilter {
321 set InputArray HCal/eflowTracks
322 set OutputArray chargedHadrons
335 module Merger Calorimeter {
336 # add InputArray InputArray
337 add InputArray ECal/ecalTowers
338 add InputArray HCal/hcalTowers
339 set OutputArray towers
345 module Merger EFlowMerger {
346 # add InputArray InputArray
347 add InputArray HCal/eflowTracks
348 add InputArray ECal/eflowPhotons
349 add InputArray HCal/eflowNeutralHadrons
350 set OutputArray eflow
357 module PdgCodeFilter EFlowFilter {
358 set InputArray EFlowMerger/eflow
359 set OutputArray eflow
370 module Efficiency PhotonEfficiency {
371 set InputArray ECal/eflowPhotons
372 set OutputArray photons
374 # set EfficiencyFormula {efficiency formula as a function of eta and pt}
376 # efficiency formula for photons
377 set EfficiencyFormula { 1}
379 module Isolation PhotonIsolation {
380 set CandidateInputArray PhotonEfficiency/photons
381 set IsolationInputArray EFlowFilter/eflow
383 set OutputArray photons
391 module Efficiency ElectronEfficiency {
392 set InputArray ElectronFilter/electrons
393 set OutputArray electrons
395 # set EfficiencyFormula {efficiency formula as a function of eta and pt}
397 # efficiency formula for electrons
398 set EfficiencyFormula {1}
405 module Isolation ElectronIsolation {
406 set CandidateInputArray ElectronEfficiency/electrons
407 set IsolationInputArray EFlowFilter/eflow
409 set OutputArray electrons
421 module Merger MissingET {
422 # add InputArray InputArray
423 add InputArray EFlowMerger/eflow
424 set MomentumOutputArray momentum
430 module Merger ScalarHT {
431 # add InputArray InputArray
432 add InputArray UniqueObjectFinder/jets
433 add InputArray UniqueObjectFinder/electrons
434 add InputArray UniqueObjectFinder/photons
436 set EnergyOutputArray energy
441 module PdgCodeFilter NeutrinoFilter {
442 set InputArray Delphes/stableParticles
443 set OutputArray filteredParticles
457 module FastJetFinder GenJetFinder {
458 set InputArray NeutrinoFilter/filteredParticles
462 # algorithm: 1 CDFJetClu, 2 MidPoint, 3 SIScone, 4 kt, 5 Cambridge/Aachen, 6 antikt
472 module Merger GenMissingET {
473 # add InputArray InputArray
474 add InputArray NeutrinoFilter/filteredParticles
475 set MomentumOutputArray momentum
481 module FastJetFinder FastJetFinder {
482 # set InputArray Calorimeter/towers
483 set InputArray EFlowMerger/eflow
487 # algorithm: 1 CDFJetClu, 2 MidPoint, 3 SIScone, 4 kt, 5 Cambridge/Aachen, 6 antikt
491 set ComputeNsubjettiness 1
494 set ComputeTrimming 1
504 set ComputeSoftDrop 1
506 set SymmetryCutSoftDrop 0.1
514 module EnergyScale JetEnergyScale {
515 set InputArray FastJetFinder/jets
518 # scale formula for jets (do not apply it)
519 set ScaleFormula {1.0}
522 module EnergyScale ElectronEnergyScale {
523 set InputArray ElectronIsolation/electrons
524 set OutputArray electrons
525 set ScaleFormula {0.995}
533 module JetFlavorAssociation JetFlavorAssociation {
535 set PartonInputArray Delphes/partons
536 set ParticleInputArray Delphes/allParticles
537 set ParticleLHEFInputArray Delphes/allParticlesLHEF
538 set JetInputArray JetEnergyScale/jets
545 module JetFlavorAssociation GenJetFlavorAssociation {
547 set PartonInputArray Delphes/partons
548 set ParticleInputArray Delphes/allParticles
549 set ParticleLHEFInputArray Delphes/allParticlesLHEF
550 set JetInputArray GenJetFinder/jets
561 module UniqueObjectFinder UniqueObjectFinder {
562 # earlier arrays take precedence over later ones
563 # add InputArray InputArray OutputArray
564 add InputArray PhotonIsolation/photons photons
565 add InputArray ElectronEnergyScale/electrons electrons
566 add InputArray JetEnergyScale/jets jets
568 module TreeWriter TreeWriter {
569 # add Branch InputArray BranchName BranchClass
570 add Branch Delphes/allParticles Particle GenParticle
572 add Branch TrackMerger/tracks Track Track
573 add Branch Calorimeter/towers Tower Tower
575 add Branch HCal/eflowTracks EFlowTrack Track
576 add Branch ECal/eflowPhotons EFlowPhoton Tower
577 add Branch HCal/eflowNeutralHadrons EFlowNeutralHadron Tower
579 add Branch GenJetFinder/jets GenJet Jet
580 add Branch GenMissingET/momentum GenMissingET MissingET
582 add Branch UniqueObjectFinder/jets Jet Jet
583 add Branch UniqueObjectFinder/electrons Electron Electron
584 add Branch UniqueObjectFinder/photons Photon Photon
586 add Branch MissingET/momentum MissingET MissingET
587 add Branch ScalarHT/energy ScalarHT ScalarHT