module which ckecks if two collections of TOPDigits are equal
Definition at line 20 of file top_digits_raw_digits.py.
◆ event()
load original TOPDigits and the packed/unpacked ones, sort and compare them
Definition at line 44 of file top_digits_raw_digits.py.
46 load original TOPDigits and the packed/unpacked ones, sort and compare them
55 digits_sorted = self.sortDigits(digits)
56 digitsUnpacked_sorted = self.sortDigits(digitsUnpacked)
59 if not len(digits_sorted) == len(digitsUnpacked_sorted):
60 b2.B2FATAL(
"TOPDigits: size not equal after packing and unpacking")
64 for i
in range(len(digits_sorted)):
65 digit = digits_sorted[i]
66 digitUnpacked = digitsUnpacked_sorted[i]
69 assert digit.getModuleID() == digitUnpacked.getModuleID()
70 assert digit.getPixelID() == digitUnpacked.getPixelID()
71 assert digit.getChannel() == digitUnpacked.getChannel()
72 assert digit.getRawTime() == digitUnpacked.getRawTime()
73 assert abs(digit.getTime() - digitUnpacked.getTime()) < precision
74 assert abs(digit.getTimeError() - digitUnpacked.getTimeError()) < precision
75 assert digit.getPulseHeight() == digitUnpacked.getPulseHeight()
76 assert abs(digit.getPulseWidth() - digitUnpacked.getPulseWidth()) < precision
77 assert digit.getIntegral() == digitUnpacked.getIntegral()
78 assert digit.getFirstWindow() == digitUnpacked.getFirstWindow()
79 assert digit.getHitQuality() == digitUnpacked.getHitQuality()
80 assert digit.getStatus() == digitUnpacked.getStatus()
81 assert digit.isChargeShare() == digitUnpacked.isChargeShare()
82 assert digit.isPrimaryChargeShare() == digitUnpacked.isPrimaryChargeShare()
A (simplified) python wrapper for StoreArray.
◆ sortDigits()
def sortDigits |
( |
|
self, |
|
|
|
unsortedPyStoreArray |
|
) |
| |
Use some digit information to sort the digits
Returns a python-list containing the sorted digits
Definition at line 26 of file top_digits_raw_digits.py.
The documentation for this class was generated from the following file: