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

Variables

 parser = argparse.ArgumentParser(description='Flattens Wrapper Files')
 metavar
 type
 help
 args = parser.parse_args()
 phi_pb
 phi_pe
 phi_sb
 phi_se
 eta_pb
 eta_pe
 eta_sb
 eta_se
 printPB
 printPE
 printSB
 printSE
 rmap = open('alleta_allphi_kl_strip2_ATLAS-P2-ITK-23-00-01.rmap', 'w')
 f = ROOT.TFile.Open(args.inname)
 Data = f.Get("ExtrapolationEngineTest")
 t0 = time.clock()
dict hits = {}
 num_entries = Data.GetEntries()
 counter = counter + len(trk.SensitivePosX)
 events = events + 1
 perc = 100 * float(events)/float(num_entries)
int hit_idx = 0
int layer = 2*trk.SensitiveLayerDisc[hit_idx]+trk.SensitiveSide[hit_idx]
 t1 = time.clock()
 t2 = time.clock()
dict kl = {k:v for (k,v) in hits.items() if hits[k]['geom'] == 0 if hits[k]['ec'] == 0 if hits[k]['layer'] == 2}
 max_z = max(int(l['z']) for l in kl.values())
 min_z = min(int(l['z']) for l in kl.values())
 slices = np.linspace(min_z,max_z, 7)
list sliceDicts = [dict() for x in range(6)]
dict s = {}
int dic_idx = 0
bool fillHits = False
 isPix = trk.SensitiveIsPixel[hit]
 bEC = trk.SensitiveBarrelEndcap[hit]
 z = trk.SensitivePosZ[hit]
 strip = trk.SensitivePhiIndex[hit]
int row = 0
 t3 = time.clock()
dict pb = {k:v for (k,v) in s.items() if s[k]['geom'] == 1 if s[k]['ec'] == 0}
dict pe = {k:v for (k,v) in s.items() if s[k]['geom'] == 1 if s[k]['ec'] != 0}
dict sb = {k:v for (k,v) in s.items() if s[k]['geom'] == 0 if s[k]['ec'] == 0}
dict se = {k:v for (k,v) in s.items() if s[k]['geom'] == 0 if s[k]['ec'] != 0}
int pbmax = max(int(l['layer']) for l in pb.values()) + 1
int pemax = max(int(l['layer']) for l in pe.values()) + 1
int sbmax = max(int(l['layer']) for l in sb.values()) + 1
int semax = max(int(l['layer']) for l in se.values()) + 1

Variable Documentation

◆ args

keylayer_zslicemap.args = parser.parse_args()

Definition at line 25 of file keylayer_zslicemap.py.

◆ bEC

keylayer_zslicemap.bEC = trk.SensitiveBarrelEndcap[hit]

Definition at line 128 of file keylayer_zslicemap.py.

◆ counter

keylayer_zslicemap.counter = counter + len(trk.SensitivePosX)

Definition at line 62 of file keylayer_zslicemap.py.

◆ Data

keylayer_zslicemap.Data = f.Get("ExtrapolationEngineTest")

Definition at line 48 of file keylayer_zslicemap.py.

◆ dic_idx

int keylayer_zslicemap.dic_idx = 0

Definition at line 122 of file keylayer_zslicemap.py.

◆ eta_pb

keylayer_zslicemap.eta_pb

Definition at line 29 of file keylayer_zslicemap.py.

◆ eta_pe

keylayer_zslicemap.eta_pe

Definition at line 29 of file keylayer_zslicemap.py.

◆ eta_sb

keylayer_zslicemap.eta_sb

Definition at line 29 of file keylayer_zslicemap.py.

◆ eta_se

keylayer_zslicemap.eta_se

Definition at line 29 of file keylayer_zslicemap.py.

◆ events

int keylayer_zslicemap.events = events + 1

Definition at line 62 of file keylayer_zslicemap.py.

◆ f

keylayer_zslicemap.f = ROOT.TFile.Open(args.inname)

Definition at line 47 of file keylayer_zslicemap.py.

◆ fillHits

bool keylayer_zslicemap.fillHits = False

Definition at line 124 of file keylayer_zslicemap.py.

◆ help

keylayer_zslicemap.help

Definition at line 24 of file keylayer_zslicemap.py.

◆ hit_idx

int keylayer_zslicemap.hit_idx = 0

Definition at line 65 of file keylayer_zslicemap.py.

◆ hits

dict keylayer_zslicemap.hits = {}

Definition at line 60 of file keylayer_zslicemap.py.

◆ isPix

keylayer_zslicemap.isPix = trk.SensitiveIsPixel[hit]

Definition at line 127 of file keylayer_zslicemap.py.

◆ kl

dict keylayer_zslicemap.kl = {k:v for (k,v) in hits.items() if hits[k]['geom'] == 0 if hits[k]['ec'] == 0 if hits[k]['layer'] == 2}

Definition at line 109 of file keylayer_zslicemap.py.

◆ layer

int keylayer_zslicemap.layer = 2*trk.SensitiveLayerDisc[hit_idx]+trk.SensitiveSide[hit_idx]

