13 from ROOT
import Belle2
27 """ print electronic noise """
30 """do everything here"""
34 print(
'printing ElectronicNoise for all ladder = 1 sensors')
35 for layer
in geoCache.getLayers(Belle2.VXD.SensorInfoBase.SVD):
36 layerNumber = layer.getLayerNumber()
37 for ladder
in geoCache.getLadders(layer):
38 if not ladder.getLadderNumber() == 1:
40 for sensor
in geoCache.getSensors(ladder):
41 sensorNumber = sensor.getSensorNumber()
42 print(str(layerNumber) +
'.1.' + str(sensorNumber))
43 sensorInfo = geoCache.getSensorInfo(sensor)
44 print(
' U-side noise = '+str(sensorInfo.getElectronicNoiseU())+
' e-')
45 print(
' V-side noise = '+str(sensorInfo.getElectronicNoiseV())+
' e-')
49 """ print ADU equivalent"""
52 """do everything here"""
55 print(
'printing AduEquivalent for all ladder = 1 sensors')
56 for layer
in geoCache.getLayers(Belle2.VXD.SensorInfoBase.SVD):
57 layerNumber = layer.getLayerNumber()
58 for ladder
in geoCache.getLadders(layer):
59 if not ladder.getLadderNumber() == 1:
61 for sensor
in geoCache.getSensors(ladder):
62 sensorNumber = sensor.getSensorNumber()
63 print(str(layerNumber) +
'.1.' + str(sensorNumber))
64 sensorInfo = geoCache.getSensorInfo(sensor)
65 print(
' U-side ADU equivalent = '+str(sensorInfo.getAduEquivalentU())+
' e-/ADC')
66 print(
' V-side ADU equivalent = '+str(sensorInfo.getAduEquivalentV())+
' e-/ADC')
73 main = b2.create_path()
75 eventinfosetter = b2.register_module(
'EventInfoSetter')
76 eventinfosetter.param(
'expList', [1003])
77 eventinfosetter.param(
'runList', [0])
78 eventinfosetter.param(
'evtNumList', [1])
79 main.add_module(eventinfosetter)
81 main.add_module(
"Gearbox")
82 main.add_module(
'Geometry')
static GeoCache & getInstance()
Return a reference to the singleton instance.
test SVD SensorInfo getters