From dcf5f2ca4b4ec62b263670205a85dcf6db481df6 Mon Sep 17 00:00:00 2001 From: Siarhei Harkusha <Siarhei.Harkusha@cern.ch> Date: Tue, 26 Nov 2024 15:17:34 +0100 Subject: [PATCH 1/2] TileRecEx: Fix Tile D3PD production from physics RAW data Tile D3PD configuration has been fixed to avoid filling mu event info information when only Tile Calorimeter is reconstucted from physics RAW data because this information is not available. --- .../TileExample/TileRecEx/python/TileD3PDConfig.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/TileCalorimeter/TileExample/TileRecEx/python/TileD3PDConfig.py b/TileCalorimeter/TileExample/TileRecEx/python/TileD3PDConfig.py index 31f1349562e1..73d3df40a927 100644 --- a/TileCalorimeter/TileExample/TileRecEx/python/TileD3PDConfig.py +++ b/TileCalorimeter/TileExample/TileRecEx/python/TileD3PDConfig.py @@ -4,7 +4,7 @@ from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator - +from AthenaConfiguration.Enums import Format ''' @file TileD3PDConfig.py @@ -49,8 +49,9 @@ def TileD3PDCfg(flags, outputFile=None, saveCells=True, saveMBTS=True, alg = MakerAlgConfig(flags, acc, 'caloD3PD', outputFile, ExistDataHeader=False) if saveEventInfo: + exludeEventInfoBlocks = ['eventMu'] if flags.Input.Format is Format.BS else [] from EventCommonD3PDMaker.EventInfoD3PDObject import EventInfoD3PDObject - alg += EventInfoD3PDObject(**_args(0, 'EventInfo', kwargs)) + alg += EventInfoD3PDObject(**_args(0, 'EventInfo', kwargs), exclude=exludeEventInfoBlocks) from CaloSysD3PDMaker.TileDetailsD3PDObject import TileDetailsD3PDObject from CaloSysD3PDMaker.CaloInfoD3PDObject import CaloInfoD3PDObject -- GitLab From d013ac9d165562cc3a61848f515ab6c8ca7e3e98 Mon Sep 17 00:00:00 2001 From: Siarhei Harkusha <siarhei.harkusha@cern.ch> Date: Tue, 26 Nov 2024 15:40:08 +0100 Subject: [PATCH 2/2] Update TileD3PDConfig.py --- .../TileExample/TileRecEx/python/TileD3PDConfig.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TileCalorimeter/TileExample/TileRecEx/python/TileD3PDConfig.py b/TileCalorimeter/TileExample/TileRecEx/python/TileD3PDConfig.py index 73d3df40a927..bc81484c9f1a 100644 --- a/TileCalorimeter/TileExample/TileRecEx/python/TileD3PDConfig.py +++ b/TileCalorimeter/TileExample/TileRecEx/python/TileD3PDConfig.py @@ -49,9 +49,9 @@ def TileD3PDCfg(flags, outputFile=None, saveCells=True, saveMBTS=True, alg = MakerAlgConfig(flags, acc, 'caloD3PD', outputFile, ExistDataHeader=False) if saveEventInfo: - exludeEventInfoBlocks = ['eventMu'] if flags.Input.Format is Format.BS else [] + excludeEventInfoBlocks = ['eventMu'] if flags.Input.Format is Format.BS else [] from EventCommonD3PDMaker.EventInfoD3PDObject import EventInfoD3PDObject - alg += EventInfoD3PDObject(**_args(0, 'EventInfo', kwargs), exclude=exludeEventInfoBlocks) + alg += EventInfoD3PDObject(**_args(0, 'EventInfo', kwargs), exclude=excludeEventInfoBlocks) from CaloSysD3PDMaker.TileDetailsD3PDObject import TileDetailsD3PDObject from CaloSysD3PDMaker.CaloInfoD3PDObject import CaloInfoD3PDObject -- GitLab