From aca5e2aa3b30ebf157a52077cd779838b325a90a Mon Sep 17 00:00:00 2001 From: scott snyder <sss@karma> Date: Thu, 5 Aug 2021 23:07:17 -0400 Subject: [PATCH] LArConditionsCommon: Don't fail if Digitization doesn't exist. Don't fail configuration if the Digitization package doesn't exist. Helps with testing in partial builds. (This is a conditions package and that is simulation, so we really shouldn't be depending on that in the first place.) --- .../LArConditionsCommon/share/LArIdMap_MC_jobOptions.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/LArCalorimeter/LArExample/LArConditionsCommon/share/LArIdMap_MC_jobOptions.py b/LArCalorimeter/LArExample/LArConditionsCommon/share/LArIdMap_MC_jobOptions.py index b787a0499d15..660033bacc7d 100755 --- a/LArCalorimeter/LArExample/LArConditionsCommon/share/LArIdMap_MC_jobOptions.py +++ b/LArCalorimeter/LArExample/LArConditionsCommon/share/LArIdMap_MC_jobOptions.py @@ -12,8 +12,11 @@ from LArRecUtils.LArRecUtilsConf import LArOnOffMappingAlg, LArFebRodMappingAlg, larCondFlags.config_idmap_MC() -from Digitization.DigitizationFlags import digitizationFlags -isPileUpDigi = digitizationFlags.doXingByXingPileUp() +isPileUpDigi = False +from PyUtils.moduleExists import moduleExists +if moduleExists ('Digitization'): + from Digitization.DigitizationFlags import digitizationFlags + isPileUpDigi = digitizationFlags.doXingByXingPileUp() LArDBConnection = "" LArDB = "LAR_OFL" -- GitLab