module which checks if two collections of EKLMDigits and BKLMDigits are
equal
Definition at line 19 of file klm_packer_unpacker.py.
◆ event()
load original digits and the packed/unpacked ones, sort and compare them
Definition at line 47 of file klm_packer_unpacker.py.
49 load original digits and the packed/unpacked ones, sort and compare them
58 klm_digits_sorted = self.sort_klm_digits(klm_digits)
59 klm_digits_unpacked_sorted = self.sort_klm_digits(klm_digits_unpacked)
62 if not len(klm_digits_sorted) == len(klm_digits_unpacked_sorted):
63 basf2.B2FATAL(
"KLMDigits: size not equal after packing and unpacking")
65 for i
in range(len(klm_digits_sorted)):
67 digit = klm_digits_sorted[i]
68 digit_unpacked = klm_digits_unpacked_sorted[i]
71 assert digit.getSubdetector() == digit_unpacked.getSubdetector()
72 assert digit.getSection() == digit_unpacked.getSection()
73 assert digit.getSector() == digit_unpacked.getSector()
74 assert digit.getLayer() == digit_unpacked.getLayer()
75 assert digit.getPlane() == digit_unpacked.getPlane()
76 assert digit.getStrip() == digit_unpacked.getStrip()
77 assert digit.inRPC() == digit_unpacked.inRPC()
78 assert digit.getCharge() == digit_unpacked.getCharge()
79 assert digit.getCTime() == digit_unpacked.getCTime()
80 assert digit.getTDC() == digit_unpacked.getTDC()
81 assert digit.getFitStatus() == digit_unpacked.getFitStatus()
A (simplified) python wrapper for StoreArray.
◆ sort_klm_digits()
def sort_klm_digits |
( |
|
self, |
|
|
|
unsortedPyStoreArray |
|
) |
| |
Use some digit information to sort the digits
Returns a python-list containing the sorted digits
Definition at line 26 of file klm_packer_unpacker.py.
The documentation for this class was generated from the following file: