ATLAS Offline Software
Functions | Variables
python.RDOtoRDO_TRIG_Skeleton Namespace Reference

Functions

def configureFlags (runArgs)
 
def fromRunArgs (runArgs)
 

Variables

 log = logging.getLogger('RDOtoRDO_TRIG')
 
 jobPropertiesDisallowed
 

Function Documentation

◆ configureFlags()

def python.RDOtoRDO_TRIG_Skeleton.configureFlags (   runArgs)

Definition at line 15 of file RDOtoRDO_TRIG_Skeleton.py.

15 def configureFlags(runArgs):
16  # some basic settings here...
17  from AthenaConfiguration.AllConfigFlags import initConfigFlags
18  flags = initConfigFlags()
19  from PyJobTransforms.CommonRunArgsToFlags import commonRunArgsToFlags
20  commonRunArgsToFlags(runArgs, flags)
21 
22  # Set standard flags for HLT jobs
23  runHLT.set_flags(flags)
24 
25  # Input
26  if hasattr(runArgs, 'inputRDOFile'):
27  flags.Input.Files = runArgs.inputRDOFile
28 
29  # Output
30  if hasattr(runArgs, 'outputRDO_TRIGFile'):
31  flags.Output.RDOFileName = runArgs.outputRDO_TRIGFile
32  log.info("---------- Configured RDO_TRIG output")
33 
34  from RecJobTransforms.RecoConfigFlags import recoRunArgsToFlags
35  recoRunArgsToFlags(runArgs, flags)
36 
37  from AthenaConfiguration.Enums import ProductionStep
38  flags.Common.ProductionStep=ProductionStep.Reconstruction
39 
40  # Setup perfmon flags from runargs
41  from PerfMonComps.PerfMonConfigHelpers import setPerfmonFlagsFromRunArgs
42  setPerfmonFlagsFromRunArgs(flags, runArgs)
43 
44  # process pre-include/exec
45  processPreInclude(runArgs, flags)
46  processPreExec(runArgs, flags)
47 
48  # To respect --athenaopts
49  flags.fillFromArgs()
50 
51  # Lock flags
52  flags.lock()
53 
54  return flags
55 
56 
57 

◆ fromRunArgs()

def python.RDOtoRDO_TRIG_Skeleton.fromRunArgs (   runArgs)

Definition at line 58 of file RDOtoRDO_TRIG_Skeleton.py.

58 def fromRunArgs(runArgs):
59 
60  import time
61  timeStart = time.time()
62 
63  flags = configureFlags(runArgs)
64 
65  from AthenaConfiguration.MainServicesConfig import MainServicesCfg
66  cfg = MainServicesCfg(flags)
67  from AthenaPoolCnvSvc.PoolReadConfig import PoolReadCfg
68  cfg.merge(PoolReadCfg(flags))
69  cfg.merge( runHLT.runHLTCfg(flags) )
70  cfg.merge( PerfMonMTSvcCfg(flags) )
71 
72  # Post-include
73  processPostInclude(runArgs, flags, cfg)
74 
75  # Post-exec
76  processPostExec(runArgs, flags, cfg)
77 
78  from AthenaCommon.Constants import INFO
79  if flags.Exec.OutputLevel <= INFO:
80  cfg.printConfig()
81 
82  # Run the final accumulator
83  sc = cfg.run()
84  timeFinal = time.time()
85  log.info("Run RDOtoRDO_TRIG_skeleton in %d seconds", timeFinal - timeStart)
86 
87  import sys
88  sys.exit(sc.isFailure())

Variable Documentation

◆ jobPropertiesDisallowed

python.RDOtoRDO_TRIG_Skeleton.jobPropertiesDisallowed

Definition at line 12 of file RDOtoRDO_TRIG_Skeleton.py.

◆ log

python.RDOtoRDO_TRIG_Skeleton.log = logging.getLogger('RDOtoRDO_TRIG')

Definition at line 8 of file RDOtoRDO_TRIG_Skeleton.py.

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.RecoConfigFlags.recoRunArgsToFlags
def recoRunArgsToFlags(runArgs, flags)
Definition: RecoConfigFlags.py:196
python.TransformUtils.processPreInclude
def processPreInclude(runArgs, flags)
Definition: Tools/PyJobTransforms/python/TransformUtils.py:62
python.PerfMonCompsConfig.PerfMonMTSvcCfg
def PerfMonMTSvcCfg(flags, **kwargs)
A minimal new-style configuration for PerfMonMTSvc.
Definition: PerfMonCompsConfig.py:10
python.RDOtoRDO_TRIG_Skeleton.fromRunArgs
def fromRunArgs(runArgs)
Definition: RDOtoRDO_TRIG_Skeleton.py:58
python.PerfMonConfigHelpers.setPerfmonFlagsFromRunArgs
def setPerfmonFlagsFromRunArgs(flags, runArgs)
Definition: PerfMonConfigHelpers.py:3
python.MainServicesConfig.MainServicesCfg
def MainServicesCfg(flags, LoopMgr='AthenaEventLoopMgr')
Definition: MainServicesConfig.py:260
Constants
some useful constants -------------------------------------------------—
python.CommonRunArgsToFlags.commonRunArgsToFlags
def commonRunArgsToFlags(runArgs, configFlags)
Definition: CommonRunArgsToFlags.py:12
python.AllConfigFlags.initConfigFlags
def initConfigFlags()
Definition: AllConfigFlags.py:19
python.PoolReadConfig.PoolReadCfg
def PoolReadCfg(flags)
Definition: PoolReadConfig.py:69
python.RDOtoRDO_TRIG_Skeleton.configureFlags
def configureFlags(runArgs)
Definition: RDOtoRDO_TRIG_Skeleton.py:15