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 flags.LArShapeDump.energyCut=runArgs.etCut
30 flags.LArShapeDump.energySCCut=runArgs.etCut2
31
32 #protection for LArPEB event:
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
38
39
40 # To respect --athenaopts
41 flags.fillFromArgs()
42
43 flags.lock()
44
45 cfg=MainServicesCfg(flags)
46 from AthenaConfiguration.ComponentFactory import CompFactory
47 cfg.addService(CompFactory.THistSvc(Output=["CELLS DATAFILE='"+runArgs.outputNTUP_LARCELLSFile+"' OPT='RECREATE'",]))
48 if runArgs.isSC:
49 from LArCafJobs.LArReadCellsConfig import LArReadSCCfg
50 cfg.merge(LArReadSCCfg(flags))
51 else:
52 from LArCafJobs.LArReadCellsConfig import LArReadCellsCfg
53 cfg.merge(LArReadCellsCfg(flags))
54
55 processPostInclude(runArgs, flags, cfg)
56 processPostExec(runArgs, flags, cfg)
57
58 # Run the final accumulator
59 sc = cfg.run()
60 sys.exit(not sc.isSuccess())