ATLAS Offline Software
Functions | Variables
python.runEgammaOnly Namespace Reference

Functions

def _run (args)
 

Variables

 statusCode = None
 
 parser = ArgumentParser("egammaOnly")
 
 default
 
 type
 
 help
 
 nargs
 
 args = parser.parse_args()
 

Function Documentation

◆ _run()

def python.runEgammaOnly._run (   args)
private

Definition at line 15 of file runEgammaOnly.py.

15 def _run(args):
16  from AthenaConfiguration.AllConfigFlags import initConfigFlags
17 
18  flags = initConfigFlags()
19 
20  flags.Exec.MaxEvents = args.maxEvents
21 
22  from AthenaConfiguration.TestDefaults import defaultTestFiles
23 
24  if not args.inputFileList:
25  flags.Input.Files = defaultTestFiles.RDO_RUN2
26  else:
27  flags.Input.Files = args.inputFileList
28 
29  from AthenaConfiguration.Enums import ProductionStep
30 
31  flags.Common.ProductionStep = ProductionStep.Reconstruction
32 
33  # output
34  flags.Output.AODFileName = args.outputAODFile
35 
36  # uncomment given something like export ATHENA_CORE_NUMBER=2
37  # flags.Concurrency.NumThreads = 2
38 
39  # Setup detector flags
40  from AthenaConfiguration.DetectorConfigFlags import setupDetectorFlags
41 
43  flags, None, use_metadata=True, toggle_geometry=True, keep_beampipe=True
44  )
45 
46  # egamma Only
47  from egammaConfig.ConfigurationHelpers import egammaOnlyFromRaw
48 
49  egammaOnlyFromRaw(flags)
50 
51  flags.lock()
52 
53  # Run central test of egammaSteeringConfig
54  from egammaConfig.egammaSteeringConfig import egammaSteeringConfigTest
55 
56  statusCode = egammaSteeringConfigTest(flags)
57 
58  return statusCode
59 
60 

Variable Documentation

◆ args

python.runEgammaOnly.args = parser.parse_args()

Definition at line 81 of file runEgammaOnly.py.

◆ default

python.runEgammaOnly.default

Definition at line 71 of file runEgammaOnly.py.

◆ help

python.runEgammaOnly.help

Definition at line 73 of file runEgammaOnly.py.

◆ nargs

python.runEgammaOnly.nargs

Definition at line 76 of file runEgammaOnly.py.

◆ parser

python.runEgammaOnly.parser = ArgumentParser("egammaOnly")

Definition at line 67 of file runEgammaOnly.py.

◆ statusCode

def python.runEgammaOnly.statusCode = None

Definition at line 62 of file runEgammaOnly.py.

◆ type

python.runEgammaOnly.type

Definition at line 72 of file runEgammaOnly.py.

python.egammaSteeringConfig.egammaSteeringConfigTest
def egammaSteeringConfigTest(flags=None)
Definition: egammaSteeringConfig.py:56
python.ConfigurationHelpers.egammaOnlyFromRaw
def egammaOnlyFromRaw(flags)
Definition: Reconstruction/egamma/egammaConfig/python/ConfigurationHelpers.py:3
python.DetectorConfigFlags.setupDetectorFlags
def setupDetectorFlags(flags, custom_list=None, use_metadata=False, toggle_geometry=False, validate_only=False, keep_beampipe=False)
Definition: DetectorConfigFlags.py:289
python.AllConfigFlags.initConfigFlags
def initConfigFlags()
Definition: AllConfigFlags.py:19
python.runEgammaOnly._run
def _run(args)
Definition: runEgammaOnly.py:15