Skip to content
Snippets Groups Projects
Commit 49dd25d7 authored by Walter Lampl's avatar Walter Lampl
Browse files

Merge branch 'fixATLASSIM-3913' into 'master'

Adjust ConditionsAlgs used during LArDigitization for BS Overlay jobs

Closes ATLASSIM-3913

See merge request atlas/athena!15832
parents 8ebdf7a3 2821b66d
No related branches found
No related tags found
No related merge requests found
...@@ -227,9 +227,9 @@ ServiceMgr.MessageSvc.OutputLevel = INFO ...@@ -227,9 +227,9 @@ ServiceMgr.MessageSvc.OutputLevel = INFO
ServiceMgr.MessageSvc.Format = "% F%45W%S%7W%R%T %0W%M" ServiceMgr.MessageSvc.Format = "% F%45W%S%7W%R%T %0W%M"
if hasattr(runArgs, 'fSampltag'): if hasattr(runArgs, 'fSampltag'):
#conddb.addFolder("LAR","/LAR/ElecCalib/fSampl/Symmetry") conddb.addFolderWithTag("LAR_OFL","/LAR/ElecCalibMC/fSampl", runArgs.fSampltag + digitizationFlags.physicsList.get_Value(),force=True,forceMC=True,className="LArfSamplMC")
#conddb.addOverride( "/LAR/ElecCalib/fSampl/Symmetry", runArgs.fSampltag + digitizationFlags.physicsList.get_Value() )
conddb.addFolderWithTag("LAR_OFL","/LAR/ElecCalibMC/fSampl", runArgs.fSampltag + digitizationFlags.physicsList.get_Value(),force=True,forceMC=True)
else: else:
raise RuntimeError ("--fSampltag not specified on command-line - see --help message") raise RuntimeError ("--fSampltag not specified on command-line - see --help message")
#if DetFlags.overlay.Signal_on(): #if DetFlags.overlay.Signal_on():
......
...@@ -124,8 +124,9 @@ def getLArPileUpTool(name='LArPileUpTool', **kwargs): ## useLArFloat()=True,isOv ...@@ -124,8 +124,9 @@ def getLArPileUpTool(name='LArPileUpTool', **kwargs): ## useLArFloat()=True,isOv
# AutoCorrNoiseCondAlgo # AutoCorrNoiseCondAlgo
from LArRecUtils.LArAutoCorrNoiseCondAlgDefault import LArAutoCorrNoiseCondAlgDefault if not isOverlay():
LArAutoCorrNoiseCondAlgDefault() from LArRecUtils.LArAutoCorrNoiseCondAlgDefault import LArAutoCorrNoiseCondAlgDefault
LArAutoCorrNoiseCondAlgDefault()
# bad channel masking # bad channel masking
from LArBadChannelTool.LArBadChannelToolConf import LArBadChannelMasker from LArBadChannelTool.LArBadChannelToolConf import LArBadChannelMasker
......
...@@ -6,6 +6,12 @@ from AthenaCommon.Logging import logging ...@@ -6,6 +6,12 @@ from AthenaCommon.Logging import logging
def LArPileUpToolDefault(useLArFloat=True,isOverlay=False,outputKey='LArDigitContainer_MC',outputKey_DigiHSTruth='LArDigitContainer_DigiHSTruth',name='LArPileUpToolDefault'): def LArPileUpToolDefault(useLArFloat=True,isOverlay=False,outputKey='LArDigitContainer_MC',outputKey_DigiHSTruth='LArDigitContainer_DigiHSTruth',name='LArPileUpToolDefault'):
if isOverlay:
#For all other cases, this is already done by LArConditionsCommon_MC_jobOptions.py
from LArRecUtils.LArRecUtilsConf import LArSymConditionsAlg_LArfSamplMC_LArfSamplSym_ as LArfSamplSymAlg
condSeq = AthSequencer("AthCondSeq")
condSeq+=LArfSamplSymAlg(ReadKey="LArfSampl",WriteKey="LArfSamplSym")
try: try:
from AthenaCommon import CfgGetter from AthenaCommon import CfgGetter
theTool = CfgGetter.getPublicTool("LArPileUpTool") theTool = CfgGetter.getPublicTool("LArPileUpTool")
...@@ -13,6 +19,8 @@ def LArPileUpToolDefault(useLArFloat=True,isOverlay=False,outputKey='LArDigitCon ...@@ -13,6 +19,8 @@ def LArPileUpToolDefault(useLArFloat=True,isOverlay=False,outputKey='LArDigitCon
theTool.DigitContainer_DigiHSTruth = outputKey_DigiHSTruth theTool.DigitContainer_DigiHSTruth = outputKey_DigiHSTruth
from Digitization.DigitizationFlags import digitizationFlags from Digitization.DigitizationFlags import digitizationFlags
theTool.DoDigiTruthReconstruction = digitizationFlags.doDigiTruth() theTool.DoDigiTruthReconstruction = digitizationFlags.doDigiTruth()
except Exception as configException: except Exception as configException:
print configException print configException
print "ERROR Problem with configuration" print "ERROR Problem with configuration"
......
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