ATLAS Offline Software
Classes | Public Member Functions | Static Public Attributes | Static Private Attributes | List of all members
python.GlobalFlags.GlobalFlags Class Reference

OLD code that will be completely replaced by globalflags based on JobProperties. More...

Collaboration diagram for python.GlobalFlags.GlobalFlags:

Classes

class  _TmpC
 
class  DataSource
 
class  DetGeo
 
class  InputFormat
 
class  Luminosity
 

Public Member Functions

def Print (cls)
 

Static Public Attributes

 Print = classmethod(Print)
 

Static Private Attributes

string _flagPrefix = '_flag_'
 
list _classObjList = [DetGeo,DataSource,InputFormat,Luminosity]
 
 _tmpC
 
 _setMethod = _attr.replace(_flagPrefix,'set_')
 
 _isMethod = _attr.replace(_flagPrefix,'is_')
 

Detailed Description

OLD code that will be completely replaced by globalflags based on JobProperties.

GlobalFlags : Author Tadashi Maeno, David Rousseau This is class for main jobs configuration flags

Category : DetGeo has states : atlas ctbh6 ctbh8 (ctbh6 and ctbh8 grouped in ctb) Category : DataSource has states : data geant3 geant4 Category : InputFormat has states : zebra pool bytestream

Each category can be set once and only once by the main topOptions. states are mutually exclusive

from RecExCommon.GlobalFlags import GlobalFlags GlobalFlags.DetGeo.set_atlas() # set DetGeo to be atlas (trying to set again the same category will throw an error)

state can be interrogated as follows (by construction, one category is only in one state. Testing a category that has not been set throws an error): if GlobalFlags.DetGeo.is_atlas():

Groupings canbe used to interrogate (no set methods available): if GlobalFlags.DetGeo.is_ctb(): (or of is_ctbh6() and is_ctbh8())

Definition at line 186 of file GlobalFlags.py.

Member Function Documentation

◆ Print()

def python.GlobalFlags.GlobalFlags.Print (   cls)

Definition at line 279 of file GlobalFlags.py.

279  def Print (cls):
280  format = "%12s : %s"
281  for classObj in cls._classObjList:
282  flagName = '----'
283  for attr in dir(classObj):
284  # look for flag member
285  if 0 == attr.find(cls._flagPrefix):
286  # test if this flag on
287  if classObj.__dict__[attr]:
288  flagName = attr.replace(cls._flagPrefix,'')
289  print (format % (classObj.__name__, flagName))
290 

Member Data Documentation

◆ _classObjList

list python.GlobalFlags.GlobalFlags._classObjList = [DetGeo,DataSource,InputFormat,Luminosity]
staticprivate

Definition at line 241 of file GlobalFlags.py.

◆ _flagPrefix

string python.GlobalFlags.GlobalFlags._flagPrefix = '_flag_'
staticprivate

Definition at line 189 of file GlobalFlags.py.

◆ _isMethod

python.GlobalFlags.GlobalFlags._isMethod = _attr.replace(_flagPrefix,'is_')
staticprivate

Definition at line 275 of file GlobalFlags.py.

◆ _setMethod

python.GlobalFlags.GlobalFlags._setMethod = _attr.replace(_flagPrefix,'set_')
staticprivate

Definition at line 273 of file GlobalFlags.py.

◆ _tmpC

python.GlobalFlags.GlobalFlags._tmpC
staticprivate

Definition at line 271 of file GlobalFlags.py.

◆ Print

python.GlobalFlags.GlobalFlags.Print = classmethod(Print)
static

Definition at line 292 of file GlobalFlags.py.


The documentation for this class was generated from the following file:
beamspotman.dir
string dir
Definition: beamspotman.py:623
dqm_persistency::Print
void Print(const PParameter *param, TDirectory *topdir, Option_t *opt="")
Definition: dqm_persistency_impl.cxx:161