Belle II Software development
printVelocity Class Reference

test SVD SensorInfo getters More...

Inheritance diagram for printVelocity:

Public Member Functions

def beginRun (self)
 

Detailed Description

test SVD SensorInfo getters

  1. > prepend the GT you want to test
  2. > set the Experiment and Run number you want to test
  3. > basf2 dumpSensorInfoParameters.py
 print velocity 

Definition at line 26 of file dumpSensorInfoParameters.py.

Member Function Documentation

◆ beginRun()

def beginRun (   self)
do everything here

Definition at line 29 of file dumpSensorInfoParameters.py.

29 def beginRun(self):
30 """do everything here"""
31
33
34 layer = 3
35 ladder = 1
36 sensor = 1
37 vxdID = Belle2.VxdID(layer, ladder, sensor)
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.
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: