Belle II Software development
printSVDPitches Class Reference

test SVD geometry More...

Inheritance diagram for printSVDPitches:

Public Member Functions

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

Detailed Description

test SVD geometry

  1. > prepend the GT you want to test
  2. > set the Experiment and Run number you want to test
  3. > basf2 dumpGeometryParameters.py
class to print SVD pitches

Definition at line 27 of file dumpGeometryParameters.py.

Member Function Documentation

◆ beginRun()

def beginRun (   self)
begin run

Definition at line 48 of file dumpGeometryParameters.py.

48 def beginRun(self):
49 '''begin run'''
50
51 print('Layer 3')
52 self.printPitch(3, 1, 2)
53
54 print('Barrel')
55 self.printPitch(4, 1, 2)
56
57 print('Slanted')
58 self.printPitch(4, 1, 1)
59
60

◆ printPitch()

def printPitch (   self,
  layer,
  ladder,
  sensor 
)
print pitch function

Definition at line 30 of file dumpGeometryParameters.py.

30 def printPitch(self, layer, ladder, sensor):
31 '''print pitch function'''
32
34
35 vxdID = Belle2.VxdID(layer, 1, sensor)
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.
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: