[18a7403] | 1 | #######################################
|
---|
| 2 | # Order of execution of various modules
|
---|
| 3 | #######################################
|
---|
| 4 |
|
---|
| 5 | set ExecutionPath {
|
---|
| 6 | ParticlePropagator
|
---|
| 7 |
|
---|
| 8 | ChargedHadronTrackingEfficiency
|
---|
| 9 | ElectronTrackingEfficiency
|
---|
| 10 | MuonTrackingEfficiency
|
---|
| 11 |
|
---|
| 12 | ChargedHadronMomentumSmearing
|
---|
| 13 | ElectronMomentumSmearing
|
---|
| 14 | MuonMomentumSmearing
|
---|
| 15 |
|
---|
| 16 | TrackMerger
|
---|
| 17 |
|
---|
| 18 | ECal
|
---|
| 19 | HCal
|
---|
| 20 |
|
---|
| 21 | TowerMerger
|
---|
| 22 | EFlowMerger
|
---|
| 23 |
|
---|
| 24 | PhotonEfficiency
|
---|
| 25 | PhotonIsolation
|
---|
| 26 |
|
---|
| 27 | ElectronFilter
|
---|
| 28 | ElectronEfficiency
|
---|
| 29 | ElectronIsolation
|
---|
| 30 |
|
---|
| 31 | MuonEfficiency
|
---|
| 32 | MuonIsolation
|
---|
| 33 |
|
---|
| 34 | MissingET
|
---|
| 35 |
|
---|
| 36 | NeutrinoFilter
|
---|
| 37 | GenJetFinder
|
---|
| 38 | GenMissingET
|
---|
| 39 |
|
---|
| 40 | FastJetFinder
|
---|
| 41 |
|
---|
| 42 | JetEnergyScale
|
---|
| 43 |
|
---|
| 44 | JetFlavorAssociation
|
---|
| 45 |
|
---|
| 46 | BTagging
|
---|
| 47 | TauTagging
|
---|
| 48 |
|
---|
| 49 | UniqueObjectFinder
|
---|
| 50 |
|
---|
| 51 | ScalarHT
|
---|
| 52 |
|
---|
| 53 | TreeWriter
|
---|
| 54 | }
|
---|
| 55 |
|
---|
| 56 | #################################
|
---|
| 57 | # Propagate particles in cylinder
|
---|
| 58 | #################################
|
---|
| 59 |
|
---|
| 60 | module ParticlePropagator ParticlePropagator {
|
---|
| 61 | set InputArray Delphes/stableParticles
|
---|
| 62 |
|
---|
| 63 | set OutputArray stableParticles
|
---|
| 64 | set ChargedHadronOutputArray chargedHadrons
|
---|
| 65 | set ElectronOutputArray electrons
|
---|
| 66 | set MuonOutputArray muons
|
---|
| 67 |
|
---|
| 68 | # radius of the magnetic field coverage, in m
|
---|
| 69 | set Radius 1.29
|
---|
| 70 | # half-length of the magnetic field coverage, in m
|
---|
| 71 | set HalfLength 3.00
|
---|
| 72 |
|
---|
| 73 | # magnetic field
|
---|
| 74 | set Bz 3.8
|
---|
| 75 | }
|
---|
| 76 |
|
---|
| 77 | ####################################
|
---|
| 78 | # Charged hadron tracking efficiency
|
---|
| 79 | ####################################
|
---|
| 80 |
|
---|
| 81 | module Efficiency ChargedHadronTrackingEfficiency {
|
---|
| 82 | set InputArray ParticlePropagator/chargedHadrons
|
---|
| 83 | set OutputArray chargedHadrons
|
---|
| 84 |
|
---|
| 85 | # add EfficiencyFormula {efficiency formula as a function of eta and pt}
|
---|
| 86 |
|
---|
| 87 | # tracking efficiency formula for charged hadrons
|
---|
| 88 | set EfficiencyFormula { (pt <= 0.1) * (0.00) +
|
---|
| 89 | (abs(eta) <= 1.5) * (pt > 0.1 && pt <= 1.0) * (0.70) +
|
---|
| 90 | (abs(eta) <= 1.5) * (pt > 1.0) * (0.95) +
|
---|
| 91 | (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 0.1 && pt <= 1.0) * (0.60) +
|
---|
| 92 | (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 1.0) * (0.85) +
|
---|
| 93 | (abs(eta) > 2.5) * (0.00)}
|
---|
| 94 | }
|
---|
| 95 |
|
---|
| 96 | ##############################
|
---|
| 97 | # Electron tracking efficiency
|
---|
| 98 | ##############################
|
---|
| 99 |
|
---|
| 100 | module Efficiency ElectronTrackingEfficiency {
|
---|
| 101 | set InputArray ParticlePropagator/electrons
|
---|
| 102 | set OutputArray electrons
|
---|
| 103 |
|
---|
| 104 | # set EfficiencyFormula {efficiency formula as a function of eta and pt}
|
---|
| 105 |
|
---|
| 106 | # tracking efficiency formula for electrons
|
---|
| 107 | set EfficiencyFormula { (pt <= 0.1) * (0.00) +
|
---|
| 108 | (abs(eta) <= 1.5) * (pt > 0.1 && pt <= 1.0) * (0.73) +
|
---|
| 109 | (abs(eta) <= 1.5) * (pt > 1.0 && pt <= 1.0e2) * (0.95) +
|
---|
| 110 | (abs(eta) <= 1.5) * (pt > 1.0e2) * (0.99) +
|
---|
| 111 | (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 0.1 && pt <= 1.0) * (0.50) +
|
---|
| 112 | (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 1.0 && pt <= 1.0e2) * (0.83) +
|
---|
| 113 | (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 1.0e2) * (0.90) +
|
---|
| 114 | (abs(eta) > 2.5) * (0.00)}
|
---|
| 115 | }
|
---|
| 116 |
|
---|
| 117 | ##########################
|
---|
| 118 | # Muon tracking efficiency
|
---|
| 119 | ##########################
|
---|
| 120 |
|
---|
| 121 | module Efficiency MuonTrackingEfficiency {
|
---|
| 122 | set InputArray ParticlePropagator/muons
|
---|
| 123 | set OutputArray muons
|
---|
| 124 |
|
---|
| 125 | # set EfficiencyFormula {efficiency formula as a function of eta and pt}
|
---|
| 126 |
|
---|
| 127 | # tracking efficiency formula for muons
|
---|
| 128 | set EfficiencyFormula { (pt <= 0.1) * (0.00) +
|
---|
| 129 | (abs(eta) <= 1.5) * (pt > 0.1 && pt <= 1.0) * (0.75) +
|
---|
| 130 | (abs(eta) <= 1.5) * (pt > 1.0) * (0.99) +
|
---|
| 131 | (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 0.1 && pt <= 1.0) * (0.70) +
|
---|
| 132 | (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 1.0) * (0.98) +
|
---|
| 133 | (abs(eta) > 2.5) * (0.00)}
|
---|
| 134 | }
|
---|
| 135 |
|
---|
| 136 | ########################################
|
---|
| 137 | # Momentum resolution for charged tracks
|
---|
| 138 | ########################################
|
---|
| 139 |
|
---|
| 140 | module MomentumSmearing ChargedHadronMomentumSmearing {
|
---|
| 141 | set InputArray ChargedHadronTrackingEfficiency/chargedHadrons
|
---|
| 142 | set OutputArray chargedHadrons
|
---|
| 143 |
|
---|
| 144 | # set ResolutionFormula {resolution formula as a function of eta and pt}
|
---|
| 145 |
|
---|
| 146 | # resolution formula for charged hadrons
|
---|
| 147 | # based on arXiv:1405.6569
|
---|
| 148 | set ResolutionFormula { (abs(eta) <= 0.5) * (pt > 0.1) * sqrt(0.01^2 + pt^2*1.5e-4^2) +
|
---|
| 149 | (abs(eta) > 0.5 && abs(eta) <= 1.5) * (pt > 0.1) * sqrt(0.015^2 + pt^2*2.5e-4^2) +
|
---|
| 150 | (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 0.1) * sqrt(0.025^2 + pt^2*5.5e-4^2)}
|
---|
| 151 | }
|
---|
| 152 |
|
---|
| 153 | ###################################
|
---|
| 154 | # Momentum resolution for electrons
|
---|
| 155 | ###################################
|
---|
| 156 |
|
---|
| 157 | module MomentumSmearing ElectronMomentumSmearing {
|
---|
| 158 | set InputArray ElectronTrackingEfficiency/electrons
|
---|
| 159 | set OutputArray electrons
|
---|
| 160 |
|
---|
| 161 | # set ResolutionFormula {resolution formula as a function of eta and energy}
|
---|
| 162 |
|
---|
| 163 | # resolution formula for electrons
|
---|
| 164 | # based on arXiv:1405.6569
|
---|
| 165 | set ResolutionFormula { (abs(eta) <= 0.5) * (pt > 0.1) * sqrt(0.03^2 + pt^2*1.3e-3^2) +
|
---|
| 166 | (abs(eta) > 0.5 && abs(eta) <= 1.5) * (pt > 0.1) * sqrt(0.05^2 + pt^2*1.7e-3^2) +
|
---|
| 167 | (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 0.1) * sqrt(0.15^2 + pt^2*3.1e-3^2)}
|
---|
| 168 | }
|
---|
| 169 |
|
---|
| 170 | ###############################
|
---|
| 171 | # Momentum resolution for muons
|
---|
| 172 | ###############################
|
---|
| 173 |
|
---|
| 174 | module MomentumSmearing MuonMomentumSmearing {
|
---|
| 175 | set InputArray MuonTrackingEfficiency/muons
|
---|
| 176 | set OutputArray muons
|
---|
| 177 |
|
---|
| 178 | # set ResolutionFormula {resolution formula as a function of eta and pt}
|
---|
| 179 |
|
---|
| 180 | # resolution formula for muons
|
---|
| 181 | set ResolutionFormula { (abs(eta) <= 0.5) * (pt > 0.1) * sqrt(0.01^2 + pt^2*1.0e-4^2) +
|
---|
| 182 | (abs(eta) > 0.5 && abs(eta) <= 1.5) * (pt > 0.1) * sqrt(0.015^2 + pt^2*1.5e-4^2) +
|
---|
| 183 | (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 0.1) * sqrt(0.025^2 + pt^2*3.5e-4^2)}
|
---|
| 184 | }
|
---|
| 185 |
|
---|
| 186 | ##############
|
---|
| 187 | # Track merger
|
---|
| 188 | ##############
|
---|
| 189 |
|
---|
| 190 | module Merger TrackMerger {
|
---|
| 191 | # add InputArray InputArray
|
---|
| 192 | add InputArray ChargedHadronMomentumSmearing/chargedHadrons
|
---|
| 193 | add InputArray ElectronMomentumSmearing/electrons
|
---|
| 194 | add InputArray MuonMomentumSmearing/muons
|
---|
| 195 | set OutputArray tracks
|
---|
| 196 | }
|
---|
| 197 |
|
---|
| 198 |
|
---|
| 199 |
|
---|
| 200 | #############
|
---|
| 201 | # ECAL
|
---|
| 202 | #############
|
---|
| 203 |
|
---|
| 204 | module SimpleCalorimeter ECal {
|
---|
| 205 | set ParticleInputArray ParticlePropagator/stableParticles
|
---|
| 206 | set TrackInputArray TrackMerger/tracks
|
---|
| 207 |
|
---|
| 208 | set TowerOutputArray ecalTowers
|
---|
| 209 | set EFlowTrackOutputArray eflowTracks
|
---|
| 210 | set EFlowTowerOutputArray eflowPhotons
|
---|
| 211 |
|
---|
| 212 | set IsEcal true
|
---|
| 213 |
|
---|
| 214 | set EnergyMin 0.5
|
---|
[46fb86c] | 215 | set EnergySignificanceMin 2.0
|
---|
[18a7403] | 216 |
|
---|
| 217 | set SmearTowerCenter true
|
---|
| 218 |
|
---|
| 219 | set pi [expr {acos(-1)}]
|
---|
| 220 |
|
---|
| 221 | # lists of the edges of each tower in eta and phi
|
---|
| 222 | # each list starts with the lower edge of the first tower
|
---|
| 223 | # the list ends with the higher edged of the last tower
|
---|
| 224 |
|
---|
| 225 | # assume 0.02 x 0.02 resolution in eta,phi in the barrel |eta| < 1.5
|
---|
| 226 |
|
---|
| 227 | set PhiBins {}
|
---|
| 228 | for {set i -180} {$i <= 180} {incr i} {
|
---|
| 229 | add PhiBins [expr {$i * $pi/180.0}]
|
---|
| 230 | }
|
---|
| 231 |
|
---|
| 232 | # 0.02 unit in eta up to eta = 1.5 (barrel)
|
---|
| 233 | for {set i -85} {$i <= 86} {incr i} {
|
---|
| 234 | set eta [expr {$i * 0.0174}]
|
---|
| 235 | add EtaPhiBins $eta $PhiBins
|
---|
| 236 | }
|
---|
| 237 |
|
---|
| 238 | # assume 0.02 x 0.02 resolution in eta,phi in the endcaps 1.5 < |eta| < 3.0 (HGCAL- ECAL)
|
---|
| 239 |
|
---|
| 240 | set PhiBins {}
|
---|
| 241 | for {set i -180} {$i <= 180} {incr i} {
|
---|
| 242 | add PhiBins [expr {$i * $pi/180.0}]
|
---|
| 243 | }
|
---|
| 244 |
|
---|
| 245 | # 0.02 unit in eta up to eta = 3
|
---|
| 246 | for {set i 1} {$i <= 84} {incr i} {
|
---|
| 247 | set eta [expr { -2.958 + $i * 0.0174}]
|
---|
| 248 | add EtaPhiBins $eta $PhiBins
|
---|
| 249 | }
|
---|
| 250 |
|
---|
| 251 | for {set i 1} {$i <= 84} {incr i} {
|
---|
| 252 | set eta [expr { 1.4964 + $i * 0.0174}]
|
---|
| 253 | add EtaPhiBins $eta $PhiBins
|
---|
| 254 | }
|
---|
| 255 |
|
---|
| 256 | # take present CMS granularity for HF
|
---|
| 257 |
|
---|
| 258 | # 0.175 x (0.175 - 0.35) resolution in eta,phi in the HF 3.0 < |eta| < 5.0
|
---|
| 259 | set PhiBins {}
|
---|
| 260 | for {set i -18} {$i <= 18} {incr i} {
|
---|
| 261 | add PhiBins [expr {$i * $pi/18.0}]
|
---|
| 262 | }
|
---|
| 263 |
|
---|
| 264 | 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} {
|
---|
| 265 | add EtaPhiBins $eta $PhiBins
|
---|
| 266 | }
|
---|
| 267 |
|
---|
| 268 |
|
---|
| 269 | add EnergyFraction {0} {0.0}
|
---|
| 270 | # energy fractions for e, gamma and pi0
|
---|
| 271 | add EnergyFraction {11} {1.0}
|
---|
| 272 | add EnergyFraction {22} {1.0}
|
---|
| 273 | add EnergyFraction {111} {1.0}
|
---|
| 274 | # energy fractions for muon, neutrinos and neutralinos
|
---|
| 275 | add EnergyFraction {12} {0.0}
|
---|
| 276 | add EnergyFraction {13} {0.0}
|
---|
| 277 | add EnergyFraction {14} {0.0}
|
---|
| 278 | add EnergyFraction {16} {0.0}
|
---|
| 279 | add EnergyFraction {1000022} {0.0}
|
---|
| 280 | add EnergyFraction {1000023} {0.0}
|
---|
| 281 | add EnergyFraction {1000025} {0.0}
|
---|
| 282 | add EnergyFraction {1000035} {0.0}
|
---|
| 283 | add EnergyFraction {1000045} {0.0}
|
---|
| 284 | # energy fractions for K0short and Lambda
|
---|
| 285 | add EnergyFraction {310} {0.3}
|
---|
| 286 | add EnergyFraction {3122} {0.3}
|
---|
| 287 |
|
---|
| 288 | # set ResolutionFormula {resolution formula as a function of eta and energy}
|
---|
| 289 |
|
---|
| 290 | # for the ECAL barrel (|eta| < 1.5), see hep-ex/1306.2016 and 1502.02701
|
---|
| 291 |
|
---|
| 292 | # set ECalResolutionFormula {resolution formula as a function of eta and energy}
|
---|
| 293 | # Eta shape from arXiv:1306.2016, Energy shape from arXiv:1502.02701
|
---|
| 294 | set ResolutionFormula { (abs(eta) <= 1.5) * (1+0.64*eta^2) * sqrt(energy^2*0.008^2 + energy*0.11^2 + 0.40^2) +
|
---|
| 295 | (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) +
|
---|
| 296 | (abs(eta) > 2.5 && abs(eta) <= 5.0) * sqrt(energy^2*0.107^2 + energy*2.08^2)}
|
---|
| 297 |
|
---|
| 298 | }
|
---|
| 299 |
|
---|
| 300 |
|
---|
| 301 | #############
|
---|
| 302 | # HCAL
|
---|
| 303 | #############
|
---|
| 304 |
|
---|
| 305 | module SimpleCalorimeter HCal {
|
---|
| 306 | set ParticleInputArray ParticlePropagator/stableParticles
|
---|
| 307 | set TrackInputArray ECal/eflowTracks
|
---|
| 308 |
|
---|
| 309 | set TowerOutputArray hcalTowers
|
---|
| 310 | set EFlowTrackOutputArray eflowTracks
|
---|
| 311 | set EFlowTowerOutputArray eflowNeutralHadrons
|
---|
| 312 |
|
---|
| 313 | set IsEcal false
|
---|
| 314 |
|
---|
| 315 | set EnergyMin 1.0
|
---|
[46fb86c] | 316 | set EnergySignificanceMin 2.0
|
---|
[18a7403] | 317 |
|
---|
| 318 | set SmearTowerCenter true
|
---|
| 319 |
|
---|
| 320 | set pi [expr {acos(-1)}]
|
---|
| 321 |
|
---|
| 322 | # lists of the edges of each tower in eta and phi
|
---|
| 323 | # each list starts with the lower edge of the first tower
|
---|
| 324 | # the list ends with the higher edged of the last tower
|
---|
| 325 |
|
---|
| 326 | # 5 degrees towers
|
---|
| 327 | set PhiBins {}
|
---|
| 328 | for {set i -36} {$i <= 36} {incr i} {
|
---|
| 329 | add PhiBins [expr {$i * $pi/36.0}]
|
---|
| 330 | }
|
---|
| 331 | foreach eta {-1.566 -1.479 -1.392 -1.305 -1.218 -1.131 -1.044 -0.957 -0.87 -0.783 -0.696 -0.609 -0.522 -0.435 -0.348 -0.261 -0.174 -0.087 0 0.087 0.174 0.261 0.348 0.435 0.522 0.609 0.696 0.783 0.87 0.957 1.044 1.131 1.218 1.305 1.392 1.479 1.566 1.653} {
|
---|
| 332 | add EtaPhiBins $eta $PhiBins
|
---|
| 333 | }
|
---|
| 334 |
|
---|
| 335 | # 10 degrees towers
|
---|
| 336 | set PhiBins {}
|
---|
| 337 | for {set i -18} {$i <= 18} {incr i} {
|
---|
| 338 | add PhiBins [expr {$i * $pi/18.0}]
|
---|
| 339 | }
|
---|
| 340 | foreach eta {-4.35 -4.175 -4 -3.825 -3.65 -3.475 -3.3 -3.125 -2.95 -2.868 -2.65 -2.5 -2.322 -2.172 -2.043 -1.93 -1.83 -1.74 -1.653 1.74 1.83 1.93 2.043 2.172 2.322 2.5 2.65 2.868 2.95 3.125 3.3 3.475 3.65 3.825 4 4.175 4.35 4.525} {
|
---|
| 341 | add EtaPhiBins $eta $PhiBins
|
---|
| 342 | }
|
---|
| 343 |
|
---|
| 344 | # 20 degrees towers
|
---|
| 345 | set PhiBins {}
|
---|
| 346 | for {set i -9} {$i <= 9} {incr i} {
|
---|
| 347 | add PhiBins [expr {$i * $pi/9.0}]
|
---|
| 348 | }
|
---|
| 349 | foreach eta {-5 -4.7 -4.525 4.7 5} {
|
---|
| 350 | add EtaPhiBins $eta $PhiBins
|
---|
| 351 | }
|
---|
| 352 |
|
---|
| 353 | # default energy fractions {abs(PDG code)} {Fecal Fhcal}
|
---|
| 354 | add EnergyFraction {0} {1.0}
|
---|
| 355 | # energy fractions for e, gamma and pi0
|
---|
| 356 | add EnergyFraction {11} {0.0}
|
---|
| 357 | add EnergyFraction {22} {0.0}
|
---|
| 358 | add EnergyFraction {111} {0.0}
|
---|
| 359 | # energy fractions for muon, neutrinos and neutralinos
|
---|
| 360 | add EnergyFraction {12} {0.0}
|
---|
| 361 | add EnergyFraction {13} {0.0}
|
---|
| 362 | add EnergyFraction {14} {0.0}
|
---|
| 363 | add EnergyFraction {16} {0.0}
|
---|
| 364 | add EnergyFraction {1000022} {0.0}
|
---|
| 365 | add EnergyFraction {1000023} {0.0}
|
---|
| 366 | add EnergyFraction {1000025} {0.0}
|
---|
| 367 | add EnergyFraction {1000035} {0.0}
|
---|
| 368 | add EnergyFraction {1000045} {0.0}
|
---|
| 369 | # energy fractions for K0short and Lambda
|
---|
| 370 | add EnergyFraction {310} {0.7}
|
---|
| 371 | add EnergyFraction {3122} {0.7}
|
---|
| 372 |
|
---|
| 373 | # set HCalResolutionFormula {resolution formula as a function of eta and energy}
|
---|
| 374 | set ResolutionFormula { (abs(eta) <= 3.0) * sqrt(energy^2*0.050^2 + energy*1.50^2) +
|
---|
| 375 | (abs(eta) > 3.0 && abs(eta) <= 5.0) * sqrt(energy^2*0.130^2 + energy*2.70^2)}
|
---|
| 376 |
|
---|
| 377 | }
|
---|
| 378 |
|
---|
| 379 |
|
---|
| 380 | #################
|
---|
| 381 | # Electron filter
|
---|
| 382 | #################
|
---|
| 383 |
|
---|
| 384 | module PdgCodeFilter ElectronFilter {
|
---|
| 385 | set InputArray HCal/eflowTracks
|
---|
| 386 | set OutputArray electrons
|
---|
| 387 | set Invert true
|
---|
| 388 | add PdgCode {11}
|
---|
| 389 | add PdgCode {-11}
|
---|
| 390 | }
|
---|
| 391 |
|
---|
| 392 | ###################################################
|
---|
| 393 | # Tower Merger (in case not using e-flow algorithm)
|
---|
| 394 | ###################################################
|
---|
| 395 |
|
---|
| 396 | module Merger TowerMerger {
|
---|
| 397 | # add InputArray InputArray
|
---|
| 398 | add InputArray ECal/ecalTowers
|
---|
| 399 | add InputArray HCal/hcalTowers
|
---|
| 400 | set OutputArray towers
|
---|
| 401 | }
|
---|
| 402 |
|
---|
| 403 |
|
---|
| 404 |
|
---|
| 405 | ####################
|
---|
| 406 | # Energy flow merger
|
---|
| 407 | ####################
|
---|
| 408 |
|
---|
| 409 | module Merger EFlowMerger {
|
---|
| 410 | # add InputArray InputArray
|
---|
| 411 | add InputArray HCal/eflowTracks
|
---|
| 412 | add InputArray ECal/eflowPhotons
|
---|
| 413 | add InputArray HCal/eflowNeutralHadrons
|
---|
| 414 | set OutputArray eflow
|
---|
| 415 | }
|
---|
| 416 |
|
---|
| 417 | ###################
|
---|
| 418 | # Photon efficiency
|
---|
| 419 | ###################
|
---|
| 420 |
|
---|
| 421 | module Efficiency PhotonEfficiency {
|
---|
| 422 | set InputArray ECal/eflowPhotons
|
---|
| 423 | set OutputArray photons
|
---|
| 424 |
|
---|
| 425 | # set EfficiencyFormula {efficiency formula as a function of eta and pt}
|
---|
| 426 |
|
---|
| 427 | # efficiency formula for photons
|
---|
| 428 | set EfficiencyFormula { (pt <= 10.0) * (0.00) +
|
---|
| 429 | (abs(eta) <= 1.5) * (pt > 10.0) * (0.95) +
|
---|
| 430 | (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 10.0) * (0.85) +
|
---|
| 431 | (abs(eta) > 2.5) * (0.00)}
|
---|
| 432 | }
|
---|
| 433 |
|
---|
| 434 | ##################
|
---|
| 435 | # Photon isolation
|
---|
| 436 | ##################
|
---|
| 437 |
|
---|
| 438 | module Isolation PhotonIsolation {
|
---|
| 439 | set CandidateInputArray PhotonEfficiency/photons
|
---|
| 440 | set IsolationInputArray EFlowMerger/eflow
|
---|
| 441 |
|
---|
| 442 | set OutputArray photons
|
---|
| 443 |
|
---|
| 444 | set DeltaRMax 0.5
|
---|
| 445 |
|
---|
| 446 | set PTMin 0.5
|
---|
| 447 |
|
---|
| 448 | set PTRatioMax 0.12
|
---|
| 449 | }
|
---|
| 450 |
|
---|
| 451 |
|
---|
| 452 | #####################
|
---|
| 453 | # Electron efficiency
|
---|
| 454 | #####################
|
---|
| 455 |
|
---|
| 456 | module Efficiency ElectronEfficiency {
|
---|
| 457 | set InputArray ElectronFilter/electrons
|
---|
| 458 | set OutputArray electrons
|
---|
| 459 |
|
---|
| 460 | # set EfficiencyFormula {efficiency formula as a function of eta and pt}
|
---|
| 461 |
|
---|
| 462 | # efficiency formula for electrons
|
---|
| 463 | set EfficiencyFormula { (pt <= 10.0) * (0.00) +
|
---|
| 464 | (abs(eta) <= 1.5) * (pt > 10.0) * (0.95) +
|
---|
| 465 | (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 10.0) * (0.85) +
|
---|
| 466 | (abs(eta) > 2.5) * (0.00)}
|
---|
| 467 | }
|
---|
| 468 |
|
---|
| 469 | ####################
|
---|
| 470 | # Electron isolation
|
---|
| 471 | ####################
|
---|
| 472 |
|
---|
| 473 | module Isolation ElectronIsolation {
|
---|
| 474 | set CandidateInputArray ElectronEfficiency/electrons
|
---|
| 475 | set IsolationInputArray EFlowMerger/eflow
|
---|
| 476 |
|
---|
| 477 | set OutputArray electrons
|
---|
| 478 |
|
---|
| 479 | set DeltaRMax 0.5
|
---|
| 480 |
|
---|
| 481 | set PTMin 0.5
|
---|
| 482 |
|
---|
| 483 | set PTRatioMax 0.12
|
---|
| 484 | }
|
---|
| 485 |
|
---|
| 486 | #################
|
---|
| 487 | # Muon efficiency
|
---|
| 488 | #################
|
---|
| 489 |
|
---|
| 490 | module Efficiency MuonEfficiency {
|
---|
| 491 | set InputArray MuonMomentumSmearing/muons
|
---|
| 492 | set OutputArray muons
|
---|
| 493 |
|
---|
| 494 | # set EfficiencyFormula {efficiency as a function of eta and pt}
|
---|
| 495 |
|
---|
| 496 | # efficiency formula for muons
|
---|
| 497 | set EfficiencyFormula { (pt <= 10.0) * (0.00) +
|
---|
| 498 | (abs(eta) <= 1.5) * (pt > 10.0 && pt <= 1.0e3) * (0.95) +
|
---|
| 499 | (abs(eta) <= 1.5) * (pt > 1.0e3) * (0.95 * exp(0.5 - pt*5.0e-4)) +
|
---|
| 500 | (abs(eta) > 1.5 && abs(eta) <= 2.4) * (pt > 10.0 && pt <= 1.0e3) * (0.95) +
|
---|
| 501 | (abs(eta) > 1.5 && abs(eta) <= 2.4) * (pt > 1.0e3) * (0.95 * exp(0.5 - pt*5.0e-4)) +
|
---|
| 502 | (abs(eta) > 2.4) * (0.00)}
|
---|
| 503 | }
|
---|
| 504 |
|
---|
| 505 | ################
|
---|
| 506 | # Muon isolation
|
---|
| 507 | ################
|
---|
| 508 |
|
---|
| 509 | module Isolation MuonIsolation {
|
---|
| 510 | set CandidateInputArray MuonEfficiency/muons
|
---|
| 511 | set IsolationInputArray EFlowMerger/eflow
|
---|
| 512 |
|
---|
| 513 | set OutputArray muons
|
---|
| 514 |
|
---|
| 515 | set DeltaRMax 0.5
|
---|
| 516 |
|
---|
| 517 | set PTMin 0.5
|
---|
| 518 |
|
---|
| 519 | set PTRatioMax 0.25
|
---|
| 520 | }
|
---|
| 521 |
|
---|
| 522 | ###################
|
---|
| 523 | # Missing ET merger
|
---|
| 524 | ###################
|
---|
| 525 |
|
---|
| 526 | module Merger MissingET {
|
---|
| 527 | # add InputArray InputArray
|
---|
| 528 | add InputArray EFlowMerger/eflow
|
---|
| 529 | set MomentumOutputArray momentum
|
---|
| 530 | }
|
---|
| 531 |
|
---|
| 532 | ##################
|
---|
| 533 | # Scalar HT merger
|
---|
| 534 | ##################
|
---|
| 535 |
|
---|
| 536 | module Merger ScalarHT {
|
---|
| 537 | # add InputArray InputArray
|
---|
| 538 | add InputArray UniqueObjectFinder/jets
|
---|
| 539 | add InputArray UniqueObjectFinder/electrons
|
---|
| 540 | add InputArray UniqueObjectFinder/photons
|
---|
| 541 | add InputArray UniqueObjectFinder/muons
|
---|
| 542 | set EnergyOutputArray energy
|
---|
| 543 | }
|
---|
| 544 |
|
---|
| 545 |
|
---|
| 546 | #####################
|
---|
| 547 | # Neutrino Filter
|
---|
| 548 | #####################
|
---|
| 549 |
|
---|
| 550 | module PdgCodeFilter NeutrinoFilter {
|
---|
| 551 |
|
---|
| 552 | set InputArray Delphes/stableParticles
|
---|
| 553 | set OutputArray filteredParticles
|
---|
| 554 |
|
---|
| 555 | set PTMin 0.0
|
---|
| 556 |
|
---|
| 557 | add PdgCode {12}
|
---|
| 558 | add PdgCode {14}
|
---|
| 559 | add PdgCode {16}
|
---|
| 560 | add PdgCode {-12}
|
---|
| 561 | add PdgCode {-14}
|
---|
| 562 | add PdgCode {-16}
|
---|
| 563 |
|
---|
| 564 | }
|
---|
| 565 |
|
---|
| 566 |
|
---|
| 567 | #####################
|
---|
| 568 | # MC truth jet finder
|
---|
| 569 | #####################
|
---|
| 570 |
|
---|
| 571 | module FastJetFinder GenJetFinder {
|
---|
| 572 | set InputArray NeutrinoFilter/filteredParticles
|
---|
| 573 |
|
---|
| 574 | set OutputArray jets
|
---|
| 575 |
|
---|
| 576 | # algorithm: 1 CDFJetClu, 2 MidPoint, 3 SIScone, 4 kt, 5 Cambridge/Aachen, 6 antikt
|
---|
| 577 | set JetAlgorithm 6
|
---|
| 578 | set ParameterR 0.5
|
---|
| 579 |
|
---|
| 580 | set JetPTMin 20.0
|
---|
| 581 | }
|
---|
| 582 |
|
---|
| 583 | #########################
|
---|
| 584 | # Gen Missing ET merger
|
---|
| 585 | ########################
|
---|
| 586 |
|
---|
| 587 | module Merger GenMissingET {
|
---|
| 588 | # add InputArray InputArray
|
---|
| 589 | add InputArray NeutrinoFilter/filteredParticles
|
---|
| 590 | set MomentumOutputArray momentum
|
---|
| 591 | }
|
---|
| 592 |
|
---|
| 593 |
|
---|
| 594 |
|
---|
| 595 | ############
|
---|
| 596 | # Jet finder
|
---|
| 597 | ############
|
---|
| 598 |
|
---|
| 599 | module FastJetFinder FastJetFinder {
|
---|
| 600 | # set InputArray Calorimeter/towers
|
---|
| 601 | set InputArray EFlowMerger/eflow
|
---|
| 602 |
|
---|
| 603 | set OutputArray jets
|
---|
| 604 |
|
---|
| 605 | # algorithm: 1 CDFJetClu, 2 MidPoint, 3 SIScone, 4 kt, 5 Cambridge/Aachen, 6 antikt
|
---|
| 606 | set JetAlgorithm 6
|
---|
| 607 | set ParameterR 0.5
|
---|
| 608 |
|
---|
| 609 | set JetPTMin 20.0
|
---|
| 610 | }
|
---|
| 611 |
|
---|
| 612 | ##################
|
---|
| 613 | # Jet Energy Scale
|
---|
| 614 | ##################
|
---|
| 615 |
|
---|
| 616 | module EnergyScale JetEnergyScale {
|
---|
| 617 | set InputArray FastJetFinder/jets
|
---|
| 618 | set OutputArray jets
|
---|
| 619 |
|
---|
| 620 | # scale formula for jets
|
---|
| 621 | set ScaleFormula {sqrt( (2.5 - 0.15*(abs(eta)))^2 / pt + 1.0 )}
|
---|
| 622 | }
|
---|
| 623 |
|
---|
| 624 | ########################
|
---|
| 625 | # Jet Flavor Association
|
---|
| 626 | ########################
|
---|
| 627 |
|
---|
| 628 | module JetFlavorAssociation JetFlavorAssociation {
|
---|
| 629 |
|
---|
| 630 | set PartonInputArray Delphes/partons
|
---|
| 631 | set ParticleInputArray Delphes/allParticles
|
---|
| 632 | set ParticleLHEFInputArray Delphes/allParticlesLHEF
|
---|
| 633 | set JetInputArray JetEnergyScale/jets
|
---|
| 634 |
|
---|
| 635 | set DeltaR 0.5
|
---|
| 636 | set PartonPTMin 1.0
|
---|
| 637 | set PartonEtaMax 2.5
|
---|
| 638 |
|
---|
| 639 | }
|
---|
| 640 |
|
---|
| 641 | ###########
|
---|
| 642 | # b-tagging
|
---|
| 643 | ###########
|
---|
| 644 |
|
---|
| 645 | module BTagging BTagging {
|
---|
| 646 | set JetInputArray JetEnergyScale/jets
|
---|
| 647 |
|
---|
| 648 | set BitNumber 0
|
---|
| 649 |
|
---|
| 650 | # add EfficiencyFormula {abs(PDG code)} {efficiency formula as a function of eta and pt}
|
---|
| 651 | # PDG code = the highest PDG code of a quark or gluon inside DeltaR cone around jet axis
|
---|
| 652 | # gluon's PDG code has the lowest priority
|
---|
| 653 |
|
---|
| 654 | # based on arXiv:1211.4462
|
---|
| 655 |
|
---|
| 656 | # default efficiency formula (misidentification rate)
|
---|
| 657 | add EfficiencyFormula {0} {0.01+0.000038*pt}
|
---|
| 658 |
|
---|
| 659 | # efficiency formula for c-jets (misidentification rate)
|
---|
| 660 | add EfficiencyFormula {4} {0.25*tanh(0.018*pt)*(1/(1+ 0.0013*pt))}
|
---|
| 661 |
|
---|
| 662 | # efficiency formula for b-jets
|
---|
| 663 | add EfficiencyFormula {5} {0.85*tanh(0.0025*pt)*(25.0/(1+0.063*pt))}
|
---|
| 664 | }
|
---|
| 665 |
|
---|
| 666 | #############
|
---|
| 667 | # tau-tagging
|
---|
| 668 | #############
|
---|
| 669 |
|
---|
| 670 | module TauTagging TauTagging {
|
---|
| 671 | set ParticleInputArray Delphes/allParticles
|
---|
| 672 | set PartonInputArray Delphes/partons
|
---|
| 673 | set JetInputArray JetEnergyScale/jets
|
---|
| 674 |
|
---|
| 675 | set DeltaR 0.5
|
---|
| 676 |
|
---|
| 677 | set TauPTMin 1.0
|
---|
| 678 |
|
---|
| 679 | set TauEtaMax 2.5
|
---|
| 680 |
|
---|
| 681 | # add EfficiencyFormula {abs(PDG code)} {efficiency formula as a function of eta and pt}
|
---|
| 682 |
|
---|
| 683 | # default efficiency formula (misidentification rate)
|
---|
| 684 | add EfficiencyFormula {0} {0.01}
|
---|
| 685 | # efficiency formula for tau-jets
|
---|
| 686 | add EfficiencyFormula {15} {0.6}
|
---|
| 687 | }
|
---|
| 688 |
|
---|
| 689 | #####################################################
|
---|
| 690 | # Find uniquely identified photons/electrons/tau/jets
|
---|
| 691 | #####################################################
|
---|
| 692 |
|
---|
| 693 | module UniqueObjectFinder UniqueObjectFinder {
|
---|
| 694 | # earlier arrays take precedence over later ones
|
---|
| 695 | # add InputArray InputArray OutputArray
|
---|
| 696 | add InputArray PhotonIsolation/photons photons
|
---|
| 697 | add InputArray ElectronIsolation/electrons electrons
|
---|
| 698 | add InputArray MuonIsolation/muons muons
|
---|
| 699 | add InputArray JetEnergyScale/jets jets
|
---|
| 700 | }
|
---|
| 701 |
|
---|
| 702 | ##################
|
---|
| 703 | # ROOT tree writer
|
---|
| 704 | ##################
|
---|
| 705 |
|
---|
| 706 | # tracks, towers and eflow objects are not stored by default in the output.
|
---|
| 707 | # if needed (for jet constituent or other studies), uncomment the relevant
|
---|
| 708 | # "add Branch ..." lines.
|
---|
| 709 |
|
---|
| 710 | module TreeWriter TreeWriter {
|
---|
| 711 | # add Branch InputArray BranchName BranchClass
|
---|
| 712 | add Branch Delphes/allParticles Particle GenParticle
|
---|
| 713 |
|
---|
| 714 | add Branch TrackMerger/tracks Track Track
|
---|
| 715 | add Branch TowerMerger/towers Tower Tower
|
---|
| 716 |
|
---|
| 717 | add Branch HCal/eflowTracks EFlowTrack Track
|
---|
| 718 | add Branch ECal/eflowPhotons EFlowPhoton Tower
|
---|
| 719 | add Branch HCal/eflowNeutralHadrons EFlowNeutralHadron Tower
|
---|
| 720 |
|
---|
| 721 | add Branch GenJetFinder/jets GenJet Jet
|
---|
| 722 | add Branch GenMissingET/momentum GenMissingET MissingET
|
---|
[46fb86c] | 723 |
|
---|
[18a7403] | 724 | add Branch UniqueObjectFinder/jets Jet Jet
|
---|
| 725 | add Branch UniqueObjectFinder/electrons Electron Electron
|
---|
| 726 | add Branch UniqueObjectFinder/photons Photon Photon
|
---|
| 727 | add Branch UniqueObjectFinder/muons Muon Muon
|
---|
| 728 | add Branch MissingET/momentum MissingET MissingET
|
---|
| 729 | add Branch ScalarHT/energy ScalarHT ScalarHT
|
---|
| 730 | }
|
---|