From adb83461c2c15cd7083474ffa18aecf355a59d79 Mon Sep 17 00:00:00 2001
From: Thomas Strebler <thomas.strebler@cern.ch>
Date: Wed, 26 Jan 2022 10:38:52 +0100
Subject: [PATCH] Run BeamSpotCondAlg also for files with InDet geometry in
 IDPVM

---
 .../python/InDetPhysValDecorationConfig.py                   | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/InnerDetector/InDetValidation/InDetPhysValMonitoring/python/InDetPhysValDecorationConfig.py b/InnerDetector/InDetValidation/InDetPhysValMonitoring/python/InDetPhysValDecorationConfig.py
index 0b6cbc23f210..befd056ddfb7 100644
--- a/InnerDetector/InDetValidation/InDetPhysValMonitoring/python/InDetPhysValDecorationConfig.py
+++ b/InnerDetector/InDetValidation/InDetPhysValMonitoring/python/InDetPhysValDecorationConfig.py
@@ -187,9 +187,8 @@ def AddDecoratorCfg(flags,**kwargs):
     acc.merge(TrackDecoratorsCfg(flags))
   
     if flags.Input.isMC:
-        if flags.Detector.GeometryITk:
-            from BeamSpotConditions.BeamSpotConditionsConfig import BeamSpotCondAlgCfg
-            acc.merge(BeamSpotCondAlgCfg(flags))
+        from BeamSpotConditions.BeamSpotConditionsConfig import BeamSpotCondAlgCfg
+        acc.merge(BeamSpotCondAlgCfg(flags))
 
         acc.merge(InDetPhysValTruthDecoratorAlgCfg(flags))
 
-- 
GitLab