ATLAS Offline Software
Loading...
Searching...
No Matches
module_driven_slicing.py File Reference

Go to the source code of this file.

Namespaces

namespace  module_driven_slicing

Functions

 module_driven_slicing.transformNodes (tree, func)
 module_driven_slicing.getHist (name, makehist)
 module_driven_slicing.parseKeyLayer (keystring)
 module_driven_slicing.getLayer (trk, hit_idx)
 module_driven_slicing.getRow (trk, hit_idx)
 module_driven_slicing.isKeyLayer (trk, hit_idx, key)
 module_driven_slicing.findKeyLayerMod (trk, key)
 module_driven_slicing.trackToModules (trk)
 module_driven_slicing.parseGeometry ()
 module_driven_slicing.divideKeyLayerModulesIntoSlices (eta_vals_for_key_layer)
 module_driven_slicing.getModuleToSliceMap (mod_slice_map)
 module_driven_slicing.trimSlice (slice_modules, slice_tracks)
 module_driven_slicing.writeRMap (slice_modules, sliceid2int)
 module_driven_slicing.printOccupancies (slice_modules)
 module_driven_slicing.plotSlices (sliceid2int, slice_modules)

Variables

 module_driven_slicing.parser = argparse.ArgumentParser(description='Flattens Wrapper Files')
 module_driven_slicing.metavar
 module_driven_slicing.type
 module_driven_slicing.str
 module_driven_slicing.nargs
 module_driven_slicing.help
 module_driven_slicing.action
 module_driven_slicing.default
 module_driven_slicing.args = parser.parse_args()
defaultdict module_driven_slicing.defaultdictlambda = lambda (defaultdictlambda)
list module_driven_slicing.dets = ["pixel","strip"]
list module_driven_slicing.regs = ["barrel","endcap"]
list module_driven_slicing.dirs = ["phi","eta"]
dict module_driven_slicing.int2det = {1:"pixel", 0:"strip"}
dict module_driven_slicing.det2int = {v:k for k,v in int2det.items()}
dict module_driven_slicing.int2reg = {0:"barrel", 2:"endcap"}
dict module_driven_slicing.reg2int = {v:k for k,v in int2reg.items()}
dict module_driven_slicing.striprows
dict module_driven_slicing.abcchipsperrow
int module_driven_slicing.stripsperabc = 128
 module_driven_slicing.stripsperrow = transformNodes(abcchipsperrow, lambda x: x * stripsperabc)
dict module_driven_slicing.rowbounds = {}
str module_driven_slicing.geom = "Unknown"
dict module_driven_slicing.layers = { "pixel": { "barrel":5, "endcap": 8 if geom=="ITK-22" else 8 }, "strip" : { "barrel":8, "endcap":12}}
dict module_driven_slicing.hists = {}
 module_driven_slicing.fileList = args.inname
 module_driven_slicing.Data = ROOT.TChain("ExtrapolationEngineTest")
 module_driven_slicing.num_entries = min(args.evts,Data.GetEntries())
 module_driven_slicing.t0 = time.clock()
 module_driven_slicing.key1 = parseKeyLayer(args.keylayer)
 module_driven_slicing.key2 = None
 module_driven_slicing.min_eta
 module_driven_slicing.max_eta
 module_driven_slicing.histfile = ROOT.TFile("test.root",'recreate')
 module_driven_slicing.eta_vals_for_key_layer = parseGeometry()
 module_driven_slicing.nslices = args.nslices
 module_driven_slicing.mod_slice_map = divideKeyLayerModulesIntoSlices(eta_vals_for_key_layer)
 module_driven_slicing.slice_modules
 module_driven_slicing.sliceid2int
 module_driven_slicing.slice_tracks