Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Functions
LArShapeDumperSkeleton Namespace Reference

Functions

def fromRunArgs (runArgs)
 

Function Documentation

◆ fromRunArgs()

def LArShapeDumperSkeleton.fromRunArgs (   runArgs)

Definition at line 11 of file LArShapeDumperSkeleton.py.

11 def fromRunArgs(runArgs):
12  from AthenaConfiguration.AllConfigFlags import initConfigFlags
13 
14  flags=initConfigFlags()
15  from LArCafJobs.LArShapeDumperFlags import addShapeDumpFlags
16  addShapeDumpFlags(flags)
17 
18  commonRunArgsToFlags(runArgs, flags)
19 
20  processPreInclude(runArgs, flags)
21  processPreExec(runArgs, flags)
22 
23  from AthenaConfiguration.TestDefaults import defaultGeometryTags
24  flags.GeoModel.AtlasVersion = defaultGeometryTags.RUN3
25  flags.LAr.ROD.forceIter=True
26  flags.LAr.OFCShapeFolder="4samples3bins17phases"
27  flags.Input.Files=runArgs.inputBSFile
28  flags.LArShapeDump.outputNtup=runArgs.outputNTUP_SAMPLESMONFile
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  if hasattr(runArgs,"outputNTUP_HECNOISEFile"):
38  flags.LArShapeDump.HECNoiseNtup=runArgs.outputNTUP_HECNOISEFile
39 
40  flags.LArShapeDump.digitsKeySC = "SC_ADC_BAS" if runArgs.doSC else ""
41 
42  # To respect --athenaopts
43  flags.fillFromArgs()
44 
45  flags.lock()
46 
47  cfg=MainServicesCfg(flags)
48  cfg.merge(LArShapeDumperCfg(flags))
49 
50  processPostInclude(runArgs, flags, cfg)
51  processPostExec(runArgs, flags, cfg)
52 
53  # Run the final accumulator
54  sc = cfg.run()
55  sys.exit(not sc.isSuccess())
LArShapeDumperFlags.addShapeDumpFlags
def addShapeDumpFlags(flags)
Definition: LArShapeDumperFlags.py:5
python.TransformUtils.processPreExec
def processPreExec(runArgs, flags)
Definition: Tools/PyJobTransforms/python/TransformUtils.py:41
python.TransformUtils.processPostExec
def processPostExec(runArgs, flags, cfg)
Definition: Tools/PyJobTransforms/python/TransformUtils.py:50
python.TransformUtils.processPostInclude
def processPostInclude(runArgs, flags, cfg)
Definition: Tools/PyJobTransforms/python/TransformUtils.py:69
python.TransformUtils.processPreInclude
def processPreInclude(runArgs, flags)
Definition: Tools/PyJobTransforms/python/TransformUtils.py:62
LArShapeDumperSkeleton.fromRunArgs
def fromRunArgs(runArgs)
Definition: LArShapeDumperSkeleton.py:11
python.MainServicesConfig.MainServicesCfg
def MainServicesCfg(flags, LoopMgr='AthenaEventLoopMgr')
Definition: MainServicesConfig.py:260
python.CommonRunArgsToFlags.commonRunArgsToFlags
def commonRunArgsToFlags(runArgs, configFlags)
Definition: CommonRunArgsToFlags.py:12
LArShapeDumperConfig.LArShapeDumperCfg
def LArShapeDumperCfg(flags)
Definition: LArShapeDumperConfig.py:6
python.AllConfigFlags.initConfigFlags
def initConfigFlags()
Definition: AllConfigFlags.py:19