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