Fork me on GitHub

Ignore:
Timestamp:
Aug 26, 2016, 5:47:59 PM (8 years ago)
Author:
Michele Selvaggi <michele.selvaggi@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
1d208a2
Parents:
8f0b34c
Message:

replace calo by simple calo in CMS cards

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cards/delphes_card_CMS_PileUp.tcl

    r8f0b34c rd091310  
    1717
    1818  TrackMerger
    19   Calorimeter
     19
     20  ECal
     21  HCal
     22
    2023  ElectronFilter
    2124  TrackPileUpSubtractor
     
    4548
    4649  MissingET
    47  
     50
    4851  JetFlavorAssociation
    4952
     
    8285  # vertex smearing formula f(z,t) (z,t need to be respectively given in m,s)
    8386  set VertexDistributionFormula {exp(-(t^2/160e-12^2/2))*exp(-(z^2/0.053^2/2))}
    84  
     87
    8588
    8689}
     
    232235
    233236#############
    234 # Calorimeter
     237#   ECAL
    235238#############
    236239
    237 module Calorimeter Calorimeter {
     240module SimpleCalorimeter ECal {
    238241  set ParticleInputArray ParticlePropagator/stableParticles
    239242  set TrackInputArray TrackMerger/tracks
    240243
    241   set TowerOutputArray towers
    242   set PhotonOutputArray photons
    243 
     244  set TowerOutputArray ecalTowers
    244245  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
     341module 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
    253353
    254354  set SmearTowerCenter true
     
    288388
    289389  # default energy fractions {abs(PDG code)} {Fecal Fhcal}
    290   add EnergyFraction {0} {0.0 1.0}
     390  add EnergyFraction {0} {1.0}
    291391  # energy fractions for e, gamma and pi0
    292   add EnergyFraction {11} {1.0 0.0}
    293   add EnergyFraction {22} {1.0 0.0}
    294   add EnergyFraction {111} {1.0 0.0}
     392  add EnergyFraction {11} {0.0}
     393  add EnergyFraction {22} {0.0}
     394  add EnergyFraction {111} {0.0}
    295395  # 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}
    305405  # 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}
    314408
    315409  # 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) +
    317411                             (abs(eta) > 3.0 && abs(eta) <= 5.0) * sqrt(energy^2*0.130^2 + energy*2.70^2)}
     412
    318413}
    319414
     
    323418
    324419module PdgCodeFilter ElectronFilter {
    325   set InputArray Calorimeter/eflowTracks
     420  set InputArray HCal/eflowTracks
    326421  set OutputArray electrons
    327422  set Invert true
     
    330425}
    331426
     427###################################################
     428# Tower Merger (in case not using e-flow algorithm)
     429###################################################
     430
     431module Merger Calorimeter {
     432# add InputArray InputArray
     433  add InputArray ECal/ecalTowers
     434  add InputArray HCal/hcalTowers
     435  set OutputArray towers
     436}
     437
     438
    332439##########################
    333440# Track pile-up subtractor
     
    336443module TrackPileUpSubtractor TrackPileUpSubtractor {
    337444# add InputArray InputArray OutputArray
    338   add InputArray Calorimeter/eflowTracks eflowTracks
     445  add InputArray HCal/eflowTracks eflowTracks
    339446  add InputArray ElectronFilter/electrons electrons
    340447  add InputArray MuonMomentumSmearing/muons muons
     
    346453}
    347454
     455
    348456####################
    349 # Neutral tower merger
     457# Neutral Tower merger
    350458####################
    351459
    352460module Merger NeutralTowerMerger {
    353461# 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
    369465}
    370466
     
    374470####################
    375471
     472module 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
    376487module Merger EFlowMerger {
    377488# add InputArray InputArray
    378489  add InputArray TrackPileUpSubtractor/eflowTracks
    379   add InputArray Calorimeter/eflowPhotons
    380   add InputArray Calorimeter/eflowNeutralHadrons
     490  add InputArray ECal/eflowPhotons
     491  add InputArray HCal/eflowNeutralHadrons
    381492  set OutputArray eflow
    382493}
    383 
    384 
    385494
    386495#############
     
    453562}
    454563
    455 
    456 
    457564############
    458565# Jet finder
     
    481588module PileUpJetID PileUpJetID {
    482589  set JetInputArray FastJetFinder/jets
    483   set TrackInputArray Calorimeter/eflowTracks
    484   set NeutralInputArray NeutralTowerMerger/eflowTowers
     590  set TrackInputArray HCal/eflowTracks
     591  set NeutralInputArray NeutralTowerMerger/towers
    485592
    486593  set VertexInputArray PileUpMerger/vertices
     
    527634
    528635module Efficiency PhotonEfficiency {
    529   set InputArray Calorimeter/eflowPhotons
     636  set InputArray ECal/eflowPhotons
    530637  set OutputArray photons
    531638
     
    659766
    660767module JetFlavorAssociation JetFlavorAssociation {
    661  
     768
    662769  set PartonInputArray Delphes/partons
    663770  set ParticleInputArray Delphes/allParticles
    664771  set ParticleLHEFInputArray Delphes/allParticlesLHEF
    665772  set JetInputArray JetEnergyScale/jets
    666  
     773
    667774  set DeltaR 0.5
    668775  set PartonPTMin 1.0
     
    685792
    686793  # based on arXiv:1211.4462
    687  
     794
    688795  # default efficiency formula (misidentification rate)
    689796  add EfficiencyFormula {0} {0.01+0.000038*pt}
Note: See TracChangeset for help on using the changeset viewer.