14from ROOT
import Belle2
19 """A simple module to dump PXD digits."""
22 """Initialize the module"""
31 """ Write legend for file columns """
32 with open(self.
dumpfile,
'w')
as dumpfile:
33 dumpfile.write(
'vxd.id layer ladder sensor digit.u digit.v digit.charge ')
36 """Find clusters with a truehit and print some stats."""
42 with open(self.
dumpfile,
'a')
as dumpfile:
46 sensorID = digit.getSensorID().getID()
47 [layer, ladder, sensor] = self.
decode(sensorID)
48 s += f
'{sensorID} {layer:3d} {ladder:3d} {sensor:3d} {digit.getUCellID():6d} ' + \
49 f
'{digit.getVCellID():6d} {digit.getCharge():8.1f}'
57 """ Utility to decode sensor IDs """
60 for f
in self.vxdid_factors:
61 result.append(vxdid // f)
A (simplified) python wrapper for StoreArray.
vxdid_factors
Factors for decoding VXDId's.
dumpfile
Output file object.