Skip to content
Snippets Groups Projects
Commit 6db9fe5c authored by Edward Moyse's avatar Edward Moyse
Browse files

Merge branch 'noise.CaloTools-20201013' into 'master'

CaloTools: Return algorithm from CaloNoiseCondAlg.

See merge request !37246
parents e46a4d95 3f0fa716
No related branches found
No related tags found
6 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!37246CaloTools: Return algorithm from CaloNoiseCondAlg.
# 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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment