9 Python module to hold common flags to configure JobOptions.
11 From the python prompt:
12 >>> from AthenaCommon.AthenaCommonFlags import athenaCommonFlags
13 >>> print athenaCommonFlags.EvtMax()
14 >>> athenaCommonFlags.EvtMax = 50
15 >>> assert( athenaCommonFlags.EvtMax() == 50 )
16 >>> athenaCommonFlags.print_JobProperties('tree&value')
20__author__ =
"S.Binet, M.Gallas"
21__version__=
"$Revision: 1.11 $"
22__doc__ =
"AthenaCommonFlags"
24__all__ = [
"athenaCommonFlags" ]
29from AthenaCommon.JobProperties
import JobProperty, JobPropertyContainer
30from AthenaCommon.JobProperties
import jobproperties
36 """Number of events to process or generate"""
38 allowedTypes = [
'int']
42 """Number of events to skip when reading an input POOL file. This should
43 be given to the EventSelector service.
46 allowedTypes = [
'int']
50 """The list of input data files (if not empty override all the specific XYZInput) """
52 allowedTypes = [
'list']
59 from AthenaCommon
import AppMgr
60 if hasattr(AppMgr.ServiceMgr,
"EventSelector")
and hasattr(AppMgr.ServiceMgr.EventSelector,
"InputCollections"):
61 AppMgr.ServiceMgr.EventSelector.InputCollections = self.
StoredValue
66 """Allow an algorithm to ignore return error code from upstream algorithm
70 allowedTypes = [
'bool']
74 """ Set to True when running online
77 allowedTypes = [
'bool']
85 """Container for the common flags
92jobproperties.add_Container(AthenaCommonFlags)
97jobproperties.AthenaCommonFlags.add_JobProperty(EvtMax)
98jobproperties.AthenaCommonFlags.add_JobProperty(SkipEvents)
99jobproperties.AthenaCommonFlags.add_JobProperty(FilesInput )
100jobproperties.AthenaCommonFlags.add_JobProperty(AllowIgnoreConfigError)
101jobproperties.AthenaCommonFlags.add_JobProperty(isOnline)
110athenaCommonFlags = jobproperties.AthenaCommonFlags