ATLAS Offline Software
Loading...
Searching...
No Matches
LArReadCellsSkeleton Namespace Reference

Functions

 fromRunArgs (runArgs)

Function Documentation

◆ fromRunArgs()

LArReadCellsSkeleton.fromRunArgs ( runArgs)

Definition at line 10 of file LArReadCellsSkeleton.py.

10def fromRunArgs(runArgs):
11 from AthenaConfiguration.AllConfigFlags import initConfigFlags
12 flags=initConfigFlags()
13
14 from LArCafJobs.LArShapeDumperFlags import addShapeDumpFlags
15 addShapeDumpFlags(flags)
16
17 commonRunArgsToFlags(runArgs, flags)
18
19 processPreInclude(runArgs, flags)
20 processPreExec(runArgs, flags)
21
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
30 #protection for LArPEB event:
31 flags.Trigger.triggerConfig = 'DB'
32 flags.Trigger.L1.doCTP=True
33 flags.Trigger.L1.doMuon=False
34 flags.Trigger.L1.doCalo=False
35 flags.Trigger.L1.doTopo=False
36
37
38 # To respect --athenaopts
39 flags.fillFromArgs()
40
41 flags.lock()
42
43 cfg=MainServicesCfg(flags)
44 from AthenaConfiguration.ComponentFactory import CompFactory
45 cfg.addService(CompFactory.THistSvc(Output=["CELLS DATAFILE='"+runArgs.outputNTUP_LARCELLSFile+"' OPT='RECREATE'",]))
46 if runArgs.isSC:
47 from LArCafJobs.LArReadCellsConfig import LArReadSCCfg
48 cfg.merge(LArReadSCCfg(flags))
49 else:
50 from LArCafJobs.LArReadCellsConfig import LArReadCellsCfg
51 cfg.merge(LArReadCellsCfg(flags))
52
53 processPostInclude(runArgs, flags, cfg)
54 processPostExec(runArgs, flags, cfg)
55
56 # Run the final accumulator
57 sc = cfg.run()
58 sys.exit(not sc.isSuccess())