Ejemplo n.º 1
0
    def __init__(self, detector_material=None):
        Geometry.__init__(self, detector_material=detector_material)

        self.solid_id_to_channel_index = []
        self.channel_index_to_solid_id = []
        self.channel_index_to_channel_type = []
        self.channel_index_to_position = []

        # zero time and unit charge distributions
        self.time_cdf = (np.array([-0.00000001,
                                   0.00000001]), np.array([0.0, 1.0]))
        self.charge_cdf = (np.array([0.999999999,
                                     1.00000000]), np.array([0.0, 1.0]))
Ejemplo n.º 2
0
    def __init__(self, detector_material=None):
        Geometry.__init__(self, detector_material=detector_material)

        # Using numpy arrays here to allow for fancy indexing
        self.solid_id_to_channel_index = np.zeros(0, dtype=np.int32)
        self.channel_index_to_solid_id = np.zeros(0, dtype=np.int32)

        self.channel_index_to_channel_id = np.zeros(0, dtype=np.int32)

        # If the ID numbers are arbitrary, we can't treat them
        # as array indices, so have to use a dictionary
        self.channel_id_to_channel_index = {}

        # zero time and unit charge distributions
        self.time_cdf = (np.array([-0.00000001, 0.00000001]), np.array([0.0, 1.0]))
        self.charge_cdf = (np.array([0.999999999, 1.00000000]), np.array([0.0, 1.0]))
Ejemplo n.º 3
0
    def __init__(self, detector_material=None):
        Geometry.__init__(self, detector_material=detector_material)

        # Using numpy arrays here to allow for fancy indexing
        self.solid_id_to_channel_index = []
        self.channel_index_to_solid_id = []
        self.channel_index_to_channel_id = []

        # If the ID numbers are arbitrary, we can't treat them
        # as array indices, so have to use a dictionary
        self.channel_id_to_channel_index = {}

        # zero time and unit charge distributions
        self.time_cdf = (np.array([-0.00000001,
                                   0.00000001]), np.array([0.0, 1.0]))
        self.charge_cdf = (np.array([0.999999999,
                                     1.00000000]), np.array([0.0, 1.0]))