Index: cards/FCC/FCChh.tcl
===================================================================
--- cards/FCC/FCChh.tcl	(revision 5348ed9b72570adcd45eb2dfaa345cbfa4944ead)
+++ cards/FCC/FCChh.tcl	(revision 5348ed9b72570adcd45eb2dfaa345cbfa4944ead)
@@ -0,0 +1,741 @@
+#
+# Official Delphes card prepared by FCC-hh collaboration
+#
+#  Main authors: Heather Gray (CERN)
+#                Filip Moortgat (CERN)
+#                Michele Selvaggi (CERN)
+#
+#  Released on: Oct 02th, 2016
+#
+#  Configuration: FCC-hh generic detector without dipole in the forward region, no pile-up
+#
+#######################################
+# Order of execution of various modules
+#######################################
+
+set ExecutionPath {
+  ParticlePropagator
+
+  ChargedHadronTrackingEfficiency
+  ElectronTrackingEfficiency
+  MuonTrackingEfficiency
+
+  ChargedHadronMomentumSmearing
+  ElectronMomentumSmearing
+  MuonMomentumSmearing
+
+  TrackMerger
+
+  ECal
+  HCal
+
+  Calorimeter
+  EFlowMerger
+
+  PhotonEfficiency
+  PhotonIsolation
+
+  ElectronFilter
+  ElectronIsolation
+
+  MuonIsolation
+
+  NeutrinoFilter
+
+  MissingET
+  GenMissingET
+
+  GenJetFinder
+  FastJetFinder
+
+  JetEnergyScale
+
+  JetFlavorAssociation
+
+  BTagging
+  CTagging
+  TauTagging
+
+  ScalarHT
+
+  UniqueObjectFinder
+
+  TreeWriter
+}
+
+#################################
+# Propagate particles in cylinder
+#################################
+
+module ParticlePropagator ParticlePropagator {
+  set InputArray Delphes/stableParticles
+
+  set OutputArray stableParticles
+  set ChargedHadronOutputArray chargedHadrons
+  set ElectronOutputArray electrons
+  set MuonOutputArray muons
+
+  # radius of the magnetic field coverage, in m
+  set Radius 1.5
+  # half-length of the magnetic field coverage, in m
+  set HalfLength 5
+
+  # magnetic field
+  set Bz 4.0
+}
+
+####################################
+# Charged hadron tracking efficiency
+####################################
+
+module Efficiency ChargedHadronTrackingEfficiency {
+  set InputArray ParticlePropagator/chargedHadrons
+  set OutputArray chargedHadrons
+
+ # TBC (which eta_max ? which pT min?)
+
+ # tracking efficiency formula for charged hadrons
+
+  set EfficiencyFormula { (pt <= 0.5) * (0.00) + \
+(abs(eta) <= 1.5) * (pt > 0.5 && pt <= 1) * (0.90) + \
+(abs(eta) <= 1.5) * (pt > 1) * (0.95) + \
+(abs(eta) > 1.5 && abs(eta) <= 4) * (pt > 0.5 && pt <= 1) * (0.85) + \
+(abs(eta) > 1.5 && abs(eta) <= 4) * (pt > 1) * (0.90) + \
+(abs(eta) > 4 && abs(eta) <= 6) * (pt > 0.5 && pt <= 1) * (0.80) + \
+(abs(eta) > 4 && abs(eta) <= 6) * (pt > 1.0) * (0.85) + \
+(abs(eta) > 6.0) * (0.00)}
+
+}
+
+##############################
+# Electron tracking efficiency
+##############################
+
+module Efficiency ElectronTrackingEfficiency {
+  set InputArray ParticlePropagator/electrons
+  set OutputArray electrons
+
+# TBC (which eta_max ?)
+# putting same as charged hadrons for now...
+
+  set EfficiencyFormula { (pt <= 0.5) * (0.00) + \
+  (abs(eta) <= 1.5) * (pt > 0.5 && pt <= 1) * (0.90) + \
+  (abs(eta) <= 1.5) * (pt > 1) * (0.95) + \
+  (abs(eta) > 1.5 && abs(eta) <= 4) * (pt > 0.5 && pt <= 1) * (0.85) + \
+  (abs(eta) > 1.5 && abs(eta) <= 4) * (pt > 1) * (0.90) + \
+  (abs(eta) > 4 && abs(eta) <= 6) * (pt > 0.5 && pt <= 1) * (0.80) + \
+  (abs(eta) > 4 && abs(eta) <= 6) * (pt > 1.0) * (0.85) + \
+  (abs(eta) > 6.0) * (0.00)}
+
+}
+##########################
+# Muon tracking efficiency
+##########################
+
+module Efficiency MuonTrackingEfficiency {
+  set InputArray ParticlePropagator/muons
+  set OutputArray muons
+
+# TBC (which eta_max ? why eff = 0 for 4 < eta < 6 ? for now put the same as central)
+# what about high pT ?
+ # tracking efficiency formula for muons
+  set EfficiencyFormula { (pt <= 0.5) * (0.00) + \
+  (abs(eta) <= 6.0) * (pt > 0.5 && pt <= 1) * (0.90) + \
+  (abs(eta) <= 6.0) * (pt > 1) * (0.99) + \
+  (abs(eta) > 6.0) * (0.00)}
+
+}
+
+########################################
+# Momentum resolution for charged tracks
+########################################
+
+module MomentumSmearing ChargedHadronMomentumSmearing {
+  set InputArray ChargedHadronTrackingEfficiency/chargedHadrons
+  set OutputArray chargedHadrons
+
+  source momentumResolutionVsP.tcl 
+}
+
+
+###################################
+# Momentum resolution for electrons
+###################################
+
+module MomentumSmearing ElectronMomentumSmearing {
+  set InputArray ElectronTrackingEfficiency/electrons
+  set OutputArray electrons
+
+  source momentumResolutionVsP.tcl 
+}
+
+
+###############################
+# Momentum resolution for muons
+###############################
+
+module MomentumSmearing MuonMomentumSmearing {
+  set InputArray MuonTrackingEfficiency/muons
+  set OutputArray muons
+
+  # TBC for just putting tracker resolution/ need to add improvement at high pT
+
+  source muonMomentumResolutionVsP.tcl 
+}
+
+##############
+# Track merger
+##############
+
+module Merger TrackMerger {
+# add InputArray InputArray
+  add InputArray ChargedHadronMomentumSmearing/chargedHadrons
+  add InputArray ElectronMomentumSmearing/electrons
+  add InputArray MuonMomentumSmearing/muons
+  set OutputArray tracks
+}
+
+#############
+#   ECAL
+#############
+
+# TBC : calos seems ok, check eta max value though.
+
+module SimpleCalorimeter ECal {
+  set ParticleInputArray ParticlePropagator/stableParticles
+  set TrackInputArray TrackMerger/tracks
+
+  set TowerOutputArray ecalTowers
+  set EFlowTrackOutputArray eflowTracks
+  set EFlowTowerOutputArray eflowPhotons
+
+  set IsEcal true
+
+  set EnergyMin 0.5
+  set EnergySignificanceMin 2.0
+
+  set SmearTowerCenter true
+
+  set pi [expr {acos(-1)}]
+
+  # lists of the edges of each tower in eta and phi
+  # each list starts with the lower edge of the first tower
+  # the list ends with the higher edged of the last tower
+
+  # 0.5 degree towers (5x5 mm^2)
+   set PhiBins {}
+  for {set i -256} {$i <= 256} {incr i} {
+    add PhiBins [expr {$i * $pi/256.0}]
+  } 
+ 
+  # TBC 
+  foreach eta {-2.4875 -2.475 -2.4625 -2.45 -2.4375 -2.425 -2.4125 -2.4 -2.3875 -2.375 -2.3625 -2.35 -2.3375 -2.325 -2.3125 -2.3 -2.2875 -2.275 -2.2625 -2.25 -2.2375 -2.225 -2.2125 -2.2 -2.1875 -2.175 -2.1625 -2.15 -2.1375 -2.125 -2.1125 -2.1 -2.0875 -2.075 -2.0625 -2.05 -2.0375 -2.025 -2.0125 -2 -1.9875 -1.975 -1.9625 -1.95 -1.9375 -1.925 -1.9125 -1.9 -1.8875 -1.875 -1.8625 -1.85 -1.8375 -1.825 -1.8125 -1.8 -1.7875 -1.775 -1.7625 -1.75 -1.7375 -1.725 -1.7125 -1.7 -1.6875 -1.675 -1.6625 -1.65 -1.6375 -1.625 -1.6125 -1.6 -1.5875 -1.575 -1.5625 -1.55 -1.5375 -1.525 -1.5125 -1.5 -1.4875 -1.475 -1.4625 -1.45 -1.4375 -1.425 -1.4125 -1.4 -1.3875 -1.375 -1.3625 -1.35 -1.3375 -1.325 -1.3125 -1.3 -1.2875 -1.275 -1.2625 -1.25 -1.2375 -1.225 -1.2125 -1.2 -1.1875 -1.175 -1.1625 -1.15 -1.1375 -1.125 -1.1125 -1.1 -1.0875 -1.075 -1.0625 -1.05 -1.0375 -1.025 -1.0125 -1.0 -0.9875 -0.975 -0.9625 -0.95 -0.9375 -0.925 -0.9125 -0.9 -0.8875 -0.875 -0.8625 -0.85 -0.8375 -0.825 -0.8125 -0.8 -0.7875 -0.775 -0.7625 -0.75 -0.7375 -0.725 -0.7125 -0.7 -0.6875 -0.675 -0.6625 -0.65 -0.6375 -0.625 -0.6125 -0.6 -0.5875 -0.575 -0.5625 -0.55 -0.5375 -0.525 -0.5125 -0.5 -0.4875 -0.475 -0.4625 -0.45 -0.4375 -0.425 -0.4125 -0.4 -0.3875 -0.375 -0.3625 -0.35 -0.3375 -0.325 -0.3125 -0.3 -0.2875 -0.275 -0.2625 -0.25 -0.2375 -0.225 -0.2125 -0.2 -0.1875 -0.175 -0.1625 -0.15 -0.1375 -0.125 -0.1125 -0.1 -0.0875 -0.075 -0.0625 -0.05 -0.0375 -0.025 -0.0125 0 0.0125 0.025 0.0375 0.05 0.0625 0.075 0.0875 0.1 0.1125 0.125 0.1375 0.15 0.1625 0.175 0.1875 0.2 0.2125 0.225 0.2375 0.25 0.2625 0.275 0.2875 0.3 0.3125 0.325 0.3375 0.35 0.3625 0.375 0.3875 0.4 0.4125 0.425 0.4375 0.45 0.4625 0.475 0.4875 0.5 0.5125 0.525 0.5375 0.55 0.5625 0.575 0.5875 0.6 0.6125 0.625 0.6375 0.65 0.6625 0.675 0.6875 0.7 0.7125 0.725 0.7375 0.75 0.7625 0.775 0.7875 0.8 0.8125 0.825 0.8375 0.85 0.8625 0.875 0.8875 0.9 0.9125 0.925 0.9375 0.95 0.9625 0.975 0.9875 1.0 1.0125 1.025 1.0375 1.05 1.0625 1.075 1.0875 1.1 1.1125 1.125 1.1375 1.15 1.1625 1.175 1.1875 1.2 1.2125 1.225 1.2375 1.25 1.2625 1.275 1.2875 1.3 1.3125 1.325 1.3375 1.35 1.3625 1.375 1.3875 1.4 1.4125 1.425 1.4375 1.45 1.4625 1.475 1.4875 1.5 1.5125 1.525 1.5375 1.55 1.5625 1.575 1.5875 1.6 1.6125 1.625 1.6375 1.65 1.6625 1.675 1.6875 1.7 1.7125 1.725 1.7375 1.75 1.7625 1.775 1.7875 1.8 1.8125 1.825 1.8375 1.85 1.8625 1.875 1.8875 1.9 1.9125 1.925 1.9375 1.95 1.9625 1.975 1.9875 2 2.0125 2.025 2.0375 2.05 2.0625 2.075 2.0875 2.1 2.1125 2.125 2.1375 2.15 2.1625 2.175 2.1875 2.2 2.2125 2.225 2.2375 2.25 2.2625 2.275 2.2875 2.3 2.3125 2.325 2.3375 2.35 2.3625 2.375 2.3875 2.4 2.4125 2.425 2.4375 2.45 2.4625 2.475 2.4875 2.5} {
+    add EtaPhiBins $eta $PhiBins
+  }
+  # 0.025 eta  x 0.025 for eta between 2.5 and 4.0
+  set PhiBins {}
+  for {set i -128} {$i <= 128} {incr i} {
+    add PhiBins [expr {$i * $pi/128.0}]
+  }
+  foreach eta {-3.975 -3.95 -3.925 -3.9 -3.875 -3.85 -3.825 -3.8 -3.775 -3.75 -3.725 -3.7 -3.675 -3.65 -3.625 -3.6 -3.575 -3.55 -3.525 -3.5 -3.475 -3.45 -3.425 -3.4 -3.375 -3.35 -3.325 -3.3 -3.275 -3.25 -3.225 -3.2 -3.175 -3.15 -3.125 -3.1 -3.075 -3.05 -3.025 -3.0 -2.975 -2.95 -2.925 -2.9 -2.875 -2.85 -2.825 -2.8 -2.775 -2.75 -2.725 -2.7 -2.675 -2.65 -2.625 -2.6 -2.575 -2.55 -2.525 -2.5 2.525 2.55 2.575 2.6 2.625 2.65 2.675 2.7 2.725 2.75 2.775 2.8 2.825 2.85 2.875 2.9 2.925 2.95 2.975 3.0 3.025 3.05 3.075 3.1 3.125 3.15 3.175 3.2 3.225 3.25 3.275 3.3 3.325 3.35 3.375 3.4 3.425 3.45 3.475 3.5 3.525 3.55 3.575 3.6 3.625 3.65 3.675 3.7 3.725 3.75 3.775 3.8 3.825 3.85 3.875 3.9 3.925 3.95 3.975 4.0} {
+    add EtaPhiBins $eta $PhiBins
+  }
+
+  # 0.05 x 0.05 for eta between 4.0 and 6.0
+  set PhiBins {}
+  for {set i -64} {$i <= 64} {incr i} {
+    add PhiBins [expr {$i * $pi/64.0}]
+  }
+  foreach eta {-6.0 -5.95 -5.9 -5.85 -5.8 -5.75 -5.7 -5.65 -5.6 -5.55 -5.5 -5.45 -5.4 -5.35 -5.3 -5.25 -5.2 -5.15 -5.1 -5.05 -5.0 -4.95 -4.9 -4.85 -4.8 -4.75 -4.7 -4.65 -4.6 -4.55 -4.5 -4.45 -4.4 -4.35 -4.3 -4.25 -4.2 -4.15 -4.1 -4.05 -4 4.05 4.1 4.15 4.2 4.25 4.3 4.35 4.4 4.45 4.5 4.55 4.6 4.65 4.7 4.75 4.8 4.85 4.9 4.95 5.0 5.05 5.1 5.15 5.2 5.25 5.3 5.35 5.4 5.45 5.5 5.55 5.6 5.65 5.7 5.75 5.8 5.85 5.9 5.95 6.0} {
+    add EtaPhiBins $eta $PhiBins
+  }
+  # default energy fractions {abs(PDG code)} {fraction of energy deposited in ECAL}
+
+  add EnergyFraction {0} {0.0}
+  # energy fractions for e, gamma and pi0
+  add EnergyFraction {11} {1.0}
+  add EnergyFraction {22} {1.0}
+  add EnergyFraction {111} {1.0}
+  # energy fractions for muon, neutrinos and neutralinos
+  add EnergyFraction {12} {0.0}
+  add EnergyFraction {13} {0.0}
+  add EnergyFraction {14} {0.0}
+  add EnergyFraction {16} {0.0}
+  add EnergyFraction {1000022} {0.0}
+  add EnergyFraction {1000023} {0.0}
+  add EnergyFraction {1000025} {0.0}
+  add EnergyFraction {1000035} {0.0}
+  add EnergyFraction {1000045} {0.0}
+  # energy fractions for K0short and Lambda
+  # add EnergyFraction {310} {0.3}
+  # add EnergyFraction {3122} {0.3}
+
+  # set ECalResolutionFormula {resolution formula as a function of eta and energy}
+  set ResolutionFormula {                     (abs(eta) <= 4.0) * sqrt(energy^2*0.01^2 + energy*0.10^2) + \
+                            (abs(eta) > 4.0 && abs(eta) <= 6.0) * sqrt(energy^2*0.01^2  + energy*0.10^2)}
+
+
+}
+
+#############
+#   HCAL
+#############
+
+module SimpleCalorimeter HCal {
+  set ParticleInputArray ParticlePropagator/stableParticles
+  set TrackInputArray ECal/eflowTracks
+
+  set TowerOutputArray hcalTowers
+  set EFlowTrackOutputArray eflowTracks
+  set EFlowTowerOutputArray eflowNeutralHadrons
+
+  set IsEcal false
+
+  set EnergyMin 1.0
+  set EnergySignificanceMin 2.0
+
+  set SmearTowerCenter true
+
+  set pi [expr {acos(-1)}]
+
+  # lists of the edges of each tower in eta and phi
+  # each list starts with the lower edge of the first tower
+  # the list ends with the higher edged of the last tower
+
+  # 6 degree towers
+  set PhiBins {}
+  for {set i -64} {$i <= 64} {incr i} {
+    add PhiBins [expr {$i * $pi/64.0}]
+  }
+
+  # TBC 
+  foreach eta {-2.45 -2.4 -2.35 -2.3 -2.25 -2.2 -2.15 -2.1 -2.05 -2.0 -1.95 -1.9 -1.85 -1.8 -1.75 -1.7 -1.65 -1.6 -1.55 -1.5 -1.45 -1.4 -1.35 -1.3 -1.25 -1.2 -1.15 -1.1 -1.05 -1.0 -0.95 -0.9 -0.85 -0.8 -0.75 -0.7 -0.65 -0.6 -0.55 -0.5 -0.45 -0.4 -0.35 -0.3 -0.25 -0.2 -0.15 -0.1 -0.05 0.0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5 0.55 0.6 0.65 0.7 0.75 0.8 0.85 0.9 0.95 1.0 1.05 1.1 1.15 1.2 1.25 1.3 1.35 1.4 1.45 1.5 1.55 1.6 1.65 1.7 1.75 1.8 1.85 1.9 1.95 2.0 2.05 2.1 2.15 2.2 2.25 2.3 2.35 2.4 2.45 2.5} {
+    add EtaPhiBins $eta $PhiBins
+  }
+
+  # 0.1 x 0.1 between eta 2.5 and 4.0
+  set PhiBins {}
+  for {set i -32} {$i <= 32} {incr i} {
+    add PhiBins [expr {$i * $pi/32.0}]
+  }
+  foreach eta {-3.9 -3.8 -3.7 -3.6 -3.5 -3.4 -3.3 -3.2 -3.1 -3.0 -2.9 -2.8 -2.7 -2.6 -2.5 2.6 2.7 2.8 2.9 3.0 3.1 3.2 3.3 3.4 3.5 3.6 3.7 3.8 3.9 4.0} {
+    add EtaPhiBins $eta $PhiBins
+  }
+
+  # 0.2 x 0.2 between eta 4.0 and 6.0
+  set PhiBins {}
+  for {set i -16} {$i <= 16} {incr i} {
+    add PhiBins [expr {$i * $pi/16.0}]
+  }
+  foreach eta {-6.0 -5.8 -5.6 -5.4 -5.2 -5.0 -4.8 -4.6 -4.4 -4.2 -4.0 4.2 4.4 4.6 4.8 5.0 5.2 5.4 5.6 5.8 6.0} {
+    add EtaPhiBins $eta $PhiBins
+  }
+
+  # default energy fractions {abs(PDG code)} {Fecal Fhcal}
+  add EnergyFraction {0} {1.0}
+  # energy fractions for e, gamma and pi0
+  add EnergyFraction {11} {0.0}
+  add EnergyFraction {22} {0.0}
+  add EnergyFraction {111} {0.0}
+  # energy fractions for muon, neutrinos and neutralinos
+  add EnergyFraction {12} {0.0}
+  add EnergyFraction {13} {0.0}
+  add EnergyFraction {14} {0.0}
+  add EnergyFraction {16} {0.0}
+  add EnergyFraction {1000022} {0.0}
+  add EnergyFraction {1000023} {0.0}
+  add EnergyFraction {1000025} {0.0}
+  add EnergyFraction {1000035} {0.0}
+  add EnergyFraction {1000045} {0.0}
+  # energy fractions for K0short and Lambda
+  # add EnergyFraction {310} {0.7}
+  # add EnergyFraction {3122} {0.7}
+
+   # set HCalResolutionFormula {resolution formula as a function of eta and energy}
+  set ResolutionFormula {                     (abs(eta) <= 4.0) * sqrt(energy^2*0.03^2 + energy*0.50^2) + \
+                            (abs(eta) > 4.0 && abs(eta) <= 6.0) * sqrt(energy^2*0.05^2 + energy*1.00^2)}
+}
+
+#################
+# Electron filter
+#################
+
+module PdgCodeFilter ElectronFilter {
+  set InputArray HCal/eflowTracks
+  set OutputArray electrons
+  set Invert true
+  add PdgCode {11}
+  add PdgCode {-11}
+}
+
+###################################################
+# Tower Merger (in case not using e-flow algorithm)
+###################################################
+
+module Merger Calorimeter {
+# add InputArray InputArray
+  add InputArray ECal/ecalTowers
+  add InputArray HCal/hcalTowers
+  set OutputArray towers
+}
+
+####################
+# Energy flow merger
+####################
+
+module Merger EFlowMerger {
+# add InputArray InputArray
+  add InputArray HCal/eflowTracks
+  add InputArray ECal/eflowPhotons
+  add InputArray HCal/eflowNeutralHadrons
+  set OutputArray eflow
+}
+
+
+###################
+# Missing ET merger
+###################
+
+module Merger MissingET {
+# add InputArray InputArray
+  add InputArray EFlowMerger/eflow
+  set MomentumOutputArray momentum
+}
+
+
+
+##################
+# Scalar HT merger
+##################
+
+module Merger ScalarHT {
+# add InputArray InputArray
+  add InputArray EFlowMerger/eflow
+  set EnergyOutputArray energy
+}
+
+#################
+# Neutrino Filter
+#################
+
+module PdgCodeFilter NeutrinoFilter {
+
+  set InputArray Delphes/stableParticles
+  set OutputArray filteredParticles
+
+  set PTMin 0.0
+
+  add PdgCode {12}
+  add PdgCode {14}
+  add PdgCode {16}
+  add PdgCode {-12}
+  add PdgCode {-14}
+  add PdgCode {-16}
+
+}
+
+
+#####################
+# MC truth jet finder
+#####################
+
+# TBC: is jet radius fine?
+
+module FastJetFinder GenJetFinder {
+#  set InputArray NeutrinoFilter/filteredParticles
+  set InputArray Delphes/stableParticles
+
+  set OutputArray jets
+
+  # algorithm: 1 CDFJetClu, 2 MidPoint, 3 SIScone, 4 kt, 5 Cambridge/Aachen, 6 antikt
+  set JetAlgorithm 6
+  set ParameterR 0.4
+
+  set JetPTMin 5.0
+}
+
+#########################
+# Gen Missing ET merger
+########################
+
+module Merger GenMissingET {
+
+# add InputArray InputArray
+  add InputArray NeutrinoFilter/filteredParticles
+  set MomentumOutputArray momentum
+}
+
+
+
+############
+# Jet finder
+############
+
+# TBC need to include jet substructure variables
+# TBC is jet radius fine?
+
+module FastJetFinder FastJetFinder {
+#  set InputArray Calorimeter/towers
+  set InputArray EFlowMerger/eflow
+
+  set OutputArray jets
+
+  # algorithm: 1 CDFJetClu, 2 MidPoint, 3 SIScone, 4 kt, 5 Cambridge/Aachen, 6 antikt
+  # 7: anti-kt with winner-take-all axis (for N-subjettiness), 8 N-jettiness
+
+  set JetAlgorithm 6
+  set ParameterR 0.4
+
+  set JetPTMin 30.0
+}
+
+##################
+# Jet Energy Scale
+##################
+
+module EnergyScale JetEnergyScale {
+  set InputArray FastJetFinder/jets
+  set OutputArray jets
+
+ # scale formula for jets
+  set ScaleFormula {1.00}
+}
+
+
+########################
+# Jet Flavor Association
+########################
+
+module JetFlavorAssociation JetFlavorAssociation {
+
+  set PartonInputArray Delphes/partons
+  set ParticleInputArray Delphes/allParticles
+  set ParticleLHEFInputArray Delphes/allParticlesLHEF
+  set JetInputArray JetEnergyScale/jets
+
+  set DeltaR 0.5
+  set PartonPTMin 5.0
+  set PartonEtaMax 6.0
+
+}
+
+###################
+# Photon efficiency
+###################
+
+module Efficiency PhotonEfficiency {
+  set InputArray ECal/eflowPhotons
+  set OutputArray photons
+
+  # set EfficiencyFormula {efficiency formula as a function of eta and pt}
+
+  set EfficiencyFormula {
+  (pt <= 10.0) * (0.00) + \
+  (abs(eta) <= 1.5) * (pt > 10.0)  * (0.95) + \
+  (abs(eta) > 1.5 && abs(eta) <= 4.0) * (pt > 10.0)  * (0.90) + \
+  (abs(eta) > 4.0 && abs(eta) <= 6.0) * (pt > 10.0)  * (0.80) + \
+  (abs(eta) > 6.0) * (0.00)}
+
+}
+
+##################
+# Photon isolation
+##################
+
+# TBC: check values for iso cuts
+
+module Isolation PhotonIsolation {
+  set CandidateInputArray PhotonEfficiency/photons
+  set IsolationInputArray EFlowMerger/eflow
+
+  set OutputArray photons
+
+  set DeltaRMax 0.3
+
+  set PTMin 0.5
+
+  set PTRatioMax 0.1
+}
+
+
+####################
+# Electron isolation
+####################
+
+# TBC: check values for iso cuts
+
+module Isolation ElectronIsolation {
+  set CandidateInputArray ElectronFilter/electrons
+  set IsolationInputArray EFlowMerger/eflow
+
+  set OutputArray electrons
+
+  set DeltaRMax 0.3
+
+  set PTMin 0.5
+
+  set PTRatioMax 0.1
+}
+
+
+################
+# Muon isolation
+################
+
+# TBC: check values for iso cuts
+
+module Isolation MuonIsolation {
+  set CandidateInputArray MuonMomentumSmearing/muons
+  set IsolationInputArray EFlowMerger/eflow
+
+  set OutputArray muons
+
+  set DeltaRMax 0.3
+
+  set PTMin 0.5
+
+  set PTRatioMax 0.2
+}
+
+
+###########
+# b-tagging
+###########
+
+module BTagging BTagging {
+  set JetInputArray JetEnergyScale/jets
+
+  set BitNumber 0
+
+  add EfficiencyFormula {0} {
+
+  (pt <= 10.0)     * (0.00) +
+  (abs(eta) < 4.0) * (pt > 10.0 && pt < 500) * (0.001) + \
+  (abs(eta) < 4.0) * (pt > 500.0) * (0.001*exp(0.5 - pt*0.001)) + \
+  (abs(eta) > 4.0) * (0.00)}
+
+  add EfficiencyFormula {4} {
+
+  (pt <= 10.0)     * (0.00) +
+  (abs(eta) < 4.0) * (pt > 10.0 && pt < 500) * (0.04) + \
+  (abs(eta) < 4.0) * (pt > 500.0) * (0.04*exp(0.5 - pt*0.001)) + \
+  (abs(eta) > 4.0) * (0.00)}
+
+  add EfficiencyFormula {5} {
+
+  (pt <= 10.0)     * (0.00) +
+  (abs(eta) < 4.0) * (pt > 10.0 && pt < 500) * (0.80) + \
+  (abs(eta) < 4.0) * (pt > 500.0) * (0.85*exp(0.5 - pt*0.001)) + \
+  (abs(eta) > 4.0) * (0.00)}
+
+}
+
+###########
+# c-tagging
+###########
+
+module BTagging CTagging {
+  set JetInputArray JetEnergyScale/jets
+
+  set BitNumber 1
+
+  add EfficiencyFormula {0} {
+
+  (pt <= 10.0)     * (0.00) +
+  (abs(eta) < 4.0) * (pt > 10.0) * (0.01) + \
+  (abs(eta) > 4.0) * (pt > 10.0) * (0.00)}
+
+  add EfficiencyFormula {4} {
+
+  (pt <= 10.0)     * (0.00) +
+  (abs(eta) < 4.0) * (pt > 10.0) * (0.10) + \
+  (abs(eta) > 4.0) * (pt > 10.0) * (0.00)}
+
+  add EfficiencyFormula {5} {
+
+  (pt <= 10.0)     * (0.00) +
+  (abs(eta) < 4.0) * (pt > 10.0) * (0.25) + \
+  (abs(eta) > 4.0) * (pt > 10.0) * (0.00)}
+
+}
+
+
+#############
+# tau-tagging
+#############
+
+
+module TauTagging TauTagging {
+  set ParticleInputArray Delphes/allParticles
+  set PartonInputArray Delphes/partons
+  set JetInputArray JetEnergyScale/jets
+
+  set DeltaR 0.5
+
+  set TauPTMin 1.0
+
+  set TauEtaMax 4.0
+
+  # add EfficiencyFormula {abs(PDG code)} {efficiency formula as a function of eta and pt}
+  add EfficiencyFormula {0} {
+
+  (pt <= 10.0)     * (0.00) +
+  (abs(eta) < 4.0) * (pt > 10.0) * (0.01) + \
+  (abs(eta) > 4.0) * (pt > 10.0) * (0.00)}
+
+  add EfficiencyFormula {11} {
+
+  (pt <= 10.0)     * (0.00) +
+  (abs(eta) < 4.0) * (pt > 10.0) * (0.005) + \
+  (abs(eta) > 4.0) * (pt > 10.0) * (0.00)}
+
+  add EfficiencyFormula {15} {
+
+  (pt <= 10.0)     * (0.00) +
+  (abs(eta) < 4.0) * (pt > 10.0) * (0.6) + \
+  (abs(eta) > 4.0) * (pt > 10.0) * (0.00)}
+
+}
+
+#####################################################
+# Find uniquely identified photons/electrons/tau/jets
+#####################################################
+
+module UniqueObjectFinder UniqueObjectFinder {
+# earlier arrays take precedence over later ones
+# add InputArray InputArray OutputArray
+  add InputArray PhotonIsolation/photons photons
+  add InputArray ElectronIsolation/electrons electrons
+  add InputArray MuonIsolation/muons muons
+  add InputArray JetEnergyScale/jets jets
+
+}
+
+
+##################
+# ROOT tree writer
+##################
+
+module TreeWriter TreeWriter {
+# add Branch InputArray BranchName BranchClass
+  add Branch Delphes/allParticles Particle GenParticle
+
+  add Branch GenJetFinder/jets GenJet Jet
+  add Branch GenMissingET/momentum GenMissingET MissingET
+
+  add Branch TrackMerger/tracks Track Track
+  add Branch Calorimeter/towers Tower Tower
+
+  add Branch HCal/eflowTracks EFlowTrack Track
+  add Branch ECal/eflowPhotons EFlowPhoton Tower
+  add Branch HCal/eflowNeutralHadrons EFlowNeutralHadron Tower
+
+  add Branch UniqueObjectFinder/photons Photon Photon
+  add Branch UniqueObjectFinder/electrons Electron Electron
+  add Branch UniqueObjectFinder/muons Muon Muon
+  add Branch UniqueObjectFinder/jets Jet Jet
+
+  add Branch MissingET/momentum MissingET MissingET
+  add Branch ScalarHT/energy ScalarHT ScalarHT
+}
+
Index: cards/FCC/momentumResolutionVsP.tcl
===================================================================
--- cards/FCC/momentumResolutionVsP.tcl	(revision 5348ed9b72570adcd45eb2dfaa345cbfa4944ead)
+++ cards/FCC/momentumResolutionVsP.tcl	(revision 5348ed9b72570adcd45eb2dfaa345cbfa4944ead)
@@ -0,0 +1,308 @@
+#
+# Automatically generated tracker resolution formula for layout: FCChh_Option3
+#
+# http://fcc-tklayout.web.cern.ch/fcc-tklayout/FCChh-Option3/FCChh_Option3_v0_Delphes_eta0.1_p.conf
+#
+#  By Z.Drasal(CERN) on: 2016-09-07.13:22:06
+#
+set ResolutionFormula {    (abs(eta) >= 0.0000 && abs(eta) < 0.1000) * (energy >= 0.0000 && energy < 10.0000) * (0.00340454) + \
+   (abs(eta) >= 0.0000 && abs(eta) < 0.1000) * (energy >= 10.0000 && energy < 100.0000) * (0.003405 + (energy-10.000000)* 0.000007) + \
+   (abs(eta) >= 0.0000 && abs(eta) < 0.1000) * (energy >= 100.0000 && energy < 1000.0000) * (0.004075 + (energy-100.000000)* 0.000015) + \
+   (abs(eta) >= 0.0000 && abs(eta) < 0.1000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.017369 + (energy-1000.000000)* 0.000017) + \
+   (abs(eta) >= 0.0000 && abs(eta) < 0.1000) * (energy >= 10000.0000) * (0.169584*energy/10000.000000) + \
+   (abs(eta) >= 0.1000 && abs(eta) < 0.2000) * (energy >= 0.0000 && energy < 10.0000) * (0.00346163) + \
+   (abs(eta) >= 0.1000 && abs(eta) < 0.2000) * (energy >= 10.0000 && energy < 100.0000) * (0.003462 + (energy-10.000000)* 0.000007) + \
+   (abs(eta) >= 0.1000 && abs(eta) < 0.2000) * (energy >= 100.0000 && energy < 1000.0000) * (0.004118 + (energy-100.000000)* 0.000014) + \
+   (abs(eta) >= 0.1000 && abs(eta) < 0.2000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.017077 + (energy-1000.000000)* 0.000017) + \
+   (abs(eta) >= 0.1000 && abs(eta) < 0.2000) * (energy >= 10000.0000) * (0.166432*energy/10000.000000) + \
+   (abs(eta) >= 0.2000 && abs(eta) < 0.3000) * (energy >= 0.0000 && energy < 10.0000) * (0.00347184) + \
+   (abs(eta) >= 0.2000 && abs(eta) < 0.3000) * (energy >= 10.0000 && energy < 100.0000) * (0.003472 + (energy-10.000000)* 0.000007) + \
+   (abs(eta) >= 0.2000 && abs(eta) < 0.3000) * (energy >= 100.0000 && energy < 1000.0000) * (0.004076 + (energy-100.000000)* 0.000014) + \
+   (abs(eta) >= 0.2000 && abs(eta) < 0.3000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.016911 + (energy-1000.000000)* 0.000016) + \
+   (abs(eta) >= 0.2000 && abs(eta) < 0.3000) * (energy >= 10000.0000) * (0.164865*energy/10000.000000) + \
+   (abs(eta) >= 0.3000 && abs(eta) < 0.4000) * (energy >= 0.0000 && energy < 10.0000) * (0.00354357) + \
+   (abs(eta) >= 0.3000 && abs(eta) < 0.4000) * (energy >= 10.0000 && energy < 100.0000) * (0.003544 + (energy-10.000000)* 0.000007) + \
+   (abs(eta) >= 0.3000 && abs(eta) < 0.4000) * (energy >= 100.0000 && energy < 1000.0000) * (0.004148 + (energy-100.000000)* 0.000014) + \
+   (abs(eta) >= 0.3000 && abs(eta) < 0.4000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.016402 + (energy-1000.000000)* 0.000016) + \
+   (abs(eta) >= 0.3000 && abs(eta) < 0.4000) * (energy >= 10000.0000) * (0.159353*energy/10000.000000) + \
+   (abs(eta) >= 0.4000 && abs(eta) < 0.5000) * (energy >= 0.0000 && energy < 10.0000) * (0.00357951) + \
+   (abs(eta) >= 0.4000 && abs(eta) < 0.5000) * (energy >= 10.0000 && energy < 100.0000) * (0.003580 + (energy-10.000000)* 0.000007) + \
+   (abs(eta) >= 0.4000 && abs(eta) < 0.5000) * (energy >= 100.0000 && energy < 1000.0000) * (0.004168 + (energy-100.000000)* 0.000013) + \
+   (abs(eta) >= 0.4000 && abs(eta) < 0.5000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.015837 + (energy-1000.000000)* 0.000015) + \
+   (abs(eta) >= 0.4000 && abs(eta) < 0.5000) * (energy >= 10000.0000) * (0.153410*energy/10000.000000) + \
+   (abs(eta) >= 0.5000 && abs(eta) < 0.6000) * (energy >= 0.0000 && energy < 10.0000) * (0.00376723) + \
+   (abs(eta) >= 0.5000 && abs(eta) < 0.6000) * (energy >= 10.0000 && energy < 100.0000) * (0.003767 + (energy-10.000000)* 0.000006) + \
+   (abs(eta) >= 0.5000 && abs(eta) < 0.6000) * (energy >= 100.0000 && energy < 1000.0000) * (0.004334 + (energy-100.000000)* 0.000011) + \
+   (abs(eta) >= 0.5000 && abs(eta) < 0.6000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.014643 + (energy-1000.000000)* 0.000014) + \
+   (abs(eta) >= 0.5000 && abs(eta) < 0.6000) * (energy >= 10000.0000) * (0.140265*energy/10000.000000) + \
+   (abs(eta) >= 0.6000 && abs(eta) < 0.7000) * (energy >= 0.0000 && energy < 10.0000) * (0.00380303) + \
+   (abs(eta) >= 0.6000 && abs(eta) < 0.7000) * (energy >= 10.0000 && energy < 100.0000) * (0.003803 + (energy-10.000000)* 0.000006) + \
+   (abs(eta) >= 0.6000 && abs(eta) < 0.7000) * (energy >= 100.0000 && energy < 1000.0000) * (0.004335 + (energy-100.000000)* 0.000011) + \
+   (abs(eta) >= 0.6000 && abs(eta) < 0.7000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.014194 + (energy-1000.000000)* 0.000013) + \
+   (abs(eta) >= 0.6000 && abs(eta) < 0.7000) * (energy >= 10000.0000) * (0.135554*energy/10000.000000) + \
+   (abs(eta) >= 0.7000 && abs(eta) < 0.8000) * (energy >= 0.0000 && energy < 10.0000) * (0.00396987) + \
+   (abs(eta) >= 0.7000 && abs(eta) < 0.8000) * (energy >= 10.0000 && energy < 100.0000) * (0.003970 + (energy-10.000000)* 0.000006) + \
+   (abs(eta) >= 0.7000 && abs(eta) < 0.8000) * (energy >= 100.0000 && energy < 1000.0000) * (0.004495 + (energy-100.000000)* 0.000010) + \
+   (abs(eta) >= 0.7000 && abs(eta) < 0.8000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.013477 + (energy-1000.000000)* 0.000013) + \
+   (abs(eta) >= 0.7000 && abs(eta) < 0.8000) * (energy >= 10000.0000) * (0.127227*energy/10000.000000) + \
+   (abs(eta) >= 0.8000 && abs(eta) < 0.9000) * (energy >= 0.0000 && energy < 10.0000) * (0.00409080) + \
+   (abs(eta) >= 0.8000 && abs(eta) < 0.9000) * (energy >= 10.0000 && energy < 100.0000) * (0.004091 + (energy-10.000000)* 0.000006) + \
+   (abs(eta) >= 0.8000 && abs(eta) < 0.9000) * (energy >= 100.0000 && energy < 1000.0000) * (0.004590 + (energy-100.000000)* 0.000009) + \
+   (abs(eta) >= 0.8000 && abs(eta) < 0.9000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.012701 + (energy-1000.000000)* 0.000012) + \
+   (abs(eta) >= 0.8000 && abs(eta) < 0.9000) * (energy >= 10000.0000) * (0.118365*energy/10000.000000) + \
+   (abs(eta) >= 0.9000 && abs(eta) < 1.0000) * (energy >= 0.0000 && energy < 10.0000) * (0.00429325) + \
+   (abs(eta) >= 0.9000 && abs(eta) < 1.0000) * (energy >= 10.0000 && energy < 100.0000) * (0.004293 + (energy-10.000000)* 0.000005) + \
+   (abs(eta) >= 0.9000 && abs(eta) < 1.0000) * (energy >= 100.0000 && energy < 1000.0000) * (0.004763 + (energy-100.000000)* 0.000008) + \
+   (abs(eta) >= 0.9000 && abs(eta) < 1.0000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.011874 + (energy-1000.000000)* 0.000011) + \
+   (abs(eta) >= 0.9000 && abs(eta) < 1.0000) * (energy >= 10000.0000) * (0.108600*energy/10000.000000) + \
+   (abs(eta) >= 1.0000 && abs(eta) < 1.1000) * (energy >= 0.0000 && energy < 10.0000) * (0.00449524) + \
+   (abs(eta) >= 1.0000 && abs(eta) < 1.1000) * (energy >= 10.0000 && energy < 100.0000) * (0.004495 + (energy-10.000000)* 0.000005) + \
+   (abs(eta) >= 1.0000 && abs(eta) < 1.1000) * (energy >= 100.0000 && energy < 1000.0000) * (0.004954 + (energy-100.000000)* 0.000007) + \
+   (abs(eta) >= 1.0000 && abs(eta) < 1.1000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.011301 + (energy-1000.000000)* 0.000010) + \
+   (abs(eta) >= 1.0000 && abs(eta) < 1.1000) * (energy >= 10000.0000) * (0.100618*energy/10000.000000) + \
+   (abs(eta) >= 1.1000 && abs(eta) < 1.2000) * (energy >= 0.0000 && energy < 10.0000) * (0.00468347) + \
+   (abs(eta) >= 1.1000 && abs(eta) < 1.2000) * (energy >= 10.0000 && energy < 100.0000) * (0.004683 + (energy-10.000000)* 0.000005) + \
+   (abs(eta) >= 1.1000 && abs(eta) < 1.2000) * (energy >= 100.0000 && energy < 1000.0000) * (0.005126 + (energy-100.000000)* 0.000007) + \
+   (abs(eta) >= 1.1000 && abs(eta) < 1.2000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.011437 + (energy-1000.000000)* 0.000010) + \
+   (abs(eta) >= 1.1000 && abs(eta) < 1.2000) * (energy >= 10000.0000) * (0.101708*energy/10000.000000) + \
+   (abs(eta) >= 1.2000 && abs(eta) < 1.3000) * (energy >= 0.0000 && energy < 10.0000) * (0.00528323) + \
+   (abs(eta) >= 1.2000 && abs(eta) < 1.3000) * (energy >= 10.0000 && energy < 100.0000) * (0.005283 + (energy-10.000000)* 0.000006) + \
+   (abs(eta) >= 1.2000 && abs(eta) < 1.3000) * (energy >= 100.0000 && energy < 1000.0000) * (0.005803 + (energy-100.000000)* 0.000008) + \
+   (abs(eta) >= 1.2000 && abs(eta) < 1.3000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.013208 + (energy-1000.000000)* 0.000012) + \
+   (abs(eta) >= 1.2000 && abs(eta) < 1.3000) * (energy >= 10000.0000) * (0.117853*energy/10000.000000) + \
+   (abs(eta) >= 1.3000 && abs(eta) < 1.4000) * (energy >= 0.0000 && energy < 10.0000) * (0.00487726) + \
+   (abs(eta) >= 1.3000 && abs(eta) < 1.4000) * (energy >= 10.0000 && energy < 100.0000) * (0.004877 + (energy-10.000000)* 0.000004) + \
+   (abs(eta) >= 1.3000 && abs(eta) < 1.4000) * (energy >= 100.0000 && energy < 1000.0000) * (0.005247 + (energy-100.000000)* 0.000007) + \
+   (abs(eta) >= 1.3000 && abs(eta) < 1.4000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.011386 + (energy-1000.000000)* 0.000010) + \
+   (abs(eta) >= 1.3000 && abs(eta) < 1.4000) * (energy >= 10000.0000) * (0.100725*energy/10000.000000) + \
+   (abs(eta) >= 1.4000 && abs(eta) < 1.5000) * (energy >= 0.0000 && energy < 10.0000) * (0.00443899) + \
+   (abs(eta) >= 1.4000 && abs(eta) < 1.5000) * (energy >= 10.0000 && energy < 100.0000) * (0.004439 + (energy-10.000000)* 0.000009) + \
+   (abs(eta) >= 1.4000 && abs(eta) < 1.5000) * (energy >= 100.0000 && energy < 1000.0000) * (0.005250 + (energy-100.000000)* 0.000006) + \
+   (abs(eta) >= 1.4000 && abs(eta) < 1.5000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.010971 + (energy-1000.000000)* 0.000009) + \
+   (abs(eta) >= 1.4000 && abs(eta) < 1.5000) * (energy >= 10000.0000) * (0.094534*energy/10000.000000) + \
+   (abs(eta) >= 1.5000 && abs(eta) < 1.6000) * (energy >= 0.0000 && energy < 10.0000) * (0.00432805) + \
+   (abs(eta) >= 1.5000 && abs(eta) < 1.6000) * (energy >= 10.0000 && energy < 100.0000) * (0.004328 + (energy-10.000000)* 0.000008) + \
+   (abs(eta) >= 1.5000 && abs(eta) < 1.6000) * (energy >= 100.0000 && energy < 1000.0000) * (0.005085 + (energy-100.000000)* 0.000006) + \
+   (abs(eta) >= 1.5000 && abs(eta) < 1.6000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.010124 + (energy-1000.000000)* 0.000008) + \
+   (abs(eta) >= 1.5000 && abs(eta) < 1.6000) * (energy >= 10000.0000) * (0.084566*energy/10000.000000) + \
+   (abs(eta) >= 1.6000 && abs(eta) < 1.7000) * (energy >= 0.0000 && energy < 10.0000) * (0.00427793) + \
+   (abs(eta) >= 1.6000 && abs(eta) < 1.7000) * (energy >= 10.0000 && energy < 100.0000) * (0.004278 + (energy-10.000000)* 0.000008) + \
+   (abs(eta) >= 1.6000 && abs(eta) < 1.7000) * (energy >= 100.0000 && energy < 1000.0000) * (0.004957 + (energy-100.000000)* 0.000005) + \
+   (abs(eta) >= 1.6000 && abs(eta) < 1.7000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.009282 + (energy-1000.000000)* 0.000007) + \
+   (abs(eta) >= 1.6000 && abs(eta) < 1.7000) * (energy >= 10000.0000) * (0.074561*energy/10000.000000) + \
+   (abs(eta) >= 1.7000 && abs(eta) < 1.8000) * (energy >= 0.0000 && energy < 10.0000) * (0.00431943) + \
+   (abs(eta) >= 1.7000 && abs(eta) < 1.8000) * (energy >= 10.0000 && energy < 100.0000) * (0.004319 + (energy-10.000000)* 0.000006) + \
+   (abs(eta) >= 1.7000 && abs(eta) < 1.8000) * (energy >= 100.0000 && energy < 1000.0000) * (0.004899 + (energy-100.000000)* 0.000004) + \
+   (abs(eta) >= 1.7000 && abs(eta) < 1.8000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.008595 + (energy-1000.000000)* 0.000006) + \
+   (abs(eta) >= 1.7000 && abs(eta) < 1.8000) * (energy >= 10000.0000) * (0.065747*energy/10000.000000) + \
+   (abs(eta) >= 1.8000 && abs(eta) < 1.9000) * (energy >= 0.0000 && energy < 10.0000) * (0.00424356) + \
+   (abs(eta) >= 1.8000 && abs(eta) < 1.9000) * (energy >= 10.0000 && energy < 100.0000) * (0.004244 + (energy-10.000000)* 0.000006) + \
+   (abs(eta) >= 1.8000 && abs(eta) < 1.9000) * (energy >= 100.0000 && energy < 1000.0000) * (0.004756 + (energy-100.000000)* 0.000004) + \
+   (abs(eta) >= 1.8000 && abs(eta) < 1.9000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.008043 + (energy-1000.000000)* 0.000006) + \
+   (abs(eta) >= 1.8000 && abs(eta) < 1.9000) * (energy >= 10000.0000) * (0.059890*energy/10000.000000) + \
+   (abs(eta) >= 1.9000 && abs(eta) < 2.0000) * (energy >= 0.0000 && energy < 10.0000) * (0.00431197) + \
+   (abs(eta) >= 1.9000 && abs(eta) < 2.0000) * (energy >= 10.0000 && energy < 100.0000) * (0.004312 + (energy-10.000000)* 0.000006) + \
+   (abs(eta) >= 1.9000 && abs(eta) < 2.0000) * (energy >= 100.0000 && energy < 1000.0000) * (0.004830 + (energy-100.000000)* 0.000003) + \
+   (abs(eta) >= 1.9000 && abs(eta) < 2.0000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.007698 + (energy-1000.000000)* 0.000005) + \
+   (abs(eta) >= 1.9000 && abs(eta) < 2.0000) * (energy >= 10000.0000) * (0.053047*energy/10000.000000) + \
+   (abs(eta) >= 2.0000 && abs(eta) < 2.1000) * (energy >= 0.0000 && energy < 10.0000) * (0.00429873) + \
+   (abs(eta) >= 2.0000 && abs(eta) < 2.1000) * (energy >= 10.0000 && energy < 100.0000) * (0.004299 + (energy-10.000000)* 0.000005) + \
+   (abs(eta) >= 2.0000 && abs(eta) < 2.1000) * (energy >= 100.0000 && energy < 1000.0000) * (0.004746 + (energy-100.000000)* 0.000003) + \
+   (abs(eta) >= 2.0000 && abs(eta) < 2.1000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.007655 + (energy-1000.000000)* 0.000005) + \
+   (abs(eta) >= 2.0000 && abs(eta) < 2.1000) * (energy >= 10000.0000) * (0.056947*energy/10000.000000) + \
+   (abs(eta) >= 2.1000 && abs(eta) < 2.2000) * (energy >= 0.0000 && energy < 10.0000) * (0.00466454) + \
+   (abs(eta) >= 2.1000 && abs(eta) < 2.2000) * (energy >= 10.0000 && energy < 100.0000) * (0.004665 + (energy-10.000000)* 0.000004) + \
+   (abs(eta) >= 2.1000 && abs(eta) < 2.2000) * (energy >= 100.0000 && energy < 1000.0000) * (0.005052 + (energy-100.000000)* 0.000003) + \
+   (abs(eta) >= 2.1000 && abs(eta) < 2.2000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.008185 + (energy-1000.000000)* 0.000006) + \
+   (abs(eta) >= 2.1000 && abs(eta) < 2.2000) * (energy >= 10000.0000) * (0.062096*energy/10000.000000) + \
+   (abs(eta) >= 2.2000 && abs(eta) < 2.3000) * (energy >= 0.0000 && energy < 10.0000) * (0.00503247) + \
+   (abs(eta) >= 2.2000 && abs(eta) < 2.3000) * (energy >= 10.0000 && energy < 100.0000) * (0.005032 + (energy-10.000000)* 0.000005) + \
+   (abs(eta) >= 2.2000 && abs(eta) < 2.3000) * (energy >= 100.0000 && energy < 1000.0000) * (0.005465 + (energy-100.000000)* 0.000004) + \
+   (abs(eta) >= 2.2000 && abs(eta) < 2.3000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.008844 + (energy-1000.000000)* 0.000007) + \
+   (abs(eta) >= 2.2000 && abs(eta) < 2.3000) * (energy >= 10000.0000) * (0.067561*energy/10000.000000) + \
+   (abs(eta) >= 2.3000 && abs(eta) < 2.4000) * (energy >= 0.0000 && energy < 10.0000) * (0.00575880) + \
+   (abs(eta) >= 2.3000 && abs(eta) < 2.4000) * (energy >= 10.0000 && energy < 100.0000) * (0.005759 + (energy-10.000000)* 0.000004) + \
+   (abs(eta) >= 2.3000 && abs(eta) < 2.4000) * (energy >= 100.0000 && energy < 1000.0000) * (0.006092 + (energy-100.000000)* 0.000004) + \
+   (abs(eta) >= 2.3000 && abs(eta) < 2.4000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.009486 + (energy-1000.000000)* 0.000007) + \
+   (abs(eta) >= 2.3000 && abs(eta) < 2.4000) * (energy >= 10000.0000) * (0.070557*energy/10000.000000) + \
+   (abs(eta) >= 2.4000 && abs(eta) < 2.5000) * (energy >= 0.0000 && energy < 10.0000) * (0.00485233) + \
+   (abs(eta) >= 2.4000 && abs(eta) < 2.5000) * (energy >= 10.0000 && energy < 100.0000) * (0.004852 + (energy-10.000000)* 0.000004) + \
+   (abs(eta) >= 2.4000 && abs(eta) < 2.5000) * (energy >= 100.0000 && energy < 1000.0000) * (0.005182 + (energy-100.000000)* 0.000003) + \
+   (abs(eta) >= 2.4000 && abs(eta) < 2.5000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.007890 + (energy-1000.000000)* 0.000005) + \
+   (abs(eta) >= 2.4000 && abs(eta) < 2.5000) * (energy >= 10000.0000) * (0.055498*energy/10000.000000) + \
+   (abs(eta) >= 2.5000 && abs(eta) < 2.6000) * (energy >= 0.0000 && energy < 10.0000) * (0.00359269) + \
+   (abs(eta) >= 2.5000 && abs(eta) < 2.6000) * (energy >= 10.0000 && energy < 100.0000) * (0.003593 + (energy-10.000000)* 0.000004) + \
+   (abs(eta) >= 2.5000 && abs(eta) < 2.6000) * (energy >= 100.0000 && energy < 1000.0000) * (0.003938 + (energy-100.000000)* 0.000002) + \
+   (abs(eta) >= 2.5000 && abs(eta) < 2.6000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.005391 + (energy-1000.000000)* 0.000003) + \
+   (abs(eta) >= 2.5000 && abs(eta) < 2.6000) * (energy >= 10000.0000) * (0.029445*energy/10000.000000) + \
+   (abs(eta) >= 2.6000 && abs(eta) < 2.7000) * (energy >= 0.0000 && energy < 10.0000) * (0.00310110) + \
+   (abs(eta) >= 2.6000 && abs(eta) < 2.7000) * (energy >= 10.0000 && energy < 100.0000) * (0.003101 + (energy-10.000000)* 0.000004) + \
+   (abs(eta) >= 2.6000 && abs(eta) < 2.7000) * (energy >= 100.0000 && energy < 1000.0000) * (0.003424 + (energy-100.000000)* 0.000002) + \
+   (abs(eta) >= 2.6000 && abs(eta) < 2.7000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.005167 + (energy-1000.000000)* 0.000002) + \
+   (abs(eta) >= 2.6000 && abs(eta) < 2.7000) * (energy >= 10000.0000) * (0.026840*energy/10000.000000) + \
+   (abs(eta) >= 2.7000 && abs(eta) < 2.8000) * (energy >= 0.0000 && energy < 10.0000) * (0.00338260) + \
+   (abs(eta) >= 2.7000 && abs(eta) < 2.8000) * (energy >= 10.0000 && energy < 100.0000) * (0.003383 + (energy-10.000000)* 0.000001) + \
+   (abs(eta) >= 2.7000 && abs(eta) < 2.8000) * (energy >= 100.0000 && energy < 1000.0000) * (0.003475 + (energy-100.000000)* 0.000002) + \
+   (abs(eta) >= 2.7000 && abs(eta) < 2.8000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.004862 + (energy-1000.000000)* 0.000002) + \
+   (abs(eta) >= 2.7000 && abs(eta) < 2.8000) * (energy >= 10000.0000) * (0.024891*energy/10000.000000) + \
+   (abs(eta) >= 2.8000 && abs(eta) < 2.9000) * (energy >= 0.0000 && energy < 10.0000) * (0.00308313) + \
+   (abs(eta) >= 2.8000 && abs(eta) < 2.9000) * (energy >= 10.0000 && energy < 100.0000) * (0.003083 + (energy-10.000000)* 0.000002) + \
+   (abs(eta) >= 2.8000 && abs(eta) < 2.9000) * (energy >= 100.0000 && energy < 1000.0000) * (0.003297 + (energy-100.000000)* 0.000001) + \
+   (abs(eta) >= 2.8000 && abs(eta) < 2.9000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.004488 + (energy-1000.000000)* 0.000002) + \
+   (abs(eta) >= 2.8000 && abs(eta) < 2.9000) * (energy >= 10000.0000) * (0.023673*energy/10000.000000) + \
+   (abs(eta) >= 2.9000 && abs(eta) < 3.0000) * (energy >= 0.0000 && energy < 10.0000) * (0.00323537) + \
+   (abs(eta) >= 2.9000 && abs(eta) < 3.0000) * (energy >= 10.0000 && energy < 100.0000) * (0.003235 + (energy-10.000000)* 0.000003) + \
+   (abs(eta) >= 2.9000 && abs(eta) < 3.0000) * (energy >= 100.0000 && energy < 1000.0000) * (0.003461 + (energy-100.000000)* 0.000001) + \
+   (abs(eta) >= 2.9000 && abs(eta) < 3.0000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.004380 + (energy-1000.000000)* 0.000002) + \
+   (abs(eta) >= 2.9000 && abs(eta) < 3.0000) * (energy >= 10000.0000) * (0.021562*energy/10000.000000) + \
+   (abs(eta) >= 3.0000 && abs(eta) < 3.1000) * (energy >= 0.0000 && energy < 10.0000) * (0.00341688) + \
+   (abs(eta) >= 3.0000 && abs(eta) < 3.1000) * (energy >= 10.0000 && energy < 100.0000) * (0.003417 + (energy-10.000000)* 0.000003) + \
+   (abs(eta) >= 3.0000 && abs(eta) < 3.1000) * (energy >= 100.0000 && energy < 1000.0000) * (0.003643 + (energy-100.000000)* 0.000001) + \
+   (abs(eta) >= 3.0000 && abs(eta) < 3.1000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.004444 + (energy-1000.000000)* 0.000002) + \
+   (abs(eta) >= 3.0000 && abs(eta) < 3.1000) * (energy >= 10000.0000) * (0.019945*energy/10000.000000) + \
+   (abs(eta) >= 3.1000 && abs(eta) < 3.2000) * (energy >= 0.0000 && energy < 10.0000) * (0.00369084) + \
+   (abs(eta) >= 3.1000 && abs(eta) < 3.2000) * (energy >= 10.0000 && energy < 100.0000) * (0.003691 + (energy-10.000000)* 0.000003) + \
+   (abs(eta) >= 3.1000 && abs(eta) < 3.2000) * (energy >= 100.0000 && energy < 1000.0000) * (0.003928 + (energy-100.000000)* 0.000001) + \
+   (abs(eta) >= 3.1000 && abs(eta) < 3.2000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.004748 + (energy-1000.000000)* 0.000002) + \
+   (abs(eta) >= 3.1000 && abs(eta) < 3.2000) * (energy >= 10000.0000) * (0.020946*energy/10000.000000) + \
+   (abs(eta) >= 3.2000 && abs(eta) < 3.3000) * (energy >= 0.0000 && energy < 10.0000) * (0.00409778) + \
+   (abs(eta) >= 3.2000 && abs(eta) < 3.3000) * (energy >= 10.0000 && energy < 100.0000) * (0.004098 + (energy-10.000000)* 0.000003) + \
+   (abs(eta) >= 3.2000 && abs(eta) < 3.3000) * (energy >= 100.0000 && energy < 1000.0000) * (0.004341 + (energy-100.000000)* 0.000001) + \
+   (abs(eta) >= 3.2000 && abs(eta) < 3.3000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.005281 + (energy-1000.000000)* 0.000002) + \
+   (abs(eta) >= 3.2000 && abs(eta) < 3.3000) * (energy >= 10000.0000) * (0.024054*energy/10000.000000) + \
+   (abs(eta) >= 3.3000 && abs(eta) < 3.4000) * (energy >= 0.0000 && energy < 10.0000) * (0.00436555) + \
+   (abs(eta) >= 3.3000 && abs(eta) < 3.4000) * (energy >= 10.0000 && energy < 100.0000) * (0.004366 + (energy-10.000000)* 0.000004) + \
+   (abs(eta) >= 3.3000 && abs(eta) < 3.4000) * (energy >= 100.0000 && energy < 1000.0000) * (0.004692 + (energy-100.000000)* 0.000001) + \
+   (abs(eta) >= 3.3000 && abs(eta) < 3.4000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.005824 + (energy-1000.000000)* 0.000002) + \
+   (abs(eta) >= 3.3000 && abs(eta) < 3.4000) * (energy >= 10000.0000) * (0.026293*energy/10000.000000) + \
+   (abs(eta) >= 3.4000 && abs(eta) < 3.5000) * (energy >= 0.0000 && energy < 10.0000) * (0.00443777) + \
+   (abs(eta) >= 3.4000 && abs(eta) < 3.5000) * (energy >= 10.0000 && energy < 100.0000) * (0.004438 + (energy-10.000000)* 0.000004) + \
+   (abs(eta) >= 3.4000 && abs(eta) < 3.5000) * (energy >= 100.0000 && energy < 1000.0000) * (0.004806 + (energy-100.000000)* 0.000002) + \
+   (abs(eta) >= 3.4000 && abs(eta) < 3.5000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.006206 + (energy-1000.000000)* 0.000003) + \
+   (abs(eta) >= 3.4000 && abs(eta) < 3.5000) * (energy >= 10000.0000) * (0.029660*energy/10000.000000) + \
+   (abs(eta) >= 3.5000 && abs(eta) < 3.6000) * (energy >= 0.0000 && energy < 10.0000) * (0.00481587) + \
+   (abs(eta) >= 3.5000 && abs(eta) < 3.6000) * (energy >= 10.0000 && energy < 100.0000) * (0.004816 + (energy-10.000000)* 0.000003) + \
+   (abs(eta) >= 3.5000 && abs(eta) < 3.6000) * (energy >= 100.0000 && energy < 1000.0000) * (0.005090 + (energy-100.000000)* 0.000002) + \
+   (abs(eta) >= 3.5000 && abs(eta) < 3.6000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.006548 + (energy-1000.000000)* 0.000003) + \
+   (abs(eta) >= 3.5000 && abs(eta) < 3.6000) * (energy >= 10000.0000) * (0.034267*energy/10000.000000) + \
+   (abs(eta) >= 3.6000 && abs(eta) < 3.7000) * (energy >= 0.0000 && energy < 10.0000) * (0.00525937) + \
+   (abs(eta) >= 3.6000 && abs(eta) < 3.7000) * (energy >= 10.0000 && energy < 100.0000) * (0.005259 + (energy-10.000000)* 0.000003) + \
+   (abs(eta) >= 3.6000 && abs(eta) < 3.7000) * (energy >= 100.0000 && energy < 1000.0000) * (0.005533 + (energy-100.000000)* 0.000002) + \
+   (abs(eta) >= 3.6000 && abs(eta) < 3.7000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.007074 + (energy-1000.000000)* 0.000004) + \
+   (abs(eta) >= 3.6000 && abs(eta) < 3.7000) * (energy >= 10000.0000) * (0.039376*energy/10000.000000) + \
+   (abs(eta) >= 3.7000 && abs(eta) < 3.8000) * (energy >= 0.0000 && energy < 10.0000) * (0.00558339) + \
+   (abs(eta) >= 3.7000 && abs(eta) < 3.8000) * (energy >= 10.0000 && energy < 100.0000) * (0.005583 + (energy-10.000000)* 0.000003) + \
+   (abs(eta) >= 3.7000 && abs(eta) < 3.8000) * (energy >= 100.0000 && energy < 1000.0000) * (0.005866 + (energy-100.000000)* 0.000002) + \
+   (abs(eta) >= 3.7000 && abs(eta) < 3.8000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.007616 + (energy-1000.000000)* 0.000004) + \
+   (abs(eta) >= 3.7000 && abs(eta) < 3.8000) * (energy >= 10000.0000) * (0.043675*energy/10000.000000) + \
+   (abs(eta) >= 3.8000 && abs(eta) < 3.9000) * (energy >= 0.0000 && energy < 10.0000) * (0.00601685) + \
+   (abs(eta) >= 3.8000 && abs(eta) < 3.9000) * (energy >= 10.0000 && energy < 100.0000) * (0.006017 + (energy-10.000000)* 0.000003) + \
+   (abs(eta) >= 3.8000 && abs(eta) < 3.9000) * (energy >= 100.0000 && energy < 1000.0000) * (0.006331 + (energy-100.000000)* 0.000002) + \
+   (abs(eta) >= 3.8000 && abs(eta) < 3.9000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.008374 + (energy-1000.000000)* 0.000004) + \
+   (abs(eta) >= 3.8000 && abs(eta) < 3.9000) * (energy >= 10000.0000) * (0.048432*energy/10000.000000) + \
+   (abs(eta) >= 3.9000 && abs(eta) < 4.0000) * (energy >= 0.0000 && energy < 10.0000) * (0.00664542) + \
+   (abs(eta) >= 3.9000 && abs(eta) < 4.0000) * (energy >= 10.0000 && energy < 100.0000) * (0.006645 + (energy-10.000000)* 0.000004) + \
+   (abs(eta) >= 3.9000 && abs(eta) < 4.0000) * (energy >= 100.0000 && energy < 1000.0000) * (0.006973 + (energy-100.000000)* 0.000003) + \
+   (abs(eta) >= 3.9000 && abs(eta) < 4.0000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.009233 + (energy-1000.000000)* 0.000005) + \
+   (abs(eta) >= 3.9000 && abs(eta) < 4.0000) * (energy >= 10000.0000) * (0.053465*energy/10000.000000) + \
+   (abs(eta) >= 4.0000 && abs(eta) < 4.1000) * (energy >= 0.0000 && energy < 10.0000) * (0.00733159) + \
+   (abs(eta) >= 4.0000 && abs(eta) < 4.1000) * (energy >= 10.0000 && energy < 100.0000) * (0.007332 + (energy-10.000000)* 0.000004) + \
+   (abs(eta) >= 4.0000 && abs(eta) < 4.1000) * (energy >= 100.0000 && energy < 1000.0000) * (0.007715 + (energy-100.000000)* 0.000003) + \
+   (abs(eta) >= 4.0000 && abs(eta) < 4.1000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.010293 + (energy-1000.000000)* 0.000005) + \
+   (abs(eta) >= 4.0000 && abs(eta) < 4.1000) * (energy >= 10000.0000) * (0.059778*energy/10000.000000) + \
+   (abs(eta) >= 4.1000 && abs(eta) < 4.2000) * (energy >= 0.0000 && energy < 10.0000) * (0.00809331) + \
+   (abs(eta) >= 4.1000 && abs(eta) < 4.2000) * (energy >= 10.0000 && energy < 100.0000) * (0.008093 + (energy-10.000000)* 0.000005) + \
+   (abs(eta) >= 4.1000 && abs(eta) < 4.2000) * (energy >= 100.0000 && energy < 1000.0000) * (0.008517 + (energy-100.000000)* 0.000003) + \
+   (abs(eta) >= 4.1000 && abs(eta) < 4.2000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.011309 + (energy-1000.000000)* 0.000006) + \
+   (abs(eta) >= 4.1000 && abs(eta) < 4.2000) * (energy >= 10000.0000) * (0.065875*energy/10000.000000) + \
+   (abs(eta) >= 4.2000 && abs(eta) < 4.3000) * (energy >= 0.0000 && energy < 10.0000) * (0.00892791) + \
+   (abs(eta) >= 4.2000 && abs(eta) < 4.3000) * (energy >= 10.0000 && energy < 100.0000) * (0.008928 + (energy-10.000000)* 0.000005) + \
+   (abs(eta) >= 4.2000 && abs(eta) < 4.3000) * (energy >= 100.0000 && energy < 1000.0000) * (0.009376 + (energy-100.000000)* 0.000003) + \
+   (abs(eta) >= 4.2000 && abs(eta) < 4.3000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.012508 + (energy-1000.000000)* 0.000007) + \
+   (abs(eta) >= 4.2000 && abs(eta) < 4.3000) * (energy >= 10000.0000) * (0.073389*energy/10000.000000) + \
+   (abs(eta) >= 4.3000 && abs(eta) < 4.4000) * (energy >= 0.0000 && energy < 10.0000) * (0.00987544) + \
+   (abs(eta) >= 4.3000 && abs(eta) < 4.4000) * (energy >= 10.0000 && energy < 100.0000) * (0.009875 + (energy-10.000000)* 0.000006) + \
+   (abs(eta) >= 4.3000 && abs(eta) < 4.4000) * (energy >= 100.0000 && energy < 1000.0000) * (0.010388 + (energy-100.000000)* 0.000004) + \
+   (abs(eta) >= 4.3000 && abs(eta) < 4.4000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.013930 + (energy-1000.000000)* 0.000007) + \
+   (abs(eta) >= 4.3000 && abs(eta) < 4.4000) * (energy >= 10000.0000) * (0.079664*energy/10000.000000) + \
+   (abs(eta) >= 4.4000 && abs(eta) < 4.5000) * (energy >= 0.0000 && energy < 10.0000) * (0.01093241) + \
+   (abs(eta) >= 4.4000 && abs(eta) < 4.5000) * (energy >= 10.0000 && energy < 100.0000) * (0.010932 + (energy-10.000000)* 0.000006) + \
+   (abs(eta) >= 4.4000 && abs(eta) < 4.5000) * (energy >= 100.0000 && energy < 1000.0000) * (0.011515 + (energy-100.000000)* 0.000004) + \
+   (abs(eta) >= 4.4000 && abs(eta) < 4.5000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.015341 + (energy-1000.000000)* 0.000008) + \
+   (abs(eta) >= 4.4000 && abs(eta) < 4.5000) * (energy >= 10000.0000) * (0.088937*energy/10000.000000) + \
+   (abs(eta) >= 4.5000 && abs(eta) < 4.6000) * (energy >= 0.0000 && energy < 10.0000) * (0.01216185) + \
+   (abs(eta) >= 4.5000 && abs(eta) < 4.6000) * (energy >= 10.0000 && energy < 100.0000) * (0.012162 + (energy-10.000000)* 0.000007) + \
+   (abs(eta) >= 4.5000 && abs(eta) < 4.6000) * (energy >= 100.0000 && energy < 1000.0000) * (0.012785 + (energy-100.000000)* 0.000005) + \
+   (abs(eta) >= 4.5000 && abs(eta) < 4.6000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.017140 + (energy-1000.000000)* 0.000009) + \
+   (abs(eta) >= 4.5000 && abs(eta) < 4.6000) * (energy >= 10000.0000) * (0.100946*energy/10000.000000) + \
+   (abs(eta) >= 4.6000 && abs(eta) < 4.7000) * (energy >= 0.0000 && energy < 10.0000) * (0.01329126) + \
+   (abs(eta) >= 4.6000 && abs(eta) < 4.7000) * (energy >= 10.0000 && energy < 100.0000) * (0.013291 + (energy-10.000000)* 0.000008) + \
+   (abs(eta) >= 4.6000 && abs(eta) < 4.7000) * (energy >= 100.0000 && energy < 1000.0000) * (0.013982 + (energy-100.000000)* 0.000005) + \
+   (abs(eta) >= 4.6000 && abs(eta) < 4.7000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.018853 + (energy-1000.000000)* 0.000011) + \
+   (abs(eta) >= 4.6000 && abs(eta) < 4.7000) * (energy >= 10000.0000) * (0.115103*energy/10000.000000) + \
+   (abs(eta) >= 4.7000 && abs(eta) < 4.8000) * (energy >= 0.0000 && energy < 10.0000) * (0.01500922) + \
+   (abs(eta) >= 4.7000 && abs(eta) < 4.8000) * (energy >= 10.0000 && energy < 100.0000) * (0.015009 + (energy-10.000000)* 0.000009) + \
+   (abs(eta) >= 4.7000 && abs(eta) < 4.8000) * (energy >= 100.0000 && energy < 1000.0000) * (0.015779 + (energy-100.000000)* 0.000006) + \
+   (abs(eta) >= 4.7000 && abs(eta) < 4.8000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.021404 + (energy-1000.000000)* 0.000012) + \
+   (abs(eta) >= 4.7000 && abs(eta) < 4.8000) * (energy >= 10000.0000) * (0.130463*energy/10000.000000) + \
+   (abs(eta) >= 4.8000 && abs(eta) < 4.9000) * (energy >= 0.0000 && energy < 10.0000) * (0.01633866) + \
+   (abs(eta) >= 4.8000 && abs(eta) < 4.9000) * (energy >= 10.0000 && energy < 100.0000) * (0.016339 + (energy-10.000000)* 0.000009) + \
+   (abs(eta) >= 4.8000 && abs(eta) < 4.9000) * (energy >= 100.0000 && energy < 1000.0000) * (0.017167 + (energy-100.000000)* 0.000007) + \
+   (abs(eta) >= 4.8000 && abs(eta) < 4.9000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.023505 + (energy-1000.000000)* 0.000014) + \
+   (abs(eta) >= 4.8000 && abs(eta) < 4.9000) * (energy >= 10000.0000) * (0.148516*energy/10000.000000) + \
+   (abs(eta) >= 4.9000 && abs(eta) < 5.0000) * (energy >= 0.0000 && energy < 10.0000) * (0.01806420) + \
+   (abs(eta) >= 4.9000 && abs(eta) < 5.0000) * (energy >= 10.0000 && energy < 100.0000) * (0.018064 + (energy-10.000000)* 0.000010) + \
+   (abs(eta) >= 4.9000 && abs(eta) < 5.0000) * (energy >= 100.0000 && energy < 1000.0000) * (0.018992 + (energy-100.000000)* 0.000008) + \
+   (abs(eta) >= 4.9000 && abs(eta) < 5.0000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.026158 + (energy-1000.000000)* 0.000016) + \
+   (abs(eta) >= 4.9000 && abs(eta) < 5.0000) * (energy >= 10000.0000) * (0.170014*energy/10000.000000) + \
+   (abs(eta) >= 5.0000 && abs(eta) < 5.1000) * (energy >= 0.0000 && energy < 10.0000) * (0.02021185) + \
+   (abs(eta) >= 5.0000 && abs(eta) < 5.1000) * (energy >= 10.0000 && energy < 100.0000) * (0.020212 + (energy-10.000000)* 0.000012) + \
+   (abs(eta) >= 5.0000 && abs(eta) < 5.1000) * (energy >= 100.0000 && energy < 1000.0000) * (0.021309 + (energy-100.000000)* 0.000010) + \
+   (abs(eta) >= 5.0000 && abs(eta) < 5.1000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.029902 + (energy-1000.000000)* 0.000018) + \
+   (abs(eta) >= 5.0000 && abs(eta) < 5.1000) * (energy >= 10000.0000) * (0.195445*energy/10000.000000) + \
+   (abs(eta) >= 5.1000 && abs(eta) < 5.2000) * (energy >= 0.0000 && energy < 10.0000) * (0.02245346) + \
+   (abs(eta) >= 5.1000 && abs(eta) < 5.2000) * (energy >= 10.0000 && energy < 100.0000) * (0.022453 + (energy-10.000000)* 0.000013) + \
+   (abs(eta) >= 5.1000 && abs(eta) < 5.2000) * (energy >= 100.0000 && energy < 1000.0000) * (0.023623 + (energy-100.000000)* 0.000011) + \
+   (abs(eta) >= 5.1000 && abs(eta) < 5.2000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.033400 + (energy-1000.000000)* 0.000021) + \
+   (abs(eta) >= 5.1000 && abs(eta) < 5.2000) * (energy >= 10000.0000) * (0.222436*energy/10000.000000) + \
+   (abs(eta) >= 5.2000 && abs(eta) < 5.3000) * (energy >= 0.0000 && energy < 10.0000) * (0.02438996) + \
+   (abs(eta) >= 5.2000 && abs(eta) < 5.3000) * (energy >= 10.0000 && energy < 100.0000) * (0.024390 + (energy-10.000000)* 0.000014) + \
+   (abs(eta) >= 5.2000 && abs(eta) < 5.3000) * (energy >= 100.0000 && energy < 1000.0000) * (0.025632 + (energy-100.000000)* 0.000013) + \
+   (abs(eta) >= 5.2000 && abs(eta) < 5.3000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.037643 + (energy-1000.000000)* 0.000025) + \
+   (abs(eta) >= 5.2000 && abs(eta) < 5.3000) * (energy >= 10000.0000) * (0.266957*energy/10000.000000) + \
+   (abs(eta) >= 5.3000 && abs(eta) < 5.4000) * (energy >= 0.0000 && energy < 10.0000) * (0.02766922) + \
+   (abs(eta) >= 5.3000 && abs(eta) < 5.4000) * (energy >= 10.0000 && energy < 100.0000) * (0.027669 + (energy-10.000000)* 0.000016) + \
+   (abs(eta) >= 5.3000 && abs(eta) < 5.4000) * (energy >= 100.0000 && energy < 1000.0000) * (0.029119 + (energy-100.000000)* 0.000018) + \
+   (abs(eta) >= 5.3000 && abs(eta) < 5.4000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.045061 + (energy-1000.000000)* 0.000031) + \
+   (abs(eta) >= 5.3000 && abs(eta) < 5.4000) * (energy >= 10000.0000) * (0.326140*energy/10000.000000) + \
+   (abs(eta) >= 5.4000 && abs(eta) < 5.5000) * (energy >= 0.0000 && energy < 10.0000) * (0.03019946) + \
+   (abs(eta) >= 5.4000 && abs(eta) < 5.5000) * (energy >= 10.0000 && energy < 100.0000) * (0.030199 + (energy-10.000000)* 0.000019) + \
+   (abs(eta) >= 5.4000 && abs(eta) < 5.5000) * (energy >= 100.0000 && energy < 1000.0000) * (0.031924 + (energy-100.000000)* 0.000024) + \
+   (abs(eta) >= 5.4000 && abs(eta) < 5.5000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.053879 + (energy-1000.000000)* 0.000040) + \
+   (abs(eta) >= 5.4000 && abs(eta) < 5.5000) * (energy >= 10000.0000) * (0.412937*energy/10000.000000) + \
+   (abs(eta) >= 5.5000 && abs(eta) < 5.6000) * (energy >= 0.0000 && energy < 10.0000) * (0.03333558) + \
+   (abs(eta) >= 5.5000 && abs(eta) < 5.6000) * (energy >= 10.0000 && energy < 100.0000) * (0.033336 + (energy-10.000000)* 0.000023) + \
+   (abs(eta) >= 5.5000 && abs(eta) < 5.6000) * (energy >= 100.0000 && energy < 1000.0000) * (0.035389 + (energy-100.000000)* 0.000029) + \
+   (abs(eta) >= 5.5000 && abs(eta) < 5.6000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.061288 + (energy-1000.000000)* 0.000046) + \
+   (abs(eta) >= 5.5000 && abs(eta) < 5.6000) * (energy >= 10000.0000) * (0.474581*energy/10000.000000) + \
+   (abs(eta) >= 5.6000 && abs(eta) < 5.7000) * (energy >= 0.0000 && energy < 10.0000) * (0.03758362) + \
+   (abs(eta) >= 5.6000 && abs(eta) < 5.7000) * (energy >= 10.0000 && energy < 100.0000) * (0.037584 + (energy-10.000000)* 0.000033) + \
+   (abs(eta) >= 5.6000 && abs(eta) < 5.7000) * (energy >= 100.0000 && energy < 1000.0000) * (0.040596 + (energy-100.000000)* 0.000035) + \
+   (abs(eta) >= 5.6000 && abs(eta) < 5.7000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.072070 + (energy-1000.000000)* 0.000054) + \
+   (abs(eta) >= 5.6000 && abs(eta) < 5.7000) * (energy >= 10000.0000) * (0.561879*energy/10000.000000) + \
+   (abs(eta) >= 5.7000 && abs(eta) < 5.8000) * (energy >= 0.0000 && energy < 10.0000) * (0.03700078) + \
+   (abs(eta) >= 5.7000 && abs(eta) < 5.8000) * (energy >= 10.0000 && energy < 100.0000) * (0.037001 + (energy-10.000000)* 0.000067) + \
+   (abs(eta) >= 5.7000 && abs(eta) < 5.8000) * (energy >= 100.0000 && energy < 1000.0000) * (0.042994 + (energy-100.000000)* 0.000049) + \
+   (abs(eta) >= 5.7000 && abs(eta) < 5.8000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.087179 + (energy-1000.000000)* 0.000073) + \
+   (abs(eta) >= 5.7000 && abs(eta) < 5.8000) * (energy >= 10000.0000) * (0.740706*energy/10000.000000) + \
+   (abs(eta) >= 5.8000 && abs(eta) < 5.9000) * (energy >= 0.0000 && energy < 10.0000) * (0.04253594) + \
+   (abs(eta) >= 5.8000 && abs(eta) < 5.9000) * (energy >= 10.0000 && energy < 100.0000) * (0.042536 + (energy-10.000000)* 0.000045) + \
+   (abs(eta) >= 5.8000 && abs(eta) < 5.9000) * (energy >= 100.0000 && energy < 1000.0000) * (0.046571 + (energy-100.000000)* 0.000074) + \
+   (abs(eta) >= 5.8000 && abs(eta) < 5.9000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.112805 + (energy-1000.000000)* 0.000101) + \
+   (abs(eta) >= 5.8000 && abs(eta) < 5.9000) * (energy >= 10000.0000) * (1.024627*energy/10000.000000) + \
+   (abs(eta) >= 5.9000 && abs(eta) < 6.0000) * (energy >= 0.0000 && energy < 10.0000) * (0.07885303) + \
+   (abs(eta) >= 5.9000 && abs(eta) < 6.0000) * (energy >= 10.0000 && energy < 100.0000) * (0.078853 + (energy-10.000000)* 0.000181) + \
+   (abs(eta) >= 5.9000 && abs(eta) < 6.0000) * (energy >= 100.0000 && energy < 1000.0000) * (0.095114 + (energy-100.000000)* 0.000505) + \
+   (abs(eta) >= 5.9000 && abs(eta) < 6.0000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.549223 + (energy-1000.000000)* 0.000541) + \
+   (abs(eta) >= 5.9000 && abs(eta) < 6.0000) * (energy >= 10000.0000) * (5.418656*energy/10000.000000)
+}
Index: cards/FCC/muonMomentumResolutionVsP.tcl
===================================================================
--- cards/FCC/muonMomentumResolutionVsP.tcl	(revision 5348ed9b72570adcd45eb2dfaa345cbfa4944ead)
+++ cards/FCC/muonMomentumResolutionVsP.tcl	(revision 5348ed9b72570adcd45eb2dfaa345cbfa4944ead)
@@ -0,0 +1,318 @@
+#
+# Automatically generated tracker resolution formula for layout: FCChh_Option3
+#
+# http://fcc-tklayout.web.cern.ch/fcc-tklayout/FCChh-Option3/FCChh_Option3_v0_Delphes_eta0.1_p.conf
+#
+#  By Z.Drasal(CERN) on: 2016-09-07.13:22:06
+#
+#
+#  Assume muon resolution is given by R(p,eta) = R(p,0) * ( R_t(p,eta) / R_t(p,0) )
+
+
+set ResolutionFormula {   sqrt(0.0000106544 + (9.06262e-8 * (2.82074e-7 + 112.725/energy^2)* energy^2)/(0.00256067 + 21643.1/energy^2)) *
+  ((abs(eta) >= 0.0000 && abs(eta) < 0.1000) * (energy >= 0.0000 && energy < 10.0000) * (0.00340454) + \
+   (abs(eta) >= 0.0000 && abs(eta) < 0.1000) * (energy >= 10.0000 && energy < 100.0000) * (0.003405 + (energy-10.000000)* 0.000007) + \
+   (abs(eta) >= 0.0000 && abs(eta) < 0.1000) * (energy >= 100.0000 && energy < 1000.0000) * (0.004075 + (energy-100.000000)* 0.000015) + \
+   (abs(eta) >= 0.0000 && abs(eta) < 0.1000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.017369 + (energy-1000.000000)* 0.000017) + \
+   (abs(eta) >= 0.0000 && abs(eta) < 0.1000) * (energy >= 10000.0000) * (0.169584*energy/10000.000000) + \
+   (abs(eta) >= 0.1000 && abs(eta) < 0.2000) * (energy >= 0.0000 && energy < 10.0000) * (0.00346163) + \
+   (abs(eta) >= 0.1000 && abs(eta) < 0.2000) * (energy >= 10.0000 && energy < 100.0000) * (0.003462 + (energy-10.000000)* 0.000007) + \
+   (abs(eta) >= 0.1000 && abs(eta) < 0.2000) * (energy >= 100.0000 && energy < 1000.0000) * (0.004118 + (energy-100.000000)* 0.000014) + \
+   (abs(eta) >= 0.1000 && abs(eta) < 0.2000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.017077 + (energy-1000.000000)* 0.000017) + \
+   (abs(eta) >= 0.1000 && abs(eta) < 0.2000) * (energy >= 10000.0000) * (0.166432*energy/10000.000000) + \
+   (abs(eta) >= 0.2000 && abs(eta) < 0.3000) * (energy >= 0.0000 && energy < 10.0000) * (0.00347184) + \
+   (abs(eta) >= 0.2000 && abs(eta) < 0.3000) * (energy >= 10.0000 && energy < 100.0000) * (0.003472 + (energy-10.000000)* 0.000007) + \
+   (abs(eta) >= 0.2000 && abs(eta) < 0.3000) * (energy >= 100.0000 && energy < 1000.0000) * (0.004076 + (energy-100.000000)* 0.000014) + \
+   (abs(eta) >= 0.2000 && abs(eta) < 0.3000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.016911 + (energy-1000.000000)* 0.000016) + \
+   (abs(eta) >= 0.2000 && abs(eta) < 0.3000) * (energy >= 10000.0000) * (0.164865*energy/10000.000000) + \
+   (abs(eta) >= 0.3000 && abs(eta) < 0.4000) * (energy >= 0.0000 && energy < 10.0000) * (0.00354357) + \
+   (abs(eta) >= 0.3000 && abs(eta) < 0.4000) * (energy >= 10.0000 && energy < 100.0000) * (0.003544 + (energy-10.000000)* 0.000007) + \
+   (abs(eta) >= 0.3000 && abs(eta) < 0.4000) * (energy >= 100.0000 && energy < 1000.0000) * (0.004148 + (energy-100.000000)* 0.000014) + \
+   (abs(eta) >= 0.3000 && abs(eta) < 0.4000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.016402 + (energy-1000.000000)* 0.000016) + \
+   (abs(eta) >= 0.3000 && abs(eta) < 0.4000) * (energy >= 10000.0000) * (0.159353*energy/10000.000000) + \
+   (abs(eta) >= 0.4000 && abs(eta) < 0.5000) * (energy >= 0.0000 && energy < 10.0000) * (0.00357951) + \
+   (abs(eta) >= 0.4000 && abs(eta) < 0.5000) * (energy >= 10.0000 && energy < 100.0000) * (0.003580 + (energy-10.000000)* 0.000007) + \
+   (abs(eta) >= 0.4000 && abs(eta) < 0.5000) * (energy >= 100.0000 && energy < 1000.0000) * (0.004168 + (energy-100.000000)* 0.000013) + \
+   (abs(eta) >= 0.4000 && abs(eta) < 0.5000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.015837 + (energy-1000.000000)* 0.000015) + \
+   (abs(eta) >= 0.4000 && abs(eta) < 0.5000) * (energy >= 10000.0000) * (0.153410*energy/10000.000000) + \
+   (abs(eta) >= 0.5000 && abs(eta) < 0.6000) * (energy >= 0.0000 && energy < 10.0000) * (0.00376723) + \
+   (abs(eta) >= 0.5000 && abs(eta) < 0.6000) * (energy >= 10.0000 && energy < 100.0000) * (0.003767 + (energy-10.000000)* 0.000006) + \
+   (abs(eta) >= 0.5000 && abs(eta) < 0.6000) * (energy >= 100.0000 && energy < 1000.0000) * (0.004334 + (energy-100.000000)* 0.000011) + \
+   (abs(eta) >= 0.5000 && abs(eta) < 0.6000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.014643 + (energy-1000.000000)* 0.000014) + \
+   (abs(eta) >= 0.5000 && abs(eta) < 0.6000) * (energy >= 10000.0000) * (0.140265*energy/10000.000000) + \
+   (abs(eta) >= 0.6000 && abs(eta) < 0.7000) * (energy >= 0.0000 && energy < 10.0000) * (0.00380303) + \
+   (abs(eta) >= 0.6000 && abs(eta) < 0.7000) * (energy >= 10.0000 && energy < 100.0000) * (0.003803 + (energy-10.000000)* 0.000006) + \
+   (abs(eta) >= 0.6000 && abs(eta) < 0.7000) * (energy >= 100.0000 && energy < 1000.0000) * (0.004335 + (energy-100.000000)* 0.000011) + \
+   (abs(eta) >= 0.6000 && abs(eta) < 0.7000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.014194 + (energy-1000.000000)* 0.000013) + \
+   (abs(eta) >= 0.6000 && abs(eta) < 0.7000) * (energy >= 10000.0000) * (0.135554*energy/10000.000000) + \
+   (abs(eta) >= 0.7000 && abs(eta) < 0.8000) * (energy >= 0.0000 && energy < 10.0000) * (0.00396987) + \
+   (abs(eta) >= 0.7000 && abs(eta) < 0.8000) * (energy >= 10.0000 && energy < 100.0000) * (0.003970 + (energy-10.000000)* 0.000006) + \
+   (abs(eta) >= 0.7000 && abs(eta) < 0.8000) * (energy >= 100.0000 && energy < 1000.0000) * (0.004495 + (energy-100.000000)* 0.000010) + \
+   (abs(eta) >= 0.7000 && abs(eta) < 0.8000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.013477 + (energy-1000.000000)* 0.000013) + \
+   (abs(eta) >= 0.7000 && abs(eta) < 0.8000) * (energy >= 10000.0000) * (0.127227*energy/10000.000000) + \
+   (abs(eta) >= 0.8000 && abs(eta) < 0.9000) * (energy >= 0.0000 && energy < 10.0000) * (0.00409080) + \
+   (abs(eta) >= 0.8000 && abs(eta) < 0.9000) * (energy >= 10.0000 && energy < 100.0000) * (0.004091 + (energy-10.000000)* 0.000006) + \
+   (abs(eta) >= 0.8000 && abs(eta) < 0.9000) * (energy >= 100.0000 && energy < 1000.0000) * (0.004590 + (energy-100.000000)* 0.000009) + \
+   (abs(eta) >= 0.8000 && abs(eta) < 0.9000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.012701 + (energy-1000.000000)* 0.000012) + \
+   (abs(eta) >= 0.8000 && abs(eta) < 0.9000) * (energy >= 10000.0000) * (0.118365*energy/10000.000000) + \
+   (abs(eta) >= 0.9000 && abs(eta) < 1.0000) * (energy >= 0.0000 && energy < 10.0000) * (0.00429325) + \
+   (abs(eta) >= 0.9000 && abs(eta) < 1.0000) * (energy >= 10.0000 && energy < 100.0000) * (0.004293 + (energy-10.000000)* 0.000005) + \
+   (abs(eta) >= 0.9000 && abs(eta) < 1.0000) * (energy >= 100.0000 && energy < 1000.0000) * (0.004763 + (energy-100.000000)* 0.000008) + \
+   (abs(eta) >= 0.9000 && abs(eta) < 1.0000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.011874 + (energy-1000.000000)* 0.000011) + \
+   (abs(eta) >= 0.9000 && abs(eta) < 1.0000) * (energy >= 10000.0000) * (0.108600*energy/10000.000000) + \
+   (abs(eta) >= 1.0000 && abs(eta) < 1.1000) * (energy >= 0.0000 && energy < 10.0000) * (0.00449524) + \
+   (abs(eta) >= 1.0000 && abs(eta) < 1.1000) * (energy >= 10.0000 && energy < 100.0000) * (0.004495 + (energy-10.000000)* 0.000005) + \
+   (abs(eta) >= 1.0000 && abs(eta) < 1.1000) * (energy >= 100.0000 && energy < 1000.0000) * (0.004954 + (energy-100.000000)* 0.000007) + \
+   (abs(eta) >= 1.0000 && abs(eta) < 1.1000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.011301 + (energy-1000.000000)* 0.000010) + \
+   (abs(eta) >= 1.0000 && abs(eta) < 1.1000) * (energy >= 10000.0000) * (0.100618*energy/10000.000000) + \
+   (abs(eta) >= 1.1000 && abs(eta) < 1.2000) * (energy >= 0.0000 && energy < 10.0000) * (0.00468347) + \
+   (abs(eta) >= 1.1000 && abs(eta) < 1.2000) * (energy >= 10.0000 && energy < 100.0000) * (0.004683 + (energy-10.000000)* 0.000005) + \
+   (abs(eta) >= 1.1000 && abs(eta) < 1.2000) * (energy >= 100.0000 && energy < 1000.0000) * (0.005126 + (energy-100.000000)* 0.000007) + \
+   (abs(eta) >= 1.1000 && abs(eta) < 1.2000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.011437 + (energy-1000.000000)* 0.000010) + \
+   (abs(eta) >= 1.1000 && abs(eta) < 1.2000) * (energy >= 10000.0000) * (0.101708*energy/10000.000000) + \
+   (abs(eta) >= 1.2000 && abs(eta) < 1.3000) * (energy >= 0.0000 && energy < 10.0000) * (0.00528323) + \
+   (abs(eta) >= 1.2000 && abs(eta) < 1.3000) * (energy >= 10.0000 && energy < 100.0000) * (0.005283 + (energy-10.000000)* 0.000006) + \
+   (abs(eta) >= 1.2000 && abs(eta) < 1.3000) * (energy >= 100.0000 && energy < 1000.0000) * (0.005803 + (energy-100.000000)* 0.000008) + \
+   (abs(eta) >= 1.2000 && abs(eta) < 1.3000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.013208 + (energy-1000.000000)* 0.000012) + \
+   (abs(eta) >= 1.2000 && abs(eta) < 1.3000) * (energy >= 10000.0000) * (0.117853*energy/10000.000000) + \
+   (abs(eta) >= 1.3000 && abs(eta) < 1.4000) * (energy >= 0.0000 && energy < 10.0000) * (0.00487726) + \
+   (abs(eta) >= 1.3000 && abs(eta) < 1.4000) * (energy >= 10.0000 && energy < 100.0000) * (0.004877 + (energy-10.000000)* 0.000004) + \
+   (abs(eta) >= 1.3000 && abs(eta) < 1.4000) * (energy >= 100.0000 && energy < 1000.0000) * (0.005247 + (energy-100.000000)* 0.000007) + \
+   (abs(eta) >= 1.3000 && abs(eta) < 1.4000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.011386 + (energy-1000.000000)* 0.000010) + \
+   (abs(eta) >= 1.3000 && abs(eta) < 1.4000) * (energy >= 10000.0000) * (0.100725*energy/10000.000000) + \
+   (abs(eta) >= 1.4000 && abs(eta) < 1.5000) * (energy >= 0.0000 && energy < 10.0000) * (0.00443899) + \
+   (abs(eta) >= 1.4000 && abs(eta) < 1.5000) * (energy >= 10.0000 && energy < 100.0000) * (0.004439 + (energy-10.000000)* 0.000009) + \
+   (abs(eta) >= 1.4000 && abs(eta) < 1.5000) * (energy >= 100.0000 && energy < 1000.0000) * (0.005250 + (energy-100.000000)* 0.000006) + \
+   (abs(eta) >= 1.4000 && abs(eta) < 1.5000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.010971 + (energy-1000.000000)* 0.000009) + \
+   (abs(eta) >= 1.4000 && abs(eta) < 1.5000) * (energy >= 10000.0000) * (0.094534*energy/10000.000000) + \
+   (abs(eta) >= 1.5000 && abs(eta) < 1.6000) * (energy >= 0.0000 && energy < 10.0000) * (0.00432805) + \
+   (abs(eta) >= 1.5000 && abs(eta) < 1.6000) * (energy >= 10.0000 && energy < 100.0000) * (0.004328 + (energy-10.000000)* 0.000008) + \
+   (abs(eta) >= 1.5000 && abs(eta) < 1.6000) * (energy >= 100.0000 && energy < 1000.0000) * (0.005085 + (energy-100.000000)* 0.000006) + \
+   (abs(eta) >= 1.5000 && abs(eta) < 1.6000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.010124 + (energy-1000.000000)* 0.000008) + \
+   (abs(eta) >= 1.5000 && abs(eta) < 1.6000) * (energy >= 10000.0000) * (0.084566*energy/10000.000000) + \
+   (abs(eta) >= 1.6000 && abs(eta) < 1.7000) * (energy >= 0.0000 && energy < 10.0000) * (0.00427793) + \
+   (abs(eta) >= 1.6000 && abs(eta) < 1.7000) * (energy >= 10.0000 && energy < 100.0000) * (0.004278 + (energy-10.000000)* 0.000008) + \
+   (abs(eta) >= 1.6000 && abs(eta) < 1.7000) * (energy >= 100.0000 && energy < 1000.0000) * (0.004957 + (energy-100.000000)* 0.000005) + \
+   (abs(eta) >= 1.6000 && abs(eta) < 1.7000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.009282 + (energy-1000.000000)* 0.000007) + \
+   (abs(eta) >= 1.6000 && abs(eta) < 1.7000) * (energy >= 10000.0000) * (0.074561*energy/10000.000000) + \
+   (abs(eta) >= 1.7000 && abs(eta) < 1.8000) * (energy >= 0.0000 && energy < 10.0000) * (0.00431943) + \
+   (abs(eta) >= 1.7000 && abs(eta) < 1.8000) * (energy >= 10.0000 && energy < 100.0000) * (0.004319 + (energy-10.000000)* 0.000006) + \
+   (abs(eta) >= 1.7000 && abs(eta) < 1.8000) * (energy >= 100.0000 && energy < 1000.0000) * (0.004899 + (energy-100.000000)* 0.000004) + \
+   (abs(eta) >= 1.7000 && abs(eta) < 1.8000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.008595 + (energy-1000.000000)* 0.000006) + \
+   (abs(eta) >= 1.7000 && abs(eta) < 1.8000) * (energy >= 10000.0000) * (0.065747*energy/10000.000000) + \
+   (abs(eta) >= 1.8000 && abs(eta) < 1.9000) * (energy >= 0.0000 && energy < 10.0000) * (0.00424356) + \
+   (abs(eta) >= 1.8000 && abs(eta) < 1.9000) * (energy >= 10.0000 && energy < 100.0000) * (0.004244 + (energy-10.000000)* 0.000006) + \
+   (abs(eta) >= 1.8000 && abs(eta) < 1.9000) * (energy >= 100.0000 && energy < 1000.0000) * (0.004756 + (energy-100.000000)* 0.000004) + \
+   (abs(eta) >= 1.8000 && abs(eta) < 1.9000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.008043 + (energy-1000.000000)* 0.000006) + \
+   (abs(eta) >= 1.8000 && abs(eta) < 1.9000) * (energy >= 10000.0000) * (0.059890*energy/10000.000000) + \
+   (abs(eta) >= 1.9000 && abs(eta) < 2.0000) * (energy >= 0.0000 && energy < 10.0000) * (0.00431197) + \
+   (abs(eta) >= 1.9000 && abs(eta) < 2.0000) * (energy >= 10.0000 && energy < 100.0000) * (0.004312 + (energy-10.000000)* 0.000006) + \
+   (abs(eta) >= 1.9000 && abs(eta) < 2.0000) * (energy >= 100.0000 && energy < 1000.0000) * (0.004830 + (energy-100.000000)* 0.000003) + \
+   (abs(eta) >= 1.9000 && abs(eta) < 2.0000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.007698 + (energy-1000.000000)* 0.000005) + \
+   (abs(eta) >= 1.9000 && abs(eta) < 2.0000) * (energy >= 10000.0000) * (0.053047*energy/10000.000000) + \
+   (abs(eta) >= 2.0000 && abs(eta) < 2.1000) * (energy >= 0.0000 && energy < 10.0000) * (0.00429873) + \
+   (abs(eta) >= 2.0000 && abs(eta) < 2.1000) * (energy >= 10.0000 && energy < 100.0000) * (0.004299 + (energy-10.000000)* 0.000005) + \
+   (abs(eta) >= 2.0000 && abs(eta) < 2.1000) * (energy >= 100.0000 && energy < 1000.0000) * (0.004746 + (energy-100.000000)* 0.000003) + \
+   (abs(eta) >= 2.0000 && abs(eta) < 2.1000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.007655 + (energy-1000.000000)* 0.000005) + \
+   (abs(eta) >= 2.0000 && abs(eta) < 2.1000) * (energy >= 10000.0000) * (0.056947*energy/10000.000000) + \
+   (abs(eta) >= 2.1000 && abs(eta) < 2.2000) * (energy >= 0.0000 && energy < 10.0000) * (0.00466454) + \
+   (abs(eta) >= 2.1000 && abs(eta) < 2.2000) * (energy >= 10.0000 && energy < 100.0000) * (0.004665 + (energy-10.000000)* 0.000004) + \
+   (abs(eta) >= 2.1000 && abs(eta) < 2.2000) * (energy >= 100.0000 && energy < 1000.0000) * (0.005052 + (energy-100.000000)* 0.000003) + \
+   (abs(eta) >= 2.1000 && abs(eta) < 2.2000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.008185 + (energy-1000.000000)* 0.000006) + \
+   (abs(eta) >= 2.1000 && abs(eta) < 2.2000) * (energy >= 10000.0000) * (0.062096*energy/10000.000000) + \
+   (abs(eta) >= 2.2000 && abs(eta) < 2.3000) * (energy >= 0.0000 && energy < 10.0000) * (0.00503247) + \
+   (abs(eta) >= 2.2000 && abs(eta) < 2.3000) * (energy >= 10.0000 && energy < 100.0000) * (0.005032 + (energy-10.000000)* 0.000005) + \
+   (abs(eta) >= 2.2000 && abs(eta) < 2.3000) * (energy >= 100.0000 && energy < 1000.0000) * (0.005465 + (energy-100.000000)* 0.000004) + \
+   (abs(eta) >= 2.2000 && abs(eta) < 2.3000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.008844 + (energy-1000.000000)* 0.000007) + \
+   (abs(eta) >= 2.2000 && abs(eta) < 2.3000) * (energy >= 10000.0000) * (0.067561*energy/10000.000000) + \
+   (abs(eta) >= 2.3000 && abs(eta) < 2.4000) * (energy >= 0.0000 && energy < 10.0000) * (0.00575880) + \
+   (abs(eta) >= 2.3000 && abs(eta) < 2.4000) * (energy >= 10.0000 && energy < 100.0000) * (0.005759 + (energy-10.000000)* 0.000004) + \
+   (abs(eta) >= 2.3000 && abs(eta) < 2.4000) * (energy >= 100.0000 && energy < 1000.0000) * (0.006092 + (energy-100.000000)* 0.000004) + \
+   (abs(eta) >= 2.3000 && abs(eta) < 2.4000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.009486 + (energy-1000.000000)* 0.000007) + \
+   (abs(eta) >= 2.3000 && abs(eta) < 2.4000) * (energy >= 10000.0000) * (0.070557*energy/10000.000000) + \
+   (abs(eta) >= 2.4000 && abs(eta) < 2.5000) * (energy >= 0.0000 && energy < 10.0000) * (0.00485233) + \
+   (abs(eta) >= 2.4000 && abs(eta) < 2.5000) * (energy >= 10.0000 && energy < 100.0000) * (0.004852 + (energy-10.000000)* 0.000004) + \
+   (abs(eta) >= 2.4000 && abs(eta) < 2.5000) * (energy >= 100.0000 && energy < 1000.0000) * (0.005182 + (energy-100.000000)* 0.000003) + \
+   (abs(eta) >= 2.4000 && abs(eta) < 2.5000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.007890 + (energy-1000.000000)* 0.000005) + \
+   (abs(eta) >= 2.4000 && abs(eta) < 2.5000) * (energy >= 10000.0000) * (0.055498*energy/10000.000000) + \
+   (abs(eta) >= 2.5000 && abs(eta) < 2.6000) * (energy >= 0.0000 && energy < 10.0000) * (0.00359269) + \
+   (abs(eta) >= 2.5000 && abs(eta) < 2.6000) * (energy >= 10.0000 && energy < 100.0000) * (0.003593 + (energy-10.000000)* 0.000004) + \
+   (abs(eta) >= 2.5000 && abs(eta) < 2.6000) * (energy >= 100.0000 && energy < 1000.0000) * (0.003938 + (energy-100.000000)* 0.000002) + \
+   (abs(eta) >= 2.5000 && abs(eta) < 2.6000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.005391 + (energy-1000.000000)* 0.000003) + \
+   (abs(eta) >= 2.5000 && abs(eta) < 2.6000) * (energy >= 10000.0000) * (0.029445*energy/10000.000000) + \
+   (abs(eta) >= 2.6000 && abs(eta) < 2.7000) * (energy >= 0.0000 && energy < 10.0000) * (0.00310110) + \
+   (abs(eta) >= 2.6000 && abs(eta) < 2.7000) * (energy >= 10.0000 && energy < 100.0000) * (0.003101 + (energy-10.000000)* 0.000004) + \
+   (abs(eta) >= 2.6000 && abs(eta) < 2.7000) * (energy >= 100.0000 && energy < 1000.0000) * (0.003424 + (energy-100.000000)* 0.000002) + \
+   (abs(eta) >= 2.6000 && abs(eta) < 2.7000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.005167 + (energy-1000.000000)* 0.000002) + \
+   (abs(eta) >= 2.6000 && abs(eta) < 2.7000) * (energy >= 10000.0000) * (0.026840*energy/10000.000000) + \
+   (abs(eta) >= 2.7000 && abs(eta) < 2.8000) * (energy >= 0.0000 && energy < 10.0000) * (0.00338260) + \
+   (abs(eta) >= 2.7000 && abs(eta) < 2.8000) * (energy >= 10.0000 && energy < 100.0000) * (0.003383 + (energy-10.000000)* 0.000001) + \
+   (abs(eta) >= 2.7000 && abs(eta) < 2.8000) * (energy >= 100.0000 && energy < 1000.0000) * (0.003475 + (energy-100.000000)* 0.000002) + \
+   (abs(eta) >= 2.7000 && abs(eta) < 2.8000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.004862 + (energy-1000.000000)* 0.000002) + \
+   (abs(eta) >= 2.7000 && abs(eta) < 2.8000) * (energy >= 10000.0000) * (0.024891*energy/10000.000000) + \
+   (abs(eta) >= 2.8000 && abs(eta) < 2.9000) * (energy >= 0.0000 && energy < 10.0000) * (0.00308313) + \
+   (abs(eta) >= 2.8000 && abs(eta) < 2.9000) * (energy >= 10.0000 && energy < 100.0000) * (0.003083 + (energy-10.000000)* 0.000002) + \
+   (abs(eta) >= 2.8000 && abs(eta) < 2.9000) * (energy >= 100.0000 && energy < 1000.0000) * (0.003297 + (energy-100.000000)* 0.000001) + \
+   (abs(eta) >= 2.8000 && abs(eta) < 2.9000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.004488 + (energy-1000.000000)* 0.000002) + \
+   (abs(eta) >= 2.8000 && abs(eta) < 2.9000) * (energy >= 10000.0000) * (0.023673*energy/10000.000000) + \
+   (abs(eta) >= 2.9000 && abs(eta) < 3.0000) * (energy >= 0.0000 && energy < 10.0000) * (0.00323537) + \
+   (abs(eta) >= 2.9000 && abs(eta) < 3.0000) * (energy >= 10.0000 && energy < 100.0000) * (0.003235 + (energy-10.000000)* 0.000003) + \
+   (abs(eta) >= 2.9000 && abs(eta) < 3.0000) * (energy >= 100.0000 && energy < 1000.0000) * (0.003461 + (energy-100.000000)* 0.000001) + \
+   (abs(eta) >= 2.9000 && abs(eta) < 3.0000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.004380 + (energy-1000.000000)* 0.000002) + \
+   (abs(eta) >= 2.9000 && abs(eta) < 3.0000) * (energy >= 10000.0000) * (0.021562*energy/10000.000000) + \
+   (abs(eta) >= 3.0000 && abs(eta) < 3.1000) * (energy >= 0.0000 && energy < 10.0000) * (0.00341688) + \
+   (abs(eta) >= 3.0000 && abs(eta) < 3.1000) * (energy >= 10.0000 && energy < 100.0000) * (0.003417 + (energy-10.000000)* 0.000003) + \
+   (abs(eta) >= 3.0000 && abs(eta) < 3.1000) * (energy >= 100.0000 && energy < 1000.0000) * (0.003643 + (energy-100.000000)* 0.000001) + \
+   (abs(eta) >= 3.0000 && abs(eta) < 3.1000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.004444 + (energy-1000.000000)* 0.000002) + \
+   (abs(eta) >= 3.0000 && abs(eta) < 3.1000) * (energy >= 10000.0000) * (0.019945*energy/10000.000000) + \
+   (abs(eta) >= 3.1000 && abs(eta) < 3.2000) * (energy >= 0.0000 && energy < 10.0000) * (0.00369084) + \
+   (abs(eta) >= 3.1000 && abs(eta) < 3.2000) * (energy >= 10.0000 && energy < 100.0000) * (0.003691 + (energy-10.000000)* 0.000003) + \
+   (abs(eta) >= 3.1000 && abs(eta) < 3.2000) * (energy >= 100.0000 && energy < 1000.0000) * (0.003928 + (energy-100.000000)* 0.000001) + \
+   (abs(eta) >= 3.1000 && abs(eta) < 3.2000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.004748 + (energy-1000.000000)* 0.000002) + \
+   (abs(eta) >= 3.1000 && abs(eta) < 3.2000) * (energy >= 10000.0000) * (0.020946*energy/10000.000000) + \
+   (abs(eta) >= 3.2000 && abs(eta) < 3.3000) * (energy >= 0.0000 && energy < 10.0000) * (0.00409778) + \
+   (abs(eta) >= 3.2000 && abs(eta) < 3.3000) * (energy >= 10.0000 && energy < 100.0000) * (0.004098 + (energy-10.000000)* 0.000003) + \
+   (abs(eta) >= 3.2000 && abs(eta) < 3.3000) * (energy >= 100.0000 && energy < 1000.0000) * (0.004341 + (energy-100.000000)* 0.000001) + \
+   (abs(eta) >= 3.2000 && abs(eta) < 3.3000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.005281 + (energy-1000.000000)* 0.000002) + \
+   (abs(eta) >= 3.2000 && abs(eta) < 3.3000) * (energy >= 10000.0000) * (0.024054*energy/10000.000000) + \
+   (abs(eta) >= 3.3000 && abs(eta) < 3.4000) * (energy >= 0.0000 && energy < 10.0000) * (0.00436555) + \
+   (abs(eta) >= 3.3000 && abs(eta) < 3.4000) * (energy >= 10.0000 && energy < 100.0000) * (0.004366 + (energy-10.000000)* 0.000004) + \
+   (abs(eta) >= 3.3000 && abs(eta) < 3.4000) * (energy >= 100.0000 && energy < 1000.0000) * (0.004692 + (energy-100.000000)* 0.000001) + \
+   (abs(eta) >= 3.3000 && abs(eta) < 3.4000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.005824 + (energy-1000.000000)* 0.000002) + \
+   (abs(eta) >= 3.3000 && abs(eta) < 3.4000) * (energy >= 10000.0000) * (0.026293*energy/10000.000000) + \
+   (abs(eta) >= 3.4000 && abs(eta) < 3.5000) * (energy >= 0.0000 && energy < 10.0000) * (0.00443777) + \
+   (abs(eta) >= 3.4000 && abs(eta) < 3.5000) * (energy >= 10.0000 && energy < 100.0000) * (0.004438 + (energy-10.000000)* 0.000004) + \
+   (abs(eta) >= 3.4000 && abs(eta) < 3.5000) * (energy >= 100.0000 && energy < 1000.0000) * (0.004806 + (energy-100.000000)* 0.000002) + \
+   (abs(eta) >= 3.4000 && abs(eta) < 3.5000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.006206 + (energy-1000.000000)* 0.000003) + \
+   (abs(eta) >= 3.4000 && abs(eta) < 3.5000) * (energy >= 10000.0000) * (0.029660*energy/10000.000000) + \
+   (abs(eta) >= 3.5000 && abs(eta) < 3.6000) * (energy >= 0.0000 && energy < 10.0000) * (0.00481587) + \
+   (abs(eta) >= 3.5000 && abs(eta) < 3.6000) * (energy >= 10.0000 && energy < 100.0000) * (0.004816 + (energy-10.000000)* 0.000003) + \
+   (abs(eta) >= 3.5000 && abs(eta) < 3.6000) * (energy >= 100.0000 && energy < 1000.0000) * (0.005090 + (energy-100.000000)* 0.000002) + \
+   (abs(eta) >= 3.5000 && abs(eta) < 3.6000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.006548 + (energy-1000.000000)* 0.000003) + \
+   (abs(eta) >= 3.5000 && abs(eta) < 3.6000) * (energy >= 10000.0000) * (0.034267*energy/10000.000000) + \
+   (abs(eta) >= 3.6000 && abs(eta) < 3.7000) * (energy >= 0.0000 && energy < 10.0000) * (0.00525937) + \
+   (abs(eta) >= 3.6000 && abs(eta) < 3.7000) * (energy >= 10.0000 && energy < 100.0000) * (0.005259 + (energy-10.000000)* 0.000003) + \
+   (abs(eta) >= 3.6000 && abs(eta) < 3.7000) * (energy >= 100.0000 && energy < 1000.0000) * (0.005533 + (energy-100.000000)* 0.000002) + \
+   (abs(eta) >= 3.6000 && abs(eta) < 3.7000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.007074 + (energy-1000.000000)* 0.000004) + \
+   (abs(eta) >= 3.6000 && abs(eta) < 3.7000) * (energy >= 10000.0000) * (0.039376*energy/10000.000000) + \
+   (abs(eta) >= 3.7000 && abs(eta) < 3.8000) * (energy >= 0.0000 && energy < 10.0000) * (0.00558339) + \
+   (abs(eta) >= 3.7000 && abs(eta) < 3.8000) * (energy >= 10.0000 && energy < 100.0000) * (0.005583 + (energy-10.000000)* 0.000003) + \
+   (abs(eta) >= 3.7000 && abs(eta) < 3.8000) * (energy >= 100.0000 && energy < 1000.0000) * (0.005866 + (energy-100.000000)* 0.000002) + \
+   (abs(eta) >= 3.7000 && abs(eta) < 3.8000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.007616 + (energy-1000.000000)* 0.000004) + \
+   (abs(eta) >= 3.7000 && abs(eta) < 3.8000) * (energy >= 10000.0000) * (0.043675*energy/10000.000000) + \
+   (abs(eta) >= 3.8000 && abs(eta) < 3.9000) * (energy >= 0.0000 && energy < 10.0000) * (0.00601685) + \
+   (abs(eta) >= 3.8000 && abs(eta) < 3.9000) * (energy >= 10.0000 && energy < 100.0000) * (0.006017 + (energy-10.000000)* 0.000003) + \
+   (abs(eta) >= 3.8000 && abs(eta) < 3.9000) * (energy >= 100.0000 && energy < 1000.0000) * (0.006331 + (energy-100.000000)* 0.000002) + \
+   (abs(eta) >= 3.8000 && abs(eta) < 3.9000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.008374 + (energy-1000.000000)* 0.000004) + \
+   (abs(eta) >= 3.8000 && abs(eta) < 3.9000) * (energy >= 10000.0000) * (0.048432*energy/10000.000000) + \
+   (abs(eta) >= 3.9000 && abs(eta) < 4.0000) * (energy >= 0.0000 && energy < 10.0000) * (0.00664542) + \
+   (abs(eta) >= 3.9000 && abs(eta) < 4.0000) * (energy >= 10.0000 && energy < 100.0000) * (0.006645 + (energy-10.000000)* 0.000004) + \
+   (abs(eta) >= 3.9000 && abs(eta) < 4.0000) * (energy >= 100.0000 && energy < 1000.0000) * (0.006973 + (energy-100.000000)* 0.000003) + \
+   (abs(eta) >= 3.9000 && abs(eta) < 4.0000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.009233 + (energy-1000.000000)* 0.000005) + \
+   (abs(eta) >= 3.9000 && abs(eta) < 4.0000) * (energy >= 10000.0000) * (0.053465*energy/10000.000000) + \
+   (abs(eta) >= 4.0000 && abs(eta) < 4.1000) * (energy >= 0.0000 && energy < 10.0000) * (0.00733159) + \
+   (abs(eta) >= 4.0000 && abs(eta) < 4.1000) * (energy >= 10.0000 && energy < 100.0000) * (0.007332 + (energy-10.000000)* 0.000004) + \
+   (abs(eta) >= 4.0000 && abs(eta) < 4.1000) * (energy >= 100.0000 && energy < 1000.0000) * (0.007715 + (energy-100.000000)* 0.000003) + \
+   (abs(eta) >= 4.0000 && abs(eta) < 4.1000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.010293 + (energy-1000.000000)* 0.000005) + \
+   (abs(eta) >= 4.0000 && abs(eta) < 4.1000) * (energy >= 10000.0000) * (0.059778*energy/10000.000000) + \
+   (abs(eta) >= 4.1000 && abs(eta) < 4.2000) * (energy >= 0.0000 && energy < 10.0000) * (0.00809331) + \
+   (abs(eta) >= 4.1000 && abs(eta) < 4.2000) * (energy >= 10.0000 && energy < 100.0000) * (0.008093 + (energy-10.000000)* 0.000005) + \
+   (abs(eta) >= 4.1000 && abs(eta) < 4.2000) * (energy >= 100.0000 && energy < 1000.0000) * (0.008517 + (energy-100.000000)* 0.000003) + \
+   (abs(eta) >= 4.1000 && abs(eta) < 4.2000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.011309 + (energy-1000.000000)* 0.000006) + \
+   (abs(eta) >= 4.1000 && abs(eta) < 4.2000) * (energy >= 10000.0000) * (0.065875*energy/10000.000000) + \
+   (abs(eta) >= 4.2000 && abs(eta) < 4.3000) * (energy >= 0.0000 && energy < 10.0000) * (0.00892791) + \
+   (abs(eta) >= 4.2000 && abs(eta) < 4.3000) * (energy >= 10.0000 && energy < 100.0000) * (0.008928 + (energy-10.000000)* 0.000005) + \
+   (abs(eta) >= 4.2000 && abs(eta) < 4.3000) * (energy >= 100.0000 && energy < 1000.0000) * (0.009376 + (energy-100.000000)* 0.000003) + \
+   (abs(eta) >= 4.2000 && abs(eta) < 4.3000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.012508 + (energy-1000.000000)* 0.000007) + \
+   (abs(eta) >= 4.2000 && abs(eta) < 4.3000) * (energy >= 10000.0000) * (0.073389*energy/10000.000000) + \
+   (abs(eta) >= 4.3000 && abs(eta) < 4.4000) * (energy >= 0.0000 && energy < 10.0000) * (0.00987544) + \
+   (abs(eta) >= 4.3000 && abs(eta) < 4.4000) * (energy >= 10.0000 && energy < 100.0000) * (0.009875 + (energy-10.000000)* 0.000006) + \
+   (abs(eta) >= 4.3000 && abs(eta) < 4.4000) * (energy >= 100.0000 && energy < 1000.0000) * (0.010388 + (energy-100.000000)* 0.000004) + \
+   (abs(eta) >= 4.3000 && abs(eta) < 4.4000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.013930 + (energy-1000.000000)* 0.000007) + \
+   (abs(eta) >= 4.3000 && abs(eta) < 4.4000) * (energy >= 10000.0000) * (0.079664*energy/10000.000000) + \
+   (abs(eta) >= 4.4000 && abs(eta) < 4.5000) * (energy >= 0.0000 && energy < 10.0000) * (0.01093241) + \
+   (abs(eta) >= 4.4000 && abs(eta) < 4.5000) * (energy >= 10.0000 && energy < 100.0000) * (0.010932 + (energy-10.000000)* 0.000006) + \
+   (abs(eta) >= 4.4000 && abs(eta) < 4.5000) * (energy >= 100.0000 && energy < 1000.0000) * (0.011515 + (energy-100.000000)* 0.000004) + \
+   (abs(eta) >= 4.4000 && abs(eta) < 4.5000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.015341 + (energy-1000.000000)* 0.000008) + \
+   (abs(eta) >= 4.4000 && abs(eta) < 4.5000) * (energy >= 10000.0000) * (0.088937*energy/10000.000000) + \
+   (abs(eta) >= 4.5000 && abs(eta) < 4.6000) * (energy >= 0.0000 && energy < 10.0000) * (0.01216185) + \
+   (abs(eta) >= 4.5000 && abs(eta) < 4.6000) * (energy >= 10.0000 && energy < 100.0000) * (0.012162 + (energy-10.000000)* 0.000007) + \
+   (abs(eta) >= 4.5000 && abs(eta) < 4.6000) * (energy >= 100.0000 && energy < 1000.0000) * (0.012785 + (energy-100.000000)* 0.000005) + \
+   (abs(eta) >= 4.5000 && abs(eta) < 4.6000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.017140 + (energy-1000.000000)* 0.000009) + \
+   (abs(eta) >= 4.5000 && abs(eta) < 4.6000) * (energy >= 10000.0000) * (0.100946*energy/10000.000000) + \
+   (abs(eta) >= 4.6000 && abs(eta) < 4.7000) * (energy >= 0.0000 && energy < 10.0000) * (0.01329126) + \
+   (abs(eta) >= 4.6000 && abs(eta) < 4.7000) * (energy >= 10.0000 && energy < 100.0000) * (0.013291 + (energy-10.000000)* 0.000008) + \
+   (abs(eta) >= 4.6000 && abs(eta) < 4.7000) * (energy >= 100.0000 && energy < 1000.0000) * (0.013982 + (energy-100.000000)* 0.000005) + \
+   (abs(eta) >= 4.6000 && abs(eta) < 4.7000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.018853 + (energy-1000.000000)* 0.000011) + \
+   (abs(eta) >= 4.6000 && abs(eta) < 4.7000) * (energy >= 10000.0000) * (0.115103*energy/10000.000000) + \
+   (abs(eta) >= 4.7000 && abs(eta) < 4.8000) * (energy >= 0.0000 && energy < 10.0000) * (0.01500922) + \
+   (abs(eta) >= 4.7000 && abs(eta) < 4.8000) * (energy >= 10.0000 && energy < 100.0000) * (0.015009 + (energy-10.000000)* 0.000009) + \
+   (abs(eta) >= 4.7000 && abs(eta) < 4.8000) * (energy >= 100.0000 && energy < 1000.0000) * (0.015779 + (energy-100.000000)* 0.000006) + \
+   (abs(eta) >= 4.7000 && abs(eta) < 4.8000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.021404 + (energy-1000.000000)* 0.000012) + \
+   (abs(eta) >= 4.7000 && abs(eta) < 4.8000) * (energy >= 10000.0000) * (0.130463*energy/10000.000000) + \
+   (abs(eta) >= 4.8000 && abs(eta) < 4.9000) * (energy >= 0.0000 && energy < 10.0000) * (0.01633866) + \
+   (abs(eta) >= 4.8000 && abs(eta) < 4.9000) * (energy >= 10.0000 && energy < 100.0000) * (0.016339 + (energy-10.000000)* 0.000009) + \
+   (abs(eta) >= 4.8000 && abs(eta) < 4.9000) * (energy >= 100.0000 && energy < 1000.0000) * (0.017167 + (energy-100.000000)* 0.000007) + \
+   (abs(eta) >= 4.8000 && abs(eta) < 4.9000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.023505 + (energy-1000.000000)* 0.000014) + \
+   (abs(eta) >= 4.8000 && abs(eta) < 4.9000) * (energy >= 10000.0000) * (0.148516*energy/10000.000000) + \
+   (abs(eta) >= 4.9000 && abs(eta) < 5.0000) * (energy >= 0.0000 && energy < 10.0000) * (0.01806420) + \
+   (abs(eta) >= 4.9000 && abs(eta) < 5.0000) * (energy >= 10.0000 && energy < 100.0000) * (0.018064 + (energy-10.000000)* 0.000010) + \
+   (abs(eta) >= 4.9000 && abs(eta) < 5.0000) * (energy >= 100.0000 && energy < 1000.0000) * (0.018992 + (energy-100.000000)* 0.000008) + \
+   (abs(eta) >= 4.9000 && abs(eta) < 5.0000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.026158 + (energy-1000.000000)* 0.000016) + \
+   (abs(eta) >= 4.9000 && abs(eta) < 5.0000) * (energy >= 10000.0000) * (0.170014*energy/10000.000000) + \
+   (abs(eta) >= 5.0000 && abs(eta) < 5.1000) * (energy >= 0.0000 && energy < 10.0000) * (0.02021185) + \
+   (abs(eta) >= 5.0000 && abs(eta) < 5.1000) * (energy >= 10.0000 && energy < 100.0000) * (0.020212 + (energy-10.000000)* 0.000012) + \
+   (abs(eta) >= 5.0000 && abs(eta) < 5.1000) * (energy >= 100.0000 && energy < 1000.0000) * (0.021309 + (energy-100.000000)* 0.000010) + \
+   (abs(eta) >= 5.0000 && abs(eta) < 5.1000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.029902 + (energy-1000.000000)* 0.000018) + \
+   (abs(eta) >= 5.0000 && abs(eta) < 5.1000) * (energy >= 10000.0000) * (0.195445*energy/10000.000000) + \
+   (abs(eta) >= 5.1000 && abs(eta) < 5.2000) * (energy >= 0.0000 && energy < 10.0000) * (0.02245346) + \
+   (abs(eta) >= 5.1000 && abs(eta) < 5.2000) * (energy >= 10.0000 && energy < 100.0000) * (0.022453 + (energy-10.000000)* 0.000013) + \
+   (abs(eta) >= 5.1000 && abs(eta) < 5.2000) * (energy >= 100.0000 && energy < 1000.0000) * (0.023623 + (energy-100.000000)* 0.000011) + \
+   (abs(eta) >= 5.1000 && abs(eta) < 5.2000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.033400 + (energy-1000.000000)* 0.000021) + \
+   (abs(eta) >= 5.1000 && abs(eta) < 5.2000) * (energy >= 10000.0000) * (0.222436*energy/10000.000000) + \
+   (abs(eta) >= 5.2000 && abs(eta) < 5.3000) * (energy >= 0.0000 && energy < 10.0000) * (0.02438996) + \
+   (abs(eta) >= 5.2000 && abs(eta) < 5.3000) * (energy >= 10.0000 && energy < 100.0000) * (0.024390 + (energy-10.000000)* 0.000014) + \
+   (abs(eta) >= 5.2000 && abs(eta) < 5.3000) * (energy >= 100.0000 && energy < 1000.0000) * (0.025632 + (energy-100.000000)* 0.000013) + \
+   (abs(eta) >= 5.2000 && abs(eta) < 5.3000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.037643 + (energy-1000.000000)* 0.000025) + \
+   (abs(eta) >= 5.2000 && abs(eta) < 5.3000) * (energy >= 10000.0000) * (0.266957*energy/10000.000000) + \
+   (abs(eta) >= 5.3000 && abs(eta) < 5.4000) * (energy >= 0.0000 && energy < 10.0000) * (0.02766922) + \
+   (abs(eta) >= 5.3000 && abs(eta) < 5.4000) * (energy >= 10.0000 && energy < 100.0000) * (0.027669 + (energy-10.000000)* 0.000016) + \
+   (abs(eta) >= 5.3000 && abs(eta) < 5.4000) * (energy >= 100.0000 && energy < 1000.0000) * (0.029119 + (energy-100.000000)* 0.000018) + \
+   (abs(eta) >= 5.3000 && abs(eta) < 5.4000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.045061 + (energy-1000.000000)* 0.000031) + \
+   (abs(eta) >= 5.3000 && abs(eta) < 5.4000) * (energy >= 10000.0000) * (0.326140*energy/10000.000000) + \
+   (abs(eta) >= 5.4000 && abs(eta) < 5.5000) * (energy >= 0.0000 && energy < 10.0000) * (0.03019946) + \
+   (abs(eta) >= 5.4000 && abs(eta) < 5.5000) * (energy >= 10.0000 && energy < 100.0000) * (0.030199 + (energy-10.000000)* 0.000019) + \
+   (abs(eta) >= 5.4000 && abs(eta) < 5.5000) * (energy >= 100.0000 && energy < 1000.0000) * (0.031924 + (energy-100.000000)* 0.000024) + \
+   (abs(eta) >= 5.4000 && abs(eta) < 5.5000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.053879 + (energy-1000.000000)* 0.000040) + \
+   (abs(eta) >= 5.4000 && abs(eta) < 5.5000) * (energy >= 10000.0000) * (0.412937*energy/10000.000000) + \
+   (abs(eta) >= 5.5000 && abs(eta) < 5.6000) * (energy >= 0.0000 && energy < 10.0000) * (0.03333558) + \
+   (abs(eta) >= 5.5000 && abs(eta) < 5.6000) * (energy >= 10.0000 && energy < 100.0000) * (0.033336 + (energy-10.000000)* 0.000023) + \
+   (abs(eta) >= 5.5000 && abs(eta) < 5.6000) * (energy >= 100.0000 && energy < 1000.0000) * (0.035389 + (energy-100.000000)* 0.000029) + \
+   (abs(eta) >= 5.5000 && abs(eta) < 5.6000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.061288 + (energy-1000.000000)* 0.000046) + \
+   (abs(eta) >= 5.5000 && abs(eta) < 5.6000) * (energy >= 10000.0000) * (0.474581*energy/10000.000000) + \
+   (abs(eta) >= 5.6000 && abs(eta) < 5.7000) * (energy >= 0.0000 && energy < 10.0000) * (0.03758362) + \
+   (abs(eta) >= 5.6000 && abs(eta) < 5.7000) * (energy >= 10.0000 && energy < 100.0000) * (0.037584 + (energy-10.000000)* 0.000033) + \
+   (abs(eta) >= 5.6000 && abs(eta) < 5.7000) * (energy >= 100.0000 && energy < 1000.0000) * (0.040596 + (energy-100.000000)* 0.000035) + \
+   (abs(eta) >= 5.6000 && abs(eta) < 5.7000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.072070 + (energy-1000.000000)* 0.000054) + \
+   (abs(eta) >= 5.6000 && abs(eta) < 5.7000) * (energy >= 10000.0000) * (0.561879*energy/10000.000000) + \
+   (abs(eta) >= 5.7000 && abs(eta) < 5.8000) * (energy >= 0.0000 && energy < 10.0000) * (0.03700078) + \
+   (abs(eta) >= 5.7000 && abs(eta) < 5.8000) * (energy >= 10.0000 && energy < 100.0000) * (0.037001 + (energy-10.000000)* 0.000067) + \
+   (abs(eta) >= 5.7000 && abs(eta) < 5.8000) * (energy >= 100.0000 && energy < 1000.0000) * (0.042994 + (energy-100.000000)* 0.000049) + \
+   (abs(eta) >= 5.7000 && abs(eta) < 5.8000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.087179 + (energy-1000.000000)* 0.000073) + \
+   (abs(eta) >= 5.7000 && abs(eta) < 5.8000) * (energy >= 10000.0000) * (0.740706*energy/10000.000000) + \
+   (abs(eta) >= 5.8000 && abs(eta) < 5.9000) * (energy >= 0.0000 && energy < 10.0000) * (0.04253594) + \
+   (abs(eta) >= 5.8000 && abs(eta) < 5.9000) * (energy >= 10.0000 && energy < 100.0000) * (0.042536 + (energy-10.000000)* 0.000045) + \
+   (abs(eta) >= 5.8000 && abs(eta) < 5.9000) * (energy >= 100.0000 && energy < 1000.0000) * (0.046571 + (energy-100.000000)* 0.000074) + \
+   (abs(eta) >= 5.8000 && abs(eta) < 5.9000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.112805 + (energy-1000.000000)* 0.000101) + \
+   (abs(eta) >= 5.8000 && abs(eta) < 5.9000) * (energy >= 10000.0000) * (1.024627*energy/10000.000000) + \
+   (abs(eta) >= 5.9000 && abs(eta) < 6.0000) * (energy >= 0.0000 && energy < 10.0000) * (0.07885303) + \
+   (abs(eta) >= 5.9000 && abs(eta) < 6.0000) * (energy >= 10.0000 && energy < 100.0000) * (0.078853 + (energy-10.000000)* 0.000181) + \
+   (abs(eta) >= 5.9000 && abs(eta) < 6.0000) * (energy >= 100.0000 && energy < 1000.0000) * (0.095114 + (energy-100.000000)* 0.000505) + \
+   (abs(eta) >= 5.9000 && abs(eta) < 6.0000) * (energy >= 1000.0000 && energy < 10000.0000) * (0.549223 + (energy-1000.000000)* 0.000541) + \
+   (abs(eta) >= 5.9000 && abs(eta) < 6.0000) * (energy >= 10000.0000) * (5.418656*energy/10000.000000))/
+   ((energy >= 0.0000 && energy < 10.0000) * (0.00340454) + \
+    (energy >= 10.0000 && energy < 100.0000) * (0.003405 + (energy-10.000000)* 0.000007) + \
+    (energy >= 100.0000 && energy < 1000.0000) * (0.004075 + (energy-100.000000)* 0.000015) + \
+    (energy >= 1000.0000 && energy < 10000.0000) * (0.017369 + (energy-1000.000000)* 0.000017) + \
+    (energy >= 10000.0000) * (0.169584*energy/10000.000000))
+}
Index: cards/FCC/validation_FCChh.tcl
===================================================================
--- cards/FCC/validation_FCChh.tcl	(revision 5348ed9b72570adcd45eb2dfaa345cbfa4944ead)
+++ cards/FCC/validation_FCChh.tcl	(revision 5348ed9b72570adcd45eb2dfaa345cbfa4944ead)
@@ -0,0 +1,72 @@
+source FCChh.tcl
+
+set ExecutionPath [lreplace $ExecutionPath end end]
+add ExecutionPath CaloJetFinder
+add ExecutionPath CaloMissingET
+add ExecutionPath GenScalarHT
+add ExecutionPath PionFilter
+add ExecutionPath TreeWriter
+
+module FastJetFinder GenJetFinder {
+  set JetPTMin 1.0
+}
+
+module FastJetFinder FastJetFinder {
+  set JetPTMin 1.0
+}
+
+########################
+# Calorimeter jet finder
+########################
+
+module FastJetFinder CaloJetFinder {
+  set InputArray Calorimeter/towers
+
+  set OutputArray jets
+
+  # algorithm: 1 CDFJetClu, 2 MidPoint, 3 SIScone, 4 kt, 5 Cambridge/Aachen, 6 antikt
+  set JetAlgorithm 6
+  set ParameterR 0.5
+
+  set JetPTMin 1.0
+}
+
+#########################
+# Calo Missing ET merger
+########################
+
+module Merger CaloMissingET {
+# add InputArray InputArray
+  add InputArray Calorimeter/towers
+  set MomentumOutputArray momentum
+}
+
+#################
+# Gen Scalar HT
+#################
+
+module Merger GenScalarHT {
+# add InputArray InputArray
+  add InputArray NeutrinoFilter/filteredParticles
+  set EnergyOutputArray energy
+}
+
+#################
+# Pion filter
+#################
+
+module PdgCodeFilter PionFilter {
+  set InputArray HCal/eflowTracks
+  set OutputArray pions
+  set Invert true
+  add PdgCode {211}
+  add PdgCode {-211}
+}
+
+module TreeWriter TreeWriter {
+# add Branch InputArray BranchName BranchClass
+  add Branch CaloJetFinder/jets CaloJet Jet
+  add Branch CaloMissingET/momentum CaloMissingET MissingET
+  add Branch GenScalarHT/energy GenScalarHT ScalarHT
+  add Branch PionFilter/pions Pion Track 
+}
