ATLAS Offline Software
Loading...
Searching...
No Matches
module_driven_slicing Namespace Reference

Functions

 transformNodes (tree, func)

Variables

 parser = argparse.ArgumentParser(description='Flattens Wrapper Files')
 metavar
 type
 str
 nargs
 help
 action
 default
 args = parser.parse_args()
defaultdict defaultdictlambda = lambda (defaultdictlambda)
list dets = ["pixel","strip"]
list regs = ["barrel","endcap"]
list dirs = ["phi","eta"]
dict int2det = {1:"pixel", 0:"strip"}
dict det2int = {v:k for k,v in int2det.items()}
dict int2reg = {0:"barrel", 2:"endcap"}
dict reg2int = {v:k for k,v in int2reg.items()}
dict striprows

Function Documentation

◆ transformNodes()

module_driven_slicing.transformNodes ( tree,
func )

Definition at line 47 of file module_driven_slicing.py.

47def transformNodes(tree,func):
48 retv={}
49 for key,val in tree.items():
50 if 'dict' in type(val).__name__:
51 retv[key]=transformNodes(val,func)
52 else:
53 if 'list' in type(val).__name__:
54 retv[key]=[func(subval) for subval in val]
55 else:
56 retv[key]=func(val)
57 return retv
58
59
60#----------------------------------------------------------------------
61# Constants
62#----------------------------------------------------------------------

Variable Documentation

◆ action

module_driven_slicing.action

Definition at line 9 of file module_driven_slicing.py.

◆ args

module_driven_slicing.args = parser.parse_args()

Definition at line 26 of file module_driven_slicing.py.

◆ default

module_driven_slicing.default

Definition at line 10 of file module_driven_slicing.py.

◆ defaultdictlambda

defaultdict module_driven_slicing.defaultdictlambda = lambda (defaultdictlambda)

Definition at line 45 of file module_driven_slicing.py.

◆ det2int

dict module_driven_slicing.det2int = {v:k for k,v in int2det.items()}

Definition at line 68 of file module_driven_slicing.py.

◆ dets

list module_driven_slicing.dets = ["pixel","strip"]

Definition at line 63 of file module_driven_slicing.py.

◆ dirs

list module_driven_slicing.dirs = ["phi","eta"]

Definition at line 65 of file module_driven_slicing.py.

◆ help

module_driven_slicing.help

Definition at line 8 of file module_driven_slicing.py.

◆ int2det

dict module_driven_slicing.int2det = {1:"pixel", 0:"strip"}

Definition at line 67 of file module_driven_slicing.py.

◆ int2reg

dict module_driven_slicing.int2reg = {0:"barrel", 2:"endcap"}

Definition at line 69 of file module_driven_slicing.py.

◆ metavar

module_driven_slicing.metavar

Definition at line 7 of file module_driven_slicing.py.

◆ nargs

module_driven_slicing.nargs

Definition at line 7 of file module_driven_slicing.py.

◆ parser

module_driven_slicing.parser = argparse.ArgumentParser(description='Flattens Wrapper Files')

Definition at line 6 of file module_driven_slicing.py.

◆ reg2int

dict module_driven_slicing.reg2int = {v:k for k,v in int2reg.items()}

Definition at line 70 of file module_driven_slicing.py.

◆ regs

list module_driven_slicing.regs = ["barrel","endcap"]

Definition at line 64 of file module_driven_slicing.py.

◆ str

module_driven_slicing.str

Definition at line 7 of file module_driven_slicing.py.

◆ striprows

dict module_driven_slicing.striprows
Initial value:
1= { 'barrel' : {0:[None]+[4]*14,
2 1:[None]+[4]*14,
3 2:[None]+[4]*14,
4 3:[None]+[4]*14,
5 4:[None]+[2]*14,
6 5:[None]+[2]*14,
7 6:[None]+[2]*14,
8 7:[None]+[2]*14},
9 'endcap' : {i:[4,4,2,4,2,2] for i in range(12)}
10}

Definition at line 74 of file module_driven_slicing.py.

◆ type

module_driven_slicing.type

Definition at line 7 of file module_driven_slicing.py.