ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
python.FakeAthena.FakeAppMgr Class Reference
Inheritance diagram for python.FakeAthena.FakeAppMgr:
Collaboration diagram for python.FakeAthena.FakeAppMgr:

Public Member Functions

def __init__ (self, outputLevel=3, jobOptions=None)
 
def __getattr__ (self, name)
 
def __str__ (self)
 
def exeJobOptions (self, filename, env)
 
def setup (self, value=NO_EVSEL)
 
def run (self, nEvents=None)
 
def propertyDict (self, type)
 
def serviceDict (self)
 
def algorithmDict (self)
 
def property (self, name, type)
 
def service (self, name)
 
def algorithm (self, name)
 

Private Attributes

 _nEvents
 

Detailed Description

Definition at line 93 of file FakeAthena.py.

Constructor & Destructor Documentation

◆ __init__()

def python.FakeAthena.FakeAppMgr.__init__ (   self,
  outputLevel = 3,
  jobOptions = None 
)

Definition at line 94 of file FakeAthena.py.

94  def __init__(self, outputLevel = 3, jobOptions = None ):
95  TransformLogger.__init__(self,"FakeAppMgr")
96  self.__dict__['_setupValue'] = None
97  self.__dict__['_nEvents'] = 0
98  self.__dict__['_propertyRepository'] = {}
99 

Member Function Documentation

◆ __getattr__()

def python.FakeAthena.FakeAppMgr.__getattr__ (   self,
  name 
)

Definition at line 100 of file FakeAthena.py.

100  def __getattr__(self,name):
101  try:
102  return object.__getattr__(self,name)
103  except AttributeError:
104  # catch += when member does not exist yet (only for lists)
105  self.__dict__[name] = []
106  return self.__dict__[name]
107 

◆ __str__()

def python.FakeAthena.FakeAppMgr.__str__ (   self)

Definition at line 108 of file FakeAthena.py.

108  def __str__(self):
109  me = []
110  for n,v in self.__dict__.items():
111  if not n.startswith('_') and not callable(v): me += [ "theApp.%s = %s" % (n,v) ]
112  me += [ 'theApp.Algorithms = %s' % self.algorithmDict().keys() ,
113  'theApp.Services = %s' % self.serviceDict().keys() ]
114  return os.linesep.join(me)
115 

◆ algorithm()

def python.FakeAthena.FakeAppMgr.algorithm (   self,
  name 
)

Definition at line 162 of file FakeAthena.py.

162  def algorithm(self,name):
163  return self.property(name,"Algorithm")
164 
165 

◆ algorithmDict()

def python.FakeAthena.FakeAppMgr.algorithmDict (   self)

Definition at line 148 of file FakeAthena.py.

148  def algorithmDict(self):
149  return self.propertyDict('Algorithm')
150 

◆ exeJobOptions()

def python.FakeAthena.FakeAppMgr.exeJobOptions (   self,
  filename,
  env 
)
Execute jobOptions file <filename> in environment <env>

Definition at line 116 of file FakeAthena.py.

116  def exeJobOptions( self, filename, env ):
117  """Execute jobOptions file <filename> in environment <env>"""
118  # prepare environment
119  env[ 'include' ] = include
120  supplementEnv( env )
121  include.env = env
122  include( filename )
123  cleanUpEnv( env )
124 

◆ property()

def python.FakeAthena.FakeAppMgr.property (   self,
  name,
  type 
)

Definition at line 151 of file FakeAthena.py.

151  def property(self,name,type):
152  l = self.propertyDict(type)
153  p = l.get(name)
154  if p is None:
155  p = FakeProperty(name,type)
156  l[name] = p
157  return p
158 

◆ propertyDict()

def python.FakeAthena.FakeAppMgr.propertyDict (   self,
  type 
)

Definition at line 138 of file FakeAthena.py.

138  def propertyDict(self,type):
139  l = self._propertyRepository.get(type)
140  if not l:
141  l = {}
142  self._propertyRepository[type] = l
143  return l
144 

◆ run()

def python.FakeAthena.FakeAppMgr.run (   self,
  nEvents = None 
)

Definition at line 135 of file FakeAthena.py.

135  def run(self,nEvents=None):
136  self._nEvents = nEvents
137 

◆ service()

def python.FakeAthena.FakeAppMgr.service (   self,
  name 
)

Definition at line 159 of file FakeAthena.py.

159  def service(self,name):
160  return self.property(name,"Service")
161 

◆ serviceDict()

def python.FakeAthena.FakeAppMgr.serviceDict (   self)

Definition at line 145 of file FakeAthena.py.

145  def serviceDict(self):
146  return self.propertyDict('Service')
147 

◆ setup()

def python.FakeAthena.FakeAppMgr.setup (   self,
  value = NO_EVSEL 
)

Definition at line 125 of file FakeAthena.py.

125  def setup(self,value=NO_EVSEL):
126  if value == NO_EVSEL:
127  self.logger().error( "use of theApp.setup( NO_EVSEL ) is deprecated" )
128  self.logger().error( "use 'theApp.EvtSel = \"NONE\"' instead" )
129  elif value == MONTECARLO:
130  self.logger().error( "use of theApp.setup( MONTECARLO ) is deprecated" )
131  self.logger().error( "use 'include( \"AthenaCommon/Atlas_Gen.UnixStandardJob.py\" )' instead" )
132  else:
133  self.__dict__['_setupValue'] = value
134 

Member Data Documentation

◆ _nEvents

python.FakeAthena.FakeAppMgr._nEvents
private

Definition at line 136 of file FakeAthena.py.


The documentation for this class was generated from the following file:
algorithm
std::string algorithm
Definition: hcg.cxx:82
run
int run(int argc, char *argv[])
Definition: ttree2hdf5.cxx:28
python.FakeAthena.include
def include(filename)
Definition: FakeAthena.py:44
TrigJetMonitorAlgorithm.items
items
Definition: TrigJetMonitorAlgorithm.py:79
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18
python.FakeAthena.supplementEnv
def supplementEnv(envDict)
Definition: FakeAthena.py:19
python.FakeAthena.cleanUpEnv
def cleanUpEnv(envDict)
Definition: FakeAthena.py:13
get
T * get(TKey *tobj)
get a TObject* from a TKey* (why can't a TObject be a TKey?)
Definition: hcg.cxx:127
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:790
python.setup
def setup()
Definition: Control/Hephaestus/python/__init__.py:9
error
Definition: IImpactPoint3dEstimator.h:70