Reference
Contents
Index
SciFiAnalysisTools.ChannelIDSciFiAnalysisTools.TLQMDSciFiAnalysisTools.id2hexSciFiAnalysisTools.location_bin_centerSciFiAnalysisTools.standard_map
SciFiAnalysisTools.ChannelID — Method
ChannelID(id)Converts a given channel ID as hex into a ChannelID which is a NamedTuple. THe extraction of each field uses predefined bit masks (SciFiAnalysisTools.masks) and bit algebra.
Arguments
id: An integer or hex representing the encoded channel ID.
SciFiAnalysisTools.TLQMD — Method
TLQMD(ch_id)Converts a given channel ID object into a formatted string representation.
Args: id: An object representing the channel ID with attributes _station, _layer, _quarter, _module, _mat, and _sipm.
Returns: A string in the format "T{station}L{layer}Q{quarter}M{module}mat{mat}sipm{sipm}".
SciFiAnalysisTools.id2hex — Method
id2hex(ch_id)Encodes a channel ID, provided as a ChannelID named tuple, into a hexadecimal value by applying bitwise operations according to predefined masks.
Arguments
ch_id: aChannelIDnamed tuple containing components of the channel ID.
SciFiAnalysisTools.location_bin_center — Method
location_bin_center(id)Calculates the center of the bin (x, y) corresponding to a given channel ID in the detector's coordinate system.
Arguments
id: ANamedTupleor object with attributes_module,_quarter,_station,_layer,_mat, and_sipm, representing the components of the channel ID.
Details
xis computed by determining the coarse position based on the module and quarter, and then refining it with the mat and SiPM information.yis computed by combining the station and layer information with the quarter's contribution.
SciFiAnalysisTools.standard_map — Method
standard_map(id2values)Creates a 2D array with the values of a given dictionary of channel IDs. Default values are NaN, only sipm present in the list are updated with the provided values.
Arguments
id2values: A list of pais of channel IDs and values.