Belle II Software  release-08-01-10
PxdPackerUnpackerTestModule Class Reference
Inheritance diagram for PxdPackerUnpackerTestModule:
Collaboration diagram for PxdPackerUnpackerTestModule:

Public Member Functions

def __init__ (self, rawhits_collection='PXDRawHits', digits_collection="PXDDigits")
 
def sortDigits (self, unsortedPyStoreArray)
 
def sortRawHits (self, unsortedPyStoreArray)
 
def event (self)
 

Public Attributes

 rawhits_collection
 the PXDRawHits
 
 digits_collection
 the PXDDigits
 

Detailed Description

Module which checks if a collection of PXDDigits and
a collection of PXDRawHits from the packing/unpacking procedure are equal.
The PXDUnpacker does not create PXDDigits but PXDRawHits and therefore these two lists
must be compared.

Definition at line 30 of file pxd_packer_unpacker.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  rawhits_collection = 'PXDRawHits',
  digits_collection = "PXDDigits" 
)
constructor

Definition at line 39 of file pxd_packer_unpacker.py.

39  def __init__(self, rawhits_collection='PXDRawHits', digits_collection="PXDDigits"):
40  """constructor"""
41  # call constructor of base class, required if you implement __init__ yourself!
42  super().__init__()
43  # and do whatever else is necessary like declaring member variables
44 
45  self.rawhits_collection = rawhits_collection
46 
47  self.digits_collection = digits_collection
48 

Member Function Documentation

◆ event()

def event (   self)
 load the PXD Digits of the simulation and the packed/unpacked ones
and compare them

Definition at line 81 of file pxd_packer_unpacker.py.

◆ sortDigits()

def sortDigits (   self,
  unsortedPyStoreArray 
)
 use a some digit information to sort the PXDDigits list
    Returns a python-list containing the PXDDigts

Definition at line 49 of file pxd_packer_unpacker.py.

◆ sortRawHits()

def sortRawHits (   self,
  unsortedPyStoreArray 
)
 use a some digit information to sort the PXDRawHits list
    Returns a python-list containing the PXDRawHits

Definition at line 65 of file pxd_packer_unpacker.py.


The documentation for this class was generated from the following file: