Skip to content
Snippets Groups Projects

Combine LArHVCondAlg and LArHVScaleCorrAlg into one cond-algo

Merged Walter Lampl requested to merge wlampl/athena:LArHVCombinedAlgs1 into master
9 files
+ 1024
1257
Compare changes
  • Side-by-side
  • Inline
Files
9
@@ -39,24 +39,18 @@ def LArHVScaleCfg(configFlags):
HVPAthologyKey="LArHVPathology")
result.addCondAlgo(hvpath)
LArHVCondAlg=CompFactory.LArHVCondAlg
if configFlags.GeoModel.Run != "RUN1":
hvcond = LArHVCondAlg(HVPathologies="LArHVPathology",OutputHVData="LArHVData")
else:
hvcond = LArHVCondAlg(HVPathologies="LArHVPathology",OutputHVData="LArHVData",doR=False)
result.addCondAlgo(hvcond)
from LArConfiguration.LArElecCalibDBConfig import LArElecCalibDbCfg
result.merge(LArElecCalibDbCfg(configFlags,["HVScaleCorr",]))
LArHVScaleCorrCondAlg=CompFactory.LArHVScaleCorrCondAlg
hvscalecorrkey = "LArHVScaleCorrRecomputed"
if configFlags.Input.isMC:
hvscalecorrkey = "LArHVScaleCorr"
LArHVCondAlg=CompFactory.LArHVCondAlg
if configFlags.GeoModel.Run != "RUN1":
hvcond = LArHVCondAlg(HVPathologies="LArHVPathology")
else:
hvcond = LArHVCondAlg(HVPathologies="LArHVPathology",doR=False)
hvscale = LArHVScaleCorrCondAlg(keyHVdata="LArHVData",keyOutputCorr=hvscalecorrkey)
hvscale.UndoOnlineHVCorr=True
result.addCondAlgo(hvscale)
hvcond.UndoOnlineHVCorr=True
hvcond.keyOutputCorr= "LArHVScaleCorrRecomputed"
result.addCondAlgo(hvcond)
return result
Loading