29 def beginRun(self):
30 """do everything here"""
31
33
34 layer = 3
35 ladder = 1
36 sensor = 1
38 sensorInfo = geoCache.getSensorInfo(vxdID)
39 print('printing velocity VS thickness for' + str(layer) + '.' + str(ladder) + '.' + str(sensor))
40 thickness = sensorInfo.getThickness()
41 N = 10
42 step = thickness / N
43 for s in range(0, N + 1):
44 print()
45 z = - thickness / 2 + step * s
46 print('Z = ' + str(z * 1e4) + ' um')
47 print(' electrons')
48 sensorInfo.getVelocity(-1, r.Math.XYZVector(0, 0, z)).Print()
49 print(' holes')
50 sensorInfo.getVelocity(+1, r.Math.XYZVector(0, 0, z)).Print()
51
52
static GeoCache & getInstance()
Return a reference to the singleton instance.
Class to uniquely identify a any structure of the PXD and SVD.