ToolSvc += theLArRCBMasker if doRamp: #Algo: from LArCalibUtils.LArCalibUtilsConf import LArCalibPatchingAlg_LArRampComplete_ theLArRampPatcher = LArCalibPatchingAlg_LArRampComplete_("LArRampPatcher") theLArRampPatcher.ContainerKey = "LArRampInput" theLArRampPatcher.NewContainerKey = "LArRamp" theLArRampPatcher.PatchMethod = "PhiAverage" #theLArRampPatcher.OutputLevel=DEBUG theLArRampPatcher.MaskingTool = theLArRCBMasker topSequence += theLArRampPatcher if doCW or doCWxtalk: from LArCalibUtils.LArCalibUtilsConf import LArCalibPatchingAlg_LArCaliWaveContainer_ theLArCaliWavePatcher = LArCalibPatchingAlg_LArCaliWaveContainer_( "LArCaliWavePatcher") theLArCaliWavePatcher.ContainerKey = "LArCaliWaveInput" theLArCaliWavePatcher.NewContainerKey = "LArCaliWave" theLArCaliWavePatcher.PatchMethod = "PhiAverage" #theLArCaliWavePatcher.OutputLevel=DEBUG theLArCaliWavePatcher.MaskingTool = theLArRCBMasker topSequence += theLArCaliWavePatcher from RegistrationServices.OutputConditionsAlg import OutputConditionsAlg theOutputConditionsAlg = OutputConditionsAlg("OutputConditionsAlg", outputFileName, OutputObjectSpec, OutputTagSpec, True) theOutputConditionsAlg.Run1 = IOVstart theOutputConditionsAlg.Run2 = IOVend svcMgr.IOVDbSvc.dbConnection = OutputDB
if (GainList[0]=="LOW") : LArCaliWaveSelector.SelectionList = [ "HEC/0/2/24000","HEC/1/2/24000","HEC/2/2/18000","HEC/3/2/18000" ] topSequence+=LArCaliWaveSelector ###################################################################### # # # Correction # # # ###################################################################### if CorrectBadChannels: from LArCalibUtils.LArCalibUtilsConf import LArCalibPatchingAlg_LArCaliWaveContainer_ theLArCaliWavePatcher=LArCalibPatchingAlg_LArCaliWaveContainer_("LArCaliWavePatcher") theLArCaliWavePatcher.ContainerKey=KeyOutput #theLArCaliWavePatcher.PatchMethod="PhiNeighbor" ##take the first neigbour theLArCaliWavePatcher.PatchMethod="PhiAverage" ##do an aveage in phi after removing bad and empty event theLArCaliWavePatcher.OutputLevel=INFO from LArBadChannelTool.LArBadChannelToolConf import LArBadChanTool theLArBadChannelTool=LArBadChanTool() ToolSvc+=theLArBadChannelTool from LArBadChannelTool.LArBadChannelToolConf import LArBadChannelMasker theLArRCBMasker=LArBadChannelMasker("LArRCBMasker") theLArRCBMasker.DoMasking=True theLArRCBMasker.ProblemsToMask=[ "deadCalib","deadReadout","deadPhys","almostDead","short", ]
"", Folder + "<tag>" + FolderTag + "</tag><db>" + InputDB + "</db>") #conddb.addFolder("",Folder+"<tag>"+FolderTag+"</tag>"+InputDB) conddb.addFolder("LAR", "/LAR/BadChannelsOfl/BadChannels") svcMgr.IOVDbSvc.GlobalTag = "COMCOND-004-00" try: svcMgr.IOVDbSvc.DBInstance = "" except: pass PoolSvc.ReadCatalog += ["prfile:poolcond/PoolCat_comcond_castor.xml"] theApp.EvtMax = 1 svcMgr.EventSelector.RunNumber = RunNumber from LArCalibUtils.LArCalibUtilsConf import LArCalibPatchingAlg_LArCaliWaveContainer_ theLArCaliWavePatcher = LArCalibPatchingAlg_LArCaliWaveContainer_( "LArCaliWavePatcher") theLArCaliWavePatcher.ContainerKey = "LArCaliWave" theLArCaliWavePatcher.NewContainerKey = "LArCaliWaveOut" theLArCaliWavePatcher.PatchMethod = "PhiNeighbor" theLArCaliWavePatcher.OutputLevel = DEBUG topSequence += theLArCaliWavePatcher from LArBadChannelTool.LArBadChannelToolConf import LArBadChannelMasker theLArRCBMasker = LArBadChannelMasker("LArRCBMasker") theLArRCBMasker.DoMasking = True theLArRCBMasker.ProblemsToMask = [ "deadCalib", "deadReadout", "deadPhys", "almostDead", "short",