125 def printStripPosition(self, layer, ladder, sensor):
126 '''function to print strip positions'''
127
129
131 sensorInfo = geoCache.getSensorInfo(vxdID)
132 nUcells = sensorInfo.getUCells() - 1
133 nVcells = sensorInfo.getVCells() - 1
134 print('strip positions ' + str(layer) + '.' + str(ladder) + '.' + str(sensor) + ' at:')
135 print(' vID=0 = ' + str(sensorInfo.getVCellPosition(0) * 10) + ' mm')
136 print(' vID=' + str(nVcells) + ' = ' + str(sensorInfo.getVCellPosition(nVcells) * 10) + ' mm')
137
138 print(' uID=0 at v=0 = ' + str(sensorInfo.getUCellPosition(0, 0) * 10) + ' mm')
139 print(' uID=0 at v=' + str(nVcells) + ' = ' + str(sensorInfo.getUCellPosition(0, nVcells) * 10) + ' mm')
140 print(' uID=' + str(nUcells) + ' at v=0 = ' + str(sensorInfo.getUCellPosition(nUcells, 0) * 10) + ' mm')
141 print(' uID=' + str(nUcells) + ' at v=' + str(nVcells) + ' = ' +
142 str(sensorInfo.getUCellPosition(nUcells, nVcells) * 10) + ' mm')
143
144 print('insideout')
145 print('U cellID at vID=nVcell (0) = ' +
146 str(sensorInfo.getUCellID(sensorInfo.getUCellPosition(0, nVcells), sensorInfo.getVCellPosition(nVcells))))
147 print('U cellID at vID=0 (0) = ' +
148 str(sensorInfo.getUCellID(sensorInfo.getUCellPosition(0, 0), sensorInfo.getVCellPosition(0))))
149
static GeoCache & getInstance()
Return a reference to the singleton instance.
Class to uniquely identify a any structure of the PXD and SVD.