Belle II Software development
printSVDStripPositions Class Reference
Inheritance diagram for printSVDStripPositions:

Public Member Functions

def printStripPosition (self, layer, ladder, sensor)
 
def beginRun (self)
 

Detailed Description

class to print strip positions

Definition at line 122 of file dumpGeometryParameters.py.

Member Function Documentation

◆ beginRun()

def beginRun (   self)
begin run

Definition at line 150 of file dumpGeometryParameters.py.

150 def beginRun(self):
151 '''begin run'''
152
153 print('Layer 3')
154 self.printStripPosition(3, 1, 2)
155
156 print('Barrel')
157 self.printStripPosition(4, 1, 2)
158
159 print('Slanted')
160 self.printStripPosition(4, 1, 1)
161
162

◆ printStripPosition()

def printStripPosition (   self,
  layer,
  ladder,
  sensor 
)
function to print strip positions

Definition at line 125 of file dumpGeometryParameters.py.

125 def printStripPosition(self, layer, ladder, sensor):
126 '''function to print strip positions'''
127
129
130 vxdID = Belle2.VxdID(layer, ladder, sensor)
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.
Definition: GeoCache.cc:214
Class to uniquely identify a any structure of the PXD and SVD.
Definition: VxdID.h:33

The documentation for this class was generated from the following file: