5 from PyJobTransforms.CommonRunArgsToFlags
import commonRunArgsToFlags
6 from PyJobTransforms.TransformUtils
import processPreExec, processPreInclude, processPostExec, processPostInclude
7 from LArCafJobs.LArNoiseConfig
import LArNoiseCfg
8 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
12 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
16 from LArCafJobs.LArNoiseFlags
import addNoiseFlags
24 flags.Input.Files=runArgs.inputESDFile
25 if hasattr(runArgs,
"outputNTUP_LARNOISEFile"):
26 flags.LArNoise.outNtupLAr=runArgs.outputNTUP_LARNOISEFile
28 if hasattr(runArgs,
"outputNTUP_HECNOISEFile"):
29 flags.LArNoise.HECNoiseNtup=runArgs.outputNTUP_HECNOISEFile
31 if not hasattr(runArgs,
"conditionsTag")
or runArgs.conditionsTag==
"CURRENT":
32 print(
"Resolving 'CURRENT' express conditions tag ...")
33 sys.path.append(
'/afs/cern.ch/user/a/atlcond/utils22/')
34 from CondUtilsLib.AtlCoolBKLib
import resolveAlias
35 resolver=resolveAlias()
36 currentGlobalES=resolver.getCurrentES().
replace(
"*",
"ST")
37 print(
"Found ",currentGlobalES)
38 flags.IOVDb.GlobalTag=currentGlobalES
40 flags.IOVDb.GlobalTag=runArgs.conditionsTag
42 if hasattr(runArgs,
"skipEvents"):
43 flags.Exec.SkipEvents=runArgs.skipEvents
45 if hasattr(runArgs,
"maxEvents"):
46 flags.Exec.MaxEvents=runArgs.maxEvents
48 flags.Trigger.doID=
False
63 sys.exit(
not sc.isSuccess())