logMuon.info("Reading MDT Dead Flags constants from DB")
conddb.DBInstance = "COOLOFL_MDT"
conddb.addFolder('MDT', '/MDT/TUBE_STATUS/DEAD_TUBE', forceMC=True)

logMuon.info("Reading RPC Flags constants from DB")
conddb.DBInstance = "COOLOFL_RPC"
conddb.addFolder('RPC', '/RPC/DQMF/ELEMENT_STATUS', forceMC=True)

## MDT Conditions Data

from MuonCondSvc.MuonCondSvcConf import MDT_DCSConditionsSvc
ServiceMgr += MDT_DCSConditionsSvc()

from MuonCondTool.MuonCondToolConf import MDT_DCSConditionsTool
MDT_DCSConditionsTool = MDT_DCSConditionsTool("MDT_DCSConditionsTool")
MDT_DCSConditionsTool.OutputLevel = VERBOSE

MDT_DCSConditionsTool.DropChamberFolder = "/MDT/DCS/DROPPEDCH"
MDT_DCSConditionsTool.HVFolder = "/MDT/DCS/PSHVMLSTATE"
MDT_DCSConditionsTool.LVFolder = "/MDT/DCS/PSLVCHSTATE"
MDT_DCSConditionsTool.JTAGFolder = "/MDT/DCS/JTAGCHSTATE"
MDT_DCSConditionsTool.SetPointsV0Folder = "/MDT/DCS/PSV0SETPOINTS"
MDT_DCSConditionsTool.SetPointsV1Folder = "/MDT/DCS/PSV1SETPOINTS"

ToolSvc += MDT_DCSConditionsTool

from MuonCondSvc.MuonCondSvcConf import MDT_DeadTubeConditionsSvc
ServiceMgr += MDT_DeadTubeConditionsSvc()

from MuonCondTool.MuonCondToolConf import MDT_DeadTubeConditionsTool
예제 #2
0
IOVDbSvc.OutputLevel = 3
IOVDbSvc.DBInstance = "COOLOFL_DCS"
include("RegistrationServices/IOVRegistrationSvc_jobOptions.py")

##-----------------------------------------------------------------
## MDT
#-----------------------------------------------------------------
# Dead Chambers

from MuonCondSvc.MuonCondSvcConf import MDT_DCSConditionsSvc

ServiceMgr += MDT_DCSConditionsSvc()

from MuonCondTool.MuonCondToolConf import MDT_DCSConditionsTool

MDT_DCSConditionsTool = MDT_DCSConditionsTool("MDT_DCSConditionsTool")
MDT_DCSConditionsTool.OutputLevel = VERBOSE
#MessageSvc.OutputLevel = DEBUG

MDT_DCSConditionsTool.DropChamberFolder = "/MDT/DCS/DROPPEDCH"
MDT_DCSConditionsTool.HVFolder = "/MDT/DCS/PSHVMLSTATE"
MDT_DCSConditionsTool.LVFolder = "/MDT/DCS/PSLVCHSTATE"
MDT_DCSConditionsTool.JTAGFolder = "/MDT/DCS/JTAGCHSTATE"

ToolSvc += MDT_DCSConditionsTool

dbConn = "oracle://ATLAS_COOLPROD;schema=ATLAS_COOLOFL_DCS;dbname=COMP200"
folder = "/MDT/DCS/DROPPEDCH"

ServiceMgr.IOVDbSvc.dbConnection = dbConn
ServiceMgr.IOVDbSvc.Folders += [
jobproperties.Global.DetDescrVersion = DetDescrVersion
#DetDescrVersion = GlobalFlags.DetDescrVersion()
GeoModelSvc.AtlasVersion = DetDescrVersion

topSequence = AlgSequence()

#import AthenaPoolCnvSvc.ReadAthenaPool

#ServiceMgr.EventSelector.InputCollections = ["/afs/cern.ch/atlas/maxidisk/d98/14.3.0/MuonSpectrometer/MuonCablings/MuonMDT_Cabling/MuonMDT_Cabling-00-00-04/share/AOD.032240._00100.pool.root.1"]

from MuonCondTest.MuonCondTestConf import MDT_DCSStatusTest

topSequence += MDT_DCSStatusTest()

from MuonCondTool.MuonCondToolConf import MDT_DCSConditionsTool
MDT_DCSConditionsTool = MDT_DCSConditionsTool("MDT_DCSConditionsTool")
MDT_DCSConditionsTool.OutputLevel = VERBOSE
#MessageSvc.OutputLevel = DEBUG

MDT_DCSConditionsTool.DropChamberFolder = "/MDT/DCS/DROPPEDCH"

ToolSvc += MDT_DCSConditionsTool

dbConn = "oracle://ATLAS_COOLPROD;schema=ATLAS_COOLOFL_DCS;dbname=COMP200"
folder = "/MDT/DCS/DROPPEDCH"

from IOVDbSvc.IOVDbSvcConf import IOVDbSvc
from IOVDbSvc.CondDB import conddb
include("RegistrationServices/IOVRegistrationSvc_jobOptions.py")

ServiceMgr.IOVDbSvc.dbConnection = dbConn