ReadLCOutOfCluster = CaloReadLCOutOfClusterFile("ReadLCOutOfCluster") ReadLCOutOfCluster.LCOutOfClusterFileName = inFileName ReadLCOutOfCluster.CorrectionKey="OOCCorrection" topSequence += ReadLCOutOfCluster # Number of events to be processed (default is 10) theApp.EvtMax = 1 AthenaPoolCnvSvc = Service( "AthenaPoolCnvSvc" ) from RegistrationServices.OutputConditionsAlg import OutputConditionsAlg myOCA=OutputConditionsAlg("myOCA",outFileName) # List of objects container type#key#foldername myOCA.ObjectList = ["CaloLocalHadCoeff#OOCCorrection#/CALO/HadCalibration/CaloOutOfCluster"] myOCA.WriteIOV = True myOCA.IOVTagList = ["CaloHadOOCCorr2-CSC05-BERT" ] myOCA.OutputLevel= Lvl.DEBUG # Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL ) MessageSvc = Service( "MessageSvc" ) MessageSvc.OutputLevel = Lvl.INFO DetectorStore = svcMgr.DetectorStore DetectorStore.Dump = TRUE DetectorStore.OutputLevel = Lvl.INFO IOVDbSvc = Service( "IOVDbSvc" ) IOVDbSvc.OutputLevel = Lvl.INFO svcMgr.IOVDbSvc.dbConnection = "sqlite://X;schema=myOOC05BERT200.db;dbname=OFLP200"
L1CaloFolderList += ["/TRIGGER/L1Calo/Calibration/PprChanCalib"] L1CaloFolderList += ["/TRIGGER/L1Calo/Calibration/PpmDeadChannels"] for l1calofolder in L1CaloFolderList: if not conddb.folderRequested(l1calofolder): conddb.addFolder("", L1CaloDbConnection + l1calofolder + L1CaloDbTag) svcMgr.IOVDbSvc.overrideTags += [ "<prefix>/CALO/Identifier/CaloTTOnOffIdMapAtlas</prefix> <tag>CALOIdentifierCaloTTOnOffIdMapAtlas-0002</tag>" ] # set up tools from TrigT1CaloCondSvc.TrigT1CaloCondSvcConf import L1CaloCondSvc ServiceMgr += L1CaloCondSvc() from TrigT1CaloTools.TrigT1CaloToolsConf import LVL1__L1TriggerTowerTool ToolSvc += LVL1__L1TriggerTowerTool() from TrigT1CaloCalibTools.TrigT1CaloCalibToolsConf import L1CaloLArTowerEnergy ToolSvc += L1CaloLArTowerEnergy() # configure actual ramp maker algorithm from TrigT1CaloCalibUtils.TrigT1CaloCalibUtilsConf import L1CaloRampMaker topSequence += L1CaloRampMaker() topSequence.L1CaloRampMaker.L1TriggerTowerTool = LVL1__L1TriggerTowerTool() topSequence.L1CaloRampMaker.DoTile = doTile topSequence.L1CaloRampMaker.DoLAr = doLAr # configure writing of pool files from RegistrationServices.OutputConditionsAlg import OutputConditionsAlg outputConditionsAlg = OutputConditionsAlg("outputConditionsAlg", "L1CaloRampData.pool.root") outputConditionsAlg.ObjectList = ["L1CaloRampDataContainer"] outputConditionsAlg.WriteIOV = False
SpecialPixelMapSvc.RegisterCallback = False SpecialPixelMapSvc.OutputFolder = "/PIXEL/PixMapOverlay" ### configure OutputConditionsAlg from RegistrationServices.OutputConditionsAlg import OutputConditionsAlg OutputConditionsAlg = OutputConditionsAlg("OutputConditionsAlg", "PixMapOverlay.root") OutputConditionsAlg.ObjectList = [ "CondAttrListCollection#" + SpecialPixelMapSvc.OutputFolder ] OutputConditionsAlg.WriteIOV = True #OutputConditionsAlg.Run1=1 #OutputConditionsAlg.LB1=4 #OutputConditionsAlg.Run2=1 #OutputConditionsAlg.LB2=9 OutputConditionsAlg.IOVTagList = ["PixMapOverlay-Test-00"] ### configure IOVRegistrationSvc from RegistrationServices.RegistrationServicesConf import IOVRegistrationSvc ServiceMgr += IOVRegistrationSvc() regSvc = ServiceMgr.IOVRegistrationSvc
# saturating channels 0x7120203: 100 #0x7120203 : 100, 0x6170c03 : 50, 0x6150b02 : 100, 0x6180d03 : 150, 0x61b0f02 : 100, 0x71d0d02 : 150, #0x61c0a00 : 100, 0x6160f03 : 150, 0x6110901 : 150, 0x6140c02 : 150, 0x61a0e03 : 150, 0x61a0103 : 150, #0x61b0f00 : 150, 0x61b0f01 : 150 } # configure fitting algorithm topSequence += CfgMgr.L1CaloLinearCalibration() # configure writing of L1CaloRampData.pool.root from RegistrationServices.OutputConditionsAlg import OutputConditionsAlg outputConditionsAlg = OutputConditionsAlg("outputConditionsAlg", "L1CaloRampData.pool.root") outputConditionsAlg.ObjectList = ["L1CaloRampDataContainer"] outputConditionsAlg.WriteIOV = False # configure writing of calib database EnergyScanResultOutput = OutputConditionsAlg("EnergyScanResultOutput", "dummy.root") EnergyScanResultOutput.ObjectList = [ "CondAttrListCollection#/TRIGGER/L1Calo/V1/Results/EnergyScanResults", "AthenaAttributeList#/TRIGGER/L1Calo/V1/Results/EnergyScanRunInfo" ] EnergyScanResultOutput.WriteIOV = True EnergyScanResultOutput.Run1 = GetRunNumber() svcMgr.IOVDbSvc.dbConnection = "sqlite://;schema=energyscanresults.sqlite;dbname=L1CALO" # configure writing of additional files for the calibration gui topSequence += CfgMgr.L1CaloDumpRampData(RootStreamName="RAMPDATA") #from TrigT1CaloCalibUtils.L1CaloDumpRampDataAlgorithm import L1CaloDumpRampDataAlgorithm
from RegistrationServices.OutputConditionsAlg import OutputConditionsAlg OutCondAlg = OutputConditionsAlg("OutCondAlg", "dummy.root") # List of things to be written. # Make sure that only the folders you actually want to write are # in this list. If something is in this list, and isn't in # the calibration file, the entire job will fail. prefix = "CondAttrListCollection#" for folder in FoldersToWrite: OutCondAlg.ObjectList += [prefix + folder] #Taglist must be in same order as folder list! OutCondAlg.IOVTagList = tagsToWrite #Write out IOV OutCondAlg.WriteIOV = True # set the interval of validity for the file here # putting nothing for Run2 (uppser limit) falls back on default #which is to be valid for all run/event OutCondAlg.Run1 = IOVRunStart #OutCondAlg.Event1=0 if (IOVRunEnd > 0): OutCondAlg.Run2 = IOVRunEnd #If not specified, goes to Infinitity #OutCondAlg.Event2=9999 ############## from IOVDbSvc.CondDB import conddb conddb.setGlobalTag(CoolGlobalTag) if (forceRunNumber > 0): Service("IOVDbSvc").forceRunNumber = forceRunNumber Service("IOVDbSvc").forceLumiblockNumber = 1
# configure actual db maker algorithm from TrigT1CaloCalibUtils.TrigT1CaloCalibUtilsConf import L1CaloHVCorrectionsForDB topSequence += L1CaloHVCorrectionsForDB() #from LArRecUtils.LArHVCorrToolDefault import LArHVCorrToolDefault #theLArHVCorrTool = LArHVCorrToolDefault() #ToolSvc += theLArHVCorrTool topSequence.L1CaloHVCorrectionsForDB.LArHVCorrTool = theLArHVCorrTool # configure writing of calib database from RegistrationServices.OutputConditionsAlg import OutputConditionsAlg HVCorrectionsOutput = OutputConditionsAlg("HVCorrectionsOutput", "dummy.root") HVCorrectionsOutput.ObjectList = [ "CondAttrListCollection#/TRIGGER/L1Calo/V1/Results/RxLayers", "CondAttrListCollection#/TRIGGER/L1Calo/V1/Results/HVCorrections" ] HVCorrectionsOutput.WriteIOV = True HVCorrectionsOutput.Run1 = RunNumber svcMgr.IOVDbSvc.dbConnection = "sqlite://;schema=hvcorrections.sqlite;dbname=L1CALO" #from LArCalibTools.LArCalibToolsConf import LArHVScaleCorr2Ntuple #theLArHVScaleCorr2Ntuple = LArHVScaleCorr2Ntuple("LArHVScaleCorr2Ntuple") #theLArHVScaleCorr2Ntuple.AddFEBTempInfo = False #topSequence += theLArHVScaleCorr2Ntuple #from LArCalibTools.LArCalibToolsConf import LArWFParams2Ntuple #LArWFParams2Ntuple = LArWFParams2Ntuple("LArWFParams2Ntuple") #LArWFParams2Ntuple.DumpTdrift = True #topSequence += LArWFParams2Ntuple #theApp.HistogramPersistency = "ROOT" #from GaudiSvc.GaudiSvcConf import NTupleSvc #svcMgr += NTupleSvc()
0x7100601 : 150, 0x61f0d00 : 150, 0x61f0d01 : 150, # saturating channels 0x7120203 : 100 #0x7120203 : 100, 0x6170c03 : 50, 0x6150b02 : 100, 0x6180d03 : 150, 0x61b0f02 : 100, 0x71d0d02 : 150, #0x61c0a00 : 100, 0x6160f03 : 150, 0x6110901 : 150, 0x6140c02 : 150, 0x61a0e03 : 150, 0x61a0103 : 150, #0x61b0f00 : 150, 0x61b0f01 : 150 } # configure fitting algorithm topSequence += CfgMgr.L1CaloLinearCalibration() # configure writing of L1CaloRampData.pool.root from RegistrationServices.OutputConditionsAlg import OutputConditionsAlg outputConditionsAlg = OutputConditionsAlg("outputConditionsAlg", "L1CaloRampData.pool.root") outputConditionsAlg.ObjectList = ["L1CaloRampDataContainer"] outputConditionsAlg.WriteIOV = False # configure writing of calib database EnergyScanResultOutput = OutputConditionsAlg("EnergyScanResultOutput", "dummy.root") EnergyScanResultOutput.ObjectList = ["CondAttrListCollection#/TRIGGER/L1Calo/V1/Results/EnergyScanResults", "AthenaAttributeList#/TRIGGER/L1Calo/V1/Results/EnergyScanRunInfo"] EnergyScanResultOutput.WriteIOV = True EnergyScanResultOutput.Run1 = GetRunNumber() svcMgr.IOVDbSvc.dbConnection="sqlite://;schema=energyscanresults.sqlite;dbname=L1CALO" # configure writing of additional files for the calibration gui topSequence += CfgMgr.L1CaloDumpRampData(RootStreamName="RAMPDATA") #from TrigT1CaloCalibUtils.L1CaloDumpRampDataAlgorithm import L1CaloDumpRampDataAlgorithm #topSequence += L1CaloDumpRampDataAlgorithm() # run finetime
print "#########################################################################################################################################" print "#########################################################################################################################################" from RegistrationServices.OutputConditionsAlg import OutputConditionsAlg include("RegistrationServices/RegistrationServices_jobOptions.py") myOCAHT=OutputConditionsAlg(outputFile=outputFileHT,name="myOCAHT") myOCAHT.ObjectList=objectListHT myOCAHT.IOVTagList=tagListHT myOCAHT.Run1=0 myOCAHT.LB1=0 myOCAHT.Run2=2147483647 myOCAHT.LB2=0 myOCAHT.WriteIOV=True topSequence+=myOCAHT from AthenaServices.AthenaServicesConf import AthenaOutputStreamTool TRTCondStream=AthenaOutputStreamTool('myOCATool') TRTCondStream.PoolContainerPrefix='ConditionsTree' TRTCondStream=AthenaOutputStreamTool('myOCAPerTool') TRTCondStream.PoolContainerPrefix='ConditionsTree' TRTCondStream=AthenaOutputStreamTool('myOCAHTTool') TRTCondStream.PoolContainerPrefix='ConditionsTree' ToolSvc += TRTCondStream