diff --git a/Calorimeter/CaloTools/python/CaloNoiseCondAlg.py b/Calorimeter/CaloTools/python/CaloNoiseCondAlg.py index 278f6158e6737eb137f2611082f0b969761c7774..c101b26e6aab7538a17d0e2154463721ead909ac 100644 --- a/Calorimeter/CaloTools/python/CaloNoiseCondAlg.py +++ b/Calorimeter/CaloTools/python/CaloNoiseCondAlg.py @@ -1,4 +1,4 @@ -# Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration +# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration from AthenaCommon.AlgSequence import AthSequencer from IOVDbSvc.CondDB import conddb @@ -17,9 +17,11 @@ def CaloNoiseCondAlg(noisetype="totalNoise"): return getattr(condSeq,noiseAlgName) if (conddb.isMC): - condSeq += _CaloNoiseCondAlgMC(noiseAlgName,noisetype) + alg = _CaloNoiseCondAlgMC(noiseAlgName,noisetype) else: - condSeq += _CaloNoiseCondAlgData(noiseAlgName,noisetype) + alg = _CaloNoiseCondAlgData(noiseAlgName,noisetype) + condSeq += alg + return alg def _CaloNoiseCondAlgMC(noiseAlgName,noisetype):