12 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
15 from LArCafJobs.LArNoiseFlags
import addNoiseFlags
23 flags.Input.Files=runArgs.inputBSFile
25 if hasattr(runArgs,
"outputHIST_LARNOISEFile"):
26 flags.LArNoise.outHistLAr=runArgs.outputHIST_LARNOISEFile
27 flags.Output.HISTFileName =runArgs.outputHIST_LARNOISEFile
29 if hasattr(runArgs,
"outputNTUP_LARNOISEFile"):
30 flags.LArNoise.outNtupLAr=runArgs.outputNTUP_LARNOISEFile
32 if hasattr(runArgs,
"outputNTUP_HECNOISEFile"):
33 flags.LArNoise.HECNoiseNtup=runArgs.outputNTUP_HECNOISEFile
35 if not hasattr(runArgs,
"conditionsTag")
or runArgs.conditionsTag==
"CURRENT":
36 print(
"Resolving 'CURRENT' express conditions tag ...")
37 sys.path.append(
'/afs/cern.ch/user/a/atlcond/utils22/')
38 from CondUtilsLib.AtlCoolBKLib
import resolveAlias
39 resolver=resolveAlias()
40 currentGlobalES=resolver.getCurrentES().
replace(
"*",
"ST")
41 print(
"Found ",currentGlobalES)
42 flags.IOVDb.GlobalTag=currentGlobalES
44 flags.IOVDb.GlobalTag=runArgs.conditionsTag
46 if hasattr(runArgs,
"skipEvents"):
47 flags.Exec.SkipEvents=runArgs.skipEvents
49 if hasattr(runArgs,
"maxEvents"):
50 flags.Exec.MaxEvents=runArgs.maxEvents
52 from AthenaConfiguration.TestDefaults
import defaultGeometryTags
53 flags.GeoModel.AtlasVersion = defaultGeometryTags.RUN3
54 flags.Trigger.triggerConfig =
'DB'
55 flags.Trigger.L1.doCTP =
True
56 flags.Trigger.doID=
False
57 flags.Trigger.doMuon=
False
58 flags.Trigger.doLVL1=
False
59 flags.Trigger.doHLT=
False
61 flags.Calo.Cell.doDeadCellCorr=
True
72 cfg.getService(
"IOVDbSvc").overrideTags+=[
'<prefix>/TRIGGER/OFLLUMI/OflPrefLumi</prefix><tag>OflPrefLumi-RUN2-UPD4-12</tag>']
78 sys.exit(
not sc.isSuccess())