From 1ef7e3c3d3a26b7d905c6c8c4cbc27e0b5e6ecf7 Mon Sep 17 00:00:00 2001
From: Michael Duehrssen-Debling <michael.duehrssen@cern.ch>
Date: Mon, 28 Sep 2020 11:28:06 +0000
Subject: [PATCH] Manual sweep 36696: Update Tile sampling fractions for G4
 10.5 and newer

---
 .../TileConditions/python/TileInfoLoaderConfig.py            | 5 +++++
 .../TileSimAlgs/share/TileSamplingFraction_jobOptions.py     | 3 +++
 2 files changed, 8 insertions(+)

diff --git a/TileCalorimeter/TileConditions/python/TileInfoLoaderConfig.py b/TileCalorimeter/TileConditions/python/TileInfoLoaderConfig.py
index 966587c1cb11..6dd69ed6f87b 100644
--- a/TileCalorimeter/TileConditions/python/TileInfoLoaderConfig.py
+++ b/TileCalorimeter/TileConditions/python/TileInfoLoaderConfig.py
@@ -53,6 +53,11 @@ def TileInfoLoaderCfg(flags, **kwargs):
             if G4V >= 10.0 :
                 EmScaleA = 33.7
 
+            # Value for G4 10.6 since September-2020
+            # see https://its.cern.ch/jira/browse/ATLASSIM-4401
+            if G4V >= 10.05 :
+                EmScaleA = 32.9
+
             # Old value
             if physicsList == 'QGSP_EMV' or physicsList == 'QGSP_BERT_EMV' or physicsList == '':
                 EmScaleA = 35.9
diff --git a/TileCalorimeter/TileSimAlgs/share/TileSamplingFraction_jobOptions.py b/TileCalorimeter/TileSimAlgs/share/TileSamplingFraction_jobOptions.py
index 6c9bc980c7cd..badb520f1414 100644
--- a/TileCalorimeter/TileSimAlgs/share/TileSamplingFraction_jobOptions.py
+++ b/TileCalorimeter/TileSimAlgs/share/TileSamplingFraction_jobOptions.py
@@ -34,6 +34,9 @@ try:
     if G4V >= 10.0 :
         EmScaleA = 33.7
 
+    if G4V >= 10.05 :
+        EmScaleA = 32.9
+
     # old value
     if physicsList == 'QGSP_EMV' or physicsList == 'QGSP_BERT_EMV' or physicsList == '' :
         EmScaleA = 35.9
-- 
GitLab