Changeset d091310 in git for cards/delphes_card_CMS_PileUp.tcl
- Timestamp:
- Aug 26, 2016, 5:47:59 PM (8 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- 1d208a2
- Parents:
- 8f0b34c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cards/delphes_card_CMS_PileUp.tcl
r8f0b34c rd091310 17 17 18 18 TrackMerger 19 Calorimeter 19 20 ECal 21 HCal 22 20 23 ElectronFilter 21 24 TrackPileUpSubtractor … … 45 48 46 49 MissingET 47 50 48 51 JetFlavorAssociation 49 52 … … 82 85 # vertex smearing formula f(z,t) (z,t need to be respectively given in m,s) 83 86 set VertexDistributionFormula {exp(-(t^2/160e-12^2/2))*exp(-(z^2/0.053^2/2))} 84 87 85 88 86 89 } … … 232 235 233 236 ############# 234 # Calorimeter237 # ECAL 235 238 ############# 236 239 237 module Calorimeter Calorimeter{240 module SimpleCalorimeter ECal { 238 241 set ParticleInputArray ParticlePropagator/stableParticles 239 242 set TrackInputArray TrackMerger/tracks 240 243 241 set TowerOutputArray towers 242 set PhotonOutputArray photons 243 244 set TowerOutputArray ecalTowers 244 245 set EFlowTrackOutputArray eflowTracks 245 set EFlowPhotonOutputArray eflowPhotons 246 set EFlowNeutralHadronOutputArray eflowNeutralHadrons 247 248 set ECalEnergyMin 0.5 249 set HCalEnergyMin 1.0 250 251 set ECalEnergySignificanceMin 1.0 252 set HCalEnergySignificanceMin 1.0 246 set EFlowTowerOutputArray eflowPhotons 247 248 set IsEcal true 249 250 set EnergyMin 0.5 251 set EnergySignificanceMin 2.0 252 253 set SmearTowerCenter true 254 255 set pi [expr {acos(-1)}] 256 257 # lists of the edges of each tower in eta and phi 258 # each list starts with the lower edge of the first tower 259 # the list ends with the higher edged of the last tower 260 261 # assume 0.02 x 0.02 resolution in eta,phi in the barrel |eta| < 1.5 262 263 set PhiBins {} 264 for {set i -180} {$i <= 180} {incr i} { 265 add PhiBins [expr {$i * $pi/180.0}] 266 } 267 268 # 0.02 unit in eta up to eta = 1.5 (barrel) 269 for {set i -85} {$i <= 86} {incr i} { 270 set eta [expr {$i * 0.0174}] 271 add EtaPhiBins $eta $PhiBins 272 } 273 274 # assume 0.02 x 0.02 resolution in eta,phi in the endcaps 1.5 < |eta| < 3.0 (HGCAL- ECAL) 275 276 set PhiBins {} 277 for {set i -180} {$i <= 180} {incr i} { 278 add PhiBins [expr {$i * $pi/180.0}] 279 } 280 281 # 0.02 unit in eta up to eta = 3 282 for {set i 1} {$i <= 84} {incr i} { 283 set eta [expr { -2.958 + $i * 0.0174}] 284 add EtaPhiBins $eta $PhiBins 285 } 286 287 for {set i 1} {$i <= 84} {incr i} { 288 set eta [expr { 1.4964 + $i * 0.0174}] 289 add EtaPhiBins $eta $PhiBins 290 } 291 292 # take present CMS granularity for HF 293 294 # 0.175 x (0.175 - 0.35) resolution in eta,phi in the HF 3.0 < |eta| < 5.0 295 set PhiBins {} 296 for {set i -18} {$i <= 18} {incr i} { 297 add PhiBins [expr {$i * $pi/18.0}] 298 } 299 300 foreach eta {-5 -4.7 -4.525 -4.35 -4.175 -4 -3.825 -3.65 -3.475 -3.3 -3.125 -2.958 3.125 3.3 3.475 3.65 3.825 4 4.175 4.35 4.525 4.7 5} { 301 add EtaPhiBins $eta $PhiBins 302 } 303 304 305 add EnergyFraction {0} {0.0} 306 # energy fractions for e, gamma and pi0 307 add EnergyFraction {11} {1.0} 308 add EnergyFraction {22} {1.0} 309 add EnergyFraction {111} {1.0} 310 # energy fractions for muon, neutrinos and neutralinos 311 add EnergyFraction {12} {0.0} 312 add EnergyFraction {13} {0.0} 313 add EnergyFraction {14} {0.0} 314 add EnergyFraction {16} {0.0} 315 add EnergyFraction {1000022} {0.0} 316 add EnergyFraction {1000023} {0.0} 317 add EnergyFraction {1000025} {0.0} 318 add EnergyFraction {1000035} {0.0} 319 add EnergyFraction {1000045} {0.0} 320 # energy fractions for K0short and Lambda 321 add EnergyFraction {310} {0.3} 322 add EnergyFraction {3122} {0.3} 323 324 # set ResolutionFormula {resolution formula as a function of eta and energy} 325 326 # for the ECAL barrel (|eta| < 1.5), see hep-ex/1306.2016 and 1502.02701 327 328 # set ECalResolutionFormula {resolution formula as a function of eta and energy} 329 # Eta shape from arXiv:1306.2016, Energy shape from arXiv:1502.02701 330 set ResolutionFormula { (abs(eta) <= 1.5) * (1+0.64*eta^2) * sqrt(energy^2*0.008^2 + energy*0.11^2 + 0.40^2) + 331 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (2.16 + 5.6*(abs(eta)-2)^2) * sqrt(energy^2*0.008^2 + energy*0.11^2 + 0.40^2) + 332 (abs(eta) > 2.5 && abs(eta) <= 5.0) * sqrt(energy^2*0.107^2 + energy*2.08^2)} 333 334 } 335 336 337 ############# 338 # HCAL 339 ############# 340 341 module SimpleCalorimeter HCal { 342 set ParticleInputArray ParticlePropagator/stableParticles 343 set TrackInputArray ECal/eflowTracks 344 345 set TowerOutputArray hcalTowers 346 set EFlowTrackOutputArray eflowTracks 347 set EFlowTowerOutputArray eflowNeutralHadrons 348 349 set IsEcal false 350 351 set EnergyMin 1.0 352 set EnergySignificanceMin 2.0 253 353 254 354 set SmearTowerCenter true … … 288 388 289 389 # default energy fractions {abs(PDG code)} {Fecal Fhcal} 290 add EnergyFraction {0} { 0.01.0}390 add EnergyFraction {0} {1.0} 291 391 # energy fractions for e, gamma and pi0 292 add EnergyFraction {11} { 1.00.0}293 add EnergyFraction {22} { 1.00.0}294 add EnergyFraction {111} { 1.00.0}392 add EnergyFraction {11} {0.0} 393 add EnergyFraction {22} {0.0} 394 add EnergyFraction {111} {0.0} 295 395 # energy fractions for muon, neutrinos and neutralinos 296 add EnergyFraction {12} {0.0 0.0}297 add EnergyFraction {13} {0.0 0.0}298 add EnergyFraction {14} {0.0 0.0}299 add EnergyFraction {16} {0.0 0.0}300 add EnergyFraction {1000022} {0.0 0.0}301 add EnergyFraction {1000023} {0.0 0.0}302 add EnergyFraction {1000025} {0.0 0.0}303 add EnergyFraction {1000035} {0.0 0.0}304 add EnergyFraction {1000045} {0.0 0.0}396 add EnergyFraction {12} {0.0} 397 add EnergyFraction {13} {0.0} 398 add EnergyFraction {14} {0.0} 399 add EnergyFraction {16} {0.0} 400 add EnergyFraction {1000022} {0.0} 401 add EnergyFraction {1000023} {0.0} 402 add EnergyFraction {1000025} {0.0} 403 add EnergyFraction {1000035} {0.0} 404 add EnergyFraction {1000045} {0.0} 305 405 # energy fractions for K0short and Lambda 306 add EnergyFraction {310} {0.3 0.7} 307 add EnergyFraction {3122} {0.3 0.7} 308 309 # set ECalResolutionFormula {resolution formula as a function of eta and energy} 310 # Eta shape from arXiv:1306.2016, Energy shape from arXiv:1502.02701 311 set ECalResolutionFormula { (abs(eta) <= 1.5) * (1+0.64*eta^2) * sqrt(energy^2*0.008^2 + energy*0.11^2 + 0.40^2) + 312 (abs(eta) > 1.5 && abs(eta) <= 2.5) * (2.16 + 5.6*(abs(eta)-2)^2) * sqrt(energy^2*0.008^2 + energy*0.11^2 + 0.40^2) + 313 (abs(eta) > 2.5 && abs(eta) <= 5.0) * sqrt(energy^2*0.107^2 + energy*2.08^2)} 406 add EnergyFraction {310} {0.7} 407 add EnergyFraction {3122} {0.7} 314 408 315 409 # set HCalResolutionFormula {resolution formula as a function of eta and energy} 316 set HCalResolutionFormula {(abs(eta) <= 3.0) * sqrt(energy^2*0.050^2 + energy*1.50^2) +410 set ResolutionFormula { (abs(eta) <= 3.0) * sqrt(energy^2*0.050^2 + energy*1.50^2) + 317 411 (abs(eta) > 3.0 && abs(eta) <= 5.0) * sqrt(energy^2*0.130^2 + energy*2.70^2)} 412 318 413 } 319 414 … … 323 418 324 419 module PdgCodeFilter ElectronFilter { 325 set InputArray Calorimeter/eflowTracks420 set InputArray HCal/eflowTracks 326 421 set OutputArray electrons 327 422 set Invert true … … 330 425 } 331 426 427 ################################################### 428 # Tower Merger (in case not using e-flow algorithm) 429 ################################################### 430 431 module Merger Calorimeter { 432 # add InputArray InputArray 433 add InputArray ECal/ecalTowers 434 add InputArray HCal/hcalTowers 435 set OutputArray towers 436 } 437 438 332 439 ########################## 333 440 # Track pile-up subtractor … … 336 443 module TrackPileUpSubtractor TrackPileUpSubtractor { 337 444 # add InputArray InputArray OutputArray 338 add InputArray Calorimeter/eflowTracks eflowTracks445 add InputArray HCal/eflowTracks eflowTracks 339 446 add InputArray ElectronFilter/electrons electrons 340 447 add InputArray MuonMomentumSmearing/muons muons … … 346 453 } 347 454 455 348 456 #################### 349 # Neutral tower merger457 # Neutral Tower merger 350 458 #################### 351 459 352 460 module Merger NeutralTowerMerger { 353 461 # add InputArray InputArray 354 add InputArray Calorimeter/eflowPhotons 355 add InputArray Calorimeter/eflowNeutralHadrons 356 set OutputArray eflowTowers 357 } 358 359 ################################## 360 # Energy flow merger (all tracks) 361 ################################## 362 363 module Merger EFlowMergerAllTracks { 364 # add InputArray InputArray 365 add InputArray TrackMerger/tracks 366 add InputArray Calorimeter/eflowPhotons 367 add InputArray Calorimeter/eflowNeutralHadrons 368 set OutputArray eflow 462 add InputArray ECal/eflowPhotons 463 add InputArray HCal/eflowNeutralHadrons 464 set OutputArray towers 369 465 } 370 466 … … 374 470 #################### 375 471 472 module Merger EFlowMergerAllTracks { 473 # add InputArray InputArray 474 add InputArray HCal/eflowTracks 475 add InputArray ECal/eflowPhotons 476 add InputArray HCal/eflowNeutralHadrons 477 set OutputArray eflow 478 } 479 480 481 482 483 #################### 484 # Energy flow merger 485 #################### 486 376 487 module Merger EFlowMerger { 377 488 # add InputArray InputArray 378 489 add InputArray TrackPileUpSubtractor/eflowTracks 379 add InputArray Calorimeter/eflowPhotons380 add InputArray Calorimeter/eflowNeutralHadrons490 add InputArray ECal/eflowPhotons 491 add InputArray HCal/eflowNeutralHadrons 381 492 set OutputArray eflow 382 493 } 383 384 385 494 386 495 ############# … … 453 562 } 454 563 455 456 457 564 ############ 458 565 # Jet finder … … 481 588 module PileUpJetID PileUpJetID { 482 589 set JetInputArray FastJetFinder/jets 483 set TrackInputArray Calorimeter/eflowTracks484 set NeutralInputArray NeutralTowerMerger/ eflowTowers590 set TrackInputArray HCal/eflowTracks 591 set NeutralInputArray NeutralTowerMerger/towers 485 592 486 593 set VertexInputArray PileUpMerger/vertices … … 527 634 528 635 module Efficiency PhotonEfficiency { 529 set InputArray Calorimeter/eflowPhotons636 set InputArray ECal/eflowPhotons 530 637 set OutputArray photons 531 638 … … 659 766 660 767 module JetFlavorAssociation JetFlavorAssociation { 661 768 662 769 set PartonInputArray Delphes/partons 663 770 set ParticleInputArray Delphes/allParticles 664 771 set ParticleLHEFInputArray Delphes/allParticlesLHEF 665 772 set JetInputArray JetEnergyScale/jets 666 773 667 774 set DeltaR 0.5 668 775 set PartonPTMin 1.0 … … 685 792 686 793 # based on arXiv:1211.4462 687 794 688 795 # default efficiency formula (misidentification rate) 689 796 add EfficiencyFormula {0} {0.01+0.000038*pt}
Note:
See TracChangeset
for help on using the changeset viewer.