def setrunforfolder(name): if conddb.folderRequested(name): printfunc ("setting run to "+str(runN)+" and lumiblock "+str(lumiBlock)) frnTag="<forceRunNumber>"+str(runN)+"</forceRunNumber>" flbTag="<forceLumiblockNumber>"+str(lumiBlock)+"</forceLumiblockNumber>" conddb.addMarkup(name,frnTag) conddb.addMarkup(name,flbTag) global overlaylongfolders overlaylongfolders += [name]
def adjustshortfolder(name): global overlaylongfolders if name in overlaylongfolders: printfunc("already made " + name + " long") else: if conddb.folderRequested(name): printfunc("setting " + name + " to 10s cache") conddb.addMarkup(name, "<cache>10</cache>") else: printfunc("folder " + name + " was not requested?!")
#Now use MC T0 for TRT during overlay digi, but MC or data T0/Rt during reco, depending on where digit came from... so this stuff is just for reco: #conddb.blockFolder("/TRT/Calib/MCRT") #conddb.addFolder("","<dbConnection>sqlite://;schema=mycool.db;dbname=OFLP200</dbConnection> /TRT/Calib/MCRT" + "<tag> TrtCalibMCRt-13TeV_ArgonScenario1_00-00 </tag>" , force=True) #conddb.blockFolder("/TRT/Calib/MCT0") #conddb.addFolder("","<dbConnection>sqlite://;schema=mycool.db;dbname=OFLP200</dbConnection> /TRT/Calib/MCT0" + "<tag> TrtCalibMCT0-13TeV_ArgonScenario1_00-00 </tag>" , force=True) #conddb.blockFolder("/TRT/Calib/MCRT") #conddb.addFolder("","<dbConnection>sqlite://;schema=mycool.db;dbname=OFLP200</dbConnection>/TRT/Calib/MCRT" + "<tag> TrtCalibMCRt-13TeV_ArgonScenario1_00-00</tag>" , force=True) #conddb.blockFolder("/TRT/Calib/MCT0") #conddb.addFolder("","<dbConnection>sqlite://;schema=mycool.db;dbname=OFLP200</dbConnection>/TRT/Calib/MCT0" + "<tag> TrtCalibMCT0-13TeV_ArgonScenario1_00-00</tag>" , force=True) conddb.blockFolder("/TRT/Calib/MC/RT") conddb.addFolderWithTag("TRT_OFL", "/TRT/Calib/MC/RT", "TrtCalibRt-R2-MC-run2-scenario1_03-00", force=True, forceData=True) conddb.addMarkup("/TRT/Calib/MC/RT", "<forceRunNumber>295000</forceRunNumber>") conddb.blockFolder("/TRT/Calib/MC/T0") conddb.addFolderWithTag("TRT_OFL", "/TRT/Calib/MC/T0", "TrtCalibT0-R2-MC-run2-scenario1_03-00", force=True, forceData=True) conddb.addMarkup("/TRT/Calib/MC/T0", "<forceRunNumber>295000</forceRunNumber>") #conddb.blockFolder("/TRT/Calib/MCerrors2d") #conddb.addFolder("","<dbConnection>sqlite://;schema=mycool.db;dbname=OFLP200</dbConnection> /TRT/Calib/MCerrors2d" + "<tag> TrtCalibMCErrors2d-IOVdep-2Dfit-00-00 </tag>" , force=True) #conddb.blockFolder("/TRT/Calib/MCslopes") #conddb.addFolder("","<dbConnection>sqlite://;schema=mycool.db;dbname=OFLP200</dbConnection> /TRT/Calib/MCslopes" + "<tag> TrtCalibMCSlopes-mc_25ns-2Dfit-00-00 </tag>" , force=True) from TRT_ConditionsServices.TRT_ConditionsServicesConf import TRT_CalDbSvc TRTMCCalibDBSvc = TRT_CalDbSvc(name="TRTMCCalibDBSvc", RtFolderName="/TRT/Calib/MC/RT", T0FolderName="/TRT/Calib/MC/T0",
def adjustlongfolder(name): if conddb.folderRequested(name): printfunc("setting " + name + " to 100000000s cache") conddb.addMarkup(name, "<cache>100000000</cache>") global overlaylongfolders overlaylongfolders += [name]
testCurrentMenu=True EvtMax=10 BSRDOInput='/afs/cern.ch/atlas/project/trigger/pesa-sw/validation/atn-test/data16_13TeV.00307126.physics_eb_zmm_egz.merged.RAW.selected._0001.data' from AthenaCommon.Include import include myfolder = folder # 'folder' seems to be overwritten somewhere in the include include('TriggerJobOpts/runHLT_standalone.py') folder = myfolder from AthenaCommon.AppMgr import ServiceMgr as svcMgr from IOVDbSvc.CondDB import conddb # noqa: F401 configuration by import, old Run-2 job options svcMgr.IOVDbSvc.forceRunNumber = 9999999 sqlite_tmp = 'cool_tmp.db' tag = svcMgr.IOVDbSvc.GlobalTag conddb.addMarkup(folder,'<db>sqlite://;schema=%s;dbname=CONDBR2</db>' % sqlite_tmp) import os import sys # Delete temporary file try: os.remove(sqlite_tmp) except Exception: pass # Copy folder from online DB rc = os.system("AtlCoolCopy 'oracle://ATLAS_COOLPROD;schema=%s;dbname=CONDBR2' 'sqlite://;schema=%s;dbname=CONDBR2' -create -tag %s -hitag -prunetags -folder %s -r 9999999" % (onldb,sqlite_tmp,tag,folder)) if rc!=0: sys.exit(rc) # Merge with user given sqlite file (in case only some channels have been updated)
from AtlasGeoModel import SetGeometryVersion from AtlasGeoModel import GeoModelInit include("CaloDetMgrDetDescrCnv/CaloDetMgrDetDescrCnv_joboptions.py") include("CaloIdCnv/CaloIdCnv_joboptions.py") include("TileIdCnv/TileIdCnv_jobOptions.py") include("LArDetDescr/LArDetDescr_joboptions.py") include("TileConditions/TileConditions_jobOptions.py") include("LArConditionsCommon/LArConditionsCommon_comm_jobOptions.py") svcMgr.IOVDbSvc.GlobalTag = GlobalTag from IOVDbSvc.CondDB import conddb if "sqliteHVCorr" in dir(): conddb.addMarkup( "/LAR/ElecCalibFlat/HVScaleCorr", "<db>sqlite://;schema=" + sqliteHVCorr + ";dbname=CONDBR2</db>") if mu == 0: #conddb.addOverride("/LAR/NoiseOfl/CellNoise","LARNoiseOflCellNoisenoise_2015_ofc0_25ns") # for 2017: conddb.addOverride( "/LAR/NoiseOfl/CellNoise", "LARNoiseOflCellNoisenoise-mc16-ofc25mc15mu0-25ns-A3MinBias_1phi_v2") else: if dt == 25: #conddb.addOverride("/LAR/NoiseOfl/CellNoise","LARNoiseOflCellNoisenoise_2015_ofc25mu20_25ns") # for the 2017 running: conddb.addOverride( "/LAR/NoiseOfl/CellNoise", "LARNoiseOflCellNoisenoise-mc16-ofc25mc15mu20-25ns-A3MinBias_1phi_v2"