Definition at line 71 of file keylayer_zslicemap.py.

◆ max_z

keylayer_zslicemap.max_z = max(int(l['z']) for l in kl.values())

Definition at line 110 of file keylayer_zslicemap.py.

◆ metavar

keylayer_zslicemap.metavar

Definition at line 23 of file keylayer_zslicemap.py.

◆ min_z

keylayer_zslicemap.min_z = min(int(l['z']) for l in kl.values())

Definition at line 111 of file keylayer_zslicemap.py.

◆ num_entries

keylayer_zslicemap.num_entries = Data.GetEntries()

Definition at line 61 of file keylayer_zslicemap.py.

◆ parser

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

Definition at line 22 of file keylayer_zslicemap.py.

◆ pb

dict keylayer_zslicemap.pb = {k:v for (k,v) in s.items() if s[k]['geom'] == 1 if s[k]['ec'] == 0}

Definition at line 188 of file keylayer_zslicemap.py.

◆ pbmax

int keylayer_zslicemap.pbmax = max(int(l['layer']) for l in pb.values()) + 1

Definition at line 197 of file keylayer_zslicemap.py.

◆ pe

dict keylayer_zslicemap.pe = {k:v for (k,v) in s.items() if s[k]['geom'] == 1 if s[k]['ec'] != 0}

Definition at line 190 of file keylayer_zslicemap.py.

◆ pemax

int keylayer_zslicemap.pemax = max(int(l['layer']) for l in pe.values()) + 1

Definition at line 202 of file keylayer_zslicemap.py.

◆ perc

int keylayer_zslicemap.perc = 100 * float(events)/float(num_entries)

Definition at line 62 of file keylayer_zslicemap.py.

◆ phi_pb

keylayer_zslicemap.phi_pb

Definition at line 28 of file keylayer_zslicemap.py.

◆ phi_pe

keylayer_zslicemap.phi_pe

Definition at line 28 of file keylayer_zslicemap.py.

◆ phi_sb

keylayer_zslicemap.phi_sb

Definition at line 28 of file keylayer_zslicemap.py.

◆ phi_se

keylayer_zslicemap.phi_se

Definition at line 28 of file keylayer_zslicemap.py.

◆ printPB

keylayer_zslicemap.printPB

Definition at line 30 of file keylayer_zslicemap.py.

◆ printPE

keylayer_zslicemap.printPE

Definition at line 30 of file keylayer_zslicemap.py.

◆ printSB

keylayer_zslicemap.printSB

Definition at line 30 of file keylayer_zslicemap.py.

◆ printSE

keylayer_zslicemap.printSE

Definition at line 30 of file keylayer_zslicemap.py.

◆ rmap

keylayer_zslicemap.rmap = open('alleta_allphi_kl_strip2_ATLAS-P2-ITK-23-00-01.rmap', 'w')

Definition at line 33 of file keylayer_zslicemap.py.

◆ row

int keylayer_zslicemap.row = 0

Definition at line 155 of file keylayer_zslicemap.py.

◆ s

list keylayer_zslicemap.s = {}

Definition at line 121 of file keylayer_zslicemap.py.

◆ sb

dict keylayer_zslicemap.sb = {k:v for (k,v) in s.items() if s[k]['geom'] == 0 if s[k]['ec'] == 0}

Definition at line 192 of file keylayer_zslicemap.py.

◆ sbmax

int keylayer_zslicemap.sbmax = max(int(l['layer']) for l in sb.values()) + 1

Definition at line 207 of file keylayer_zslicemap.py.

◆ se

dict keylayer_zslicemap.se = {k:v for (k,v) in s.items() if s[k]['geom'] == 0 if s[k]['ec'] != 0}

Definition at line 194 of file keylayer_zslicemap.py.

◆ semax

int keylayer_zslicemap.semax = max(int(l['layer']) for l in se.values()) + 1

Definition at line 212 of file keylayer_zslicemap.py.

◆ sliceDicts

list keylayer_zslicemap.sliceDicts = [dict() for x in range(6)]

Definition at line 115 of file keylayer_zslicemap.py.

◆ slices

keylayer_zslicemap.slices = np.linspace(min_z,max_z, 7)

Definition at line 112 of file keylayer_zslicemap.py.

◆ strip

keylayer_zslicemap.strip = trk.SensitivePhiIndex[hit]

Definition at line 151 of file keylayer_zslicemap.py.

◆ t0

keylayer_zslicemap.t0 = time.clock()

Definition at line 58 of file keylayer_zslicemap.py.

◆ t1

keylayer_zslicemap.t1 = time.clock()

Definition at line 97 of file keylayer_zslicemap.py.

◆ t2

keylayer_zslicemap.t2 = time.clock()

Definition at line 106 of file keylayer_zslicemap.py.

◆ t3

keylayer_zslicemap.t3 = time.clock()

Definition at line 176 of file keylayer_zslicemap.py.

◆ type

keylayer_zslicemap.type

Definition at line 23 of file keylayer_zslicemap.py.

◆ z

keylayer_zslicemap.z = trk.SensitivePosZ[hit]

Definition at line 134 of file keylayer_zslicemap.py.