Reference

Contents

Index

SciFiAnalysisTools.ChannelIDMethod
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.
source
SciFiAnalysisTools.TLQMDMethod
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}".

source
SciFiAnalysisTools.id2hexMethod
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: a ChannelID named tuple containing components of the channel ID.
source
SciFiAnalysisTools.location_bin_centerMethod
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: A NamedTuple or object with attributes _module, _quarter, _station, _layer, _mat, and _sipm, representing the components of the channel ID.

Details

  • x is computed by determining the coarse position based on the module and quarter, and then refining it with the mat and SiPM information.
  • y is computed by combining the station and layer information with the quarter's contribution.
source
SciFiAnalysisTools.standard_mapMethod
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.
source