ATLAS Offline Software
|
Public Member Functions | |
def | __init__ (self) |
def | athHash (self) |
def | __hash__ (self) |
def | __getattr__ (self, name) |
def | __setattr__ (self, name, value) |
def | __delattr__ (self, name) |
def | __getitem__ (self, name) |
def | __setitem__ (self, name, value) |
def | __delitem__ (self, name) |
def | __iter__ (self) |
def | asdict (self) |
def | addFlag (self, name, setDef, type=None, help=None) |
def | addFlagsCategory (self, path, generator, prefix=False) |
def | needFlagsCategory (self, name) |
def | loadAllDynamicFlags (self) |
def | hasCategory (self, name) |
def | hasFlag (self, name) |
def | __call__ (self, name) |
def | lock (self) |
def | locked (self) |
def | clone (self) |
def | cloneAndReplace (self, subsetToReplace, replacementSubset, keepOriginal=False) |
def | join (self, other, prefix='') |
def | dump (self, pattern=".*", evaluate=False, formatStr="{:40} : {}", maxLength=None) |
def | initAll (self) |
def | getArgumentParser (self, **kwargs) |
def | parser (self) |
def | args (self) |
def | fillFromString (self, flag_string) |
def | fillFromArgs (self, listOfArgs=None, parser=None) |
Static Public Attributes | |
print_context | |
Private Member Functions | |
def | _calculateHash (self) |
def | _renamed_map (self) |
def | _subflag_itr (self) |
def | _loadDynaFlags (self, name) |
def | _set (self, name, value) |
def | _get (self, name) |
def | _tryModify (self) |
Private Attributes | |
_flagdict | |
_locked | |
_dynaflags | |
_loaded | |
_categoryCache | |
_hash | |
_parser | |
_args | |
_renames | |
Static Private Attributes | |
list | _hashedFlags = [] |
Definition at line 219 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.__init__ | ( | self | ) |
Definition at line 226 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.__call__ | ( | self, | |
name | |||
) |
Definition at line 478 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.__delattr__ | ( | self, | |
name | |||
) |
Definition at line 289 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.__delitem__ | ( | self, | |
name | |||
) |
Definition at line 298 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.__getattr__ | ( | self, | |
name | |||
) |
Definition at line 257 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.__getitem__ | ( | self, | |
name | |||
) |
Definition at line 292 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.__hash__ | ( | self | ) |
Definition at line 244 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.__iter__ | ( | self | ) |
Definition at line 306 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.__setattr__ | ( | self, | |
name, | |||
value | |||
) |
Definition at line 281 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.__setitem__ | ( | self, | |
name, | |||
value | |||
) |
Definition at line 295 of file AthConfigFlags.py.
|
private |
Definition at line 247 of file AthConfigFlags.py.
|
private |
Definition at line 469 of file AthConfigFlags.py.
|
private |
loads the flags of the form "A.B.C" first attempting the path "A" then "A.B" and then "A.B.C"
Definition at line 401 of file AthConfigFlags.py.
|
private |
mapping from the old names to the new names This is the inverse of _renamed, which maps new names to old names Returns a list of the new names corresponding to the old names (since cloneAndReplace may or may not disable access to the old name, it is possible that an old name renames to multiple new names)
Definition at line 327 of file AthConfigFlags.py.
|
private |
Definition at line 460 of file AthConfigFlags.py.
|
private |
Subflag iterator for all flags This is used by the asdict() function.
Definition at line 354 of file AthConfigFlags.py.
|
private |
Definition at line 491 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.addFlag | ( | self, | |
name, | |||
setDef, | |||
type = None , |
|||
help = None |
|||
) |
Definition at line 375 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.addFlagsCategory | ( | self, | |
path, | |||
generator, | |||
prefix = False |
|||
) |
The path is the beginning of the flag name (e.g. "X" for flags generated with name "X.*"). The generator is a function that returns a flags container, the flags have to start with the same path. When the prefix is True the flags created by the generator are prefixed by "path". Supported calls are then: addFlagsCategory("A", g) - where g is function creating flags is f.addFlag("A.x", someValue) addFlagsCategory("A", g, True) - when flags are defined in g like this: f.addFalg("x", somevalue), The latter option allows to share one generator among flags that are later loaded in different paths.
Definition at line 382 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.args | ( | self | ) |
Definition at line 641 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.asdict | ( | self | ) |
Convert to a python dictionary This is identical to the `asdict` in FlagAddress, but for all the flags.
Definition at line 317 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.athHash | ( | self | ) |
Definition at line 237 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.clone | ( | self | ) |
Return an unlocked copy of self (dynamic flags are not loaded)
Definition at line 498 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.cloneAndReplace | ( | self, | |
subsetToReplace, | |||
replacementSubset, | |||
keepOriginal = False |
|||
) |
This is to replace subsets of configuration flags like Example: newflags = flags.cloneAndReplace('Muon', 'Trigger.Offline.Muon')
Definition at line 507 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.dump | ( | self, | |
pattern = ".*" , |
|||
evaluate = False , |
|||
formatStr = "{:40} : {}" , |
|||
maxLength = None |
|||
) |
Definition at line 579 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.fillFromArgs | ( | self, | |
listOfArgs = None , |
|||
parser = None |
|||
) |
Used to set flags from command-line parameters, like flags.fillFromArgs(sys.argv[1:])
Definition at line 686 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.fillFromString | ( | self, | |
flag_string | |||
) |
Fill the flags from a string of type key=value
Definition at line 645 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.getArgumentParser | ( | self, | |
** | kwargs | ||
) |
Scripts calling AthConfigFlags.fillFromArgs can extend this parser, and pass their version to fillFromArgs
Definition at line 626 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.hasCategory | ( | self, | |
name | |||
) |
Definition at line 434 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.hasFlag | ( | self, | |
name | |||
) |
Definition at line 457 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.initAll | ( | self | ) |
Mostly a self-test method
Definition at line 617 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.join | ( | self, | |
other, | |||
prefix = '' |
|||
) |
Merges two flag containers When the prefix is passed each flag from the "other" is prefixed by "prefix."
Definition at line 558 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.loadAllDynamicFlags | ( | self | ) |
Force load all the dynamic flags
Definition at line 427 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.lock | ( | self | ) |
Definition at line 481 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.locked | ( | self | ) |
Definition at line 488 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.needFlagsCategory | ( | self, | |
name | |||
) |
public interface for _loadDynaFlags
Definition at line 397 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.parser | ( | self | ) |
Definition at line 637 of file AthConfigFlags.py.
|
private |
Definition at line 234 of file AthConfigFlags.py.
|
private |
Definition at line 231 of file AthConfigFlags.py.
|
private |
Definition at line 229 of file AthConfigFlags.py.
|
private |
Definition at line 227 of file AthConfigFlags.py.
|
private |
Definition at line 232 of file AthConfigFlags.py.
|
staticprivate |
Definition at line 224 of file AthConfigFlags.py.
|
private |
Definition at line 230 of file AthConfigFlags.py.
|
private |
Definition at line 228 of file AthConfigFlags.py.
|
private |
Definition at line 233 of file AthConfigFlags.py.
|
private |
Definition at line 235 of file AthConfigFlags.py.
|
static |
Definition at line 477 of file AthConfigFlags.py.