6from PyJobTransforms.TransformUtils
import processPreExec, processPreInclude, processPostExec, processPostInclude
11 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
12 flags=initConfigFlags()
14 from LArCafJobs.LArShapeDumperFlags
import addShapeDumpFlags
15 addShapeDumpFlags(flags)
17 commonRunArgsToFlags(runArgs, flags)
19 processPreInclude(runArgs, flags)
20 processPreExec(runArgs, flags)
22 from AthenaConfiguration.TestDefaults
import defaultGeometryTags
23 flags.GeoModel.AtlasVersion = defaultGeometryTags.RUN3
24 flags.LAr.ROD.forceIter=
True
25 flags.LAr.OFCShapeFolder=
"4samples3bins17phases"
26 flags.Input.Files=runArgs.inputBSFile
27 flags.LArShapeDump.outputNtup=
"CELLS"
28 flags.LArShapeDump.doSCReco=runArgs.doReco
29 flags.LArShapeDump.energyCut=runArgs.etCut
30 flags.LArShapeDump.energySCCut=runArgs.etCut2
33 flags.Trigger.triggerConfig =
'DB'
34 flags.Trigger.L1.doCTP=
True
35 flags.Trigger.L1.doMuon=
False
36 flags.Trigger.L1.doCalo=
False
37 flags.Trigger.L1.doTopo=
False
45 cfg=MainServicesCfg(flags)
46 from AthenaConfiguration.ComponentFactory
import CompFactory
47 cfg.addService(CompFactory.THistSvc(Output=[
"CELLS DATAFILE='"+runArgs.outputNTUP_LARCELLSFile+
"' OPT='RECREATE'",]))
49 from LArCafJobs.LArReadCellsConfig
import LArReadSCCfg
50 cfg.merge(LArReadSCCfg(flags))
52 from LArCafJobs.LArReadCellsConfig
import LArReadCellsCfg
53 cfg.merge(LArReadCellsCfg(flags))
55 processPostInclude(runArgs, flags, cfg)
56 processPostExec(runArgs, flags, cfg)
60 sys.exit(
not sc.isSuccess())