module which checks if two collection of CDCHits are equal
Definition at line 22 of file cdc_packer_unpacker.py.
◆ event()
event function
Definition at line 44 of file cdc_packer_unpacker.py.
56 cdcHitsPackedUnpacked = self.sortHits(cdcHitsPackedUnpacked_unsorted)
57 cdcHits = self.sortHits(cdcHits_unsorted)
59 if not len(cdcHits) == len(cdcHitsPackedUnpacked):
60 b2.B2FATAL(
"CDC Hit count not equal after packing and unpacking")
63 for i
in range(len(cdcHits)):
65 hitPackedUnpacked = cdcHitsPackedUnpacked[i]
67 assert hit.getILayer() == hitPackedUnpacked.getILayer()
68 assert hit.getISuperLayer() == hitPackedUnpacked.getISuperLayer()
69 assert hit.getIWire() == hitPackedUnpacked.getIWire()
70 assert hit.getID() == hitPackedUnpacked.getID()
71 assert hit.getTDCCount() == hitPackedUnpacked.getTDCCount()
72 assert hit.getADCCount() == hitPackedUnpacked.getADCCount()
73 assert hit.getStatus() == hitPackedUnpacked.getStatus()
A (simplified) python wrapper for StoreArray.
◆ sortHits()
def sortHits |
( |
|
self, |
|
|
|
unsortedPyStoreArray |
|
) |
| |
use a some information to sort the CDCHits list
Returns a python-list containing the CDCHits
Definition at line 28 of file cdc_packer_unpacker.py.
The documentation for this class was generated from the following file: