module which checks if two collection of CDCHits are equal
Definition at line 14 of file cdc_packer_unpacker.py.
◆ event()
event function
Definition at line 36 of file cdc_packer_unpacker.py.
48 cdcHitsPackedUnpacked = self.sortHits(cdcHitsPackedUnpacked_unsorted)
49 cdcHits = self.sortHits(cdcHits_unsorted)
51 if not len(cdcHits) == len(cdcHitsPackedUnpacked):
52 B2FATAL(
"CDC Hit count not equal after packing and unpacking")
55 for i
in range(len(cdcHits)):
57 hitPackedUnpacked = cdcHitsPackedUnpacked[i]
59 assert hit.getILayer() == hitPackedUnpacked.getILayer()
60 assert hit.getISuperLayer() == hitPackedUnpacked.getISuperLayer()
61 assert hit.getIWire() == hitPackedUnpacked.getIWire()
62 assert hit.getID() == hitPackedUnpacked.getID()
63 assert hit.getTDCCount() == hitPackedUnpacked.getTDCCount()
64 assert hit.getADCCount() == hitPackedUnpacked.getADCCount()
65 assert hit.getStatus() == hitPackedUnpacked.getStatus()
◆ sortHits()
def sortHits |
( |
|
self, |
|
|
|
unsortedPyStoreArray |
|
) |
| |
use a some information to sort the CDCHits list
Returns a python-list containing the CDCHits
Definition at line 20 of file cdc_packer_unpacker.py.
The documentation for this class was generated from the following file: