30 def printPitch(self, layer, ladder, sensor):
31 '''print pitch function'''
32
34
36 sensorInfo = geoCache.getSensorInfo(vxdID)
37 print('pitches of sensor ' + str(layer) + '.' + str(ladder) + '.' + str(sensor) + ' at:')
38 print(' at other coordinate = 0')
39 print("U pitch = " + str(sensorInfo.getUPitch(0) * 10000) + ' mu')
40 print("V pitch = " + str(sensorInfo.getVPitch(0) * 10000) + ' mu')
41 print(' at other coordinate = +length/2')
42 print("U pitch = " + str(sensorInfo.getUPitch(sensorInfo.getLength() / 2) * 10000) + ' mu')
43 print("V pitch = " + str(sensorInfo.getVPitch(sensorInfo.getLength() / 2) * 10000) + ' mu')
44 print(' at other coordinate = -length/2')
45 print("U pitch = " + str(sensorInfo.getUPitch(-sensorInfo.getLength() / 2) * 10000) + ' mu')
46 print("V pitch = " + str(sensorInfo.getVPitch(-sensorInfo.getLength() / 2) * 10000) + ' mu')
47
static GeoCache & getInstance()
Return a reference to the singleton instance.
Class to uniquely identify a any structure of the PXD and SVD.